@talogic/react 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +560 -485
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +16 -0
- package/ui/navigation/tabs.component.d.ts +2 -1
- package/ui/presence/index.d.ts +2 -0
- package/ui/presence/presence-group.component.d.ts +24 -0
- package/ui/presence/presence.component.d.ts +12 -4
- package/ui/presence/presence.recipe.d.ts +4 -3
package/index.js
CHANGED
|
@@ -4,11 +4,11 @@ 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 S, Slider as C, Slot as w, Switch as T, Tabs as E, ToggleGroup as D, Tooltip as O } from "radix-ui";
|
|
5
5
|
import { cva as k } from "class-variance-authority";
|
|
6
6
|
import { Ban as ee, Bookmark as te, Check as A, ChevronDown as j, ChevronRight as ne, ChevronsLeft as re, 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 {
|
|
7
|
+
import { Children as ve, cloneElement as ye, createContext as be, isValidElement as xe, use as Se, useCallback as F, useContext as Ce, useEffect as I, useId as we, useLayoutEffect as Te, useMemo as Ee, useRef as L, useState as R, useSyncExternalStore as De } from "react";
|
|
8
8
|
import { Drawer as z } from "vaul";
|
|
9
9
|
import { Command as B } from "cmdk";
|
|
10
|
-
import { Toaster as
|
|
11
|
-
import { Group as
|
|
10
|
+
import { Toaster as Oe } from "sonner";
|
|
11
|
+
import { Group as ke, Panel as Ae, Separator as je } from "react-resizable-panels";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
13
|
function V(...n) {
|
|
14
14
|
return t(e(n));
|
|
@@ -54,7 +54,7 @@ var H = {
|
|
|
54
54
|
logoColor: "#3e63dd",
|
|
55
55
|
logoAccents: ["#e5484d", "#30a46c"]
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Me = {
|
|
58
58
|
talogic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3ccircle%20cx='4266.667'%20cy='4266.667'%20r='4266.667'%20fill='%23753edd'/%3e%3cpath%20d='M6239.492,7179.279c-587.992,403.439%20-1284.858,619.682%20-1998.46,619.682c-1937.781,0%20-3532.333,-1594.553%20-3532.333,-3532.333c0,-1937.781%201594.553,-3532.333%203532.333,-3532.333c1593.826,-0%202999.58,1078.727%203412.017,2618.266c53.557,199.918%20-65.269,405.709%20-265.188,459.266c-199.918,53.557%20-405.709,-65.269%20-459.266,-265.188c-324.867,-1212.657%20-1432.145,-2062.344%20-2687.563,-2062.344c-1526.343,-0%20-2782.333,1255.99%20-2782.333,2782.333c0,1526.343%201255.99,2782.333%202782.333,2782.333c559.652,0%201106.236,-168.857%201568.116,-483.988l-249.007,-355.451l1686.002,-207.645l-771.521,1513.043l-235.13,-335.642Zm-3156.366,-3334.215c39.357,-108.037%20159.021,-163.797%20267.058,-124.44c108.037,39.357%20163.797,159.021%20124.44,267.058c-32.594,89.472%20-49.269,183.965%20-49.269,279.189c0,447.461%20368.205,815.667%20815.667,815.667c447.461,0%20815.667,-368.205%20815.667,-815.667c0,-291.052%20-155.783,-560.872%20-407.844,-706.394c-99.578,-57.49%20-133.749,-185.009%20-76.26,-284.587c57.49,-99.578%20185.009,-133.749%20284.587,-76.26c380.821,219.859%20616.183,627.511%20616.183,1067.242c0,676.038%20-556.295,1232.333%20-1232.333,1232.333c-676.038,0%20-1232.333,-556.295%20-1232.333,-1232.333c0,-143.867%2025.193,-286.63%2074.437,-421.807Zm3319.934,1203.659c-55.039,151.274%20-222.539,229.404%20-373.813,174.364c-151.274,-55.039%20-229.404,-222.539%20-174.364,-373.813c68.47,-188.186%20103.497,-386.907%20103.497,-587.163c0,-942.081%20-775.215,-1717.296%20-1717.296,-1717.296c-942.081,0%20-1717.296,775.215%20-1717.296,1717.296c0,612.741%20327.944,1180.786%20858.578,1487.182c139.405,80.494%20187.233,259.024%20106.739,398.429c-80.494,139.405%20-259.024,187.233%20-398.429,106.739c-710.881,-410.472%20-1150.221,-1171.472%20-1150.221,-1992.349c0,-1262.088%201038.541,-2300.629%202300.629,-2300.629c1262.088,0%202300.629,1038.541%202300.629,2300.629c0,268.278%20-46.926,534.501%20-138.654,786.611Zm-2172.051,-1208.724c229.965,0%20416.667,186.702%20416.667,416.667c0,229.965%20-186.702,416.667%20-416.667,416.667c-229.965,0%20-416.667,-186.702%20-416.667,-416.667c0,-229.965%20186.702,-416.667%20416.667,-416.667Z'%20fill='%23fff'/%3e%3c/svg%3e" },
|
|
59
59
|
pargic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M8350.618,5542.197c-16.744,53.324%20-34,106.427%20-51.758,159.296c-44.706,128.857%20-95.419,254.916%20-151.804,377.842l-1503.884,-488.642l-256.17,788.41l-1812.022,-1974.821l2626.74,-532.622l-256.169,788.407l1504.03,488.689c-26.854,133.499%20-59.948,264.752%20-98.963,393.441Zm-8116.145,159.296c-17.758,-52.869%20-35.014,-105.971%20-51.758,-159.296c-39.015,-128.688%20-72.108,-259.939%20-98.962,-393.437l1504.031,-488.689l-256.17,-788.41l2626.728,532.584l-1812.01,1974.86l-256.169,-788.407l-1503.884,488.641c-56.385,-122.927%20-107.099,-248.988%20-151.806,-377.846Zm1936.602,-5114.117l929.208,1278.945l670.662,-487.264l305.186,2662.744l-2438.145,-1113.059l670.659,-487.262l-928.662,-1278.193c239.997,-220.72%20505.322,-414.318%20791.092,-575.911Zm4982.272,575.908l-928.662,1278.194l670.662,487.264l-2438.112,1113.082l305.153,-2662.768l670.659,487.262l929.208,-1278.945c285.77,161.593%20551.095,355.19%20791.092,575.91Zm-3375.938,7379.666l0,-1581.091l-828.984,0l1318.221,-2333.589l1318.261,2333.589l-828.98,0l0,1581.091c-160.561,18.364%20-323.818,27.801%20-489.261,27.801c-165.442,0%20-328.698,-9.437%20-489.257,-27.801Z'%20fill='%23dd773e'/%3e%3c/svg%3e" },
|
|
60
60
|
daygic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M4266.667,0c513.234,0%20929.915,416.681%20929.915,929.915l0,1969.231c0,513.234%20-416.681,929.915%20-929.915,929.915c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-1969.231c0,-513.234%20416.681,-929.915%20929.915,-929.915Zm3884.531,2899.145c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-1136.936,656.41c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l1136.936,-656.41c444.474,-256.617%201013.67,-104.101%201270.287,340.372Zm-568.468,4157.265c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-568.468,-328.205c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l568.468,328.205c444.474,256.617%20596.989,825.813%20340.372,1270.287Zm-3316.063,1476.923c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-218.803c0,-513.234%20416.681,-929.915%20929.915,-929.915c513.234,0%20929.915,416.681%20929.915,929.915l0,218.803c0,513.234%20-416.681,929.915%20-929.915,929.915Zm-3316.063,-1476.923c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l568.468,-328.205c444.474,-256.617%201013.67,-104.101%201270.287,340.372c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-568.468,328.205c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372Zm-568.468,-4157.265c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l1136.936,656.41c444.474,256.617%20596.989,825.813%20340.372,1270.287c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-1136.936,-656.41c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287Z'%20fill='%23c8902e'/%3e%3ccircle%20cx='4266.667'%20cy='5141.88'%20r='984.615'%20fill='%239a6a1c'/%3e%3c/svg%3e" },
|
|
@@ -69,7 +69,7 @@ var H = {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
function U({ product: e, alt: t = H[e].name, className: a, ...o }) {
|
|
72
|
-
let { light: s, dark: c } =
|
|
72
|
+
let { light: s, dark: c } = Me[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,
|
|
@@ -106,8 +106,8 @@ var W = {
|
|
|
106
106
|
lowOffset: .027,
|
|
107
107
|
deltaYMin: 5e-4,
|
|
108
108
|
lowClip: .1
|
|
109
|
-
},
|
|
110
|
-
function
|
|
109
|
+
}, Ne = ["#14121a", "#ffffff"];
|
|
110
|
+
function Pe(e) {
|
|
111
111
|
let t = e.replace("#", "").trim(), n = t.length === 3 ? [...t].map((e) => e.repeat(2)).join("") : t;
|
|
112
112
|
if (!/^[\da-f]{6}$/i.test(n)) throw RangeError(`Not a hex colour: ${e}`);
|
|
113
113
|
return [
|
|
@@ -116,12 +116,12 @@ function Ne(e) {
|
|
|
116
116
|
4
|
|
117
117
|
].map((e) => Number.parseInt(n.slice(e, e + 2), 16));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let [t, n, r] =
|
|
119
|
+
function Fe(e) {
|
|
120
|
+
let [t, n, r] = Pe(e).map((e) => (e / 255) ** W.mainTrc), i = W.red * t + W.green * n + W.blue * r;
|
|
121
121
|
return i < W.blackThresh ? i + (W.blackThresh - i) ** W.blackClamp : i;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
123
|
+
function Ie(e, t) {
|
|
124
|
+
let n = Fe(e), r = Fe(t);
|
|
125
125
|
if (Math.abs(r - n) < W.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
127
|
let e = (r ** W.normBg - n ** W.normText) * W.scale;
|
|
@@ -130,12 +130,12 @@ function Fe(e, t) {
|
|
|
130
130
|
let i = (r ** W.revBg - n ** W.revText) * W.scale;
|
|
131
131
|
return i > -W.lowClip ? 0 : (i + W.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Le(e, t = Ne) {
|
|
134
134
|
let n = t[0];
|
|
135
135
|
if (n === void 0) throw RangeError("No label colour to choose from");
|
|
136
|
-
let r = Math.abs(
|
|
136
|
+
let r = Math.abs(Ie(n, e));
|
|
137
137
|
for (let i of t.slice(1)) {
|
|
138
|
-
let t = Math.abs(
|
|
138
|
+
let t = Math.abs(Ie(i, e));
|
|
139
139
|
t > r && (n = i, r = t);
|
|
140
140
|
}
|
|
141
141
|
return n;
|
|
@@ -154,7 +154,7 @@ var G = {
|
|
|
154
154
|
violet: "bg-violet-500",
|
|
155
155
|
purple: "bg-purple-500",
|
|
156
156
|
pink: "bg-pink-500"
|
|
157
|
-
},
|
|
157
|
+
}, Re = {
|
|
158
158
|
red: {
|
|
159
159
|
50: "#fef4f3",
|
|
160
160
|
100: "#fee9e7",
|
|
@@ -317,18 +317,18 @@ var G = {
|
|
|
317
317
|
maxOklchLightness: .7,
|
|
318
318
|
lightnessStep: .005
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function ze(e) {
|
|
321
321
|
return [
|
|
322
322
|
1,
|
|
323
323
|
3,
|
|
324
324
|
5
|
|
325
325
|
].map((t) => Number.parseInt(e.slice(t, t + 2), 16) / 255);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
let [t, n, r] =
|
|
327
|
+
function Be(e) {
|
|
328
|
+
let [t, n, r] = ze(e), i = Math.max(t, n, r), a = i - Math.min(t, n, r);
|
|
329
329
|
return a === 0 ? 0 : ((i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4) * 60 + 360) % 360;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ve(e, t, n) {
|
|
332
332
|
let r = (1 - Math.abs(2 * n - 1)) * t, i = r * (1 - Math.abs(e / 60 % 2 - 1)), a = n - r / 2, o = Math.floor(e / 60) % 6;
|
|
333
333
|
return `#${([
|
|
334
334
|
[
|
|
@@ -367,24 +367,24 @@ function Be(e, t, n) {
|
|
|
367
367
|
0
|
|
368
368
|
]).map((e) => Math.round((e + a) * 255).toString(16).padStart(2, "0")).join("")}`;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
let [t, n, r] =
|
|
370
|
+
function He(e) {
|
|
371
|
+
let [t, n, r] = ze(e).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), i = Math.cbrt(.4122214708 * t + .5363325363 * n + .0514459929 * r), a = Math.cbrt(.2119034982 * t + .6806995451 * n + .1073969566 * r), o = Math.cbrt(.0883024619 * t + .2817188376 * n + .6299787005 * r);
|
|
372
372
|
return .2104542553 * i + .793617785 * a - .0040720468 * o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let t =
|
|
376
|
-
for (;
|
|
374
|
+
function Ue(e) {
|
|
375
|
+
let t = Be(Re[e][500]), n = K.lightness, r = Ve(t, K.saturation, n);
|
|
376
|
+
for (; He(r) > K.maxOklchLightness;) n -= K.lightnessStep, r = Ve(t, K.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
380
|
-
var
|
|
380
|
+
var We = {
|
|
381
381
|
talogic: "violet",
|
|
382
382
|
pargic: "orange",
|
|
383
383
|
daygic: "amber",
|
|
384
384
|
ingic: "blue",
|
|
385
385
|
loregic: "green",
|
|
386
386
|
loomgic: "blue"
|
|
387
|
-
},
|
|
387
|
+
}, Ge = [
|
|
388
388
|
"lime",
|
|
389
389
|
"teal",
|
|
390
390
|
"cyan",
|
|
@@ -392,18 +392,18 @@ var Ue = {
|
|
|
392
392
|
"purple",
|
|
393
393
|
"pink"
|
|
394
394
|
];
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Ke(e) {
|
|
396
|
+
return We[e];
|
|
397
397
|
}
|
|
398
398
|
// src/tokens/theme.contract.ts
|
|
399
|
-
var
|
|
399
|
+
var qe = [
|
|
400
400
|
"talogic",
|
|
401
401
|
"pargic",
|
|
402
402
|
"daygic",
|
|
403
403
|
"ingic",
|
|
404
404
|
"loregic",
|
|
405
405
|
"loomgic"
|
|
406
|
-
],
|
|
406
|
+
], Je = [
|
|
407
407
|
"red",
|
|
408
408
|
"orange",
|
|
409
409
|
"amber",
|
|
@@ -416,7 +416,7 @@ var Ke = [
|
|
|
416
416
|
"violet",
|
|
417
417
|
"purple",
|
|
418
418
|
"pink"
|
|
419
|
-
],
|
|
419
|
+
], Ye = [
|
|
420
420
|
"50",
|
|
421
421
|
"100",
|
|
422
422
|
"200",
|
|
@@ -428,20 +428,20 @@ var Ke = [
|
|
|
428
428
|
"800",
|
|
429
429
|
"900",
|
|
430
430
|
"950"
|
|
431
|
-
],
|
|
431
|
+
], Xe = [
|
|
432
432
|
"web",
|
|
433
433
|
"app",
|
|
434
434
|
"desk",
|
|
435
435
|
"mob"
|
|
436
|
-
],
|
|
436
|
+
], Ze = ["light", "dark"];
|
|
437
437
|
// src/tokens/theme-attributes.mapper.ts
|
|
438
|
-
function
|
|
438
|
+
function Qe(e) {
|
|
439
439
|
let t = { className: [e.scheme === "dark" ? "dark" : "", e.density ? `d-${e.density}` : ""].filter(Boolean).join(" ") };
|
|
440
440
|
return e.product && (t["data-product"] = e.product), e.hue && (t["data-hue"] = e.hue), t;
|
|
441
441
|
}
|
|
442
442
|
// src/tokens/theme-root.component.tsx
|
|
443
|
-
function
|
|
444
|
-
let { className: c, ...l } =
|
|
443
|
+
function $e({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
|
|
444
|
+
let { className: c, ...l } = Qe({
|
|
445
445
|
product: e,
|
|
446
446
|
hue: t,
|
|
447
447
|
scheme: n,
|
|
@@ -455,21 +455,21 @@ function Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, classN
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
// src/ui/avatar/avatar.component.tsx
|
|
458
|
-
function
|
|
458
|
+
function et({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
461
|
className: V("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function tt({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
468
|
className: V("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function nt({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
475
|
className: V("flex size-full items-center justify-center rounded-full bg-brand-soft text-xs font-semibold text-brand-text", e),
|
|
@@ -477,7 +477,7 @@ function tt({ className: e, ...t }) {
|
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
// src/ui/badge/badge.recipe.ts
|
|
480
|
-
var
|
|
480
|
+
var rt = k("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full border border-transparent px-2 text-xs font-medium [&_svg]:size-3", {
|
|
481
481
|
variants: { variant: {
|
|
482
482
|
default: "bg-primary text-primary-foreground",
|
|
483
483
|
secondary: "bg-secondary text-secondary-foreground",
|
|
@@ -494,7 +494,7 @@ var nt = k("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowr
|
|
|
494
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: V(
|
|
497
|
+
className: V(rt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -557,8 +557,8 @@ function Y({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
// src/ui/choice/checkbox.component.tsx
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var it = "fill-none stroke-current [stroke-dasharray:1] [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:2.4] transition-[stroke-dashoffset] ease-emphasised motion-reduce:transition-none";
|
|
561
|
+
function at({ className: e, ...t }) {
|
|
562
562
|
return /* @__PURE__ */ r(c.Root, {
|
|
563
563
|
"data-slot": "checkbox",
|
|
564
564
|
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:shadow-[0_0_0_6px_color-mix(in_oklab,var(--foreground)_12%,transparent)] 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),
|
|
@@ -573,25 +573,25 @@ function it({ className: e, ...t }) {
|
|
|
573
573
|
children: [/* @__PURE__ */ r("path", {
|
|
574
574
|
d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
|
|
575
575
|
pathLength: 1,
|
|
576
|
-
className: V(
|
|
576
|
+
className: V(it, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
|
|
577
577
|
}), /* @__PURE__ */ r("path", {
|
|
578
578
|
d: "M4 8 L12 8",
|
|
579
579
|
pathLength: 1,
|
|
580
|
-
className: V(
|
|
580
|
+
className: V(it, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
|
|
581
581
|
})]
|
|
582
582
|
})
|
|
583
583
|
})
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
// src/ui/choice/radio-group.component.tsx
|
|
587
|
-
function
|
|
587
|
+
function ot({ className: e, ...t }) {
|
|
588
588
|
return /* @__PURE__ */ r(y.Root, {
|
|
589
589
|
"data-slot": "radio-group",
|
|
590
590
|
className: V("grid gap-2.5", e),
|
|
591
591
|
...t
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function st({ className: e, ...t }) {
|
|
595
595
|
return /* @__PURE__ */ r(y.Item, {
|
|
596
596
|
"data-slot": "radio-group-item",
|
|
597
597
|
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),
|
|
@@ -603,7 +603,7 @@ function ot({ className: e, ...t }) {
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
// src/ui/choice/slider.component.tsx
|
|
606
|
-
function
|
|
606
|
+
function ct({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
607
607
|
let [d, f] = R(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
608
608
|
return /* @__PURE__ */ i(C.Root, {
|
|
609
609
|
"data-slot": "slider",
|
|
@@ -633,7 +633,7 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
// src/ui/choice/switch.component.tsx
|
|
636
|
-
function
|
|
636
|
+
function lt({ className: e, ...t }) {
|
|
637
637
|
return /* @__PURE__ */ r(T.Root, {
|
|
638
638
|
"data-slot": "switch",
|
|
639
639
|
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),
|
|
@@ -642,7 +642,7 @@ function ct({ className: e, ...t }) {
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
645
|
-
function
|
|
645
|
+
function ut(e) {
|
|
646
646
|
let t = L(null), n = L(void 0), r = F((r) => {
|
|
647
647
|
if (n.current?.(), n.current = void 0, t.current = r, !r) return;
|
|
648
648
|
function i() {
|
|
@@ -668,10 +668,10 @@ function lt(e) {
|
|
|
668
668
|
return I(() => () => n.current?.(), []), r;
|
|
669
669
|
}
|
|
670
670
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
671
|
-
var
|
|
671
|
+
var dt = "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";
|
|
672
672
|
// src/ui/choice/toggle-group.component.tsx
|
|
673
|
-
function
|
|
674
|
-
let a =
|
|
673
|
+
function ft({ className: e, children: t, ...n }) {
|
|
674
|
+
let a = ut("[data-state=on]"), o = n.type === "single";
|
|
675
675
|
return /* @__PURE__ */ i(D.Root, {
|
|
676
676
|
ref: o ? a : void 0,
|
|
677
677
|
"data-slot": "toggle-group",
|
|
@@ -681,11 +681,11 @@ function dt({ className: e, children: t, ...n }) {
|
|
|
681
681
|
children: [o && /* @__PURE__ */ r("span", {
|
|
682
682
|
"aria-hidden": "true",
|
|
683
683
|
"data-slot": "toggle-group-indicator",
|
|
684
|
-
className: V(
|
|
684
|
+
className: V(dt, "rounded-sm bg-background shadow-xs")
|
|
685
685
|
}), t]
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function pt({ className: e, ...t }) {
|
|
689
689
|
return /* @__PURE__ */ r(D.Item, {
|
|
690
690
|
"data-slot": "toggle-group-item",
|
|
691
691
|
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),
|
|
@@ -693,20 +693,20 @@ function ft({ className: e, ...t }) {
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
// src/ui/field/control.recipe.ts
|
|
696
|
-
var
|
|
697
|
-
function
|
|
698
|
-
let t =
|
|
696
|
+
var mt = "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", ht = be(null);
|
|
697
|
+
function gt(e = {}) {
|
|
698
|
+
let t = Ce(ht);
|
|
699
699
|
return t ? {
|
|
700
700
|
id: e.id ?? t.id,
|
|
701
701
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
702
702
|
"aria-invalid": e["aria-invalid"] ?? (t.invalid || void 0)
|
|
703
703
|
} : e;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
705
|
+
function _t() {
|
|
706
|
+
return Ce(ht)?.labelId;
|
|
707
707
|
}
|
|
708
708
|
// src/ui/field/label.component.tsx
|
|
709
|
-
function
|
|
709
|
+
function vt({ className: e, ...t }) {
|
|
710
710
|
return /* @__PURE__ */ r(p.Root, {
|
|
711
711
|
"data-slot": "label",
|
|
712
712
|
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),
|
|
@@ -714,9 +714,9 @@ function _t({ className: e, ...t }) {
|
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
// src/ui/field/field.component.tsx
|
|
717
|
-
function
|
|
718
|
-
let c =
|
|
719
|
-
return /* @__PURE__ */ r(
|
|
717
|
+
function yt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
718
|
+
let c = we(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
719
|
+
return /* @__PURE__ */ r(ht, {
|
|
720
720
|
value: {
|
|
721
721
|
id: l,
|
|
722
722
|
describedBy: f,
|
|
@@ -727,7 +727,7 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
727
727
|
"data-slot": "field",
|
|
728
728
|
className: V("flex flex-col gap-1.5", s),
|
|
729
729
|
children: [
|
|
730
|
-
/* @__PURE__ */ r(
|
|
730
|
+
/* @__PURE__ */ r(vt, {
|
|
731
731
|
id: `${l}-label`,
|
|
732
732
|
htmlFor: l,
|
|
733
733
|
children: e
|
|
@@ -748,11 +748,11 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
750
|
// src/ui/field/input.component.tsx
|
|
751
|
-
function
|
|
752
|
-
let o =
|
|
751
|
+
function bt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
752
|
+
let o = gt(a), s = /* @__PURE__ */ r("input", {
|
|
753
753
|
"data-slot": "input",
|
|
754
754
|
type: n,
|
|
755
|
-
className: V(
|
|
755
|
+
className: V(mt, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
756
756
|
...a,
|
|
757
757
|
...o
|
|
758
758
|
});
|
|
@@ -766,12 +766,12 @@ function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
766
766
|
}) : s;
|
|
767
767
|
}
|
|
768
768
|
// src/ui/field/select.component.tsx
|
|
769
|
-
var
|
|
770
|
-
function
|
|
771
|
-
let a =
|
|
769
|
+
var xt = x.Root, St = x.Group, Ct = x.Value;
|
|
770
|
+
function wt({ className: e, children: t, ...n }) {
|
|
771
|
+
let a = gt(n);
|
|
772
772
|
return /* @__PURE__ */ i(x.Trigger, {
|
|
773
773
|
"data-slot": "select-trigger",
|
|
774
|
-
className: V(
|
|
774
|
+
className: V(mt, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
775
775
|
...n,
|
|
776
776
|
...a,
|
|
777
777
|
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
@@ -783,7 +783,7 @@ function Ct({ className: e, children: t, ...n }) {
|
|
|
783
783
|
})]
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Tt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
787
787
|
return /* @__PURE__ */ r(x.Portal, { children: /* @__PURE__ */ r(x.Content, {
|
|
788
788
|
"data-slot": "select-content",
|
|
789
789
|
position: n,
|
|
@@ -795,14 +795,14 @@ function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
795
795
|
})
|
|
796
796
|
}) });
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Et({ className: e, ...t }) {
|
|
799
799
|
return /* @__PURE__ */ r(x.Label, {
|
|
800
800
|
"data-slot": "select-label",
|
|
801
801
|
className: V("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
802
802
|
...t
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Dt({ className: e, children: t, ...n }) {
|
|
806
806
|
return /* @__PURE__ */ i(x.Item, {
|
|
807
807
|
"data-slot": "select-item",
|
|
808
808
|
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),
|
|
@@ -816,7 +816,7 @@ function Et({ className: e, children: t, ...n }) {
|
|
|
816
816
|
})]
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Ot({ className: e, ...t }) {
|
|
820
820
|
return /* @__PURE__ */ r(x.Separator, {
|
|
821
821
|
"data-slot": "select-separator",
|
|
822
822
|
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
@@ -824,51 +824,51 @@ function Dt({ className: e, ...t }) {
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
// src/ui/field/textarea.component.tsx
|
|
827
|
-
function
|
|
828
|
-
let n =
|
|
827
|
+
function kt({ className: e, ...t }) {
|
|
828
|
+
let n = gt(t);
|
|
829
829
|
return /* @__PURE__ */ r("textarea", {
|
|
830
830
|
"data-slot": "textarea",
|
|
831
|
-
className: V(
|
|
831
|
+
className: V(mt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
832
832
|
...t,
|
|
833
833
|
...n
|
|
834
834
|
});
|
|
835
835
|
}
|
|
836
836
|
// src/ui/overlay/overlay.recipe.ts
|
|
837
|
-
var
|
|
837
|
+
var At = "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", jt = "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", Mt = {
|
|
838
838
|
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",
|
|
839
839
|
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",
|
|
840
840
|
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",
|
|
841
841
|
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"
|
|
842
|
-
},
|
|
843
|
-
function
|
|
844
|
-
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className:
|
|
842
|
+
}, Nt = o.Root, Pt = o.Trigger;
|
|
843
|
+
function Ft({ className: e, ...t }) {
|
|
844
|
+
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: At }), /* @__PURE__ */ r(o.Content, {
|
|
845
845
|
"data-slot": "alert-dialog-content",
|
|
846
|
-
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",
|
|
846
|
+
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", jt, e),
|
|
847
847
|
...t
|
|
848
848
|
})] });
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function It({ className: e, ...t }) {
|
|
851
851
|
return /* @__PURE__ */ r(o.Title, {
|
|
852
852
|
"data-slot": "alert-dialog-title",
|
|
853
853
|
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
854
854
|
...t
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Lt({ className: e, ...t }) {
|
|
858
858
|
return /* @__PURE__ */ r(o.Description, {
|
|
859
859
|
"data-slot": "alert-dialog-description",
|
|
860
860
|
className: V("m-0 text-sm text-muted-foreground", e),
|
|
861
861
|
...t
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Rt({ className: e, variant: t = "default", ...n }) {
|
|
865
865
|
return /* @__PURE__ */ r(o.Action, {
|
|
866
866
|
"data-slot": "alert-dialog-action",
|
|
867
867
|
className: V(J({ variant: t }), e),
|
|
868
868
|
...n
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function zt({ className: e, ...t }) {
|
|
872
872
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
873
873
|
"data-slot": "alert-dialog-cancel",
|
|
874
874
|
className: V(J({ variant: "outline" }), e),
|
|
@@ -876,11 +876,11 @@ function Rt({ className: e, ...t }) {
|
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
878
|
// src/ui/overlay/dialog.component.tsx
|
|
879
|
-
var
|
|
880
|
-
function
|
|
881
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
879
|
+
var Bt = d.Root, Vt = d.Trigger, Ht = d.Close;
|
|
880
|
+
function Ut({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
881
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: At }), /* @__PURE__ */ i(d.Content, {
|
|
882
882
|
"data-slot": "dialog-content",
|
|
883
|
-
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",
|
|
883
|
+
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", jt, e),
|
|
884
884
|
...a,
|
|
885
885
|
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
886
886
|
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",
|
|
@@ -894,28 +894,28 @@ function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
894
894
|
})]
|
|
895
895
|
})] });
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Wt({ className: e, ...t }) {
|
|
898
898
|
return /* @__PURE__ */ r("div", {
|
|
899
899
|
"data-slot": "dialog-header",
|
|
900
900
|
className: V("flex flex-col gap-1.5 text-start", e),
|
|
901
901
|
...t
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Gt({ className: e, ...t }) {
|
|
905
905
|
return /* @__PURE__ */ r("div", {
|
|
906
906
|
"data-slot": "dialog-footer",
|
|
907
907
|
className: V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
908
908
|
...t
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Kt({ className: e, ...t }) {
|
|
912
912
|
return /* @__PURE__ */ r(d.Title, {
|
|
913
913
|
"data-slot": "dialog-title",
|
|
914
914
|
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
915
915
|
...t
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function qt({ className: e, ...t }) {
|
|
919
919
|
return /* @__PURE__ */ r(d.Description, {
|
|
920
920
|
"data-slot": "dialog-description",
|
|
921
921
|
className: V("m-0 text-sm text-muted-foreground", e),
|
|
@@ -923,9 +923,9 @@ function Kt({ className: e, ...t }) {
|
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
// src/ui/overlay/drawer.component.tsx
|
|
926
|
-
var
|
|
927
|
-
function
|
|
928
|
-
return /* @__PURE__ */ i(z.Portal, { children: [/* @__PURE__ */ r(z.Overlay, { className:
|
|
926
|
+
var Jt = z.Root, Yt = z.Trigger, Xt = z.Close;
|
|
927
|
+
function Zt({ className: e, children: t, ...n }) {
|
|
928
|
+
return /* @__PURE__ */ i(z.Portal, { children: [/* @__PURE__ */ r(z.Overlay, { className: At }), /* @__PURE__ */ i(z.Content, {
|
|
929
929
|
"data-slot": "drawer-content",
|
|
930
930
|
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),
|
|
931
931
|
...n,
|
|
@@ -935,14 +935,14 @@ function Xt({ className: e, children: t, ...n }) {
|
|
|
935
935
|
}), t]
|
|
936
936
|
})] });
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Qt({ className: e, ...t }) {
|
|
939
939
|
return /* @__PURE__ */ r(z.Title, {
|
|
940
940
|
"data-slot": "drawer-title",
|
|
941
941
|
className: V("m-0 text-xl font-semibold leading-tight", e),
|
|
942
942
|
...t
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function $t({ className: e, ...t }) {
|
|
946
946
|
return /* @__PURE__ */ r(z.Description, {
|
|
947
947
|
"data-slot": "drawer-description",
|
|
948
948
|
className: V("m-0 text-sm text-muted-foreground", e),
|
|
@@ -950,34 +950,34 @@ function Qt({ className: e, ...t }) {
|
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
// src/ui/overlay/portal.component.tsx
|
|
953
|
-
function
|
|
953
|
+
function en(e) {
|
|
954
954
|
return /* @__PURE__ */ r(_.Root, {
|
|
955
955
|
"data-slot": "portal",
|
|
956
956
|
...e
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
// src/ui/overlay/popover.component.tsx
|
|
960
|
-
var
|
|
961
|
-
function
|
|
960
|
+
var tn = g.Root, nn = g.Trigger, rn = g.Anchor;
|
|
961
|
+
function an({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
962
962
|
return /* @__PURE__ */ r(g.Portal, { children: /* @__PURE__ */ r(g.Content, {
|
|
963
963
|
"data-slot": "popover-content",
|
|
964
964
|
align: t,
|
|
965
965
|
sideOffset: n,
|
|
966
|
-
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",
|
|
966
|
+
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", jt, e),
|
|
967
967
|
...i
|
|
968
968
|
}) });
|
|
969
969
|
}
|
|
970
970
|
// src/ui/overlay/sheet.component.tsx
|
|
971
|
-
var
|
|
971
|
+
var on = d.Root, sn = d.Trigger, cn = d.Close, ln = d.Title, un = d.Description, dn = {
|
|
972
972
|
start: "inset-y-0 start-0 h-full w-3/4 max-w-sm border-e",
|
|
973
973
|
end: "inset-y-0 end-0 h-full w-3/4 max-w-sm border-s",
|
|
974
974
|
top: "inset-x-0 top-0 border-b",
|
|
975
975
|
bottom: "inset-x-0 bottom-0 border-t"
|
|
976
976
|
};
|
|
977
|
-
function
|
|
978
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
977
|
+
function fn({ className: e, children: t, side: n = "end", ...a }) {
|
|
978
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: At }), /* @__PURE__ */ i(d.Content, {
|
|
979
979
|
"data-slot": "sheet-content",
|
|
980
|
-
className: V("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none",
|
|
980
|
+
className: V("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", dn[n], Mt[n], e),
|
|
981
981
|
...a,
|
|
982
982
|
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
983
983
|
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",
|
|
@@ -992,8 +992,8 @@ function dn({ className: e, children: t, side: n = "end", ...a }) {
|
|
|
992
992
|
})] });
|
|
993
993
|
}
|
|
994
994
|
// src/ui/overlay/tooltip.component.tsx
|
|
995
|
-
var
|
|
996
|
-
function
|
|
995
|
+
var pn = O.Provider;
|
|
996
|
+
function mn(e) {
|
|
997
997
|
return /* @__PURE__ */ r(O.Provider, {
|
|
998
998
|
delayDuration: 300,
|
|
999
999
|
children: /* @__PURE__ */ r(O.Root, {
|
|
@@ -1002,30 +1002,30 @@ function pn(e) {
|
|
|
1002
1002
|
})
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
1005
|
+
var hn = O.Trigger;
|
|
1006
|
+
function gn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1007
1007
|
return /* @__PURE__ */ r(O.Portal, { children: /* @__PURE__ */ r(O.Content, {
|
|
1008
1008
|
"data-slot": "tooltip-content",
|
|
1009
1009
|
sideOffset: t,
|
|
1010
|
-
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",
|
|
1010
|
+
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", jt, e),
|
|
1011
1011
|
...n
|
|
1012
1012
|
}) });
|
|
1013
1013
|
}
|
|
1014
1014
|
// src/ui/menu/menu.recipe.ts
|
|
1015
|
-
var
|
|
1015
|
+
var _n = "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", vn = "ms-auto text-xs tracking-wide text-muted-foreground", yn = "-mx-1 my-1 h-px bg-border", bn = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1016
1016
|
// src/ui/menu/command.component.tsx
|
|
1017
|
-
function
|
|
1017
|
+
function xn({ className: e, ...t }) {
|
|
1018
1018
|
return /* @__PURE__ */ r(B, {
|
|
1019
1019
|
"data-slot": "command",
|
|
1020
1020
|
className: V("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1021
1021
|
...t
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Sn({ title: e = "Search", children: t, ...n }) {
|
|
1025
1025
|
return /* @__PURE__ */ r(d.Root, {
|
|
1026
1026
|
...n,
|
|
1027
|
-
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
1028
|
-
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",
|
|
1027
|
+
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: At }), /* @__PURE__ */ i(d.Content, {
|
|
1028
|
+
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", jt),
|
|
1029
1029
|
children: [
|
|
1030
1030
|
/* @__PURE__ */ r(d.Title, {
|
|
1031
1031
|
className: "sr-only",
|
|
@@ -1035,12 +1035,12 @@ function xn({ title: e = "Search", children: t, ...n }) {
|
|
|
1035
1035
|
className: "sr-only",
|
|
1036
1036
|
children: "Type to filter the commands."
|
|
1037
1037
|
}),
|
|
1038
|
-
/* @__PURE__ */ r(
|
|
1038
|
+
/* @__PURE__ */ r(xn, { children: t })
|
|
1039
1039
|
]
|
|
1040
1040
|
})] })
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Cn({ className: e, ...t }) {
|
|
1044
1044
|
return /* @__PURE__ */ i("div", {
|
|
1045
1045
|
"data-slot": "command-input-wrapper",
|
|
1046
1046
|
className: "flex h-11 items-center gap-2 border-b px-3",
|
|
@@ -1054,58 +1054,58 @@ function Sn({ className: e, ...t }) {
|
|
|
1054
1054
|
})]
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function wn({ className: e, ...t }) {
|
|
1058
1058
|
return /* @__PURE__ */ r(B.List, {
|
|
1059
1059
|
"data-slot": "command-list",
|
|
1060
1060
|
className: V("max-h-80 overflow-y-auto p-1", e),
|
|
1061
1061
|
...t
|
|
1062
1062
|
});
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Tn({ className: e, ...t }) {
|
|
1065
1065
|
return /* @__PURE__ */ r(B.Empty, {
|
|
1066
1066
|
"data-slot": "command-empty",
|
|
1067
1067
|
className: V("py-6 text-center text-sm text-muted-foreground", e),
|
|
1068
1068
|
...t
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function En({ className: e, ...t }) {
|
|
1072
1072
|
return /* @__PURE__ */ r(B.Group, {
|
|
1073
1073
|
"data-slot": "command-group",
|
|
1074
1074
|
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),
|
|
1075
1075
|
...t
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Dn({ className: e, ...t }) {
|
|
1079
1079
|
return /* @__PURE__ */ r(B.Item, {
|
|
1080
1080
|
"data-slot": "command-item",
|
|
1081
1081
|
className: V(X, "data-[selected=true]:bg-accent", e),
|
|
1082
1082
|
...t
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function On({ className: e, ...t }) {
|
|
1086
1086
|
return /* @__PURE__ */ r(B.Separator, {
|
|
1087
1087
|
"data-slot": "command-separator",
|
|
1088
|
-
className: V(
|
|
1088
|
+
className: V(yn, e),
|
|
1089
1089
|
...t
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function kn({ className: e, ...t }) {
|
|
1093
1093
|
return /* @__PURE__ */ r("span", {
|
|
1094
1094
|
"data-slot": "command-shortcut",
|
|
1095
|
-
className: V(
|
|
1095
|
+
className: V(vn, e),
|
|
1096
1096
|
...t
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
// src/ui/menu/context-menu.component.tsx
|
|
1100
|
-
var
|
|
1101
|
-
function
|
|
1100
|
+
var An = u.Root, jn = u.Trigger;
|
|
1101
|
+
function Mn({ className: e, ...t }) {
|
|
1102
1102
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1103
1103
|
"data-slot": "context-menu-content",
|
|
1104
|
-
className: V(
|
|
1104
|
+
className: V(_n, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1105
1105
|
...t
|
|
1106
1106
|
}) });
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Nn({ className: e, variant: t = "default", ...n }) {
|
|
1109
1109
|
return /* @__PURE__ */ r(u.Item, {
|
|
1110
1110
|
"data-slot": "context-menu-item",
|
|
1111
1111
|
"data-variant": t,
|
|
@@ -1113,31 +1113,31 @@ function Mn({ className: e, variant: t = "default", ...n }) {
|
|
|
1113
1113
|
...n
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function Pn({ className: e, ...t }) {
|
|
1117
1117
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1118
1118
|
"data-slot": "context-menu-separator",
|
|
1119
|
-
className: V(
|
|
1119
|
+
className: V(yn, e),
|
|
1120
1120
|
...t
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Fn({ className: e, ...t }) {
|
|
1124
1124
|
return /* @__PURE__ */ r("span", {
|
|
1125
1125
|
"data-slot": "context-menu-shortcut",
|
|
1126
|
-
className: V(
|
|
1126
|
+
className: V(vn, e),
|
|
1127
1127
|
...t
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
1130
|
// src/ui/menu/dropdown-menu.component.tsx
|
|
1131
|
-
var
|
|
1132
|
-
function
|
|
1131
|
+
var In = f.Root, Ln = f.Trigger, Rn = f.Group, zn = f.RadioGroup;
|
|
1132
|
+
function Bn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1133
1133
|
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1134
1134
|
"data-slot": "dropdown-menu-content",
|
|
1135
1135
|
sideOffset: t,
|
|
1136
|
-
className: V(
|
|
1136
|
+
className: V(_n, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1137
1137
|
...n
|
|
1138
1138
|
}) });
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Vn({ className: e, variant: t = "default", ...n }) {
|
|
1141
1141
|
return /* @__PURE__ */ r(f.Item, {
|
|
1142
1142
|
"data-slot": "dropdown-menu-item",
|
|
1143
1143
|
"data-variant": t,
|
|
@@ -1145,7 +1145,7 @@ function Bn({ className: e, variant: t = "default", ...n }) {
|
|
|
1145
1145
|
...n
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Hn({ className: e, children: t, ...n }) {
|
|
1149
1149
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1150
1150
|
"data-slot": "dropdown-menu-radio-item",
|
|
1151
1151
|
className: V(X, "ps-7", e),
|
|
@@ -1156,33 +1156,33 @@ function Vn({ className: e, children: t, ...n }) {
|
|
|
1156
1156
|
}), t]
|
|
1157
1157
|
});
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function Un({ className: e, ...t }) {
|
|
1160
1160
|
return /* @__PURE__ */ r(f.Label, {
|
|
1161
1161
|
"data-slot": "dropdown-menu-label",
|
|
1162
|
-
className: V(
|
|
1162
|
+
className: V(bn, e),
|
|
1163
1163
|
...t
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function Wn({ className: e, ...t }) {
|
|
1167
1167
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1168
1168
|
"data-slot": "dropdown-menu-separator",
|
|
1169
|
-
className: V(
|
|
1169
|
+
className: V(yn, e),
|
|
1170
1170
|
...t
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Gn({ className: e, ...t }) {
|
|
1174
1174
|
return /* @__PURE__ */ r("span", {
|
|
1175
1175
|
"data-slot": "dropdown-menu-shortcut",
|
|
1176
|
-
className: V(
|
|
1176
|
+
className: V(vn, e),
|
|
1177
1177
|
...t
|
|
1178
1178
|
});
|
|
1179
1179
|
}
|
|
1180
1180
|
// src/ui/tags-input/tag-entry.algorithm.ts
|
|
1181
|
-
var
|
|
1182
|
-
function
|
|
1183
|
-
return e.split(
|
|
1181
|
+
var Kn = /[,;\n\t]/;
|
|
1182
|
+
function qn(e) {
|
|
1183
|
+
return e.split(Kn).map((e) => e.trim()).filter(Boolean);
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Jn(e, t, n = {}) {
|
|
1186
1186
|
let r = [...e], i = [];
|
|
1187
1187
|
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));
|
|
1188
1188
|
return {
|
|
@@ -1191,7 +1191,7 @@ function qn(e, t, n = {}) {
|
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
1193
|
// src/ui/tags-input/tag.component.tsx
|
|
1194
|
-
function
|
|
1194
|
+
function Yn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove", highlighted: o = !1, ...s }) {
|
|
1195
1195
|
return /* @__PURE__ */ i("span", {
|
|
1196
1196
|
"data-slot": "tag",
|
|
1197
1197
|
"data-highlighted": o || void 0,
|
|
@@ -1210,16 +1210,16 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
1212
|
// src/ui/tags-input/tags-field.recipe.ts
|
|
1213
|
-
var
|
|
1213
|
+
var Xn = "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", Zn = "h-6 min-w-16 flex-1 bg-transparent px-1 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed";
|
|
1214
1214
|
// src/ui/tags-input/tags-input.component.tsx
|
|
1215
|
-
function
|
|
1216
|
-
let [y, b] = R(t), [x, S] = R(""), [C, w] = R(!1), [T, E] = R(!1), D = L(null), O = e ?? y, k =
|
|
1215
|
+
function Qn({ 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 }) {
|
|
1216
|
+
let [y, b] = R(t), [x, S] = R(""), [C, w] = R(!1), [T, E] = R(!1), D = L(null), O = e ?? y, k = gt(v), ee = o !== void 0 && O.length >= o;
|
|
1217
1217
|
function te(t) {
|
|
1218
1218
|
e === void 0 && b(t), n?.(t);
|
|
1219
1219
|
}
|
|
1220
1220
|
function A(e) {
|
|
1221
1221
|
if (e.length === 0) return;
|
|
1222
|
-
let { tags: t, rejected: n } =
|
|
1222
|
+
let { tags: t, rejected: n } = Jn(O, e, {
|
|
1223
1223
|
max: o,
|
|
1224
1224
|
validate: s,
|
|
1225
1225
|
allowDuplicates: c
|
|
@@ -1237,22 +1237,22 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1237
1237
|
";"
|
|
1238
1238
|
].includes(e.key)) {
|
|
1239
1239
|
if (x.trim() === "" && e.key === "Enter") return;
|
|
1240
|
-
e.preventDefault(), A(
|
|
1240
|
+
e.preventDefault(), A(qn(x));
|
|
1241
1241
|
} else x === "" && e.key === "Backspace" && O.length > 0 ? (e.preventDefault(), T ? j(O.length - 1) : E(!0)) : E(!1);
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
function re(e) {
|
|
1245
1245
|
g?.(e);
|
|
1246
1246
|
let t = e.clipboardData.getData("text");
|
|
1247
|
-
!e.defaultPrevented &&
|
|
1247
|
+
!e.defaultPrevented && Kn.test(t) && (e.preventDefault(), A(qn(`${x}${t}`)));
|
|
1248
1248
|
}
|
|
1249
1249
|
return /* @__PURE__ */ i("div", {
|
|
1250
1250
|
"data-slot": "tags-input",
|
|
1251
|
-
className: V(
|
|
1251
|
+
className: V(Xn, d),
|
|
1252
1252
|
onClick: (e) => {
|
|
1253
1253
|
e.target === e.currentTarget && D.current?.focus();
|
|
1254
1254
|
},
|
|
1255
|
-
children: [O.map((e, t) => /* @__PURE__ */ r(
|
|
1255
|
+
children: [O.map((e, t) => /* @__PURE__ */ r(Yn, {
|
|
1256
1256
|
highlighted: T && t === O.length - 1,
|
|
1257
1257
|
removeLabel: u(e),
|
|
1258
1258
|
onRemove: p ? void 0 : () => {
|
|
@@ -1267,14 +1267,14 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1267
1267
|
disabled: p,
|
|
1268
1268
|
placeholder: O.length === 0 ? m : void 0,
|
|
1269
1269
|
readOnly: ee,
|
|
1270
|
-
className: V(
|
|
1270
|
+
className: V(Zn, f),
|
|
1271
1271
|
onChange: (e) => {
|
|
1272
1272
|
S(e.target.value), w(!1), E(!1);
|
|
1273
1273
|
},
|
|
1274
1274
|
onKeyDown: ne,
|
|
1275
1275
|
onPaste: re,
|
|
1276
1276
|
onBlur: (e) => {
|
|
1277
|
-
_?.(e), E(!1), l && !C && A(
|
|
1277
|
+
_?.(e), E(!1), l && !C && A(qn(x));
|
|
1278
1278
|
},
|
|
1279
1279
|
...v,
|
|
1280
1280
|
...k,
|
|
@@ -1283,7 +1283,7 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
1285
|
// src/ui/combobox/option-search.hook.ts
|
|
1286
|
-
function
|
|
1286
|
+
function $n(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1287
1287
|
let [i, a] = R({
|
|
1288
1288
|
options: [],
|
|
1289
1289
|
status: "idle"
|
|
@@ -1329,20 +1329,20 @@ function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
|
1329
1329
|
]), i;
|
|
1330
1330
|
}
|
|
1331
1331
|
// src/ui/combobox/combobox.component.tsx
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
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 =
|
|
1332
|
+
var er = "\0create";
|
|
1333
|
+
function tr(e) {
|
|
1334
|
+
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 = gt({
|
|
1335
1335
|
id: e.id,
|
|
1336
1336
|
"aria-describedby": e["aria-describedby"],
|
|
1337
1337
|
"aria-invalid": e["aria-invalid"]
|
|
1338
1338
|
}), [y, b] = R(e.multiple ? null : e.defaultValue ?? null), [x, S] = R(e.multiple ? e.defaultValue ?? [] : []), C = e.multiple ? null : e.value === void 0 ? y : e.value, w = e.multiple ? e.value ?? x : C ? [C] : [], [T, E] = R(!1), [D, O] = R(C?.label ?? ""), [k, ee] = R(!1), te = L(!1);
|
|
1339
1339
|
te.current = k;
|
|
1340
|
-
let [ne, re] = R(!1), ie = L(null), ae = L(null), oe =
|
|
1341
|
-
|
|
1340
|
+
let [ne, re] = R(!1), ie = L(null), ae = L(null), oe = _t(), se = e["aria-label"];
|
|
1341
|
+
Te(() => {
|
|
1342
1342
|
let e = ie.current;
|
|
1343
1343
|
e && (oe ? e.setAttribute("aria-labelledby", oe) : se && e.removeAttribute("aria-labelledby"));
|
|
1344
1344
|
}, [oe, se]);
|
|
1345
|
-
let M = k ? D : "", N =
|
|
1345
|
+
let M = k ? D : "", N = $n(n, M, {
|
|
1346
1346
|
debounceMs: a,
|
|
1347
1347
|
minQueryLength: o
|
|
1348
1348
|
}), 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 && w.length >= e.max;
|
|
@@ -1367,25 +1367,25 @@ function er(e) {
|
|
|
1367
1367
|
return /* @__PURE__ */ r(B, {
|
|
1368
1368
|
"data-slot": "combobox",
|
|
1369
1369
|
shouldFilter: !_,
|
|
1370
|
-
filter: (e, t, n) => te.current ?
|
|
1370
|
+
filter: (e, t, n) => te.current ? nr(t, [e, ...n ?? []]) : 1,
|
|
1371
1371
|
loop: !0,
|
|
1372
1372
|
className: "w-full",
|
|
1373
|
-
children: /* @__PURE__ */ i(
|
|
1373
|
+
children: /* @__PURE__ */ i(tn, {
|
|
1374
1374
|
open: T,
|
|
1375
1375
|
onOpenChange: (e) => {
|
|
1376
1376
|
e || ge();
|
|
1377
1377
|
},
|
|
1378
|
-
children: [/* @__PURE__ */ r(
|
|
1378
|
+
children: [/* @__PURE__ */ r(rn, {
|
|
1379
1379
|
asChild: !0,
|
|
1380
1380
|
children: /* @__PURE__ */ i("div", {
|
|
1381
1381
|
ref: ae,
|
|
1382
1382
|
"data-slot": "combobox-field",
|
|
1383
|
-
className: V(
|
|
1383
|
+
className: V(Xn, "pe-1", h),
|
|
1384
1384
|
onClick: (e) => {
|
|
1385
1385
|
e.target === e.currentTarget && ie.current?.focus();
|
|
1386
1386
|
},
|
|
1387
1387
|
children: [
|
|
1388
|
-
e.multiple ? w.map((e, t) => /* @__PURE__ */ r(
|
|
1388
|
+
e.multiple ? w.map((e, t) => /* @__PURE__ */ r(Yn, {
|
|
1389
1389
|
highlighted: ne && t === w.length - 1,
|
|
1390
1390
|
removeLabel: `Remove ${e.label}`,
|
|
1391
1391
|
onRemove: m ? void 0 : () => {
|
|
@@ -1405,7 +1405,7 @@ function er(e) {
|
|
|
1405
1405
|
readOnly: de,
|
|
1406
1406
|
placeholder: w.length === 0 || !e.multiple ? p : void 0,
|
|
1407
1407
|
"aria-label": e["aria-label"],
|
|
1408
|
-
className:
|
|
1408
|
+
className: Zn,
|
|
1409
1409
|
onValueChange: (e) => {
|
|
1410
1410
|
O(e), ee(!0), re(!1), E(!0);
|
|
1411
1411
|
},
|
|
@@ -1438,7 +1438,7 @@ function er(e) {
|
|
|
1438
1438
|
})
|
|
1439
1439
|
]
|
|
1440
1440
|
})
|
|
1441
|
-
}), /* @__PURE__ */ r(
|
|
1441
|
+
}), /* @__PURE__ */ r(an, {
|
|
1442
1442
|
align: "start",
|
|
1443
1443
|
sideOffset: 4,
|
|
1444
1444
|
className: V("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
@@ -1455,12 +1455,12 @@ function er(e) {
|
|
|
1455
1455
|
"data-slot": "combobox-list",
|
|
1456
1456
|
className: "max-h-72 overflow-y-auto",
|
|
1457
1457
|
children: [
|
|
1458
|
-
_ && N.status === "idle" ? /* @__PURE__ */ r(
|
|
1459
|
-
_ && N.status === "loading" ? /* @__PURE__ */ i(
|
|
1458
|
+
_ && N.status === "idle" ? /* @__PURE__ */ r(rr, { children: f }) : null,
|
|
1459
|
+
_ && N.status === "loading" ? /* @__PURE__ */ i(rr, { children: [/* @__PURE__ */ r(ce, {
|
|
1460
1460
|
"aria-hidden": "true",
|
|
1461
1461
|
className: "size-4 animate-spin"
|
|
1462
1462
|
}), u] }) : null,
|
|
1463
|
-
_ && N.status === "error" ? /* @__PURE__ */ r(
|
|
1463
|
+
_ && N.status === "error" ? /* @__PURE__ */ r(rr, {
|
|
1464
1464
|
tone: "destructive",
|
|
1465
1465
|
children: d
|
|
1466
1466
|
}) : null,
|
|
@@ -1500,7 +1500,7 @@ function er(e) {
|
|
|
1500
1500
|
}, e.value)),
|
|
1501
1501
|
ue ? /* @__PURE__ */ i(B.Item, {
|
|
1502
1502
|
forceMount: !0,
|
|
1503
|
-
value:
|
|
1503
|
+
value: er,
|
|
1504
1504
|
onSelect: () => {
|
|
1505
1505
|
he(ue);
|
|
1506
1506
|
},
|
|
@@ -1519,13 +1519,13 @@ function er(e) {
|
|
|
1519
1519
|
})
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function nr(e, t) {
|
|
1523
1523
|
let n = e.trim().toLowerCase();
|
|
1524
1524
|
if (n === "") return 1;
|
|
1525
1525
|
let r = t.map((e) => e.toLowerCase());
|
|
1526
1526
|
return r.some((e) => e.startsWith(n)) ? 2 : +!!r.some((e) => e.includes(n));
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function rr({ children: e, tone: t }) {
|
|
1529
1529
|
return /* @__PURE__ */ r("div", {
|
|
1530
1530
|
role: "status",
|
|
1531
1531
|
className: V("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
@@ -1533,7 +1533,7 @@ function nr({ children: e, tone: t }) {
|
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
1535
1535
|
// src/ui/feedback/alert.component.tsx
|
|
1536
|
-
var
|
|
1536
|
+
var ir = {
|
|
1537
1537
|
info: {
|
|
1538
1538
|
box: "border-border bg-card",
|
|
1539
1539
|
icon: "text-info",
|
|
@@ -1555,8 +1555,8 @@ var rr = {
|
|
|
1555
1555
|
Icon: ge
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
|
-
function
|
|
1559
|
-
let { box: c, icon: l, Icon: u } =
|
|
1558
|
+
function ar({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
1559
|
+
let { box: c, icon: l, Icon: u } = ir[e];
|
|
1560
1560
|
return /* @__PURE__ */ i("div", {
|
|
1561
1561
|
"data-slot": "alert",
|
|
1562
1562
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
@@ -1579,7 +1579,7 @@ function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
1581
|
// src/ui/feedback/empty-state.component.tsx
|
|
1582
|
-
function
|
|
1582
|
+
function or({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1583
1583
|
return /* @__PURE__ */ i("div", {
|
|
1584
1584
|
"data-slot": "empty-state",
|
|
1585
1585
|
className: V("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
@@ -1606,7 +1606,7 @@ function ar({ title: e, description: t, icon: n, action: a, className: o, ...s }
|
|
|
1606
1606
|
});
|
|
1607
1607
|
}
|
|
1608
1608
|
// src/ui/feedback/progress.component.tsx
|
|
1609
|
-
function
|
|
1609
|
+
function sr({ className: e, value: t, max: n = 100, ...i }) {
|
|
1610
1610
|
let a = t == null ? 0 : Math.min(100, Math.max(0, t / n * 100));
|
|
1611
1611
|
return /* @__PURE__ */ r(v.Root, {
|
|
1612
1612
|
"data-slot": "progress",
|
|
@@ -1621,7 +1621,7 @@ function or({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
1621
1621
|
});
|
|
1622
1622
|
}
|
|
1623
1623
|
// src/ui/feedback/skeleton.component.tsx
|
|
1624
|
-
function
|
|
1624
|
+
function cr({ className: e, ...t }) {
|
|
1625
1625
|
return /* @__PURE__ */ r("div", {
|
|
1626
1626
|
"data-slot": "skeleton",
|
|
1627
1627
|
"aria-hidden": "true",
|
|
@@ -1630,7 +1630,7 @@ function sr({ className: e, ...t }) {
|
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
// src/ui/feedback/spinner.component.tsx
|
|
1633
|
-
function
|
|
1633
|
+
function lr({ className: e, label: t = "Loading", ...n }) {
|
|
1634
1634
|
return /* @__PURE__ */ r(ce, {
|
|
1635
1635
|
"data-slot": "spinner",
|
|
1636
1636
|
role: "status",
|
|
@@ -1640,8 +1640,8 @@ function cr({ className: e, label: t = "Loading", ...n }) {
|
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
1642
|
// src/ui/feedback/toaster.component.tsx
|
|
1643
|
-
function
|
|
1644
|
-
return /* @__PURE__ */ r(
|
|
1643
|
+
function ur(e) {
|
|
1644
|
+
return /* @__PURE__ */ r(Oe, {
|
|
1645
1645
|
className: "toaster group",
|
|
1646
1646
|
toastOptions: { classNames: {
|
|
1647
1647
|
toast: "group flex w-[360px] items-start gap-3 rounded-lg border bg-popover px-4 py-3.5 font-sans text-popover-foreground shadow-lg",
|
|
@@ -1656,18 +1656,18 @@ function lr(e) {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
// src/ui/file-drop/file-accept.policy.ts
|
|
1659
|
-
function
|
|
1659
|
+
function dr(e, t = "") {
|
|
1660
1660
|
let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
1661
1661
|
if (n.length === 0) return !0;
|
|
1662
1662
|
let r = e.name?.toLowerCase(), i = e.type.toLowerCase();
|
|
1663
1663
|
return n.some((e) => e.startsWith(".") ? !!r?.endsWith(e) : e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
return !t.split(",").some((e) => e.trim() !== "" && !e.trimStart().startsWith(".")) || e.length === 0 || e.some((e) => e === "" ||
|
|
1665
|
+
function fr(e, t = "") {
|
|
1666
|
+
return !t.split(",").some((e) => e.trim() !== "" && !e.trimStart().startsWith(".")) || e.length === 0 || e.some((e) => e === "" || dr({ type: e }, t));
|
|
1667
1667
|
}
|
|
1668
1668
|
// src/ui/file-drop/file-drop-overlay.component.tsx
|
|
1669
|
-
function
|
|
1670
|
-
return /* @__PURE__ */ r(
|
|
1669
|
+
function pr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle: s = "These files cannot be uploaded here", icon: c, className: l }) {
|
|
1670
|
+
return /* @__PURE__ */ r(en, { children: /* @__PURE__ */ r("div", {
|
|
1671
1671
|
"data-slot": "file-drop-overlay",
|
|
1672
1672
|
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1673
1673
|
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),
|
|
@@ -1699,7 +1699,7 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1699
1699
|
}) });
|
|
1700
1700
|
}
|
|
1701
1701
|
// src/ui/file-drop/page-drop.hook.ts
|
|
1702
|
-
function
|
|
1702
|
+
function mr(e) {
|
|
1703
1703
|
let [t, n] = R({
|
|
1704
1704
|
isOver: !1,
|
|
1705
1705
|
isAccepted: !0
|
|
@@ -1716,7 +1716,7 @@ function pr(e) {
|
|
|
1716
1716
|
let a = [...i.dataTransfer?.items ?? []].filter((e) => e.kind === "file").map((e) => e.type);
|
|
1717
1717
|
n({
|
|
1718
1718
|
isOver: !0,
|
|
1719
|
-
isAccepted:
|
|
1719
|
+
isAccepted: fr(a, r.current.accept)
|
|
1720
1720
|
});
|
|
1721
1721
|
}, o = (e) => {
|
|
1722
1722
|
t(e) && e.preventDefault();
|
|
@@ -1728,7 +1728,7 @@ function pr(e) {
|
|
|
1728
1728
|
let n = [...e.dataTransfer?.files ?? []];
|
|
1729
1729
|
if (n.length === 0) return;
|
|
1730
1730
|
let a = r.current.accept;
|
|
1731
|
-
r.current.onDrop(n.filter((e) =>
|
|
1731
|
+
r.current.onDrop(n.filter((e) => dr(e, a)), n.filter((e) => !dr(e, a)));
|
|
1732
1732
|
}, l = (e) => {
|
|
1733
1733
|
t(e) && i();
|
|
1734
1734
|
};
|
|
@@ -1738,21 +1738,21 @@ function pr(e) {
|
|
|
1738
1738
|
}, []), t;
|
|
1739
1739
|
}
|
|
1740
1740
|
// src/ui/layout/accordion.component.tsx
|
|
1741
|
-
function
|
|
1741
|
+
function hr({ className: e, ...t }) {
|
|
1742
1742
|
return /* @__PURE__ */ r(a.Root, {
|
|
1743
1743
|
"data-slot": "accordion",
|
|
1744
1744
|
className: V("border-t", e),
|
|
1745
1745
|
...t
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function gr({ className: e, ...t }) {
|
|
1749
1749
|
return /* @__PURE__ */ r(a.Item, {
|
|
1750
1750
|
"data-slot": "accordion-item",
|
|
1751
1751
|
className: V("border-b", e),
|
|
1752
1752
|
...t
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function _r({ className: e, children: t, ...n }) {
|
|
1756
1756
|
return /* @__PURE__ */ r(a.Header, {
|
|
1757
1757
|
className: "m-0 flex",
|
|
1758
1758
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
@@ -1783,7 +1783,7 @@ function gr({ className: e, children: t, ...n }) {
|
|
|
1783
1783
|
})
|
|
1784
1784
|
});
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function vr({ className: e, children: t, ...n }) {
|
|
1787
1787
|
return /* @__PURE__ */ r(a.Content, {
|
|
1788
1788
|
"data-slot": "accordion-content",
|
|
1789
1789
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down motion-reduce:animate-none",
|
|
@@ -1795,21 +1795,21 @@ function _r({ className: e, children: t, ...n }) {
|
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
// src/ui/layout/card.component.tsx
|
|
1798
|
-
function
|
|
1798
|
+
function yr({ className: e, ...t }) {
|
|
1799
1799
|
return /* @__PURE__ */ r("div", {
|
|
1800
1800
|
"data-slot": "card",
|
|
1801
1801
|
className: V("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1802
1802
|
...t
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function br({ className: e, ...t }) {
|
|
1806
1806
|
return /* @__PURE__ */ r("div", {
|
|
1807
1807
|
"data-slot": "card-header",
|
|
1808
1808
|
className: V("flex flex-col gap-1 px-5 pt-5", e),
|
|
1809
1809
|
...t
|
|
1810
1810
|
});
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function xr({ className: e, children: t, ...n }) {
|
|
1813
1813
|
return /* @__PURE__ */ r("h3", {
|
|
1814
1814
|
"data-slot": "card-title",
|
|
1815
1815
|
className: V("m-0 type-h4", e),
|
|
@@ -1817,21 +1817,21 @@ function br({ className: e, children: t, ...n }) {
|
|
|
1817
1817
|
children: t
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1820
|
+
function Sr({ className: e, ...t }) {
|
|
1821
1821
|
return /* @__PURE__ */ r("p", {
|
|
1822
1822
|
"data-slot": "card-description",
|
|
1823
1823
|
className: V("m-0 text-[13px] text-muted-foreground", e),
|
|
1824
1824
|
...t
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function Cr({ className: e, ...t }) {
|
|
1828
1828
|
return /* @__PURE__ */ r("div", {
|
|
1829
1829
|
"data-slot": "card-content",
|
|
1830
1830
|
className: V("px-5 py-4", e),
|
|
1831
1831
|
...t
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function wr({ className: e, ...t }) {
|
|
1835
1835
|
return /* @__PURE__ */ r("div", {
|
|
1836
1836
|
"data-slot": "card-footer",
|
|
1837
1837
|
className: V("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
@@ -1839,7 +1839,7 @@ function Cr({ className: e, ...t }) {
|
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
1841
1841
|
// src/ui/layout/kbd.component.tsx
|
|
1842
|
-
function
|
|
1842
|
+
function Tr({ className: e, ...t }) {
|
|
1843
1843
|
return /* @__PURE__ */ r("kbd", {
|
|
1844
1844
|
"data-slot": "kbd",
|
|
1845
1845
|
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),
|
|
@@ -1847,28 +1847,28 @@ function wr({ className: e, ...t }) {
|
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
// src/ui/layout/resizable.component.tsx
|
|
1850
|
-
function
|
|
1851
|
-
return /* @__PURE__ */ r(
|
|
1850
|
+
function Er({ className: e, ...t }) {
|
|
1851
|
+
return /* @__PURE__ */ r(ke, {
|
|
1852
1852
|
"data-slot": "resizable-panel-group",
|
|
1853
1853
|
className: V("flex size-full", e),
|
|
1854
1854
|
...t
|
|
1855
1855
|
});
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return /* @__PURE__ */ r(
|
|
1857
|
+
function Dr(e) {
|
|
1858
|
+
return /* @__PURE__ */ r(Ae, {
|
|
1859
1859
|
"data-slot": "resizable-panel",
|
|
1860
1860
|
...e
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
return /* @__PURE__ */ r(
|
|
1863
|
+
function Or({ className: e, ...t }) {
|
|
1864
|
+
return /* @__PURE__ */ r(je, {
|
|
1865
1865
|
"data-slot": "resizable-handle",
|
|
1866
1866
|
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),
|
|
1867
1867
|
...t
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
1870
|
// src/ui/layout/scroll-area.component.tsx
|
|
1871
|
-
function
|
|
1871
|
+
function kr({ className: e, children: t, ...n }) {
|
|
1872
1872
|
return /* @__PURE__ */ i(b.Root, {
|
|
1873
1873
|
"data-slot": "scroll-area",
|
|
1874
1874
|
className: V("relative overflow-hidden", e),
|
|
@@ -1878,13 +1878,13 @@ function Or({ className: e, children: t, ...n }) {
|
|
|
1878
1878
|
className: "size-full rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1879
1879
|
children: t
|
|
1880
1880
|
}),
|
|
1881
|
-
/* @__PURE__ */ r(
|
|
1882
|
-
/* @__PURE__ */ r(
|
|
1881
|
+
/* @__PURE__ */ r(Ar, {}),
|
|
1882
|
+
/* @__PURE__ */ r(Ar, { orientation: "horizontal" }),
|
|
1883
1883
|
/* @__PURE__ */ r(b.Corner, {})
|
|
1884
1884
|
]
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function Ar({ className: e, orientation: t = "vertical", ...n }) {
|
|
1888
1888
|
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1889
1889
|
"data-slot": "scroll-area-scrollbar",
|
|
1890
1890
|
orientation: t,
|
|
@@ -1894,7 +1894,7 @@ function kr({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
// src/ui/layout/separator.component.tsx
|
|
1897
|
-
function
|
|
1897
|
+
function jr({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
|
|
1898
1898
|
return /* @__PURE__ */ r(S.Root, {
|
|
1899
1899
|
"data-slot": "separator",
|
|
1900
1900
|
orientation: t,
|
|
@@ -1904,7 +1904,7 @@ function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1904
1904
|
});
|
|
1905
1905
|
}
|
|
1906
1906
|
// src/ui/layout/table.component.tsx
|
|
1907
|
-
function
|
|
1907
|
+
function Mr({ className: e, ...t }) {
|
|
1908
1908
|
return /* @__PURE__ */ r("div", {
|
|
1909
1909
|
"data-slot": "table-container",
|
|
1910
1910
|
className: "relative w-full overflow-x-auto",
|
|
@@ -1915,40 +1915,40 @@ function jr({ className: e, ...t }) {
|
|
|
1915
1915
|
})
|
|
1916
1916
|
});
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Nr(e) {
|
|
1919
1919
|
return /* @__PURE__ */ r("thead", {
|
|
1920
1920
|
"data-slot": "table-header",
|
|
1921
1921
|
...e
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function Pr(e) {
|
|
1925
1925
|
return /* @__PURE__ */ r("tbody", {
|
|
1926
1926
|
"data-slot": "table-body",
|
|
1927
1927
|
...e
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function Fr({ className: e, ...t }) {
|
|
1931
1931
|
return /* @__PURE__ */ r("tr", {
|
|
1932
1932
|
"data-slot": "table-row",
|
|
1933
1933
|
className: V("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1934
1934
|
...t
|
|
1935
1935
|
});
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Ir({ className: e, ...t }) {
|
|
1938
1938
|
return /* @__PURE__ */ r("th", {
|
|
1939
1939
|
"data-slot": "table-head",
|
|
1940
1940
|
className: V("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1941
1941
|
...t
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function Lr({ className: e, ...t }) {
|
|
1945
1945
|
return /* @__PURE__ */ r("td", {
|
|
1946
1946
|
"data-slot": "table-cell",
|
|
1947
1947
|
className: V("px-3 py-[11px] align-middle", e),
|
|
1948
1948
|
...t
|
|
1949
1949
|
});
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Rr({ className: e, ...t }) {
|
|
1952
1952
|
return /* @__PURE__ */ r("caption", {
|
|
1953
1953
|
"data-slot": "table-caption",
|
|
1954
1954
|
className: V("mt-3 text-xs text-muted-foreground", e),
|
|
@@ -1956,28 +1956,28 @@ function Lr({ className: e, ...t }) {
|
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
// src/ui/navigation/breadcrumb.component.tsx
|
|
1959
|
-
function
|
|
1959
|
+
function zr({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
1960
1960
|
return /* @__PURE__ */ r("nav", {
|
|
1961
1961
|
"data-slot": "breadcrumb",
|
|
1962
1962
|
"aria-label": e,
|
|
1963
1963
|
...t
|
|
1964
1964
|
});
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Br({ className: e, ...t }) {
|
|
1967
1967
|
return /* @__PURE__ */ r("ol", {
|
|
1968
1968
|
"data-slot": "breadcrumb-list",
|
|
1969
1969
|
className: V("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1970
1970
|
...t
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function Vr({ className: e, ...t }) {
|
|
1974
1974
|
return /* @__PURE__ */ r("li", {
|
|
1975
1975
|
"data-slot": "breadcrumb-item",
|
|
1976
1976
|
className: V("inline-flex items-center gap-2", e),
|
|
1977
1977
|
...t
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Hr({ asChild: e = !1, className: t, ...n }) {
|
|
1981
1981
|
let i = e ? w.Root : "a";
|
|
1982
1982
|
return /* @__PURE__ */ r(i, {
|
|
1983
1983
|
"data-slot": "breadcrumb-link",
|
|
@@ -1985,7 +1985,7 @@ function Vr({ asChild: e = !1, className: t, ...n }) {
|
|
|
1985
1985
|
...n
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Ur({ className: e, ...t }) {
|
|
1989
1989
|
return /* @__PURE__ */ r("span", {
|
|
1990
1990
|
"data-slot": "breadcrumb-page",
|
|
1991
1991
|
"aria-current": "page",
|
|
@@ -1993,7 +1993,7 @@ function Hr({ className: e, ...t }) {
|
|
|
1993
1993
|
...t
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function Wr({ children: e = "/", ...t }) {
|
|
1997
1997
|
return /* @__PURE__ */ r("li", {
|
|
1998
1998
|
"data-slot": "breadcrumb-separator",
|
|
1999
1999
|
role: "presentation",
|
|
@@ -2003,8 +2003,8 @@ function Ur({ children: e = "/", ...t }) {
|
|
|
2003
2003
|
});
|
|
2004
2004
|
}
|
|
2005
2005
|
// src/ui/navigation/menu-icon.component.tsx
|
|
2006
|
-
var
|
|
2007
|
-
function
|
|
2006
|
+
var Gr = "origin-center [transform-box:fill-box] motion-reduce:[animation-duration:1ms]";
|
|
2007
|
+
function Kr({ open: e, className: t, ...n }) {
|
|
2008
2008
|
return /* @__PURE__ */ i("svg", {
|
|
2009
2009
|
"data-slot": "menu-icon",
|
|
2010
2010
|
"data-state": e === void 0 ? void 0 : e ? "open" : "closed",
|
|
@@ -2020,7 +2020,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2020
2020
|
width: "16",
|
|
2021
2021
|
height: "2",
|
|
2022
2022
|
rx: "1",
|
|
2023
|
-
className: V(
|
|
2023
|
+
className: V(Gr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
2024
2024
|
}),
|
|
2025
2025
|
/* @__PURE__ */ r("rect", {
|
|
2026
2026
|
x: "4",
|
|
@@ -2028,7 +2028,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2028
2028
|
width: "16",
|
|
2029
2029
|
height: "2",
|
|
2030
2030
|
rx: "1",
|
|
2031
|
-
className: V(
|
|
2031
|
+
className: V(Gr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
2032
2032
|
}),
|
|
2033
2033
|
/* @__PURE__ */ r("rect", {
|
|
2034
2034
|
x: "4",
|
|
@@ -2036,28 +2036,28 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2036
2036
|
width: "16",
|
|
2037
2037
|
height: "2",
|
|
2038
2038
|
rx: "1",
|
|
2039
|
-
className: V(
|
|
2039
|
+
className: V(Gr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
2040
2040
|
})
|
|
2041
2041
|
]
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
2044
|
// src/ui/navigation/menubar.component.tsx
|
|
2045
|
-
function
|
|
2045
|
+
function qr({ className: e, ...t }) {
|
|
2046
2046
|
return /* @__PURE__ */ r(m.Root, {
|
|
2047
2047
|
"data-slot": "menubar",
|
|
2048
2048
|
className: V("flex items-center gap-0.5", e),
|
|
2049
2049
|
...t
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
|
-
var
|
|
2053
|
-
function
|
|
2052
|
+
var Jr = m.Menu;
|
|
2053
|
+
function Yr({ className: e, ...t }) {
|
|
2054
2054
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
2055
2055
|
"data-slot": "menubar-trigger",
|
|
2056
2056
|
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),
|
|
2057
2057
|
...t
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Xr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
2061
2061
|
return /* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(m.Content, {
|
|
2062
2062
|
"data-slot": "menubar-content",
|
|
2063
2063
|
align: t,
|
|
@@ -2066,21 +2066,21 @@ function Yr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
|
2066
2066
|
...i
|
|
2067
2067
|
}) });
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function Zr({ className: e, ...t }) {
|
|
2070
2070
|
return /* @__PURE__ */ r(m.Item, {
|
|
2071
2071
|
"data-slot": "menubar-item",
|
|
2072
2072
|
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),
|
|
2073
2073
|
...t
|
|
2074
2074
|
});
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function Qr({ className: e, ...t }) {
|
|
2077
2077
|
return /* @__PURE__ */ r("span", {
|
|
2078
2078
|
"data-slot": "menubar-shortcut",
|
|
2079
2079
|
className: V("ms-auto text-xs text-muted-foreground", e),
|
|
2080
2080
|
...t
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function $r({ className: e, ...t }) {
|
|
2084
2084
|
return /* @__PURE__ */ r(m.Separator, {
|
|
2085
2085
|
"data-slot": "menubar-separator",
|
|
2086
2086
|
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
@@ -2088,7 +2088,7 @@ function Qr({ className: e, ...t }) {
|
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
2090
|
// src/ui/navigation/navigation-menu.component.tsx
|
|
2091
|
-
function
|
|
2091
|
+
function ei({ className: e, children: t, ...n }) {
|
|
2092
2092
|
return /* @__PURE__ */ i(h.Root, {
|
|
2093
2093
|
"data-slot": "navigation-menu",
|
|
2094
2094
|
className: V("relative flex items-center", e),
|
|
@@ -2099,18 +2099,18 @@ function $r({ className: e, children: t, ...n }) {
|
|
|
2099
2099
|
})]
|
|
2100
2100
|
});
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function ti({ className: e, ...t }) {
|
|
2103
2103
|
return /* @__PURE__ */ r(h.List, {
|
|
2104
2104
|
"data-slot": "navigation-menu-list",
|
|
2105
2105
|
className: V("m-0 flex list-none items-center gap-1 p-0", e),
|
|
2106
2106
|
...t
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
2109
|
-
var
|
|
2110
|
-
function
|
|
2109
|
+
var ni = h.Item, ri = "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";
|
|
2110
|
+
function ii({ className: e, children: t, ...n }) {
|
|
2111
2111
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
2112
2112
|
"data-slot": "navigation-menu-trigger",
|
|
2113
|
-
className: V(
|
|
2113
|
+
className: V(ri, "group", e),
|
|
2114
2114
|
...n,
|
|
2115
2115
|
children: [t, /* @__PURE__ */ r(j, {
|
|
2116
2116
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
@@ -2118,22 +2118,22 @@ function ri({ className: e, children: t, ...n }) {
|
|
|
2118
2118
|
})]
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2121
|
+
function ai({ className: e, ...t }) {
|
|
2122
2122
|
return /* @__PURE__ */ r(h.Content, {
|
|
2123
2123
|
"data-slot": "navigation-menu-content",
|
|
2124
2124
|
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),
|
|
2125
2125
|
...t
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function oi({ className: e, ...t }) {
|
|
2129
2129
|
return /* @__PURE__ */ r(h.Link, {
|
|
2130
2130
|
"data-slot": "navigation-menu-link",
|
|
2131
|
-
className: V(
|
|
2131
|
+
className: V(ri, e),
|
|
2132
2132
|
...t
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
2135
|
// src/ui/navigation/pagination.component.tsx
|
|
2136
|
-
function
|
|
2136
|
+
function si({ page: e, pageCount: t, onPageChange: n, window: a = 3, className: o }) {
|
|
2137
2137
|
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);
|
|
2138
2138
|
return /* @__PURE__ */ i("nav", {
|
|
2139
2139
|
"data-slot": "pagination",
|
|
@@ -2175,8 +2175,8 @@ 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
|
|
2179
|
-
function
|
|
2178
|
+
var ci = be(null), li = be("pill");
|
|
2179
|
+
function ui({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2180
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) => {
|
|
2181
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);
|
|
2182
2182
|
if (u.current = e, g(e), !t || !r || !i || r === i) return;
|
|
@@ -2206,7 +2206,7 @@ function li({ className: e, style: t, children: n, value: i, defaultValue: a, on
|
|
|
2206
2206
|
},
|
|
2207
2207
|
className: V("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2208
2208
|
...c,
|
|
2209
|
-
children: /* @__PURE__ */ r(
|
|
2209
|
+
children: /* @__PURE__ */ r(ci, {
|
|
2210
2210
|
value: {
|
|
2211
2211
|
active: h,
|
|
2212
2212
|
fromHeightRef: p,
|
|
@@ -2216,40 +2216,40 @@ function li({ className: e, style: t, children: n, value: i, defaultValue: a, on
|
|
|
2216
2216
|
})
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
|
-
var
|
|
2219
|
+
var di = {
|
|
2220
2220
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2221
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",
|
|
2222
2222
|
outline: "z-1 w-full gap-1 data-[orientation=vertical]:w-auto"
|
|
2223
|
-
},
|
|
2223
|
+
}, fi = {
|
|
2224
2224
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2225
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",
|
|
2226
2226
|
outline: "hidden"
|
|
2227
2227
|
};
|
|
2228
|
-
function
|
|
2229
|
-
let c =
|
|
2228
|
+
function pi({ className: e, variant: t = "pill", fitted: n = !1, flap: a = !1, children: o, ...s }) {
|
|
2229
|
+
let c = ut("[data-slot=tabs-trigger][data-state=active]");
|
|
2230
2230
|
return /* @__PURE__ */ i(E.List, {
|
|
2231
2231
|
ref: c,
|
|
2232
2232
|
"data-slot": "tabs-list",
|
|
2233
2233
|
"data-variant": t,
|
|
2234
2234
|
"data-motion": a ? "flap" : "raise",
|
|
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",
|
|
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", di[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2236
2236
|
...s,
|
|
2237
2237
|
children: [/* @__PURE__ */ r("span", {
|
|
2238
2238
|
"aria-hidden": "true",
|
|
2239
2239
|
"data-slot": "tabs-indicator",
|
|
2240
|
-
className: V(
|
|
2241
|
-
}), /* @__PURE__ */ r(
|
|
2240
|
+
className: V(dt, fi[t])
|
|
2241
|
+
}), /* @__PURE__ */ r(li, {
|
|
2242
2242
|
value: t,
|
|
2243
2243
|
children: o
|
|
2244
2244
|
})]
|
|
2245
2245
|
});
|
|
2246
2246
|
}
|
|
2247
|
-
var
|
|
2248
|
-
function
|
|
2247
|
+
var mi = "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 hi(e) {
|
|
2249
2249
|
e.preventDefault(), e.stopPropagation();
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2252
|
-
let u =
|
|
2251
|
+
function gi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2252
|
+
let u = Se(li), d = F((e) => {
|
|
2253
2253
|
if (!e || u !== "outline") return;
|
|
2254
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;
|
|
2255
2255
|
r <= 0 ? e.dataset.edge = "start" : a > 0 && r + i >= a - 1 ? e.dataset.edge = "end" : delete e.dataset.edge;
|
|
@@ -2264,10 +2264,10 @@ function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2264
2264
|
onKeyDown: (e) => {
|
|
2265
2265
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2266
2266
|
},
|
|
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" &&
|
|
2267
|
+
className: V("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" && mi, e),
|
|
2268
2268
|
...l,
|
|
2269
2269
|
children: [
|
|
2270
|
-
s,
|
|
2270
|
+
/* @__PURE__ */ r(w.Slottable, { children: s }),
|
|
2271
2271
|
t === void 0 ? null : /* @__PURE__ */ r("span", {
|
|
2272
2272
|
"data-slot": "tabs-count",
|
|
2273
2273
|
className: "min-w-5 rounded-full bg-muted px-1.5 text-center text-[11px] leading-5 tabular-nums text-muted-foreground transition-colors group-data-[state=active]/tab:bg-brand-soft group-data-[state=active]/tab:text-brand-text",
|
|
@@ -2276,10 +2276,10 @@ function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2276
2276
|
n ? /* @__PURE__ */ r("span", {
|
|
2277
2277
|
"aria-hidden": "true",
|
|
2278
2278
|
"data-slot": "tabs-close",
|
|
2279
|
-
onPointerDown:
|
|
2280
|
-
onMouseDown:
|
|
2279
|
+
onPointerDown: hi,
|
|
2280
|
+
onMouseDown: hi,
|
|
2281
2281
|
onClick: (e) => {
|
|
2282
|
-
|
|
2282
|
+
hi(e), n();
|
|
2283
2283
|
},
|
|
2284
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",
|
|
2285
2285
|
children: /* @__PURE__ */ r(P, {})
|
|
@@ -2287,21 +2287,21 @@ function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2287
2287
|
]
|
|
2288
2288
|
});
|
|
2289
2289
|
}
|
|
2290
|
-
var
|
|
2290
|
+
var _i = [
|
|
2291
2291
|
"borderTopLeftRadius",
|
|
2292
2292
|
"borderTopRightRadius",
|
|
2293
2293
|
"borderBottomRightRadius",
|
|
2294
2294
|
"borderBottomLeftRadius"
|
|
2295
2295
|
];
|
|
2296
|
-
function
|
|
2296
|
+
function vi(e, t, n) {
|
|
2297
2297
|
if (e === "start") return +!!n;
|
|
2298
2298
|
if (e === "end") return t ? n ? 2 : 3 : +!n;
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...
|
|
2300
|
+
function yi(e, t) {
|
|
2301
|
+
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(..._i.map((e) => Number(n[e].replace("px", "")))), a = vi(t.fromEdge, t.vertical, r), o = vi(t.toEdge, t.vertical, r);
|
|
2302
2302
|
if (i === 0 || a === o) return;
|
|
2303
2303
|
let s = `${String(i)}px`, c = (t, n, r, i) => {
|
|
2304
|
-
let a = t === void 0 ? void 0 :
|
|
2304
|
+
let a = t === void 0 ? void 0 : _i[t];
|
|
2305
2305
|
a && e.animate([{ [a]: n }, { [a]: r }], i);
|
|
2306
2306
|
};
|
|
2307
2307
|
c(a, "0px", s, {
|
|
@@ -2314,7 +2314,7 @@ function vi(e, t) {
|
|
|
2314
2314
|
easing: "ease-out"
|
|
2315
2315
|
});
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function bi(e, t) {
|
|
2318
2318
|
for (let t of e.querySelectorAll("[data-slot=tabs-content-ghost]")) t.remove();
|
|
2319
2319
|
let { node: n } = t;
|
|
2320
2320
|
n.dataset.slot = "tabs-content-ghost", n.inert = !0, n.setAttribute("aria-hidden", "true"), Object.assign(n.style, {
|
|
@@ -2324,7 +2324,7 @@ function yi(e, t) {
|
|
|
2324
2324
|
width: `${String(t.width)}px`,
|
|
2325
2325
|
animation: "none",
|
|
2326
2326
|
pointerEvents: "none"
|
|
2327
|
-
}), e.append(n),
|
|
2327
|
+
}), e.append(n), yi(e, t);
|
|
2328
2328
|
let r = n.animate([{
|
|
2329
2329
|
opacity: 1,
|
|
2330
2330
|
scale: 1,
|
|
@@ -2344,15 +2344,15 @@ function yi(e, t) {
|
|
|
2344
2344
|
n.remove();
|
|
2345
2345
|
});
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2348
|
-
let a =
|
|
2349
|
-
return
|
|
2347
|
+
function xi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2348
|
+
let a = Se(ci), o = L(null), s = a?.active === i.value;
|
|
2349
|
+
return Te(() => {
|
|
2350
2350
|
let e = o.current, t = a?.fromHeightRef.current;
|
|
2351
2351
|
if (!s || !e || !a || t === void 0 || (a.fromHeightRef.current = void 0, typeof e.animate != "function" || matchMedia("(prefers-reduced-motion: reduce)").matches)) return;
|
|
2352
2352
|
let n = a.ghostRef.current;
|
|
2353
2353
|
a.ghostRef.current = void 0;
|
|
2354
2354
|
function r(r) {
|
|
2355
|
-
e && n &&
|
|
2355
|
+
e && n && bi(e, n), e && Math.abs(r - (t ?? r)) >= 1 && e.animate([{
|
|
2356
2356
|
minHeight: `${String(t)}px`,
|
|
2357
2357
|
maxHeight: `${String(t)}px`
|
|
2358
2358
|
}, {
|
|
@@ -2386,12 +2386,12 @@ function bi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
|
2386
2386
|
});
|
|
2387
2387
|
}
|
|
2388
2388
|
// src/ui/navigation/stepper.component.tsx
|
|
2389
|
-
var
|
|
2389
|
+
var Si = {
|
|
2390
2390
|
done: "bg-primary text-primary-foreground",
|
|
2391
2391
|
current: "border-2 border-primary text-brand-text",
|
|
2392
2392
|
upcoming: "bg-muted text-muted-foreground"
|
|
2393
2393
|
};
|
|
2394
|
-
function
|
|
2394
|
+
function Ci({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2395
2395
|
let l = n === "vertical";
|
|
2396
2396
|
return /* @__PURE__ */ r("ol", {
|
|
2397
2397
|
"data-slot": "stepper",
|
|
@@ -2402,7 +2402,7 @@ function Si({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2402
2402
|
children: e.map((n, o) => {
|
|
2403
2403
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2404
2404
|
"aria-hidden": "true",
|
|
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",
|
|
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", Si[s]),
|
|
2406
2406
|
children: s === "done" ? /* @__PURE__ */ r(A, {
|
|
2407
2407
|
className: "size-3.5",
|
|
2408
2408
|
strokeWidth: 2.5
|
|
@@ -2441,32 +2441,107 @@ function Si({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2441
2441
|
});
|
|
2442
2442
|
}
|
|
2443
2443
|
// src/ui/presence/presence.recipe.ts
|
|
2444
|
-
var
|
|
2444
|
+
var wi = {
|
|
2445
2445
|
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2446
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",
|
|
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"
|
|
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",
|
|
2448
|
+
expand: "data-[state=open]:animate-expand-in data-[state=closed]:animate-expand-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
2448
2449
|
};
|
|
2449
2450
|
// src/ui/presence/presence.component.tsx
|
|
2450
|
-
function
|
|
2451
|
-
let [
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2451
|
+
function Ti({ present: e, animation: t = "fade", unmountOnExit: n = !0, initial: i = !0, onExitComplete: a, className: o, style: s, onAnimationEnd: c, ...l }) {
|
|
2452
|
+
let [u, d] = R(e), [f, p] = R(e && !i), m = L(null);
|
|
2453
|
+
e && !u && d(!0), !e && f && p(!1);
|
|
2454
|
+
function h() {
|
|
2455
|
+
d(!1), a?.();
|
|
2456
|
+
}
|
|
2457
|
+
return Te(() => {
|
|
2458
|
+
let e = m.current;
|
|
2459
|
+
t === "expand" && e && e.style.setProperty("--presence-height", `${e.scrollHeight}px`);
|
|
2460
|
+
}, [
|
|
2461
|
+
t,
|
|
2462
|
+
e,
|
|
2463
|
+
u
|
|
2464
|
+
]), Te(() => {
|
|
2465
|
+
if (e || !u) return;
|
|
2466
|
+
let t = m.current;
|
|
2467
|
+
t && Ei(getComputedStyle(t)) || h();
|
|
2468
|
+
}, [e, u]), !u && n ? null : /* @__PURE__ */ r("div", {
|
|
2469
|
+
ref: m,
|
|
2458
2470
|
"data-slot": "presence",
|
|
2459
2471
|
"data-state": e ? "open" : "closed",
|
|
2460
|
-
hidden: !e && !
|
|
2461
|
-
className: V(
|
|
2472
|
+
hidden: !e && !u,
|
|
2473
|
+
className: V(wi[t], o),
|
|
2474
|
+
style: f ? {
|
|
2475
|
+
...s,
|
|
2476
|
+
animationName: "none"
|
|
2477
|
+
} : s,
|
|
2462
2478
|
onAnimationEnd: (t) => {
|
|
2463
|
-
|
|
2479
|
+
c?.(t), !e && t.target === t.currentTarget && h();
|
|
2464
2480
|
},
|
|
2465
|
-
...
|
|
2481
|
+
...l
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
function Ei(e) {
|
|
2485
|
+
let t = e.animationName.split(",").map((e) => e.trim()), n = e.animationDuration.split(",").map((e) => Number(e.trim().replace(/s$/, "")) || 0);
|
|
2486
|
+
return t.some((e) => e !== "" && e !== "none") && n.some((e) => e > 0);
|
|
2487
|
+
}
|
|
2488
|
+
// src/ui/presence/presence-group.component.tsx
|
|
2489
|
+
function Di({ children: e, animation: t = "expand", initial: n = !1, className: i }) {
|
|
2490
|
+
let [a, o] = R(() => ({
|
|
2491
|
+
source: e,
|
|
2492
|
+
items: Oi(e).map((e) => ({
|
|
2493
|
+
key: String(e.key),
|
|
2494
|
+
element: e,
|
|
2495
|
+
present: !0,
|
|
2496
|
+
appear: n
|
|
2497
|
+
}))
|
|
2498
|
+
}));
|
|
2499
|
+
a.source !== e && o({
|
|
2500
|
+
source: e,
|
|
2501
|
+
items: ki(a.items, Oi(e))
|
|
2502
|
+
});
|
|
2503
|
+
function s(e) {
|
|
2504
|
+
o((t) => ({
|
|
2505
|
+
...t,
|
|
2506
|
+
items: t.items.filter((t) => t.key !== e || t.present)
|
|
2507
|
+
}));
|
|
2508
|
+
}
|
|
2509
|
+
return a.items.map((e) => /* @__PURE__ */ r(Ti, {
|
|
2510
|
+
present: e.present,
|
|
2511
|
+
animation: t,
|
|
2512
|
+
initial: e.appear,
|
|
2513
|
+
className: i,
|
|
2514
|
+
onExitComplete: () => {
|
|
2515
|
+
s(e.key);
|
|
2516
|
+
},
|
|
2517
|
+
children: e.element
|
|
2518
|
+
}, e.key));
|
|
2519
|
+
}
|
|
2520
|
+
function Oi(e) {
|
|
2521
|
+
return ve.toArray(e).filter(xe);
|
|
2522
|
+
}
|
|
2523
|
+
function ki(e, t) {
|
|
2524
|
+
let n = new Map(e.map((e) => [e.key, e])), r = new Set(t.map((e) => String(e.key))), i = [], a = /* @__PURE__ */ new Set(), o = 0;
|
|
2525
|
+
function s(e) {
|
|
2526
|
+
for (let r of t.slice(o)) {
|
|
2527
|
+
o++;
|
|
2528
|
+
let t = String(r.key);
|
|
2529
|
+
if (i.push({
|
|
2530
|
+
key: t,
|
|
2531
|
+
element: r,
|
|
2532
|
+
present: !0,
|
|
2533
|
+
appear: n.get(t)?.appear ?? !0
|
|
2534
|
+
}), a.add(t), t === e) return;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
for (let t of e) r.has(t.key) ? a.has(t.key) || s(t.key) : i.push({
|
|
2538
|
+
...t,
|
|
2539
|
+
present: !1
|
|
2466
2540
|
});
|
|
2541
|
+
return s(null), i;
|
|
2467
2542
|
}
|
|
2468
2543
|
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2469
|
-
function
|
|
2544
|
+
function Ai({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearable: o = !0, clearLabel: s = "Clear selection", className: c }) {
|
|
2470
2545
|
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2471
2546
|
role: "toolbar",
|
|
2472
2547
|
"aria-label": a,
|
|
@@ -2492,17 +2567,17 @@ function Ti({ selection: e, children: t, countLabel: n = (e) => `${e} selected`,
|
|
|
2492
2567
|
});
|
|
2493
2568
|
}
|
|
2494
2569
|
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2495
|
-
function
|
|
2570
|
+
function ji({ selection: e, filters: t = [], children: n, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2496
2571
|
return /* @__PURE__ */ i("div", {
|
|
2497
2572
|
"data-slot": "select-all-checkbox",
|
|
2498
2573
|
className: V("inline-flex items-center gap-0.5", l),
|
|
2499
|
-
children: [/* @__PURE__ */ r(
|
|
2574
|
+
children: [/* @__PURE__ */ r(at, {
|
|
2500
2575
|
"aria-label": a,
|
|
2501
2576
|
checked: e.allState,
|
|
2502
2577
|
onCheckedChange: () => {
|
|
2503
2578
|
e.allState === !1 ? e.selectAll() : e.clear();
|
|
2504
2579
|
}
|
|
2505
|
-
}), /* @__PURE__ */ i(
|
|
2580
|
+
}), /* @__PURE__ */ i(In, { children: [/* @__PURE__ */ r(Ln, {
|
|
2506
2581
|
asChild: !0,
|
|
2507
2582
|
children: /* @__PURE__ */ r(Y, {
|
|
2508
2583
|
variant: "ghost",
|
|
@@ -2510,19 +2585,19 @@ function Ei({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2510
2585
|
"aria-label": o,
|
|
2511
2586
|
children: /* @__PURE__ */ r(j, {})
|
|
2512
2587
|
})
|
|
2513
|
-
}), /* @__PURE__ */ i(
|
|
2588
|
+
}), /* @__PURE__ */ i(Bn, {
|
|
2514
2589
|
align: "start",
|
|
2515
2590
|
children: [
|
|
2516
|
-
/* @__PURE__ */ r(
|
|
2591
|
+
/* @__PURE__ */ r(Vn, {
|
|
2517
2592
|
onSelect: e.selectAll,
|
|
2518
2593
|
children: s
|
|
2519
2594
|
}),
|
|
2520
|
-
/* @__PURE__ */ r(
|
|
2595
|
+
/* @__PURE__ */ r(Vn, {
|
|
2521
2596
|
onSelect: e.clear,
|
|
2522
2597
|
children: c
|
|
2523
2598
|
}),
|
|
2524
|
-
(t.length > 0 || n) && /* @__PURE__ */ r(
|
|
2525
|
-
t.map((t) => /* @__PURE__ */ r(
|
|
2599
|
+
(t.length > 0 || n) && /* @__PURE__ */ r(Wn, {}),
|
|
2600
|
+
t.map((t) => /* @__PURE__ */ r(Vn, {
|
|
2526
2601
|
onSelect: () => e.set(e.ids.filter((e) => t.match(e))),
|
|
2527
2602
|
children: t.label
|
|
2528
2603
|
}, t.label)),
|
|
@@ -2532,17 +2607,17 @@ function Ei({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2532
2607
|
});
|
|
2533
2608
|
}
|
|
2534
2609
|
// src/ui/selectable-list/selection-header.component.tsx
|
|
2535
|
-
function
|
|
2610
|
+
function Mi({ selection: e, actions: t, filters: n, summary: a, countLabel: o, className: s }) {
|
|
2536
2611
|
return /* @__PURE__ */ i("div", {
|
|
2537
2612
|
"data-slot": "selection-header",
|
|
2538
2613
|
className: V("sticky top-0 z-10 flex min-h-11 items-center gap-2 border-b bg-background px-3", s),
|
|
2539
|
-
children: [/* @__PURE__ */ r(
|
|
2614
|
+
children: [/* @__PURE__ */ r(ji, {
|
|
2540
2615
|
selection: e,
|
|
2541
2616
|
filters: n
|
|
2542
2617
|
}), e.count === 0 ? /* @__PURE__ */ r("div", {
|
|
2543
2618
|
className: "text-sm text-muted-foreground",
|
|
2544
2619
|
children: a
|
|
2545
|
-
}) : /* @__PURE__ */ r(
|
|
2620
|
+
}) : /* @__PURE__ */ r(Ai, {
|
|
2546
2621
|
selection: e,
|
|
2547
2622
|
countLabel: o,
|
|
2548
2623
|
clearable: !1,
|
|
@@ -2552,8 +2627,8 @@ function Di({ selection: e, actions: t, filters: n, summary: a, countLabel: o, c
|
|
|
2552
2627
|
});
|
|
2553
2628
|
}
|
|
2554
2629
|
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2555
|
-
var
|
|
2556
|
-
function
|
|
2630
|
+
var Ni = be(null), Pi = "[data-slot=\"selectable-row\"]";
|
|
2631
|
+
function Fi({ selection: e, className: t, children: n, ...i }) {
|
|
2557
2632
|
let a = L(null), [o, s] = R(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2558
2633
|
function l(t) {
|
|
2559
2634
|
let n = t.target;
|
|
@@ -2566,17 +2641,17 @@ function Ai({ selection: e, className: t, children: n, ...i }) {
|
|
|
2566
2641
|
t.preventDefault(), e.clear();
|
|
2567
2642
|
return;
|
|
2568
2643
|
}
|
|
2569
|
-
let r = n.closest(
|
|
2644
|
+
let r = n.closest(Pi), i = r?.dataset.id;
|
|
2570
2645
|
if (i === void 0 || !r) return;
|
|
2571
2646
|
if (n === r && t.key === " ") {
|
|
2572
2647
|
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2573
2648
|
return;
|
|
2574
2649
|
}
|
|
2575
2650
|
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2576
|
-
let o = [...a.current?.querySelectorAll(
|
|
2651
|
+
let o = [...a.current?.querySelectorAll(Pi) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2577
2652
|
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2578
2653
|
}
|
|
2579
|
-
return /* @__PURE__ */ r(
|
|
2654
|
+
return /* @__PURE__ */ r(Ni, {
|
|
2580
2655
|
value: {
|
|
2581
2656
|
selection: e,
|
|
2582
2657
|
activeId: c,
|
|
@@ -2593,8 +2668,8 @@ function Ai({ selection: e, className: t, children: n, ...i }) {
|
|
|
2593
2668
|
})
|
|
2594
2669
|
});
|
|
2595
2670
|
}
|
|
2596
|
-
function
|
|
2597
|
-
let l =
|
|
2671
|
+
function Ii({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2672
|
+
let l = Se(Ni);
|
|
2598
2673
|
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2599
2674
|
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2600
2675
|
function m(t) {
|
|
@@ -2614,7 +2689,7 @@ function ji({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2614
2689
|
f(e), s?.(t);
|
|
2615
2690
|
},
|
|
2616
2691
|
...c,
|
|
2617
|
-
children: [/* @__PURE__ */ r(
|
|
2692
|
+
children: [/* @__PURE__ */ r(at, {
|
|
2618
2693
|
"aria-label": t,
|
|
2619
2694
|
checked: p,
|
|
2620
2695
|
tabIndex: -1,
|
|
@@ -2626,8 +2701,8 @@ function ji({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2626
2701
|
});
|
|
2627
2702
|
}
|
|
2628
2703
|
// src/ui/selectable-list/selection.hook.ts
|
|
2629
|
-
function
|
|
2630
|
-
let [n, r] = R(() => new Set(t.defaultSelected)), i = L(void 0), a =
|
|
2704
|
+
function Li(e, t = {}) {
|
|
2705
|
+
let [n, r] = R(() => new Set(t.defaultSelected)), i = L(void 0), a = Ee(() => new Set(e.filter((e) => n.has(e))), [e, n]), o = a.size, s = o === 0 ? !1 : o === e.length || "indeterminate", c = F((e) => a.has(e), [a]), l = F((t, { range: n = !1 } = {}) => {
|
|
2631
2706
|
let o = !a.has(t), s = n && i.current !== void 0 ? e.indexOf(i.current) : -1, c = e.indexOf(t), l = Math.min(s, c) === -1 ? [t] : e.slice(Math.min(s, c), Math.max(s, c) + 1);
|
|
2632
2707
|
i.current = t, r((e) => {
|
|
2633
2708
|
let t = new Set(e);
|
|
@@ -2653,14 +2728,14 @@ function Mi(e, t = {}) {
|
|
|
2653
2728
|
};
|
|
2654
2729
|
}
|
|
2655
2730
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2656
|
-
var
|
|
2731
|
+
var Ri = be(null);
|
|
2657
2732
|
function Z() {
|
|
2658
|
-
let e =
|
|
2733
|
+
let e = Ce(Ri);
|
|
2659
2734
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2660
2735
|
return e;
|
|
2661
2736
|
}
|
|
2662
2737
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
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",
|
|
2738
|
+
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", zi = "grid grid-rows-[1fr] transition-[grid-template-rows,opacity,translate,margin] duration-200 ease-out motion-reduce:transition-none group-data-[collapsed]/sidebar:-mt-2 group-data-[collapsed]/sidebar:translate-y-2 group-data-[collapsed]/sidebar:grid-rows-[0fr] group-data-[collapsed]/sidebar:opacity-0", Bi = "flex h-9 w-full shrink-0 cursor-pointer items-center gap-3 rounded-md px-3 text-[13.5px] font-medium text-muted-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-sidebar-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring [&_svg]:size-4 [&_svg]:shrink-0 aria-[current]:bg-brand-soft aria-[current]:text-brand-text", Vi = {
|
|
2664
2739
|
panel: {
|
|
2665
2740
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2666
2741
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2670,12 +2745,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2670
2745
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2671
2746
|
}
|
|
2672
2747
|
};
|
|
2673
|
-
function
|
|
2748
|
+
function Hi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2674
2749
|
let [d, f] = R(o), p = a ?? d;
|
|
2675
2750
|
function m(e) {
|
|
2676
2751
|
a === void 0 && f(e), s?.(e);
|
|
2677
2752
|
}
|
|
2678
|
-
return /* @__PURE__ */ r(
|
|
2753
|
+
return /* @__PURE__ */ r(Ri, {
|
|
2679
2754
|
value: {
|
|
2680
2755
|
collapsed: p,
|
|
2681
2756
|
setCollapsed: m,
|
|
@@ -2688,7 +2763,7 @@ function Li({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2688
2763
|
"data-variant": t,
|
|
2689
2764
|
"data-collapsed": p || void 0,
|
|
2690
2765
|
"aria-label": e,
|
|
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 ?
|
|
2766
|
+
className: V("group/sidebar flex h-full min-h-0 shrink-0 flex-col overflow-hidden bg-sidebar text-[13px] text-sidebar-foreground", n === "start" ? "border-e border-sidebar-border" : "border-s border-sidebar-border", "relative transition-[width] duration-150 ease-out motion-reduce:transition-none", p ? Vi[t].collapsed : Vi[t].open, c),
|
|
2692
2767
|
...u,
|
|
2693
2768
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2694
2769
|
"aria-hidden": "true",
|
|
@@ -2698,30 +2773,30 @@ function Li({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2698
2773
|
})
|
|
2699
2774
|
});
|
|
2700
2775
|
}
|
|
2701
|
-
function
|
|
2776
|
+
function Ui({ label: e, children: t }) {
|
|
2702
2777
|
let { collapsed: n, side: a } = Z(), [o, s] = R(!1);
|
|
2703
|
-
return /* @__PURE__ */ i(
|
|
2778
|
+
return /* @__PURE__ */ i(mn, {
|
|
2704
2779
|
open: n && o,
|
|
2705
2780
|
onOpenChange: s,
|
|
2706
|
-
children: [/* @__PURE__ */ r(
|
|
2781
|
+
children: [/* @__PURE__ */ r(hn, {
|
|
2707
2782
|
asChild: !0,
|
|
2708
2783
|
children: t
|
|
2709
|
-
}), /* @__PURE__ */ r(
|
|
2784
|
+
}), /* @__PURE__ */ r(gn, {
|
|
2710
2785
|
side: a === "start" ? "right" : "left",
|
|
2711
2786
|
children: e
|
|
2712
2787
|
})]
|
|
2713
2788
|
});
|
|
2714
2789
|
}
|
|
2715
|
-
function
|
|
2790
|
+
function Wi({ className: e, ...t }) {
|
|
2716
2791
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2717
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2792
|
+
if (c === "nav") return /* @__PURE__ */ r(Ui, {
|
|
2718
2793
|
label: l,
|
|
2719
2794
|
children: /* @__PURE__ */ i("button", {
|
|
2720
2795
|
type: "button",
|
|
2721
2796
|
"aria-label": l,
|
|
2722
2797
|
"aria-expanded": !n,
|
|
2723
2798
|
onClick: () => a(!n),
|
|
2724
|
-
className: V(
|
|
2799
|
+
className: V(Bi, e),
|
|
2725
2800
|
...t,
|
|
2726
2801
|
children: [/* @__PURE__ */ r(ue, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2727
2802
|
"aria-hidden": "true",
|
|
@@ -2743,7 +2818,7 @@ function zi({ className: e, ...t }) {
|
|
|
2743
2818
|
children: r(u ? re : ie, {})
|
|
2744
2819
|
});
|
|
2745
2820
|
}
|
|
2746
|
-
function
|
|
2821
|
+
function Gi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2747
2822
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2748
2823
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2749
2824
|
"data-slot": "sidebar-header",
|
|
@@ -2757,7 +2832,7 @@ function Bi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2757
2832
|
children: [/* @__PURE__ */ i("div", {
|
|
2758
2833
|
inert: s,
|
|
2759
2834
|
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",
|
|
2760
|
-
children: [t && /* @__PURE__ */ r(
|
|
2835
|
+
children: [t && /* @__PURE__ */ r(bt, {
|
|
2761
2836
|
type: "search",
|
|
2762
2837
|
value: e,
|
|
2763
2838
|
onChange: (e) => t(e.target.value),
|
|
@@ -2765,10 +2840,10 @@ function Bi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2765
2840
|
"aria-label": u,
|
|
2766
2841
|
startIcon: /* @__PURE__ */ r(me, {})
|
|
2767
2842
|
}), a]
|
|
2768
|
-
}), /* @__PURE__ */ r(
|
|
2843
|
+
}), /* @__PURE__ */ r(Wi, { className: "ms-auto" })]
|
|
2769
2844
|
});
|
|
2770
2845
|
}
|
|
2771
|
-
function
|
|
2846
|
+
function Ki({ className: e, ...t }) {
|
|
2772
2847
|
let { label: n, variant: i } = Z(), a = V("flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-width:thin]", "group-data-[collapsed]/sidebar:[scrollbar-width:none] group-data-[collapsed]/sidebar:[&::-webkit-scrollbar]:hidden", i === "panel" ? "gap-3" : "gap-4", e);
|
|
2773
2848
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2774
2849
|
"data-slot": "sidebar-content",
|
|
@@ -2781,12 +2856,12 @@ function Vi({ className: e, ...t }) {
|
|
|
2781
2856
|
...t
|
|
2782
2857
|
});
|
|
2783
2858
|
}
|
|
2784
|
-
function
|
|
2859
|
+
function qi({ className: e, children: t, ...n }) {
|
|
2785
2860
|
let { collapsed: i } = Z();
|
|
2786
2861
|
return /* @__PURE__ */ r("div", {
|
|
2787
2862
|
"data-slot": "sidebar-note",
|
|
2788
2863
|
"aria-hidden": i || void 0,
|
|
2789
|
-
className: V(
|
|
2864
|
+
className: V(zi, e),
|
|
2790
2865
|
...n,
|
|
2791
2866
|
children: /* @__PURE__ */ r("span", {
|
|
2792
2867
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2794,7 +2869,7 @@ function Hi({ className: e, children: t, ...n }) {
|
|
|
2794
2869
|
})
|
|
2795
2870
|
});
|
|
2796
2871
|
}
|
|
2797
|
-
function
|
|
2872
|
+
function Ji({ className: e, ...t }) {
|
|
2798
2873
|
let { collapsed: n, variant: i } = Z();
|
|
2799
2874
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2800
2875
|
"data-slot": "sidebar-footer",
|
|
@@ -2803,7 +2878,7 @@ function Ui({ className: e, ...t }) {
|
|
|
2803
2878
|
});
|
|
2804
2879
|
}
|
|
2805
2880
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2806
|
-
function
|
|
2881
|
+
function Yi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2807
2882
|
let { collapsed: u, variant: d } = Z(), [f, p] = R(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
2808
2883
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2809
2884
|
"data-slot": "sidebar-group",
|
|
@@ -2847,7 +2922,7 @@ function Wi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2847
2922
|
});
|
|
2848
2923
|
}
|
|
2849
2924
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2850
|
-
function
|
|
2925
|
+
function Xi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foreground)", badge: c, active: l = !1, asChild: u = !1, className: d, children: f, ...p }) {
|
|
2851
2926
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2852
2927
|
/* @__PURE__ */ r("span", {
|
|
2853
2928
|
"aria-hidden": "true",
|
|
@@ -2886,35 +2961,35 @@ function Gi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2886
2961
|
className: V("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2887
2962
|
children: c
|
|
2888
2963
|
})
|
|
2889
|
-
] }), v = h === "nav" ? V(
|
|
2964
|
+
] }), v = h === "nav" ? V(Bi, d) : V("group/item flex cursor-pointer items-center rounded-md border border-transparent text-start text-sidebar-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none", "hover:border-sidebar-border hover:bg-background focus-visible:ring-2 focus-visible:ring-sidebar-ring disabled:cursor-not-allowed disabled:opacity-50", "aria-[current]:border-transparent aria-[current]:bg-brand-soft aria-[current]:text-brand-text", "w-full gap-2 px-[13px] py-1.5", d), y = {
|
|
2890
2965
|
"data-slot": "sidebar-item",
|
|
2891
2966
|
"aria-current": g,
|
|
2892
2967
|
"aria-label": m ? e : void 0,
|
|
2893
2968
|
className: v
|
|
2894
|
-
}, b = u &&
|
|
2969
|
+
}, b = u && xe(f) ? /* @__PURE__ */ r(w.Root, {
|
|
2895
2970
|
...y,
|
|
2896
2971
|
...p,
|
|
2897
|
-
children:
|
|
2972
|
+
children: Zi(f, _)
|
|
2898
2973
|
}) : /* @__PURE__ */ r("button", {
|
|
2899
2974
|
type: "button",
|
|
2900
2975
|
...y,
|
|
2901
2976
|
...p,
|
|
2902
2977
|
children: _
|
|
2903
2978
|
});
|
|
2904
|
-
return /* @__PURE__ */ r(
|
|
2979
|
+
return /* @__PURE__ */ r(Ui, {
|
|
2905
2980
|
label: e,
|
|
2906
2981
|
children: b
|
|
2907
2982
|
});
|
|
2908
2983
|
}
|
|
2909
|
-
function
|
|
2910
|
-
return
|
|
2984
|
+
function Zi(e, t) {
|
|
2985
|
+
return ye(e, void 0, t);
|
|
2911
2986
|
}
|
|
2912
2987
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2913
|
-
function
|
|
2914
|
-
return /* @__PURE__ */ i(
|
|
2988
|
+
function Qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2989
|
+
return /* @__PURE__ */ i(on, {
|
|
2915
2990
|
open: a,
|
|
2916
2991
|
onOpenChange: o,
|
|
2917
|
-
children: [/* @__PURE__ */ r(
|
|
2992
|
+
children: [/* @__PURE__ */ r(sn, {
|
|
2918
2993
|
asChild: !0,
|
|
2919
2994
|
children: /* @__PURE__ */ r(Y, {
|
|
2920
2995
|
variant: "ghost",
|
|
@@ -2923,11 +2998,11 @@ function qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2923
2998
|
className: s,
|
|
2924
2999
|
children: /* @__PURE__ */ r(ue, {})
|
|
2925
3000
|
})
|
|
2926
|
-
}), /* @__PURE__ */ i(
|
|
3001
|
+
}), /* @__PURE__ */ i(fn, {
|
|
2927
3002
|
"data-slot": "sidebar-sheet",
|
|
2928
3003
|
side: n,
|
|
2929
3004
|
className: "d-mob w-[min(320px,86vw)] gap-0 p-0 [&>[data-slot=sidebar]]:border-0",
|
|
2930
|
-
children: [/* @__PURE__ */ r(
|
|
3005
|
+
children: [/* @__PURE__ */ r(ln, {
|
|
2931
3006
|
className: "sr-only",
|
|
2932
3007
|
children: e
|
|
2933
3008
|
}), t]
|
|
@@ -2935,8 +3010,8 @@ function qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2935
3010
|
});
|
|
2936
3011
|
}
|
|
2937
3012
|
// src/product/product-switcher.component.tsx
|
|
2938
|
-
function
|
|
2939
|
-
return /* @__PURE__ */ i(
|
|
3013
|
+
function $i({ product: e, workspace: t, products: n = qe, onProductChange: a, className: o }) {
|
|
3014
|
+
return /* @__PURE__ */ i(In, { children: [/* @__PURE__ */ r(Ln, {
|
|
2940
3015
|
asChild: !0,
|
|
2941
3016
|
children: /* @__PURE__ */ i(Y, {
|
|
2942
3017
|
variant: "ghost",
|
|
@@ -2964,13 +3039,13 @@ function Ji({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2964
3039
|
})
|
|
2965
3040
|
]
|
|
2966
3041
|
})
|
|
2967
|
-
}), /* @__PURE__ */ i(
|
|
3042
|
+
}), /* @__PURE__ */ i(Bn, {
|
|
2968
3043
|
align: "start",
|
|
2969
3044
|
className: "w-60",
|
|
2970
|
-
children: [/* @__PURE__ */ r(
|
|
3045
|
+
children: [/* @__PURE__ */ r(Un, { children: "Products" }), /* @__PURE__ */ r(zn, {
|
|
2971
3046
|
value: e,
|
|
2972
3047
|
onValueChange: (e) => a?.(e),
|
|
2973
|
-
children: n.map((e) => /* @__PURE__ */ i(
|
|
3048
|
+
children: n.map((e) => /* @__PURE__ */ i(Hn, {
|
|
2974
3049
|
value: e,
|
|
2975
3050
|
children: [/* @__PURE__ */ r(U, {
|
|
2976
3051
|
product: e,
|
|
@@ -2982,7 +3057,7 @@ function Ji({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2982
3057
|
})] });
|
|
2983
3058
|
}
|
|
2984
3059
|
// src/product/sidebar-brand.component.tsx
|
|
2985
|
-
function
|
|
3060
|
+
function ea({ product: e, badge: t, className: n }) {
|
|
2986
3061
|
let { collapsed: a, setCollapsed: o } = Z(), s = H[e].name;
|
|
2987
3062
|
return /* @__PURE__ */ i("div", {
|
|
2988
3063
|
"data-slot": "sidebar-brand",
|
|
@@ -3012,7 +3087,7 @@ function Yi({ product: e, badge: t, className: n }) {
|
|
|
3012
3087
|
});
|
|
3013
3088
|
}
|
|
3014
3089
|
// src/app/command-shortcut.hook.ts
|
|
3015
|
-
function
|
|
3090
|
+
function ta(e, t = !0) {
|
|
3016
3091
|
I(() => {
|
|
3017
3092
|
if (!t) return;
|
|
3018
3093
|
function n(t) {
|
|
@@ -3021,43 +3096,43 @@ function Xi(e, t = !0) {
|
|
|
3021
3096
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
3022
3097
|
}, [e, t]);
|
|
3023
3098
|
}
|
|
3024
|
-
function
|
|
3099
|
+
function na(e) {
|
|
3025
3100
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
3026
3101
|
}
|
|
3027
|
-
function
|
|
3028
|
-
function
|
|
3029
|
-
return
|
|
3102
|
+
function ra() {}
|
|
3103
|
+
function ia() {
|
|
3104
|
+
return ra;
|
|
3030
3105
|
}
|
|
3031
|
-
function
|
|
3106
|
+
function aa() {
|
|
3032
3107
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
3033
3108
|
}
|
|
3034
|
-
function
|
|
3109
|
+
function oa() {
|
|
3035
3110
|
return "";
|
|
3036
3111
|
}
|
|
3037
|
-
function
|
|
3038
|
-
return
|
|
3112
|
+
function sa() {
|
|
3113
|
+
return na(De(ia, aa, oa));
|
|
3039
3114
|
}
|
|
3040
3115
|
// src/app/app-shell.component.tsx
|
|
3041
|
-
var
|
|
3042
|
-
function
|
|
3116
|
+
var ca = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=app-shell-body]]:gap-0 has-[>[data-slot=app-shell-body]]:overflow-hidden has-[>[data-slot=app-shell-body]]:p-0";
|
|
3117
|
+
function la({ children: e, className: t }) {
|
|
3043
3118
|
return /* @__PURE__ */ r("div", {
|
|
3044
3119
|
"data-slot": "app-shell-header",
|
|
3045
3120
|
className: V("shrink-0 border-b px-6 py-4", t),
|
|
3046
3121
|
children: e
|
|
3047
3122
|
});
|
|
3048
3123
|
}
|
|
3049
|
-
var
|
|
3050
|
-
function
|
|
3124
|
+
var ua = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=split-view]]:gap-0 has-[>[data-slot=split-view]]:overflow-hidden has-[>[data-slot=split-view]]:p-0";
|
|
3125
|
+
function da({ children: e, className: t }) {
|
|
3051
3126
|
return /* @__PURE__ */ r("div", {
|
|
3052
3127
|
"data-slot": "app-shell-body",
|
|
3053
|
-
className: V(
|
|
3128
|
+
className: V(ua, t),
|
|
3054
3129
|
children: e
|
|
3055
3130
|
});
|
|
3056
3131
|
}
|
|
3057
|
-
function
|
|
3132
|
+
function fa({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, commandPlaceholder: g = "Type a command or search…", commandEmpty: _ = "No results.", children: v, className: y }) {
|
|
3058
3133
|
let [b, x] = R(!1), S = F(() => x(!0), []);
|
|
3059
|
-
|
|
3060
|
-
let C =
|
|
3134
|
+
ta(S, !!h?.length);
|
|
3135
|
+
let C = sa(), w = [...new Set(h?.map((e) => e.group))], T = (e) => /* @__PURE__ */ r(Xi, {
|
|
3061
3136
|
asChild: !0,
|
|
3062
3137
|
title: e.label,
|
|
3063
3138
|
icon: e.icon,
|
|
@@ -3068,20 +3143,20 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3068
3143
|
children: e.label
|
|
3069
3144
|
})
|
|
3070
3145
|
}, e.href), E = /* @__PURE__ */ i(n, { children: [
|
|
3071
|
-
/* @__PURE__ */ r(
|
|
3146
|
+
/* @__PURE__ */ r(Gi, {
|
|
3072
3147
|
className: "h-12",
|
|
3073
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
3148
|
+
children: t === "logo" ? /* @__PURE__ */ r(ea, { product: e }) : /* @__PURE__ */ r($i, {
|
|
3074
3149
|
product: e,
|
|
3075
3150
|
workspace: a,
|
|
3076
3151
|
onProductChange: o,
|
|
3077
3152
|
className: "px-2.5"
|
|
3078
3153
|
})
|
|
3079
3154
|
}),
|
|
3080
|
-
/* @__PURE__ */ i(
|
|
3081
|
-
h?.length ? /* @__PURE__ */ r(
|
|
3155
|
+
/* @__PURE__ */ i(Ki, { children: [
|
|
3156
|
+
h?.length ? /* @__PURE__ */ r(Xi, {
|
|
3082
3157
|
title: "Search",
|
|
3083
3158
|
icon: /* @__PURE__ */ r(me, {}),
|
|
3084
|
-
badge: /* @__PURE__ */ r(
|
|
3159
|
+
badge: /* @__PURE__ */ r(Tr, {
|
|
3085
3160
|
className: "border-0 bg-transparent",
|
|
3086
3161
|
children: C
|
|
3087
3162
|
}),
|
|
@@ -3091,19 +3166,19 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3091
3166
|
className: "flex flex-col gap-0.5",
|
|
3092
3167
|
children: s.map((e) => T(e))
|
|
3093
3168
|
}),
|
|
3094
|
-
c && /* @__PURE__ */ r(
|
|
3169
|
+
c && /* @__PURE__ */ r(Yi, {
|
|
3095
3170
|
title: c.title,
|
|
3096
3171
|
children: c.items.map((e) => T(e))
|
|
3097
3172
|
})
|
|
3098
3173
|
] }),
|
|
3099
|
-
/* @__PURE__ */ i(
|
|
3174
|
+
/* @__PURE__ */ i(Ji, { children: [
|
|
3100
3175
|
l && /* @__PURE__ */ r("div", {
|
|
3101
3176
|
className: Q,
|
|
3102
3177
|
children: l
|
|
3103
3178
|
}),
|
|
3104
3179
|
d && /* @__PURE__ */ i("div", {
|
|
3105
3180
|
className: "flex items-center gap-2.5 px-1",
|
|
3106
|
-
children: [/* @__PURE__ */ r(
|
|
3181
|
+
children: [/* @__PURE__ */ r(et, { children: /* @__PURE__ */ r(nt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
3107
3182
|
className: V("flex flex-col leading-tight", Q),
|
|
3108
3183
|
children: [/* @__PURE__ */ r("span", {
|
|
3109
3184
|
className: "text-[13px] font-semibold",
|
|
@@ -3114,15 +3189,15 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3114
3189
|
})]
|
|
3115
3190
|
})]
|
|
3116
3191
|
}),
|
|
3117
|
-
/* @__PURE__ */ r(
|
|
3118
|
-
u && /* @__PURE__ */ r(
|
|
3192
|
+
/* @__PURE__ */ r(Wi, {}),
|
|
3193
|
+
u && /* @__PURE__ */ r(qi, { children: u })
|
|
3119
3194
|
] })
|
|
3120
3195
|
] });
|
|
3121
3196
|
return /* @__PURE__ */ i("div", {
|
|
3122
3197
|
"data-slot": "app-shell",
|
|
3123
3198
|
className: V("flex h-dvh overflow-hidden bg-background", y),
|
|
3124
3199
|
children: [
|
|
3125
|
-
/* @__PURE__ */ r(
|
|
3200
|
+
/* @__PURE__ */ r(Hi, {
|
|
3126
3201
|
variant: "nav",
|
|
3127
3202
|
label: "Workspace",
|
|
3128
3203
|
className: "h-dvh max-md:hidden",
|
|
@@ -3135,10 +3210,10 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3135
3210
|
"data-slot": "app-top-bar",
|
|
3136
3211
|
className: V("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
3137
3212
|
children: [
|
|
3138
|
-
/* @__PURE__ */ r(
|
|
3213
|
+
/* @__PURE__ */ r(Qi, {
|
|
3139
3214
|
label: "Workspace",
|
|
3140
3215
|
className: "-ms-2 md:hidden",
|
|
3141
|
-
children: /* @__PURE__ */ r(
|
|
3216
|
+
children: /* @__PURE__ */ r(Hi, {
|
|
3142
3217
|
variant: "nav",
|
|
3143
3218
|
label: "Workspace",
|
|
3144
3219
|
collapsed: !1,
|
|
@@ -3155,7 +3230,7 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3155
3230
|
}),
|
|
3156
3231
|
/* @__PURE__ */ r("main", {
|
|
3157
3232
|
"data-slot": "app-shell-page",
|
|
3158
|
-
className:
|
|
3233
|
+
className: ca,
|
|
3159
3234
|
children: v
|
|
3160
3235
|
}),
|
|
3161
3236
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -3166,12 +3241,12 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3166
3241
|
})
|
|
3167
3242
|
]
|
|
3168
3243
|
}),
|
|
3169
|
-
h?.length ? /* @__PURE__ */ i(
|
|
3244
|
+
h?.length ? /* @__PURE__ */ i(Sn, {
|
|
3170
3245
|
open: b,
|
|
3171
3246
|
onOpenChange: x,
|
|
3172
|
-
children: [/* @__PURE__ */ r(
|
|
3247
|
+
children: [/* @__PURE__ */ r(Cn, { placeholder: g }), /* @__PURE__ */ i(wn, { children: [/* @__PURE__ */ r(Tn, { children: _ }), w.map((e) => /* @__PURE__ */ r(En, {
|
|
3173
3248
|
heading: e,
|
|
3174
|
-
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(
|
|
3249
|
+
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(Dn, {
|
|
3175
3250
|
onSelect: () => {
|
|
3176
3251
|
x(!1), e.onSelect();
|
|
3177
3252
|
},
|
|
@@ -3183,7 +3258,7 @@ function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3183
3258
|
});
|
|
3184
3259
|
}
|
|
3185
3260
|
// src/app/filter-bar.component.tsx
|
|
3186
|
-
function
|
|
3261
|
+
function pa({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
3187
3262
|
return /* @__PURE__ */ i("div", {
|
|
3188
3263
|
"data-slot": "filter-bar",
|
|
3189
3264
|
role: "search",
|
|
@@ -3191,7 +3266,7 @@ function ca({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3191
3266
|
children: [
|
|
3192
3267
|
/* @__PURE__ */ r("div", {
|
|
3193
3268
|
className: "max-w-80 flex-[1_1_220px]",
|
|
3194
|
-
children: /* @__PURE__ */ r(
|
|
3269
|
+
children: /* @__PURE__ */ r(bt, {
|
|
3195
3270
|
type: "search",
|
|
3196
3271
|
value: e,
|
|
3197
3272
|
onChange: (e) => t(e.target.value),
|
|
@@ -3208,7 +3283,7 @@ function ca({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3208
3283
|
]
|
|
3209
3284
|
});
|
|
3210
3285
|
}
|
|
3211
|
-
function
|
|
3286
|
+
function ma({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3212
3287
|
return /* @__PURE__ */ i(Y, {
|
|
3213
3288
|
variant: "outline",
|
|
3214
3289
|
size: "sm",
|
|
@@ -3227,7 +3302,7 @@ function la({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
3227
3302
|
});
|
|
3228
3303
|
}
|
|
3229
3304
|
// src/app/form-section.component.tsx
|
|
3230
|
-
function
|
|
3305
|
+
function ha({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
3231
3306
|
return /* @__PURE__ */ i("section", {
|
|
3232
3307
|
"data-slot": "form-section",
|
|
3233
3308
|
className: V("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
@@ -3253,7 +3328,7 @@ function ua({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
3253
3328
|
});
|
|
3254
3329
|
}
|
|
3255
3330
|
// src/app/page-header.component.tsx
|
|
3256
|
-
function
|
|
3331
|
+
function ga({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
3257
3332
|
return /* @__PURE__ */ i("div", {
|
|
3258
3333
|
"data-slot": "page-header",
|
|
3259
3334
|
className: V("flex flex-col gap-4", o),
|
|
@@ -3276,7 +3351,7 @@ function da({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
3276
3351
|
});
|
|
3277
3352
|
}
|
|
3278
3353
|
// src/app/records-table.component.tsx
|
|
3279
|
-
function
|
|
3354
|
+
function _a({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
3280
3355
|
let u = a !== void 0, d = e.map((e) => n(e)), f = d.filter((e) => a?.has(e)).length, p = f === 0 ? !1 : f === d.length || "indeterminate";
|
|
3281
3356
|
function m(e, t) {
|
|
3282
3357
|
let n = new Set(a);
|
|
@@ -3287,26 +3362,26 @@ function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3287
3362
|
for (let n of d) e ? t.add(n) : t.delete(n);
|
|
3288
3363
|
o?.(t);
|
|
3289
3364
|
}
|
|
3290
|
-
return /* @__PURE__ */ i(
|
|
3365
|
+
return /* @__PURE__ */ i(Mr, {
|
|
3291
3366
|
"data-slot": "records-table",
|
|
3292
3367
|
"aria-label": c,
|
|
3293
3368
|
className: V("min-w-[760px]", l),
|
|
3294
|
-
children: [/* @__PURE__ */ r(
|
|
3369
|
+
children: [/* @__PURE__ */ r(Nr, { children: /* @__PURE__ */ i(Fr, {
|
|
3295
3370
|
className: "hover:bg-transparent",
|
|
3296
3371
|
children: [
|
|
3297
|
-
u && /* @__PURE__ */ r(
|
|
3372
|
+
u && /* @__PURE__ */ r(Ir, {
|
|
3298
3373
|
className: "w-9",
|
|
3299
|
-
children: /* @__PURE__ */ r(
|
|
3374
|
+
children: /* @__PURE__ */ r(at, {
|
|
3300
3375
|
"aria-label": "Select all rows",
|
|
3301
3376
|
checked: p,
|
|
3302
3377
|
onCheckedChange: (e) => h(e === !0)
|
|
3303
3378
|
})
|
|
3304
3379
|
}),
|
|
3305
|
-
t.map((e) => /* @__PURE__ */ r(
|
|
3380
|
+
t.map((e) => /* @__PURE__ */ r(Ir, {
|
|
3306
3381
|
className: V(e.align === "end" && "text-end", e.className),
|
|
3307
3382
|
children: e.header
|
|
3308
3383
|
}, e.key)),
|
|
3309
|
-
s && /* @__PURE__ */ r(
|
|
3384
|
+
s && /* @__PURE__ */ r(Ir, {
|
|
3310
3385
|
className: "w-11",
|
|
3311
3386
|
children: /* @__PURE__ */ r("span", {
|
|
3312
3387
|
className: "sr-only",
|
|
@@ -3314,21 +3389,21 @@ function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3314
3389
|
})
|
|
3315
3390
|
})
|
|
3316
3391
|
]
|
|
3317
|
-
}) }), /* @__PURE__ */ r(
|
|
3392
|
+
}) }), /* @__PURE__ */ r(Pr, { children: e.map((e) => {
|
|
3318
3393
|
let o = n(e), c = a?.has(o) ?? !1;
|
|
3319
|
-
return /* @__PURE__ */ i(
|
|
3394
|
+
return /* @__PURE__ */ i(Fr, {
|
|
3320
3395
|
"data-state": c ? "selected" : void 0,
|
|
3321
3396
|
children: [
|
|
3322
|
-
u && /* @__PURE__ */ r(
|
|
3397
|
+
u && /* @__PURE__ */ r(Lr, { children: /* @__PURE__ */ r(at, {
|
|
3323
3398
|
"aria-label": `Select ${o}`,
|
|
3324
3399
|
checked: c,
|
|
3325
3400
|
onCheckedChange: (e) => m(o, e === !0)
|
|
3326
3401
|
}) }),
|
|
3327
|
-
t.map((t) => /* @__PURE__ */ r(
|
|
3402
|
+
t.map((t) => /* @__PURE__ */ r(Lr, {
|
|
3328
3403
|
className: V(t.align === "end" && "text-end tabular-nums", t.className),
|
|
3329
3404
|
children: t.cell(e)
|
|
3330
3405
|
}, t.key)),
|
|
3331
|
-
s && /* @__PURE__ */ r(
|
|
3406
|
+
s && /* @__PURE__ */ r(Lr, { children: /* @__PURE__ */ i(In, { children: [/* @__PURE__ */ r(Ln, {
|
|
3332
3407
|
asChild: !0,
|
|
3333
3408
|
children: /* @__PURE__ */ r(Y, {
|
|
3334
3409
|
variant: "ghost",
|
|
@@ -3336,7 +3411,7 @@ function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3336
3411
|
"aria-label": `Actions for ${o}`,
|
|
3337
3412
|
children: /* @__PURE__ */ r(se, {})
|
|
3338
3413
|
})
|
|
3339
|
-
}), /* @__PURE__ */ r(
|
|
3414
|
+
}), /* @__PURE__ */ r(Bn, {
|
|
3340
3415
|
align: "end",
|
|
3341
3416
|
children: s(e)
|
|
3342
3417
|
})] }) })
|
|
@@ -3346,7 +3421,7 @@ function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3346
3421
|
});
|
|
3347
3422
|
}
|
|
3348
3423
|
// src/app/split-view.component.tsx
|
|
3349
|
-
function
|
|
3424
|
+
function va({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o = 280, listDefaultSize: s = 352, detailMinSize: c = 360, onListSizeChange: l, className: u }) {
|
|
3350
3425
|
let d = L(null), f = L(void 0), p = L(0);
|
|
3351
3426
|
I(() => () => cancelAnimationFrame(p.current), []);
|
|
3352
3427
|
let m = F((e, t) => {
|
|
@@ -3360,11 +3435,11 @@ function pa({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3360
3435
|
return /* @__PURE__ */ r("div", {
|
|
3361
3436
|
"data-slot": "split-view",
|
|
3362
3437
|
className: V("flex min-h-0 min-w-0 flex-1", u),
|
|
3363
|
-
children: /* @__PURE__ */ i(
|
|
3438
|
+
children: /* @__PURE__ */ i(Er, {
|
|
3364
3439
|
orientation: "horizontal",
|
|
3365
3440
|
onLayoutChanged: m,
|
|
3366
3441
|
children: [
|
|
3367
|
-
/* @__PURE__ */ r(
|
|
3442
|
+
/* @__PURE__ */ r(Dr, {
|
|
3368
3443
|
id: "list",
|
|
3369
3444
|
panelRef: d,
|
|
3370
3445
|
minSize: o,
|
|
@@ -3377,8 +3452,8 @@ function pa({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3377
3452
|
children: e
|
|
3378
3453
|
})
|
|
3379
3454
|
}),
|
|
3380
|
-
/* @__PURE__ */ r(
|
|
3381
|
-
/* @__PURE__ */ r(
|
|
3455
|
+
/* @__PURE__ */ r(Or, {}),
|
|
3456
|
+
/* @__PURE__ */ r(Dr, {
|
|
3382
3457
|
id: "detail",
|
|
3383
3458
|
minSize: c,
|
|
3384
3459
|
className: "p-6 [scrollbar-gutter:stable]",
|
|
@@ -3394,7 +3469,7 @@ function pa({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3394
3469
|
});
|
|
3395
3470
|
}
|
|
3396
3471
|
// src/app/sparkline.algorithm.ts
|
|
3397
|
-
function
|
|
3472
|
+
function ya(e, t, n, r = 2) {
|
|
3398
3473
|
if (e.length < 2) return "";
|
|
3399
3474
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3400
3475
|
return e.map((e, t) => {
|
|
@@ -3403,14 +3478,14 @@ function ma(e, t, n, r = 2) {
|
|
|
3403
3478
|
}).join(" ");
|
|
3404
3479
|
}
|
|
3405
3480
|
// src/app/stat-card.component.tsx
|
|
3406
|
-
var
|
|
3481
|
+
var ba = {
|
|
3407
3482
|
positive: "text-success",
|
|
3408
3483
|
negative: "text-destructive",
|
|
3409
3484
|
neutral: "text-muted-foreground"
|
|
3410
3485
|
};
|
|
3411
|
-
function
|
|
3412
|
-
let c = o ?
|
|
3413
|
-
return /* @__PURE__ */ i(
|
|
3486
|
+
function xa({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3487
|
+
let c = o ? ya(o, 100, 32) : "";
|
|
3488
|
+
return /* @__PURE__ */ i(yr, {
|
|
3414
3489
|
"data-slot": "stat-card",
|
|
3415
3490
|
className: V("gap-1.5 p-4", s),
|
|
3416
3491
|
children: [
|
|
@@ -3441,14 +3516,14 @@ function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3441
3516
|
})]
|
|
3442
3517
|
}),
|
|
3443
3518
|
n && /* @__PURE__ */ r("span", {
|
|
3444
|
-
className: V("text-xs",
|
|
3519
|
+
className: V("text-xs", ba[a]),
|
|
3445
3520
|
children: n
|
|
3446
3521
|
})
|
|
3447
3522
|
]
|
|
3448
3523
|
});
|
|
3449
3524
|
}
|
|
3450
3525
|
// src/status/run-status.contract.ts
|
|
3451
|
-
var
|
|
3526
|
+
var Sa = [
|
|
3452
3527
|
"queued",
|
|
3453
3528
|
"waiting",
|
|
3454
3529
|
"running",
|
|
@@ -3456,7 +3531,7 @@ var _a = [
|
|
|
3456
3531
|
"no-records",
|
|
3457
3532
|
"failed",
|
|
3458
3533
|
"off"
|
|
3459
|
-
],
|
|
3534
|
+
], Ca = {
|
|
3460
3535
|
queued: {
|
|
3461
3536
|
label: "Queued",
|
|
3462
3537
|
variant: "secondary",
|
|
@@ -3493,12 +3568,12 @@ var _a = [
|
|
|
3493
3568
|
live: !1
|
|
3494
3569
|
}
|
|
3495
3570
|
};
|
|
3496
|
-
function
|
|
3497
|
-
return
|
|
3571
|
+
function wa(e) {
|
|
3572
|
+
return Ca[e];
|
|
3498
3573
|
}
|
|
3499
3574
|
// src/status/status-badge.component.tsx
|
|
3500
|
-
function
|
|
3501
|
-
let { label: n, variant: i, live: a } =
|
|
3575
|
+
function Ta({ status: e, ...t }) {
|
|
3576
|
+
let { label: n, variant: i, live: a } = wa(e);
|
|
3502
3577
|
return /* @__PURE__ */ r(q, {
|
|
3503
3578
|
variant: i,
|
|
3504
3579
|
dot: a,
|
|
@@ -3508,7 +3583,7 @@ function ba({ status: e, ...t }) {
|
|
|
3508
3583
|
});
|
|
3509
3584
|
}
|
|
3510
3585
|
// src/desktop/flow-node.component.tsx
|
|
3511
|
-
function
|
|
3586
|
+
function Ea({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3512
3587
|
return /* @__PURE__ */ i("button", {
|
|
3513
3588
|
type: "button",
|
|
3514
3589
|
"data-slot": "flow-node",
|
|
@@ -3526,7 +3601,7 @@ function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3526
3601
|
className: "font-semibold",
|
|
3527
3602
|
children: e
|
|
3528
3603
|
}),
|
|
3529
|
-
/* @__PURE__ */ r(
|
|
3604
|
+
/* @__PURE__ */ r(Ta, {
|
|
3530
3605
|
status: n,
|
|
3531
3606
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3532
3607
|
})
|
|
@@ -3538,7 +3613,7 @@ function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3538
3613
|
});
|
|
3539
3614
|
}
|
|
3540
3615
|
// src/desktop/inspector.component.tsx
|
|
3541
|
-
function
|
|
3616
|
+
function Da({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3542
3617
|
return /* @__PURE__ */ i("aside", {
|
|
3543
3618
|
"data-slot": "inspector",
|
|
3544
3619
|
"aria-label": "Inspector",
|
|
@@ -3561,18 +3636,18 @@ function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3561
3636
|
})
|
|
3562
3637
|
]
|
|
3563
3638
|
}),
|
|
3564
|
-
/* @__PURE__ */ i(
|
|
3639
|
+
/* @__PURE__ */ i(ui, {
|
|
3565
3640
|
defaultValue: a[0]?.value,
|
|
3566
3641
|
className: "min-h-0 flex-1 gap-0",
|
|
3567
|
-
children: [/* @__PURE__ */ r(
|
|
3642
|
+
children: [/* @__PURE__ */ r(pi, {
|
|
3568
3643
|
variant: "underline",
|
|
3569
3644
|
className: "gap-4 px-3",
|
|
3570
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3645
|
+
children: a.map((e) => /* @__PURE__ */ r(gi, {
|
|
3571
3646
|
value: e.value,
|
|
3572
3647
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3573
3648
|
children: e.label
|
|
3574
3649
|
}, e.value))
|
|
3575
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3650
|
+
}), a.map((e) => /* @__PURE__ */ r(xi, {
|
|
3576
3651
|
value: e.value,
|
|
3577
3652
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3578
3653
|
children: e.content
|
|
@@ -3586,7 +3661,7 @@ function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3586
3661
|
});
|
|
3587
3662
|
}
|
|
3588
3663
|
// src/desktop/status-bar.component.tsx
|
|
3589
|
-
function
|
|
3664
|
+
function Oa({ start: e, end: t, className: n }) {
|
|
3590
3665
|
return /* @__PURE__ */ i("div", {
|
|
3591
3666
|
"data-slot": "status-bar",
|
|
3592
3667
|
role: "status",
|
|
@@ -3598,7 +3673,7 @@ function Ca({ start: e, end: t, className: n }) {
|
|
|
3598
3673
|
});
|
|
3599
3674
|
}
|
|
3600
3675
|
// src/desktop/timeline.algorithm.ts
|
|
3601
|
-
function
|
|
3676
|
+
function ka(e, t, n) {
|
|
3602
3677
|
if (n <= 0) return {
|
|
3603
3678
|
left: 0,
|
|
3604
3679
|
width: 0
|
|
@@ -3609,7 +3684,7 @@ function wa(e, t, n) {
|
|
|
3609
3684
|
width: Math.max(0, r(t) - i)
|
|
3610
3685
|
};
|
|
3611
3686
|
}
|
|
3612
|
-
function
|
|
3687
|
+
function Aa(e, t) {
|
|
3613
3688
|
let n = Math.max(2, t);
|
|
3614
3689
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3615
3690
|
}
|
|
@@ -3617,17 +3692,17 @@ function Ta(e, t) {
|
|
|
3617
3692
|
function $(e) {
|
|
3618
3693
|
return String(e).padStart(2, "0");
|
|
3619
3694
|
}
|
|
3620
|
-
function
|
|
3695
|
+
function ja(e, t = !1) {
|
|
3621
3696
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3622
3697
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3623
3698
|
}
|
|
3624
|
-
function
|
|
3699
|
+
function Ma(e, t) {
|
|
3625
3700
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3626
3701
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3627
3702
|
}
|
|
3628
3703
|
// src/desktop/timeline-lanes.component.tsx
|
|
3629
|
-
function
|
|
3630
|
-
let c = (e) => o ?
|
|
3704
|
+
function Na({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3705
|
+
let c = (e) => o ? Ma(o, e) : ja(e), l = n === void 0 ? void 0 : ka(0, n, e).width;
|
|
3631
3706
|
return /* @__PURE__ */ i("div", {
|
|
3632
3707
|
"data-slot": "timeline-lanes",
|
|
3633
3708
|
role: "group",
|
|
@@ -3637,7 +3712,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3637
3712
|
/* @__PURE__ */ r("div", {
|
|
3638
3713
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3639
3714
|
"aria-hidden": "true",
|
|
3640
|
-
children:
|
|
3715
|
+
children: Aa(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3641
3716
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3642
3717
|
children: c(e)
|
|
3643
3718
|
}, e))
|
|
@@ -3653,8 +3728,8 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3653
3728
|
}), /* @__PURE__ */ r("div", {
|
|
3654
3729
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3655
3730
|
children: t.segments.map((n) => {
|
|
3656
|
-
let a =
|
|
3657
|
-
return /* @__PURE__ */ i(
|
|
3731
|
+
let a = ka(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3732
|
+
return /* @__PURE__ */ i(mn, { children: [/* @__PURE__ */ r(hn, {
|
|
3658
3733
|
asChild: !0,
|
|
3659
3734
|
children: /* @__PURE__ */ r("button", {
|
|
3660
3735
|
type: "button",
|
|
@@ -3665,7 +3740,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3665
3740
|
width: `${a.width}%`
|
|
3666
3741
|
}
|
|
3667
3742
|
})
|
|
3668
|
-
}), /* @__PURE__ */ r(
|
|
3743
|
+
}), /* @__PURE__ */ r(gn, { children: o })] }, `${n.start}-${n.end}`);
|
|
3669
3744
|
})
|
|
3670
3745
|
})]
|
|
3671
3746
|
}, t.name)),
|
|
@@ -3678,7 +3753,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3678
3753
|
});
|
|
3679
3754
|
}
|
|
3680
3755
|
// src/desktop/title-bar.component.tsx
|
|
3681
|
-
function
|
|
3756
|
+
function Pa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3682
3757
|
let l = [
|
|
3683
3758
|
{
|
|
3684
3759
|
label: "Minimise",
|
|
@@ -3706,7 +3781,7 @@ function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3706
3781
|
alt: "",
|
|
3707
3782
|
className: "size-[18px]"
|
|
3708
3783
|
}),
|
|
3709
|
-
t && /* @__PURE__ */ r(
|
|
3784
|
+
t && /* @__PURE__ */ r(qr, { children: t }),
|
|
3710
3785
|
/* @__PURE__ */ r("span", {
|
|
3711
3786
|
"data-tauri-drag-region": "",
|
|
3712
3787
|
className: "flex-1 truncate text-center text-[12.5px] text-muted-foreground",
|
|
@@ -3726,7 +3801,7 @@ function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3726
3801
|
});
|
|
3727
3802
|
}
|
|
3728
3803
|
// src/mobile/bottom-nav.component.tsx
|
|
3729
|
-
function
|
|
3804
|
+
function Fa({ items: e, className: t }) {
|
|
3730
3805
|
return /* @__PURE__ */ r("nav", {
|
|
3731
3806
|
"data-slot": "bottom-nav",
|
|
3732
3807
|
"aria-label": "Tabs",
|
|
@@ -3748,7 +3823,7 @@ function Aa({ items: e, className: t }) {
|
|
|
3748
3823
|
});
|
|
3749
3824
|
}
|
|
3750
3825
|
// src/mobile/capture-frame.component.tsx
|
|
3751
|
-
function
|
|
3826
|
+
function Ia({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3752
3827
|
let l = a.filter((e) => !e.passed).length;
|
|
3753
3828
|
return /* @__PURE__ */ i("div", {
|
|
3754
3829
|
"data-slot": "capture-frame",
|
|
@@ -3831,7 +3906,7 @@ function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3831
3906
|
});
|
|
3832
3907
|
}
|
|
3833
3908
|
// src/mobile/record-button.component.tsx
|
|
3834
|
-
function
|
|
3909
|
+
function La({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3835
3910
|
let u = {
|
|
3836
3911
|
idle: {
|
|
3837
3912
|
label: "Start recording",
|
|
@@ -3875,7 +3950,7 @@ function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3875
3950
|
/* @__PURE__ */ r("span", {
|
|
3876
3951
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3877
3952
|
"aria-label": "Recorded time",
|
|
3878
|
-
children:
|
|
3953
|
+
children: ja(t, !0)
|
|
3879
3954
|
})
|
|
3880
3955
|
]
|
|
3881
3956
|
}),
|
|
@@ -3906,8 +3981,8 @@ function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3906
3981
|
});
|
|
3907
3982
|
}
|
|
3908
3983
|
// src/web/cta-band.component.tsx
|
|
3909
|
-
function
|
|
3910
|
-
let c =
|
|
3984
|
+
function Ra({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3985
|
+
let c = we();
|
|
3911
3986
|
function l(e) {
|
|
3912
3987
|
e.preventDefault();
|
|
3913
3988
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3938,7 +4013,7 @@ function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3938
4013
|
className: "sr-only",
|
|
3939
4014
|
children: a
|
|
3940
4015
|
}),
|
|
3941
|
-
/* @__PURE__ */ r(
|
|
4016
|
+
/* @__PURE__ */ r(bt, {
|
|
3942
4017
|
id: c,
|
|
3943
4018
|
name: "email",
|
|
3944
4019
|
type: "email",
|
|
@@ -3959,7 +4034,7 @@ function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3959
4034
|
});
|
|
3960
4035
|
}
|
|
3961
4036
|
// src/web/faq.component.tsx
|
|
3962
|
-
function
|
|
4037
|
+
function za({ title: e, items: t, className: n }) {
|
|
3963
4038
|
return /* @__PURE__ */ r("section", {
|
|
3964
4039
|
"data-slot": "faq",
|
|
3965
4040
|
className: V("py-22", n),
|
|
@@ -3968,12 +4043,12 @@ function Pa({ title: e, items: t, className: n }) {
|
|
|
3968
4043
|
children: [/* @__PURE__ */ r("h2", {
|
|
3969
4044
|
className: "m-0 type-h2 text-4xl",
|
|
3970
4045
|
children: e
|
|
3971
|
-
}), /* @__PURE__ */ r(
|
|
4046
|
+
}), /* @__PURE__ */ r(hr, {
|
|
3972
4047
|
type: "single",
|
|
3973
4048
|
collapsible: !0,
|
|
3974
|
-
children: t.map((e) => /* @__PURE__ */ i(
|
|
4049
|
+
children: t.map((e) => /* @__PURE__ */ i(gr, {
|
|
3975
4050
|
value: e.question,
|
|
3976
|
-
children: [/* @__PURE__ */ r(
|
|
4051
|
+
children: [/* @__PURE__ */ r(_r, { children: e.question }), /* @__PURE__ */ r(vr, {
|
|
3977
4052
|
className: "text-[15px]",
|
|
3978
4053
|
children: e.answer
|
|
3979
4054
|
})]
|
|
@@ -3983,7 +4058,7 @@ function Pa({ title: e, items: t, className: n }) {
|
|
|
3983
4058
|
});
|
|
3984
4059
|
}
|
|
3985
4060
|
// src/web/feature-grid.component.tsx
|
|
3986
|
-
function
|
|
4061
|
+
function Ba({ title: e, lead: t, features: n, className: a }) {
|
|
3987
4062
|
return /* @__PURE__ */ r("section", {
|
|
3988
4063
|
"data-slot": "feature-grid",
|
|
3989
4064
|
className: V("border-y bg-canvas py-22", a),
|
|
@@ -4023,7 +4098,7 @@ function Fa({ title: e, lead: t, features: n, className: a }) {
|
|
|
4023
4098
|
});
|
|
4024
4099
|
}
|
|
4025
4100
|
// src/web/hero.component.tsx
|
|
4026
|
-
function
|
|
4101
|
+
function Va({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
4027
4102
|
return /* @__PURE__ */ r("section", {
|
|
4028
4103
|
"data-slot": "hero",
|
|
4029
4104
|
className: V("pt-22 pb-14", o),
|
|
@@ -4052,7 +4127,7 @@ function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
4052
4127
|
});
|
|
4053
4128
|
}
|
|
4054
4129
|
// src/web/how-it-works.component.tsx
|
|
4055
|
-
function
|
|
4130
|
+
function Ha({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
4056
4131
|
return /* @__PURE__ */ r("section", {
|
|
4057
4132
|
"data-slot": "how-it-works",
|
|
4058
4133
|
className: V("py-22", o),
|
|
@@ -4095,12 +4170,12 @@ function La({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
4095
4170
|
});
|
|
4096
4171
|
}
|
|
4097
4172
|
// src/web/mobile-menu.component.tsx
|
|
4098
|
-
var
|
|
4099
|
-
function
|
|
4173
|
+
var Ua = 400;
|
|
4174
|
+
function Wa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
4100
4175
|
let [o, s] = R(!1), [c, l] = R(), [u, f] = R(!1), p = L(null);
|
|
4101
4176
|
I(() => {
|
|
4102
4177
|
if (o) return;
|
|
4103
|
-
let e = setTimeout(() => f(!1),
|
|
4178
|
+
let e = setTimeout(() => f(!1), Ua);
|
|
4104
4179
|
return () => clearTimeout(e);
|
|
4105
4180
|
}, [o]), I(() => {
|
|
4106
4181
|
if (!o) return;
|
|
@@ -4134,7 +4209,7 @@ function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4134
4209
|
size: "icon",
|
|
4135
4210
|
"aria-label": "Open menu",
|
|
4136
4211
|
className: a,
|
|
4137
|
-
children: /* @__PURE__ */ r(
|
|
4212
|
+
children: /* @__PURE__ */ r(Kr, { className: u ? "invisible" : void 0 })
|
|
4138
4213
|
})
|
|
4139
4214
|
}), /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, {
|
|
4140
4215
|
"data-slot": "mobile-menu-backdrop",
|
|
@@ -4188,7 +4263,7 @@ function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4188
4263
|
right: 24,
|
|
4189
4264
|
top: 12
|
|
4190
4265
|
},
|
|
4191
|
-
children: /* @__PURE__ */ r(
|
|
4266
|
+
children: /* @__PURE__ */ r(Kr, { open: o })
|
|
4192
4267
|
})
|
|
4193
4268
|
})
|
|
4194
4269
|
]
|
|
@@ -4196,7 +4271,7 @@ function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4196
4271
|
});
|
|
4197
4272
|
}
|
|
4198
4273
|
// src/web/pricing-table.component.tsx
|
|
4199
|
-
function
|
|
4274
|
+
function Ga({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4200
4275
|
let [l, u] = R(a);
|
|
4201
4276
|
return /* @__PURE__ */ r("section", {
|
|
4202
4277
|
"data-slot": "pricing-table",
|
|
@@ -4215,15 +4290,15 @@ function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4215
4290
|
className: "m-0 type-lead",
|
|
4216
4291
|
children: t
|
|
4217
4292
|
})]
|
|
4218
|
-
}), /* @__PURE__ */ i(
|
|
4293
|
+
}), /* @__PURE__ */ i(ft, {
|
|
4219
4294
|
type: "single",
|
|
4220
4295
|
value: l,
|
|
4221
4296
|
onValueChange: (e) => e && u(e),
|
|
4222
4297
|
"aria-label": "Billing",
|
|
4223
|
-
children: [/* @__PURE__ */ r(
|
|
4298
|
+
children: [/* @__PURE__ */ r(pt, {
|
|
4224
4299
|
value: "monthly",
|
|
4225
4300
|
children: "Monthly"
|
|
4226
|
-
}), /* @__PURE__ */ r(
|
|
4301
|
+
}), /* @__PURE__ */ r(pt, {
|
|
4227
4302
|
value: "yearly",
|
|
4228
4303
|
children: "Yearly"
|
|
4229
4304
|
})]
|
|
@@ -4283,7 +4358,7 @@ function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4283
4358
|
});
|
|
4284
4359
|
}
|
|
4285
4360
|
// src/web/product-card.component.tsx
|
|
4286
|
-
function
|
|
4361
|
+
function Ka({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4287
4362
|
let s = H[e];
|
|
4288
4363
|
return /* @__PURE__ */ i("a", {
|
|
4289
4364
|
"data-slot": "product-card",
|
|
@@ -4321,7 +4396,7 @@ function Va({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4321
4396
|
});
|
|
4322
4397
|
}
|
|
4323
4398
|
// src/web/site-footer.component.tsx
|
|
4324
|
-
function
|
|
4399
|
+
function qa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
4325
4400
|
return /* @__PURE__ */ i("footer", {
|
|
4326
4401
|
"data-slot": "site-footer",
|
|
4327
4402
|
className: V("border-t pt-14 pb-10", a),
|
|
@@ -4362,7 +4437,7 @@ function Ha({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4362
4437
|
});
|
|
4363
4438
|
}
|
|
4364
4439
|
// src/web/site-header.component.tsx
|
|
4365
|
-
function
|
|
4440
|
+
function Ja({ nav: e, actions: t, brand: a, className: o }) {
|
|
4366
4441
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4367
4442
|
href: "/",
|
|
4368
4443
|
className: "flex items-center gap-2 no-underline",
|
|
@@ -4383,12 +4458,12 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4383
4458
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
4384
4459
|
children: [
|
|
4385
4460
|
s,
|
|
4386
|
-
/* @__PURE__ */ r(
|
|
4461
|
+
/* @__PURE__ */ r(ei, {
|
|
4387
4462
|
className: "hidden md:flex",
|
|
4388
4463
|
"aria-label": "Main",
|
|
4389
|
-
children: /* @__PURE__ */ r(
|
|
4464
|
+
children: /* @__PURE__ */ r(ti, { children: e.map((e) => /* @__PURE__ */ r(ni, { children: e.links ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ii, { children: e.label }), /* @__PURE__ */ r(ai, { children: /* @__PURE__ */ r("ul", {
|
|
4390
4465
|
className: "m-0 grid w-[420px] list-none gap-1 p-0",
|
|
4391
|
-
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(
|
|
4466
|
+
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(oi, {
|
|
4392
4467
|
href: e.href,
|
|
4393
4468
|
className: "flex h-auto flex-col items-start gap-0.5 py-2",
|
|
4394
4469
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -4399,7 +4474,7 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4399
4474
|
children: e.description
|
|
4400
4475
|
})]
|
|
4401
4476
|
}) }, e.href))
|
|
4402
|
-
}) })] }) : /* @__PURE__ */ r(
|
|
4477
|
+
}) })] }) : /* @__PURE__ */ r(oi, {
|
|
4403
4478
|
href: e.href,
|
|
4404
4479
|
children: e.label
|
|
4405
4480
|
}) }, e.label)) })
|
|
@@ -4408,7 +4483,7 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4408
4483
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4409
4484
|
children: t
|
|
4410
4485
|
}),
|
|
4411
|
-
/* @__PURE__ */ r(
|
|
4486
|
+
/* @__PURE__ */ r(Wa, {
|
|
4412
4487
|
className: "ms-auto md:hidden",
|
|
4413
4488
|
links: e.flatMap((e) => e.links ?? [{
|
|
4414
4489
|
label: e.label,
|
|
@@ -4420,6 +4495,6 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4420
4495
|
})
|
|
4421
4496
|
});
|
|
4422
4497
|
}
|
|
4423
|
-
export {
|
|
4498
|
+
export { hr as Accordion, vr as AccordionContent, gr as AccordionItem, _r as AccordionTrigger, ar as Alert, Nt as AlertDialog, Rt as AlertDialogAction, zt as AlertDialogCancel, Ft as AlertDialogContent, Lt as AlertDialogDescription, It as AlertDialogTitle, Pt as AlertDialogTrigger, fa as AppShell, da as AppShellBody, la as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, q as Badge, Fa as BottomNav, zr as Breadcrumb, Vr as BreadcrumbItem, Hr as BreadcrumbLink, Br as BreadcrumbList, Ur as BreadcrumbPage, Wr as BreadcrumbSeparator, Ai as BulkActionBar, Y as Button, Ze as COLOUR_SCHEMES, Ia as CaptureFrame, yr as Card, Cr as CardContent, Sr as CardDescription, wr as CardFooter, br as CardHeader, xr as CardTitle, at as Checkbox, tr as Combobox, xn as Command, Sn as CommandDialog, Tn as CommandEmpty, En as CommandGroup, Cn as CommandInput, Dn as CommandItem, wn as CommandList, On as CommandSeparator, kn as CommandShortcut, An as ContextMenu, Mn as ContextMenuContent, Nn as ContextMenuItem, Pn as ContextMenuSeparator, Fn as ContextMenuShortcut, jn as ContextMenuTrigger, Ra as CtaBand, Xe as DENSITIES, Bt as Dialog, Ht as DialogClose, Ut as DialogContent, qt as DialogDescription, Gt as DialogFooter, Wt as DialogHeader, Kt as DialogTitle, Vt as DialogTrigger, Jt as Drawer, Xt as DrawerClose, Zt as DrawerContent, $t as DrawerDescription, Qt as DrawerTitle, Yt as DrawerTrigger, In as DropdownMenu, Bn as DropdownMenuContent, Rn as DropdownMenuGroup, Vn as DropdownMenuItem, Un as DropdownMenuLabel, zn as DropdownMenuRadioGroup, Hn as DropdownMenuRadioItem, Wn as DropdownMenuSeparator, Gn as DropdownMenuShortcut, Ln as DropdownMenuTrigger, or as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, za as Faq, Ba as FeatureGrid, yt as Field, pr as FileDropOverlay, pa as FilterBar, ma as FilterChip, Ea as FlowNode, ha as FormSection, Je as HUES, G as HUE_FILL, Va as Hero, Ha as HowItWorks, bt as Input, Da as Inspector, Tr as Kbd, Ne as LABEL_COLORS, K as LOGO_RULE, vt as Label, Kr as MenuIcon, qr as Menubar, Xr as MenubarContent, Zr as MenubarItem, Jr as MenubarMenu, $r as MenubarSeparator, Qr as MenubarShortcut, Yr as MenubarTrigger, Wa as MobileMenu, ei as NavigationMenu, ai as NavigationMenuContent, ni as NavigationMenuItem, oi as NavigationMenuLink, ti as NavigationMenuList, ii as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, H as PRODUCT_CATALOGUE, We as PRODUCT_HUES, ga as PageHeader, si as Pagination, tn as Popover, rn as PopoverAnchor, an as PopoverContent, nn as PopoverTrigger, en as Portal, Ti as Presence, Di as PresenceGroup, Ga as PricingTable, Ka as ProductCard, U as ProductLogo, $i as ProductSwitcher, sr as Progress, Sa as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, La as RecordButton, _a as RecordsTable, Or as ResizableHandle, Dr as ResizablePanel, Er as ResizablePanelGroup, kr as ScrollArea, Ar as ScrollBar, xt as Select, ji as SelectAllCheckbox, Tt as SelectContent, St as SelectGroup, Dt as SelectItem, Et as SelectLabel, Ot as SelectSeparator, wt as SelectTrigger, Ct as SelectValue, Fi as SelectableList, Ii as SelectableRow, Mi as SelectionHeader, jr as Separator, on as Sheet, cn as SheetClose, fn as SheetContent, un as SheetDescription, ln as SheetTitle, sn as SheetTrigger, Hi as Sidebar, ea as SidebarBrand, Wi as SidebarCollapseButton, Ki as SidebarContent, Ji as SidebarFooter, Yi as SidebarGroup, Gi as SidebarHeader, Xi as SidebarItem, qi as SidebarNote, Qi as SidebarSheet, Ui as SidebarTooltip, qa as SiteFooter, Ja as SiteHeader, cr as Skeleton, ct as Slider, lr as Spinner, va as SplitView, xa as StatCard, Ta as StatusBadge, Oa as StatusBar, Ci as Stepper, lt as Switch, Kn as TAG_DELIMITERS, Mr as Table, Pr as TableBody, Rr as TableCaption, Lr as TableCell, Ir as TableHead, Nr as TableHeader, Fr as TableRow, ui as Tabs, xi as TabsContent, pi as TabsList, gi as TabsTrigger, Yn as Tag, Qn as TagsInput, kt as Textarea, $e as ThemeRoot, Na as TimelineLanes, Pa as TitleBar, ur as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, mn as Tooltip, gn as TooltipContent, pn as TooltipProvider, hn as TooltipTrigger, dr as acceptsFile, Jn as addTags, Ie as apcaContrast, rt as badgeVariants, J as buttonVariants, V as cn, na as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, jt as floatingMotionClassName, Ma as formatClockTime, ja as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, fr as mayAcceptDrag, X as menuItemClassName, yn as menuSeparatorClassName, vn as menuShortcutClassName, Bi as navRowClassName, At as overlayClassName, wi as presenceClassName, Le as readableLabel, wa as runStatusDisplay, Mt as sheetMotionClassName, zi as sidebarNoteClassName, ya as sparklinePath, qn as splitTags, Xn as tagsFieldClassName, Zn as tagsFieldInputClassName, Qe as themeAttributes, ka as timelineBox, Aa as timelineTicks, ta as useCommandShortcut, sa as useCommandShortcutLabel, gt as useFieldControl, _t as useFieldLabelId, $n as useOptionSearch, mr as usePageDrop, Li as useSelection, Z as useSidebar };
|
|
4424
4499
|
|
|
4425
4500
|
//# sourceMappingURL=index.js.map
|