@talogic/react 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/app-shell.component.d.ts +6 -2
- package/index.js +690 -709
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +1 -15
- package/ui/navigation/tabs.component.d.ts +5 -7
package/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { clsx as e } from "clsx";
|
|
2
2
|
import { twMerge as t } from "tailwind-merge";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
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
|
|
5
|
-
import { cva as
|
|
6
|
-
import { Ban as
|
|
7
|
-
import { cloneElement as
|
|
8
|
-
import { Drawer as
|
|
9
|
-
import { Command as
|
|
10
|
-
import { Toaster as
|
|
11
|
-
import { Group as
|
|
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
|
+
import { cva as k } from "class-variance-authority";
|
|
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 { cloneElement as ve, createContext as ye, isValidElement as be, use as xe, useCallback as F, useContext as Se, useEffect as I, useId as Ce, useLayoutEffect as we, useMemo as Te, useRef as L, useState as R, useSyncExternalStore as Ee } from "react";
|
|
8
|
+
import { Drawer as z } from "vaul";
|
|
9
|
+
import { Command as B } from "cmdk";
|
|
10
|
+
import { Toaster as De } from "sonner";
|
|
11
|
+
import { Group as Oe, Panel as ke, Separator as Ae } from "react-resizable-panels";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
|
-
function
|
|
13
|
+
function V(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var H = {
|
|
18
18
|
talogic: {
|
|
19
19
|
name: "talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
@@ -54,7 +54,7 @@ var V = {
|
|
|
54
54
|
logoColor: "#3e63dd",
|
|
55
55
|
logoAccents: ["#e5484d", "#30a46c"]
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, je = {
|
|
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" },
|
|
@@ -68,19 +68,19 @@ var V = {
|
|
|
68
68
|
dark: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%208534%208534'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:affinity='https://www.affinity.studio/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3crect%20id='loomgic-symbol-dark'%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'%20style='fill:none;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cpath%20d='M7950,3683.287c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-7366.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l7366.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M6062.5,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%233e63dd;'/%3e%3cpath%20d='M2470.833,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%23e5484d;'/%3e%3cpath%20d='M7475,1887.453c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M7475,5479.12c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M4266.667,-0.047c321.95,0%20583.333,261.383%20583.333,583.333l0,7366.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l0,-7366.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%2330a46c;'/%3e%3crect%20x='3365.106'%20y='3683.287'%20width='1799.257'%20height='1166.667'%20style='fill:%23979797;'/%3e%3c/g%3e%3c/svg%3e"
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
function
|
|
72
|
-
let { light: s, dark: c } =
|
|
71
|
+
function U({ product: e, alt: t = H[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = je[e], l = V("size-6 shrink-0 object-contain", a);
|
|
73
73
|
return c ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("img", {
|
|
74
74
|
"data-slot": "product-logo",
|
|
75
75
|
src: s,
|
|
76
76
|
alt: t,
|
|
77
|
-
className:
|
|
77
|
+
className: V(l, "dark:hidden"),
|
|
78
78
|
...o
|
|
79
79
|
}), /* @__PURE__ */ r("img", {
|
|
80
80
|
"data-slot": "product-logo",
|
|
81
81
|
src: c,
|
|
82
82
|
alt: t,
|
|
83
|
-
className:
|
|
83
|
+
className: V(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function H({ product: e, alt: t = V[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var W = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -106,8 +106,8 @@ var U = {
|
|
|
106
106
|
lowOffset: .027,
|
|
107
107
|
deltaYMin: 5e-4,
|
|
108
108
|
lowClip: .1
|
|
109
|
-
},
|
|
110
|
-
function
|
|
109
|
+
}, Me = ["#14121a", "#ffffff"];
|
|
110
|
+
function Ne(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,32 +116,32 @@ function Pe(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] =
|
|
121
|
-
return i <
|
|
119
|
+
function Pe(e) {
|
|
120
|
+
let [t, n, r] = Ne(e).map((e) => (e / 255) ** W.mainTrc), i = W.red * t + W.green * n + W.blue * r;
|
|
121
|
+
return i < W.blackThresh ? i + (W.blackThresh - i) ** W.blackClamp : i;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
125
|
-
if (Math.abs(r - n) <
|
|
123
|
+
function Fe(e, t) {
|
|
124
|
+
let n = Pe(e), r = Pe(t);
|
|
125
|
+
if (Math.abs(r - n) < W.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** W.normBg - n ** W.normText) * W.scale;
|
|
128
|
+
return e < W.lowClip ? 0 : (e - W.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** W.revBg - n ** W.revText) * W.scale;
|
|
131
|
+
return i > -W.lowClip ? 0 : (i + W.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ie(e, t = Me) {
|
|
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(Fe(n, e));
|
|
137
137
|
for (let i of t.slice(1)) {
|
|
138
|
-
let t = Math.abs(
|
|
138
|
+
let t = Math.abs(Fe(i, e));
|
|
139
139
|
t > r && (n = i, r = t);
|
|
140
140
|
}
|
|
141
141
|
return n;
|
|
142
142
|
}
|
|
143
143
|
// src/tokens/hue-fill.style.ts
|
|
144
|
-
var
|
|
144
|
+
var G = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -154,7 +154,7 @@ var W = {
|
|
|
154
154
|
violet: "bg-violet-500",
|
|
155
155
|
purple: "bg-purple-500",
|
|
156
156
|
pink: "bg-pink-500"
|
|
157
|
-
},
|
|
157
|
+
}, Le = {
|
|
158
158
|
red: {
|
|
159
159
|
50: "#fef4f3",
|
|
160
160
|
100: "#fee9e7",
|
|
@@ -311,24 +311,24 @@ var W = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, K = {
|
|
315
315
|
saturation: .7,
|
|
316
316
|
lightness: .55,
|
|
317
317
|
maxOklchLightness: .7,
|
|
318
318
|
lightnessStep: .005
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function Re(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 ze(e) {
|
|
328
|
+
let [t, n, r] = Re(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 Be(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 Ve(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 Ve(e) {
|
|
371
|
+
let [t, n, r] = Re(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 He(e) {
|
|
375
|
+
let t = ze(Le[e][500]), n = K.lightness, r = Be(t, K.saturation, n);
|
|
376
|
+
for (; Ve(r) > K.maxOklchLightness;) n -= K.lightnessStep, r = Be(t, K.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
380
|
-
var
|
|
380
|
+
var Ue = {
|
|
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
|
+
}, We = [
|
|
388
388
|
"lime",
|
|
389
389
|
"teal",
|
|
390
390
|
"cyan",
|
|
@@ -392,18 +392,18 @@ var We = {
|
|
|
392
392
|
"purple",
|
|
393
393
|
"pink"
|
|
394
394
|
];
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Ge(e) {
|
|
396
|
+
return Ue[e];
|
|
397
397
|
}
|
|
398
398
|
// src/tokens/theme.contract.ts
|
|
399
|
-
var
|
|
399
|
+
var Ke = [
|
|
400
400
|
"talogic",
|
|
401
401
|
"pargic",
|
|
402
402
|
"daygic",
|
|
403
403
|
"ingic",
|
|
404
404
|
"loregic",
|
|
405
405
|
"loomgic"
|
|
406
|
-
],
|
|
406
|
+
], qe = [
|
|
407
407
|
"red",
|
|
408
408
|
"orange",
|
|
409
409
|
"amber",
|
|
@@ -416,7 +416,7 @@ var qe = [
|
|
|
416
416
|
"violet",
|
|
417
417
|
"purple",
|
|
418
418
|
"pink"
|
|
419
|
-
],
|
|
419
|
+
], Je = [
|
|
420
420
|
"50",
|
|
421
421
|
"100",
|
|
422
422
|
"200",
|
|
@@ -428,56 +428,56 @@ var qe = [
|
|
|
428
428
|
"800",
|
|
429
429
|
"900",
|
|
430
430
|
"950"
|
|
431
|
-
],
|
|
431
|
+
], Ye = [
|
|
432
432
|
"web",
|
|
433
433
|
"app",
|
|
434
434
|
"desk",
|
|
435
435
|
"mob"
|
|
436
|
-
],
|
|
436
|
+
], Xe = ["light", "dark"];
|
|
437
437
|
// src/tokens/theme-attributes.mapper.ts
|
|
438
|
-
function
|
|
438
|
+
function Ze(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 Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
|
|
444
|
+
let { className: c, ...l } = Ze({
|
|
445
445
|
product: e,
|
|
446
446
|
hue: t,
|
|
447
447
|
scheme: n,
|
|
448
448
|
density: i
|
|
449
|
-
}), u = a ?
|
|
449
|
+
}), u = a ? w.Root : "div";
|
|
450
450
|
return /* @__PURE__ */ r(u, {
|
|
451
451
|
"data-slot": "theme-root",
|
|
452
|
-
className:
|
|
452
|
+
className: V(c, o),
|
|
453
453
|
...l,
|
|
454
454
|
...s
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
// src/ui/avatar/avatar.component.tsx
|
|
458
|
-
function
|
|
458
|
+
function $e({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
|
-
className:
|
|
461
|
+
className: V("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function et({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
|
-
className:
|
|
468
|
+
className: V("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function tt({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
|
-
className:
|
|
475
|
+
className: V("flex size-full items-center justify-center rounded-full bg-brand-soft text-xs font-semibold text-brand-text", e),
|
|
476
476
|
...t
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
// src/ui/badge/badge.recipe.ts
|
|
480
|
-
var
|
|
480
|
+
var nt = 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",
|
|
@@ -491,10 +491,10 @@ var rt = O("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowr
|
|
|
491
491
|
defaultVariants: { variant: "default" }
|
|
492
492
|
});
|
|
493
493
|
// src/ui/badge/badge.component.tsx
|
|
494
|
-
function
|
|
494
|
+
function q({ className: e, variant: t, dot: n = !1, children: a, ...o }) {
|
|
495
495
|
return /* @__PURE__ */ i("span", {
|
|
496
496
|
"data-slot": "badge",
|
|
497
|
-
className:
|
|
497
|
+
className: V(nt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,7 +503,7 @@ function K({ className: e, variant: t, dot: n = !1, children: a, ...o }) {
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
// src/ui/button/button.recipe.ts
|
|
506
|
-
var
|
|
506
|
+
var J = k([
|
|
507
507
|
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium no-underline",
|
|
508
508
|
"relative isolate transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
509
|
"before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-[inherit] before:bg-current before:opacity-0 before:scale-90",
|
|
@@ -539,29 +539,29 @@ var q = O([
|
|
|
539
539
|
}
|
|
540
540
|
});
|
|
541
541
|
// src/ui/button/button.component.tsx
|
|
542
|
-
function
|
|
543
|
-
let d = o ?
|
|
542
|
+
function Y({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
543
|
+
let d = o ? w.Root : "button";
|
|
544
544
|
return /* @__PURE__ */ r(d, {
|
|
545
545
|
"data-slot": "button",
|
|
546
|
-
className:
|
|
546
|
+
className: V(J({
|
|
547
547
|
variant: t,
|
|
548
548
|
size: a
|
|
549
549
|
}), e),
|
|
550
550
|
disabled: o ? void 0 : c,
|
|
551
551
|
"aria-busy": s || void 0,
|
|
552
552
|
...u,
|
|
553
|
-
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(
|
|
553
|
+
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ce, {
|
|
554
554
|
className: "animate-spin",
|
|
555
555
|
"aria-hidden": "true"
|
|
556
556
|
}), l] }) : l
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
// src/ui/choice/checkbox.component.tsx
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var rt = "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 it({ className: e, ...t }) {
|
|
562
562
|
return /* @__PURE__ */ r(c.Root, {
|
|
563
563
|
"data-slot": "checkbox",
|
|
564
|
-
className:
|
|
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),
|
|
565
565
|
...t,
|
|
566
566
|
children: /* @__PURE__ */ r(c.Indicator, {
|
|
567
567
|
forceMount: !0,
|
|
@@ -573,28 +573,28 @@ function at({ 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:
|
|
576
|
+
className: V(rt, "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:
|
|
580
|
+
className: V(rt, "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 at({ className: e, ...t }) {
|
|
588
588
|
return /* @__PURE__ */ r(y.Root, {
|
|
589
589
|
"data-slot": "radio-group",
|
|
590
|
-
className:
|
|
590
|
+
className: V("grid gap-2.5", e),
|
|
591
591
|
...t
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function ot({ className: e, ...t }) {
|
|
595
595
|
return /* @__PURE__ */ r(y.Item, {
|
|
596
596
|
"data-slot": "radio-group-item",
|
|
597
|
-
className:
|
|
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),
|
|
598
598
|
...t,
|
|
599
599
|
children: /* @__PURE__ */ r(y.Indicator, {
|
|
600
600
|
forceMount: !0,
|
|
@@ -603,9 +603,9 @@ function st({ className: e, ...t }) {
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
// src/ui/choice/slider.component.tsx
|
|
606
|
-
function
|
|
607
|
-
let [d, f] =
|
|
608
|
-
return /* @__PURE__ */ i(
|
|
606
|
+
function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
607
|
+
let [d, f] = R(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
608
|
+
return /* @__PURE__ */ i(C.Root, {
|
|
609
609
|
"data-slot": "slider",
|
|
610
610
|
value: t,
|
|
611
611
|
defaultValue: n,
|
|
@@ -621,29 +621,29 @@ function ct({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
621
621
|
onPointerUp: (e) => {
|
|
622
622
|
f(!1), l?.(e);
|
|
623
623
|
},
|
|
624
|
-
className:
|
|
624
|
+
className: V("group/slider relative flex w-full touch-none select-none items-center data-disabled:opacity-50", "not-data-dragging:[&>span:has([role=slider])]:transition-[left] not-data-dragging:[&>span:has([role=slider])]:duration-200 not-data-dragging:[&>span:has([role=slider])]:ease-emphasised", "motion-reduce:[&>span:has([role=slider])]:transition-none", e),
|
|
625
625
|
...u,
|
|
626
|
-
children: [/* @__PURE__ */ r(
|
|
626
|
+
children: [/* @__PURE__ */ r(C.Track, {
|
|
627
627
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
628
|
-
children: /* @__PURE__ */ r(
|
|
629
|
-
}), Array.from({ length: p }, (e, t) => /* @__PURE__ */ r(
|
|
628
|
+
children: /* @__PURE__ */ r(C.Range, { className: "absolute h-full bg-primary transition-[left,right] duration-200 ease-emphasised group-data-dragging/slider:transition-none motion-reduce:transition-none" })
|
|
629
|
+
}), Array.from({ length: p }, (e, t) => /* @__PURE__ */ r(C.Thumb, {
|
|
630
630
|
"aria-label": m,
|
|
631
631
|
className: "block size-4 cursor-grab rounded-full border border-primary bg-background shadow-xs outline-none focus-visible:ring-3 focus-visible:ring-ring/25"
|
|
632
632
|
}, t))]
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
// src/ui/choice/switch.component.tsx
|
|
636
|
-
function
|
|
637
|
-
return /* @__PURE__ */ r(
|
|
636
|
+
function ct({ className: e, ...t }) {
|
|
637
|
+
return /* @__PURE__ */ r(T.Root, {
|
|
638
638
|
"data-slot": "switch",
|
|
639
|
-
className:
|
|
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),
|
|
640
640
|
...t,
|
|
641
|
-
children: /* @__PURE__ */ r(
|
|
641
|
+
children: /* @__PURE__ */ r(T.Thumb, { className: "block size-4 rounded-full bg-white shadow-xs transition-transform duration-200 ease-emphasised data-[state=checked]:translate-x-4 motion-reduce:transition-none" })
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
645
|
-
function
|
|
646
|
-
let t =
|
|
645
|
+
function lt(e) {
|
|
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() {
|
|
649
649
|
if (!r) return;
|
|
@@ -665,37 +665,37 @@ function ut(e) {
|
|
|
665
665
|
a.disconnect(), o.disconnect();
|
|
666
666
|
};
|
|
667
667
|
}, [e]);
|
|
668
|
-
return
|
|
668
|
+
return I(() => () => n.current?.(), []), r;
|
|
669
669
|
}
|
|
670
670
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
671
|
-
var
|
|
671
|
+
var ut = "pointer-events-none absolute left-(--indicator-left) top-(--indicator-top) h-(--indicator-height) w-(--indicator-width) group-data-[indicator=ready]/indicator:transition-[left,top,width,height] group-data-[indicator=ready]/indicator:duration-250 group-data-[indicator=ready]/indicator:ease-emphasised group-data-[indicator=none]/indicator:opacity-0 group-not-data-indicator/indicator:opacity-0 motion-reduce:transition-none";
|
|
672
672
|
// src/ui/choice/toggle-group.component.tsx
|
|
673
|
-
function
|
|
674
|
-
let a =
|
|
675
|
-
return /* @__PURE__ */ i(
|
|
673
|
+
function dt({ className: e, children: t, ...n }) {
|
|
674
|
+
let a = lt("[data-state=on]"), o = n.type === "single";
|
|
675
|
+
return /* @__PURE__ */ i(D.Root, {
|
|
676
676
|
ref: o ? a : void 0,
|
|
677
677
|
"data-slot": "toggle-group",
|
|
678
678
|
"data-mode": n.type,
|
|
679
|
-
className:
|
|
679
|
+
className: V("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
|
|
680
680
|
...n,
|
|
681
681
|
children: [o && /* @__PURE__ */ r("span", {
|
|
682
682
|
"aria-hidden": "true",
|
|
683
683
|
"data-slot": "toggle-group-indicator",
|
|
684
|
-
className:
|
|
684
|
+
className: V(ut, "rounded-sm bg-background shadow-xs")
|
|
685
685
|
}), t]
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return /* @__PURE__ */ r(
|
|
688
|
+
function ft({ className: e, ...t }) {
|
|
689
|
+
return /* @__PURE__ */ r(D.Item, {
|
|
690
690
|
"data-slot": "toggle-group-item",
|
|
691
|
-
className:
|
|
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),
|
|
692
692
|
...t
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
// src/ui/field/control.recipe.ts
|
|
696
|
-
var
|
|
697
|
-
function
|
|
698
|
-
let t =
|
|
696
|
+
var pt = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", mt = ye(null);
|
|
697
|
+
function ht(e = {}) {
|
|
698
|
+
let t = Se(mt);
|
|
699
699
|
return t ? {
|
|
700
700
|
id: e.id ?? t.id,
|
|
701
701
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
@@ -703,20 +703,20 @@ function Y(e = {}) {
|
|
|
703
703
|
} : e;
|
|
704
704
|
}
|
|
705
705
|
function gt() {
|
|
706
|
-
return
|
|
706
|
+
return Se(mt)?.labelId;
|
|
707
707
|
}
|
|
708
708
|
// src/ui/field/label.component.tsx
|
|
709
709
|
function _t({ className: e, ...t }) {
|
|
710
710
|
return /* @__PURE__ */ r(p.Root, {
|
|
711
711
|
"data-slot": "label",
|
|
712
|
-
className:
|
|
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),
|
|
713
713
|
...t
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
// src/ui/field/field.component.tsx
|
|
717
717
|
function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
718
|
-
let c =
|
|
719
|
-
return /* @__PURE__ */ r(
|
|
718
|
+
let c = Ce(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
719
|
+
return /* @__PURE__ */ r(mt, {
|
|
720
720
|
value: {
|
|
721
721
|
id: l,
|
|
722
722
|
describedBy: f,
|
|
@@ -725,7 +725,7 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
725
725
|
},
|
|
726
726
|
children: /* @__PURE__ */ i("div", {
|
|
727
727
|
"data-slot": "field",
|
|
728
|
-
className:
|
|
728
|
+
className: V("flex flex-col gap-1.5", s),
|
|
729
729
|
children: [
|
|
730
730
|
/* @__PURE__ */ r(_t, {
|
|
731
731
|
id: `${l}-label`,
|
|
@@ -749,10 +749,10 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
749
749
|
}
|
|
750
750
|
// src/ui/field/input.component.tsx
|
|
751
751
|
function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
752
|
-
let o =
|
|
752
|
+
let o = ht(a), s = /* @__PURE__ */ r("input", {
|
|
753
753
|
"data-slot": "input",
|
|
754
754
|
type: n,
|
|
755
|
-
className:
|
|
755
|
+
className: V(pt, "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
|
});
|
|
@@ -768,15 +768,15 @@ function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
768
768
|
// src/ui/field/select.component.tsx
|
|
769
769
|
var bt = x.Root, xt = x.Group, St = x.Value;
|
|
770
770
|
function Ct({ className: e, children: t, ...n }) {
|
|
771
|
-
let a =
|
|
771
|
+
let a = ht(n);
|
|
772
772
|
return /* @__PURE__ */ i(x.Trigger, {
|
|
773
773
|
"data-slot": "select-trigger",
|
|
774
|
-
className:
|
|
774
|
+
className: V(pt, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
775
775
|
...n,
|
|
776
776
|
...a,
|
|
777
777
|
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
778
778
|
asChild: !0,
|
|
779
|
-
children: /* @__PURE__ */ r(
|
|
779
|
+
children: /* @__PURE__ */ r(j, {
|
|
780
780
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
781
781
|
"aria-hidden": "true"
|
|
782
782
|
})
|
|
@@ -787,7 +787,7 @@ function wt({ 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,
|
|
790
|
-
className:
|
|
790
|
+
className: V("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", n === "popper" && "w-full min-w-(--radix-select-trigger-width) data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", e),
|
|
791
791
|
...i,
|
|
792
792
|
children: /* @__PURE__ */ r(x.Viewport, {
|
|
793
793
|
className: "p-1",
|
|
@@ -798,18 +798,18 @@ function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
798
798
|
function Tt({ className: e, ...t }) {
|
|
799
799
|
return /* @__PURE__ */ r(x.Label, {
|
|
800
800
|
"data-slot": "select-label",
|
|
801
|
-
className:
|
|
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
805
|
function Et({ className: e, children: t, ...n }) {
|
|
806
806
|
return /* @__PURE__ */ i(x.Item, {
|
|
807
807
|
"data-slot": "select-item",
|
|
808
|
-
className:
|
|
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),
|
|
809
809
|
...n,
|
|
810
810
|
children: [/* @__PURE__ */ r(x.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
811
811
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
812
|
-
children: /* @__PURE__ */ r(x.ItemIndicator, { children: /* @__PURE__ */ r(
|
|
812
|
+
children: /* @__PURE__ */ r(x.ItemIndicator, { children: /* @__PURE__ */ r(A, {
|
|
813
813
|
className: "size-4",
|
|
814
814
|
"aria-hidden": "true"
|
|
815
815
|
}) })
|
|
@@ -819,16 +819,16 @@ function Et({ className: e, children: t, ...n }) {
|
|
|
819
819
|
function Dt({ className: e, ...t }) {
|
|
820
820
|
return /* @__PURE__ */ r(x.Separator, {
|
|
821
821
|
"data-slot": "select-separator",
|
|
822
|
-
className:
|
|
822
|
+
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
823
823
|
...t
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
// src/ui/field/textarea.component.tsx
|
|
827
827
|
function Ot({ className: e, ...t }) {
|
|
828
|
-
let n =
|
|
828
|
+
let n = ht(t);
|
|
829
829
|
return /* @__PURE__ */ r("textarea", {
|
|
830
830
|
"data-slot": "textarea",
|
|
831
|
-
className:
|
|
831
|
+
className: V(pt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
832
832
|
...t,
|
|
833
833
|
...n
|
|
834
834
|
});
|
|
@@ -843,35 +843,35 @@ var kt = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop
|
|
|
843
843
|
function Pt({ className: e, ...t }) {
|
|
844
844
|
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: kt }), /* @__PURE__ */ r(o.Content, {
|
|
845
845
|
"data-slot": "alert-dialog-content",
|
|
846
|
-
className:
|
|
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", At, e),
|
|
847
847
|
...t
|
|
848
848
|
})] });
|
|
849
849
|
}
|
|
850
850
|
function Ft({ className: e, ...t }) {
|
|
851
851
|
return /* @__PURE__ */ r(o.Title, {
|
|
852
852
|
"data-slot": "alert-dialog-title",
|
|
853
|
-
className:
|
|
853
|
+
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
854
854
|
...t
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
857
|
function It({ className: e, ...t }) {
|
|
858
858
|
return /* @__PURE__ */ r(o.Description, {
|
|
859
859
|
"data-slot": "alert-dialog-description",
|
|
860
|
-
className:
|
|
860
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
861
861
|
...t
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
864
|
function Lt({ className: e, variant: t = "default", ...n }) {
|
|
865
865
|
return /* @__PURE__ */ r(o.Action, {
|
|
866
866
|
"data-slot": "alert-dialog-action",
|
|
867
|
-
className:
|
|
867
|
+
className: V(J({ variant: t }), e),
|
|
868
868
|
...n
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
function Rt({ className: e, ...t }) {
|
|
872
872
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
873
873
|
"data-slot": "alert-dialog-cancel",
|
|
874
|
-
className:
|
|
874
|
+
className: V(J({ variant: "outline" }), e),
|
|
875
875
|
...t
|
|
876
876
|
});
|
|
877
877
|
}
|
|
@@ -880,11 +880,11 @@ var zt = d.Root, Bt = d.Trigger, Vt = d.Close;
|
|
|
880
880
|
function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
881
881
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
882
882
|
"data-slot": "dialog-content",
|
|
883
|
-
className:
|
|
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", At, 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",
|
|
887
|
-
children: [/* @__PURE__ */ r(
|
|
887
|
+
children: [/* @__PURE__ */ r(P, {
|
|
888
888
|
className: "size-4",
|
|
889
889
|
"aria-hidden": "true"
|
|
890
890
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -897,37 +897,37 @@ function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
897
897
|
function Ut({ className: e, ...t }) {
|
|
898
898
|
return /* @__PURE__ */ r("div", {
|
|
899
899
|
"data-slot": "dialog-header",
|
|
900
|
-
className:
|
|
900
|
+
className: V("flex flex-col gap-1.5 text-start", e),
|
|
901
901
|
...t
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
function Wt({ className: e, ...t }) {
|
|
905
905
|
return /* @__PURE__ */ r("div", {
|
|
906
906
|
"data-slot": "dialog-footer",
|
|
907
|
-
className:
|
|
907
|
+
className: V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
908
908
|
...t
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
function Gt({ className: e, ...t }) {
|
|
912
912
|
return /* @__PURE__ */ r(d.Title, {
|
|
913
913
|
"data-slot": "dialog-title",
|
|
914
|
-
className:
|
|
914
|
+
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
915
915
|
...t
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
function Kt({ className: e, ...t }) {
|
|
919
919
|
return /* @__PURE__ */ r(d.Description, {
|
|
920
920
|
"data-slot": "dialog-description",
|
|
921
|
-
className:
|
|
921
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
922
922
|
...t
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
// src/ui/overlay/drawer.component.tsx
|
|
926
|
-
var qt =
|
|
926
|
+
var qt = z.Root, Jt = z.Trigger, Yt = z.Close;
|
|
927
927
|
function Xt({ className: e, children: t, ...n }) {
|
|
928
|
-
return /* @__PURE__ */ i(
|
|
928
|
+
return /* @__PURE__ */ i(z.Portal, { children: [/* @__PURE__ */ r(z.Overlay, { className: kt }), /* @__PURE__ */ i(z.Content, {
|
|
929
929
|
"data-slot": "drawer-content",
|
|
930
|
-
className:
|
|
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,
|
|
932
932
|
children: [/* @__PURE__ */ r("div", {
|
|
933
933
|
"aria-hidden": "true",
|
|
@@ -936,16 +936,16 @@ function Xt({ className: e, children: t, ...n }) {
|
|
|
936
936
|
})] });
|
|
937
937
|
}
|
|
938
938
|
function Zt({ className: e, ...t }) {
|
|
939
|
-
return /* @__PURE__ */ r(
|
|
939
|
+
return /* @__PURE__ */ r(z.Title, {
|
|
940
940
|
"data-slot": "drawer-title",
|
|
941
|
-
className:
|
|
941
|
+
className: V("m-0 text-xl font-semibold leading-tight", e),
|
|
942
942
|
...t
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
function Qt({ className: e, ...t }) {
|
|
946
|
-
return /* @__PURE__ */ r(
|
|
946
|
+
return /* @__PURE__ */ r(z.Description, {
|
|
947
947
|
"data-slot": "drawer-description",
|
|
948
|
-
className:
|
|
948
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
949
949
|
...t
|
|
950
950
|
});
|
|
951
951
|
}
|
|
@@ -963,7 +963,7 @@ function rn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
|
963
963
|
"data-slot": "popover-content",
|
|
964
964
|
align: t,
|
|
965
965
|
sideOffset: n,
|
|
966
|
-
className:
|
|
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", At, e),
|
|
967
967
|
...i
|
|
968
968
|
}) });
|
|
969
969
|
}
|
|
@@ -977,11 +977,11 @@ var an = d.Root, on = d.Trigger, sn = d.Close, cn = d.Title, ln = d.Description,
|
|
|
977
977
|
function dn({ className: e, children: t, side: n = "end", ...a }) {
|
|
978
978
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
979
979
|
"data-slot": "sheet-content",
|
|
980
|
-
className:
|
|
980
|
+
className: V("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", un[n], jt[n], e),
|
|
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",
|
|
984
|
-
children: [/* @__PURE__ */ r(
|
|
984
|
+
children: [/* @__PURE__ */ r(P, {
|
|
985
985
|
className: "size-4",
|
|
986
986
|
"aria-hidden": "true"
|
|
987
987
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -992,22 +992,22 @@ function dn({ className: e, children: t, side: n = "end", ...a }) {
|
|
|
992
992
|
})] });
|
|
993
993
|
}
|
|
994
994
|
// src/ui/overlay/tooltip.component.tsx
|
|
995
|
-
var fn =
|
|
995
|
+
var fn = O.Provider;
|
|
996
996
|
function pn(e) {
|
|
997
|
-
return /* @__PURE__ */ r(
|
|
997
|
+
return /* @__PURE__ */ r(O.Provider, {
|
|
998
998
|
delayDuration: 300,
|
|
999
|
-
children: /* @__PURE__ */ r(
|
|
999
|
+
children: /* @__PURE__ */ r(O.Root, {
|
|
1000
1000
|
"data-slot": "tooltip",
|
|
1001
1001
|
...e
|
|
1002
1002
|
})
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
var mn =
|
|
1005
|
+
var mn = O.Trigger;
|
|
1006
1006
|
function hn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1007
|
-
return /* @__PURE__ */ r(
|
|
1007
|
+
return /* @__PURE__ */ r(O.Portal, { children: /* @__PURE__ */ r(O.Content, {
|
|
1008
1008
|
"data-slot": "tooltip-content",
|
|
1009
1009
|
sideOffset: t,
|
|
1010
|
-
className:
|
|
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", At, e),
|
|
1011
1011
|
...n
|
|
1012
1012
|
}) });
|
|
1013
1013
|
}
|
|
@@ -1015,9 +1015,9 @@ function hn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1015
1015
|
var gn = "z-50 min-w-48 overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", X = "relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-[7px] text-[13.5px] outline-none transition-colors duration-150 motion-reduce:transition-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50 data-[disabled=false]:pointer-events-auto data-[disabled=false]:opacity-100 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:[&_svg]:text-destructive", _n = "ms-auto text-xs tracking-wide text-muted-foreground", vn = "-mx-1 my-1 h-px bg-border", yn = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1016
1016
|
// src/ui/menu/command.component.tsx
|
|
1017
1017
|
function bn({ className: e, ...t }) {
|
|
1018
|
-
return /* @__PURE__ */ r(
|
|
1018
|
+
return /* @__PURE__ */ r(B, {
|
|
1019
1019
|
"data-slot": "command",
|
|
1020
|
-
className:
|
|
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
|
}
|
|
@@ -1025,7 +1025,7 @@ function xn({ title: e = "Search", children: t, ...n }) {
|
|
|
1025
1025
|
return /* @__PURE__ */ r(d.Root, {
|
|
1026
1026
|
...n,
|
|
1027
1027
|
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
1028
|
-
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", At),
|
|
1029
1029
|
children: [
|
|
1030
1030
|
/* @__PURE__ */ r(d.Title, {
|
|
1031
1031
|
className: "sr-only",
|
|
@@ -1044,55 +1044,55 @@ function Sn({ 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",
|
|
1047
|
-
children: [/* @__PURE__ */ r(
|
|
1047
|
+
children: [/* @__PURE__ */ r(me, {
|
|
1048
1048
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
1049
1049
|
"aria-hidden": "true"
|
|
1050
|
-
}), /* @__PURE__ */ r(
|
|
1050
|
+
}), /* @__PURE__ */ r(B.Input, {
|
|
1051
1051
|
"data-slot": "command-input",
|
|
1052
|
-
className:
|
|
1052
|
+
className: V("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1053
1053
|
...t
|
|
1054
1054
|
})]
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
1057
|
function Cn({ className: e, ...t }) {
|
|
1058
|
-
return /* @__PURE__ */ r(
|
|
1058
|
+
return /* @__PURE__ */ r(B.List, {
|
|
1059
1059
|
"data-slot": "command-list",
|
|
1060
|
-
className:
|
|
1060
|
+
className: V("max-h-80 overflow-y-auto p-1", e),
|
|
1061
1061
|
...t
|
|
1062
1062
|
});
|
|
1063
1063
|
}
|
|
1064
1064
|
function wn({ className: e, ...t }) {
|
|
1065
|
-
return /* @__PURE__ */ r(
|
|
1065
|
+
return /* @__PURE__ */ r(B.Empty, {
|
|
1066
1066
|
"data-slot": "command-empty",
|
|
1067
|
-
className:
|
|
1067
|
+
className: V("py-6 text-center text-sm text-muted-foreground", e),
|
|
1068
1068
|
...t
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
function Tn({ className: e, ...t }) {
|
|
1072
|
-
return /* @__PURE__ */ r(
|
|
1072
|
+
return /* @__PURE__ */ r(B.Group, {
|
|
1073
1073
|
"data-slot": "command-group",
|
|
1074
|
-
className:
|
|
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
1078
|
function En({ className: e, ...t }) {
|
|
1079
|
-
return /* @__PURE__ */ r(
|
|
1079
|
+
return /* @__PURE__ */ r(B.Item, {
|
|
1080
1080
|
"data-slot": "command-item",
|
|
1081
|
-
className:
|
|
1081
|
+
className: V(X, "data-[selected=true]:bg-accent", e),
|
|
1082
1082
|
...t
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
function Dn({ className: e, ...t }) {
|
|
1086
|
-
return /* @__PURE__ */ r(
|
|
1086
|
+
return /* @__PURE__ */ r(B.Separator, {
|
|
1087
1087
|
"data-slot": "command-separator",
|
|
1088
|
-
className:
|
|
1088
|
+
className: V(vn, e),
|
|
1089
1089
|
...t
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
1092
|
function On({ className: e, ...t }) {
|
|
1093
1093
|
return /* @__PURE__ */ r("span", {
|
|
1094
1094
|
"data-slot": "command-shortcut",
|
|
1095
|
-
className:
|
|
1095
|
+
className: V(_n, e),
|
|
1096
1096
|
...t
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
@@ -1101,7 +1101,7 @@ var kn = u.Root, An = u.Trigger;
|
|
|
1101
1101
|
function jn({ className: e, ...t }) {
|
|
1102
1102
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1103
1103
|
"data-slot": "context-menu-content",
|
|
1104
|
-
className:
|
|
1104
|
+
className: V(gn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1105
1105
|
...t
|
|
1106
1106
|
}) });
|
|
1107
1107
|
}
|
|
@@ -1109,21 +1109,21 @@ function Mn({ 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,
|
|
1112
|
-
className:
|
|
1112
|
+
className: V(X, e),
|
|
1113
1113
|
...n
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
1116
1116
|
function Nn({ className: e, ...t }) {
|
|
1117
1117
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1118
1118
|
"data-slot": "context-menu-separator",
|
|
1119
|
-
className:
|
|
1119
|
+
className: V(vn, e),
|
|
1120
1120
|
...t
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
1123
|
function Pn({ className: e, ...t }) {
|
|
1124
1124
|
return /* @__PURE__ */ r("span", {
|
|
1125
1125
|
"data-slot": "context-menu-shortcut",
|
|
1126
|
-
className:
|
|
1126
|
+
className: V(_n, e),
|
|
1127
1127
|
...t
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
@@ -1133,7 +1133,7 @@ function zn({ 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:
|
|
1136
|
+
className: V(gn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1137
1137
|
...n
|
|
1138
1138
|
}) });
|
|
1139
1139
|
}
|
|
@@ -1141,14 +1141,14 @@ function Bn({ 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,
|
|
1144
|
-
className:
|
|
1144
|
+
className: V(X, e),
|
|
1145
1145
|
...n
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
1148
|
function Vn({ className: e, children: t, ...n }) {
|
|
1149
1149
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1150
1150
|
"data-slot": "dropdown-menu-radio-item",
|
|
1151
|
-
className:
|
|
1151
|
+
className: V(X, "ps-7", e),
|
|
1152
1152
|
...n,
|
|
1153
1153
|
children: [/* @__PURE__ */ r("span", {
|
|
1154
1154
|
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
@@ -1159,21 +1159,21 @@ function Vn({ className: e, children: t, ...n }) {
|
|
|
1159
1159
|
function Hn({ className: e, ...t }) {
|
|
1160
1160
|
return /* @__PURE__ */ r(f.Label, {
|
|
1161
1161
|
"data-slot": "dropdown-menu-label",
|
|
1162
|
-
className:
|
|
1162
|
+
className: V(yn, e),
|
|
1163
1163
|
...t
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
function Un({ className: e, ...t }) {
|
|
1167
1167
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1168
1168
|
"data-slot": "dropdown-menu-separator",
|
|
1169
|
-
className:
|
|
1169
|
+
className: V(vn, e),
|
|
1170
1170
|
...t
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
1173
|
function Wn({ className: e, ...t }) {
|
|
1174
1174
|
return /* @__PURE__ */ r("span", {
|
|
1175
1175
|
"data-slot": "dropdown-menu-shortcut",
|
|
1176
|
-
className:
|
|
1176
|
+
className: V(_n, e),
|
|
1177
1177
|
...t
|
|
1178
1178
|
});
|
|
1179
1179
|
}
|
|
@@ -1195,7 +1195,7 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1195
1195
|
return /* @__PURE__ */ i("span", {
|
|
1196
1196
|
"data-slot": "tag",
|
|
1197
1197
|
"data-highlighted": o || void 0,
|
|
1198
|
-
className:
|
|
1198
|
+
className: V("inline-flex h-6 max-w-full items-center gap-0.5 rounded-sm bg-brand-soft ps-2 text-[13px] font-medium text-brand-text animate-zoom-in motion-reduce:animate-none", "data-highlighted:ring-2 data-highlighted:ring-brand", n ? "pe-0.5" : "pe-2", e),
|
|
1199
1199
|
...s,
|
|
1200
1200
|
children: [/* @__PURE__ */ r("span", {
|
|
1201
1201
|
className: "truncate",
|
|
@@ -1205,7 +1205,7 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1205
1205
|
"aria-label": a,
|
|
1206
1206
|
onClick: n,
|
|
1207
1207
|
className: "grid size-5 shrink-0 cursor-pointer place-items-center rounded-[3px] outline-none hover:bg-brand/15 focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3",
|
|
1208
|
-
children: /* @__PURE__ */ r(
|
|
1208
|
+
children: /* @__PURE__ */ r(P, { "aria-hidden": "true" })
|
|
1209
1209
|
}) : null]
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
@@ -1213,23 +1213,23 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1213
1213
|
var Yn = "flex min-h-(--control-h) w-full min-w-0 cursor-text flex-wrap items-center gap-1 rounded-md border border-input bg-background px-1.5 py-1 shadow-xs text-(length:--control-fs) text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/25 has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]]:ring-3 has-[input[aria-invalid=true]]:ring-destructive/20 has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-50", Xn = "h-6 min-w-16 flex-1 bg-transparent px-1 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed";
|
|
1214
1214
|
// src/ui/tags-input/tags-input.component.tsx
|
|
1215
1215
|
function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max: o, validate: s, allowDuplicates: c, addOnBlur: l = !0, removeLabel: u = (e) => `Remove ${e}`, fieldClassName: d, className: f, disabled: p, placeholder: m, onKeyDown: h, onPaste: g, onBlur: _, ...v }) {
|
|
1216
|
-
let [y, b] =
|
|
1217
|
-
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 = ht(v), ee = o !== void 0 && O.length >= o;
|
|
1217
|
+
function te(t) {
|
|
1218
1218
|
e === void 0 && b(t), n?.(t);
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function A(e) {
|
|
1221
1221
|
if (e.length === 0) return;
|
|
1222
|
-
let { tags: t, rejected: n } = qn(
|
|
1222
|
+
let { tags: t, rejected: n } = qn(O, e, {
|
|
1223
1223
|
max: o,
|
|
1224
1224
|
validate: s,
|
|
1225
1225
|
allowDuplicates: c
|
|
1226
1226
|
});
|
|
1227
|
-
t.length !==
|
|
1227
|
+
t.length !== O.length && te(t), S(n.join(", ")), w(n.length > 0), n.length > 0 && a?.(n);
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function j(e) {
|
|
1230
|
+
te(O.filter((t, n) => n !== e)), E(!1), D.current?.focus();
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function ne(e) {
|
|
1233
1233
|
if (h?.(e), !(e.defaultPrevented || e.nativeEvent.isComposing)) {
|
|
1234
1234
|
if ([
|
|
1235
1235
|
"Enter",
|
|
@@ -1237,58 +1237,58 @@ 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(),
|
|
1241
|
-
} else x === "" && e.key === "Backspace" &&
|
|
1240
|
+
e.preventDefault(), A(Kn(x));
|
|
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
|
-
function
|
|
1244
|
+
function re(e) {
|
|
1245
1245
|
g?.(e);
|
|
1246
1246
|
let t = e.clipboardData.getData("text");
|
|
1247
|
-
!e.defaultPrevented && Gn.test(t) && (e.preventDefault(),
|
|
1247
|
+
!e.defaultPrevented && Gn.test(t) && (e.preventDefault(), A(Kn(`${x}${t}`)));
|
|
1248
1248
|
}
|
|
1249
1249
|
return /* @__PURE__ */ i("div", {
|
|
1250
1250
|
"data-slot": "tags-input",
|
|
1251
|
-
className:
|
|
1251
|
+
className: V(Yn, d),
|
|
1252
1252
|
onClick: (e) => {
|
|
1253
|
-
e.target === e.currentTarget &&
|
|
1253
|
+
e.target === e.currentTarget && D.current?.focus();
|
|
1254
1254
|
},
|
|
1255
|
-
children: [
|
|
1256
|
-
highlighted:
|
|
1255
|
+
children: [O.map((e, t) => /* @__PURE__ */ r(Jn, {
|
|
1256
|
+
highlighted: T && t === O.length - 1,
|
|
1257
1257
|
removeLabel: u(e),
|
|
1258
1258
|
onRemove: p ? void 0 : () => {
|
|
1259
|
-
|
|
1259
|
+
j(t);
|
|
1260
1260
|
},
|
|
1261
1261
|
children: e
|
|
1262
1262
|
}, `${e}-${String(t)}`)), /* @__PURE__ */ r("input", {
|
|
1263
|
-
ref:
|
|
1263
|
+
ref: D,
|
|
1264
1264
|
type: "text",
|
|
1265
1265
|
"data-slot": "tags-input-input",
|
|
1266
1266
|
value: x,
|
|
1267
1267
|
disabled: p,
|
|
1268
|
-
placeholder:
|
|
1269
|
-
readOnly:
|
|
1270
|
-
className:
|
|
1268
|
+
placeholder: O.length === 0 ? m : void 0,
|
|
1269
|
+
readOnly: ee,
|
|
1270
|
+
className: V(Xn, f),
|
|
1271
1271
|
onChange: (e) => {
|
|
1272
|
-
|
|
1272
|
+
S(e.target.value), w(!1), E(!1);
|
|
1273
1273
|
},
|
|
1274
|
-
onKeyDown:
|
|
1275
|
-
onPaste:
|
|
1274
|
+
onKeyDown: ne,
|
|
1275
|
+
onPaste: re,
|
|
1276
1276
|
onBlur: (e) => {
|
|
1277
|
-
_?.(e),
|
|
1277
|
+
_?.(e), E(!1), l && !C && A(Kn(x));
|
|
1278
1278
|
},
|
|
1279
1279
|
...v,
|
|
1280
|
-
...
|
|
1281
|
-
"aria-invalid":
|
|
1280
|
+
...k,
|
|
1281
|
+
"aria-invalid": C || k["aria-invalid"] || void 0
|
|
1282
1282
|
})]
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
1285
|
// src/ui/combobox/option-search.hook.ts
|
|
1286
1286
|
function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1287
|
-
let [i, a] =
|
|
1287
|
+
let [i, a] = R({
|
|
1288
1288
|
options: [],
|
|
1289
1289
|
status: "idle"
|
|
1290
|
-
}), o =
|
|
1291
|
-
return o.current = e,
|
|
1290
|
+
}), o = L(e);
|
|
1291
|
+
return o.current = e, I(() => {
|
|
1292
1292
|
let e = t.trim();
|
|
1293
1293
|
if (!o.current || e.length < r) {
|
|
1294
1294
|
a({
|
|
@@ -1331,151 +1331,151 @@ function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
|
1331
1331
|
// src/ui/combobox/combobox.component.tsx
|
|
1332
1332
|
var $n = "\0create";
|
|
1333
1333
|
function er(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 =
|
|
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 = ht({
|
|
1335
1335
|
id: e.id,
|
|
1336
1336
|
"aria-describedby": e["aria-describedby"],
|
|
1337
1337
|
"aria-invalid": e["aria-invalid"]
|
|
1338
|
-
}), [y, b] =
|
|
1339
|
-
|
|
1340
|
-
let [
|
|
1341
|
-
|
|
1342
|
-
let e =
|
|
1343
|
-
e && (
|
|
1344
|
-
}, [
|
|
1345
|
-
let
|
|
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
|
+
te.current = k;
|
|
1340
|
+
let [ne, re] = R(!1), ie = L(null), ae = L(null), oe = gt(), se = e["aria-label"];
|
|
1341
|
+
we(() => {
|
|
1342
|
+
let e = ie.current;
|
|
1343
|
+
e && (oe ? e.setAttribute("aria-labelledby", oe) : se && e.removeAttribute("aria-labelledby"));
|
|
1344
|
+
}, [oe, se]);
|
|
1345
|
+
let M = k ? D : "", N = Qn(n, M, {
|
|
1346
1346
|
debounceMs: a,
|
|
1347
1347
|
minQueryLength: o
|
|
1348
|
-
}),
|
|
1349
|
-
function
|
|
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;
|
|
1349
|
+
function fe(t) {
|
|
1350
1350
|
e.multiple || (e.value === void 0 && b(t), e.onValueChange?.(t));
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
e.multiple && (e.value === void 0 &&
|
|
1352
|
+
function me(t) {
|
|
1353
|
+
e.multiple && (e.value === void 0 && S(t), e.onValueChange?.(t));
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
if (
|
|
1357
|
-
|
|
1355
|
+
function he(t) {
|
|
1356
|
+
if (ee(!1), re(!1), !e.multiple) {
|
|
1357
|
+
fe(t), O(t.label), E(!1);
|
|
1358
1358
|
return;
|
|
1359
1359
|
}
|
|
1360
|
-
let n =
|
|
1361
|
-
(n || !
|
|
1360
|
+
let n = w.some((e) => e.value === t.value);
|
|
1361
|
+
(n || !de) && (me(n ? w.filter((e) => e.value !== t.value) : [...w, t]), O(""));
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1364
|
-
|
|
1363
|
+
function ge() {
|
|
1364
|
+
E(!1), ee(!1), re(!1), O(e.multiple ? "" : C?.label ?? "");
|
|
1365
1365
|
}
|
|
1366
|
-
let
|
|
1367
|
-
return /* @__PURE__ */ r(
|
|
1366
|
+
let _e = (e) => w.some((t) => t.value === e.value);
|
|
1367
|
+
return /* @__PURE__ */ r(B, {
|
|
1368
1368
|
"data-slot": "combobox",
|
|
1369
1369
|
shouldFilter: !_,
|
|
1370
|
-
filter: (e, t, n) =>
|
|
1370
|
+
filter: (e, t, n) => te.current ? tr(t, [e, ...n ?? []]) : 1,
|
|
1371
1371
|
loop: !0,
|
|
1372
1372
|
className: "w-full",
|
|
1373
1373
|
children: /* @__PURE__ */ i(en, {
|
|
1374
|
-
open:
|
|
1374
|
+
open: T,
|
|
1375
1375
|
onOpenChange: (e) => {
|
|
1376
|
-
e ||
|
|
1376
|
+
e || ge();
|
|
1377
1377
|
},
|
|
1378
1378
|
children: [/* @__PURE__ */ r(nn, {
|
|
1379
1379
|
asChild: !0,
|
|
1380
1380
|
children: /* @__PURE__ */ i("div", {
|
|
1381
|
-
ref:
|
|
1381
|
+
ref: ae,
|
|
1382
1382
|
"data-slot": "combobox-field",
|
|
1383
|
-
className:
|
|
1383
|
+
className: V(Yn, "pe-1", h),
|
|
1384
1384
|
onClick: (e) => {
|
|
1385
|
-
e.target === e.currentTarget &&
|
|
1385
|
+
e.target === e.currentTarget && ie.current?.focus();
|
|
1386
1386
|
},
|
|
1387
1387
|
children: [
|
|
1388
|
-
e.multiple ?
|
|
1389
|
-
highlighted:
|
|
1388
|
+
e.multiple ? w.map((e, t) => /* @__PURE__ */ r(Jn, {
|
|
1389
|
+
highlighted: ne && t === w.length - 1,
|
|
1390
1390
|
removeLabel: `Remove ${e.label}`,
|
|
1391
1391
|
onRemove: m ? void 0 : () => {
|
|
1392
|
-
|
|
1392
|
+
he(e);
|
|
1393
1393
|
},
|
|
1394
1394
|
children: e.label
|
|
1395
|
-
}, e.value)) : !
|
|
1395
|
+
}, e.value)) : !k && C?.icon ? /* @__PURE__ */ r("span", {
|
|
1396
1396
|
"aria-hidden": "true",
|
|
1397
1397
|
className: "ms-1 flex text-muted-foreground [&_svg]:size-4",
|
|
1398
|
-
children:
|
|
1398
|
+
children: C.icon
|
|
1399
1399
|
}) : null,
|
|
1400
|
-
/* @__PURE__ */ r(
|
|
1401
|
-
ref:
|
|
1400
|
+
/* @__PURE__ */ r(B.Input, {
|
|
1401
|
+
ref: ie,
|
|
1402
1402
|
"data-slot": "combobox-input",
|
|
1403
|
-
value:
|
|
1403
|
+
value: D,
|
|
1404
1404
|
disabled: m,
|
|
1405
|
-
readOnly:
|
|
1406
|
-
placeholder:
|
|
1405
|
+
readOnly: de,
|
|
1406
|
+
placeholder: w.length === 0 || !e.multiple ? p : void 0,
|
|
1407
1407
|
"aria-label": e["aria-label"],
|
|
1408
1408
|
className: Xn,
|
|
1409
1409
|
onValueChange: (e) => {
|
|
1410
|
-
|
|
1410
|
+
O(e), ee(!0), re(!1), E(!0);
|
|
1411
1411
|
},
|
|
1412
1412
|
onFocus: () => {
|
|
1413
|
-
_ ||
|
|
1413
|
+
_ || E(!0);
|
|
1414
1414
|
},
|
|
1415
1415
|
onKeyDown: (t) => {
|
|
1416
|
-
if (t.key === "Escape")
|
|
1417
|
-
else if (!
|
|
1418
|
-
else if (
|
|
1416
|
+
if (t.key === "Escape") T && t.preventDefault(), ge();
|
|
1417
|
+
else if (!T && t.key === "ArrowDown") E(!0);
|
|
1418
|
+
else if (D === "" && t.key === "Backspace" && e.multiple && w.length > 0) {
|
|
1419
1419
|
t.preventDefault();
|
|
1420
|
-
let e =
|
|
1421
|
-
|
|
1420
|
+
let e = w.at(-1);
|
|
1421
|
+
ne && e ? he(e) : re(!0);
|
|
1422
1422
|
}
|
|
1423
1423
|
},
|
|
1424
1424
|
...v
|
|
1425
1425
|
}),
|
|
1426
|
-
|
|
1426
|
+
C && !m && !e.multiple ? /* @__PURE__ */ r("button", {
|
|
1427
1427
|
type: "button",
|
|
1428
1428
|
"aria-label": "Clear",
|
|
1429
1429
|
className: "grid size-6 shrink-0 cursor-pointer place-items-center rounded-sm text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3.5",
|
|
1430
1430
|
onClick: () => {
|
|
1431
|
-
|
|
1431
|
+
fe(null), O(""), ie.current?.focus();
|
|
1432
1432
|
},
|
|
1433
|
-
children: /* @__PURE__ */ r(
|
|
1433
|
+
children: /* @__PURE__ */ r(P, { "aria-hidden": "true" })
|
|
1434
1434
|
}) : null,
|
|
1435
|
-
_ ? null : /* @__PURE__ */ r(
|
|
1435
|
+
_ ? null : /* @__PURE__ */ r(j, {
|
|
1436
1436
|
"aria-hidden": "true",
|
|
1437
|
-
className:
|
|
1437
|
+
className: V("mx-1 size-4 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none", T && "rotate-180")
|
|
1438
1438
|
})
|
|
1439
1439
|
]
|
|
1440
1440
|
})
|
|
1441
1441
|
}), /* @__PURE__ */ r(rn, {
|
|
1442
1442
|
align: "start",
|
|
1443
1443
|
sideOffset: 4,
|
|
1444
|
-
className:
|
|
1444
|
+
className: V("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
1445
1445
|
onOpenAutoFocus: (e) => {
|
|
1446
1446
|
e.preventDefault();
|
|
1447
1447
|
},
|
|
1448
1448
|
onInteractOutside: (e) => {
|
|
1449
|
-
e.target instanceof Node &&
|
|
1449
|
+
e.target instanceof Node && ae.current?.contains(e.target) && e.preventDefault();
|
|
1450
1450
|
},
|
|
1451
1451
|
onMouseDown: (e) => {
|
|
1452
1452
|
e.preventDefault();
|
|
1453
1453
|
},
|
|
1454
|
-
children: /* @__PURE__ */ i(
|
|
1454
|
+
children: /* @__PURE__ */ i(B.List, {
|
|
1455
1455
|
"data-slot": "combobox-list",
|
|
1456
1456
|
className: "max-h-72 overflow-y-auto",
|
|
1457
1457
|
children: [
|
|
1458
|
-
_ &&
|
|
1459
|
-
_ &&
|
|
1458
|
+
_ && N.status === "idle" ? /* @__PURE__ */ r(nr, { children: f }) : null,
|
|
1459
|
+
_ && N.status === "loading" ? /* @__PURE__ */ i(nr, { children: [/* @__PURE__ */ r(ce, {
|
|
1460
1460
|
"aria-hidden": "true",
|
|
1461
1461
|
className: "size-4 animate-spin"
|
|
1462
1462
|
}), u] }) : null,
|
|
1463
|
-
_ &&
|
|
1463
|
+
_ && N.status === "error" ? /* @__PURE__ */ r(nr, {
|
|
1464
1464
|
tone: "destructive",
|
|
1465
1465
|
children: d
|
|
1466
1466
|
}) : null,
|
|
1467
|
-
!_ ||
|
|
1467
|
+
!_ || N.status === "done" ? /* @__PURE__ */ r(B.Empty, {
|
|
1468
1468
|
className: "px-2.5 py-5 text-center text-sm text-muted-foreground",
|
|
1469
|
-
children:
|
|
1469
|
+
children: ue ? null : l
|
|
1470
1470
|
}) : null,
|
|
1471
|
-
(!_ ||
|
|
1471
|
+
(!_ || N.status === "done") && le.map((e) => /* @__PURE__ */ i(B.Item, {
|
|
1472
1472
|
value: e.value,
|
|
1473
1473
|
keywords: [e.label, e.description ?? ""],
|
|
1474
1474
|
disabled: e.disabled,
|
|
1475
1475
|
onSelect: () => {
|
|
1476
|
-
|
|
1476
|
+
he(e);
|
|
1477
1477
|
},
|
|
1478
|
-
className:
|
|
1478
|
+
className: V(X, "data-[selected=true]:bg-accent"),
|
|
1479
1479
|
children: [
|
|
1480
1480
|
e.icon ? /* @__PURE__ */ r("span", {
|
|
1481
1481
|
"aria-hidden": "true",
|
|
@@ -1492,25 +1492,25 @@ function er(e) {
|
|
|
1492
1492
|
children: e.description
|
|
1493
1493
|
}) : null]
|
|
1494
1494
|
}),
|
|
1495
|
-
/* @__PURE__ */ r(
|
|
1495
|
+
/* @__PURE__ */ r(A, {
|
|
1496
1496
|
"aria-hidden": "true",
|
|
1497
|
-
className:
|
|
1497
|
+
className: V("size-4 shrink-0 text-brand", _e(e) ? "opacity-100" : "opacity-0")
|
|
1498
1498
|
})
|
|
1499
1499
|
]
|
|
1500
1500
|
}, e.value)),
|
|
1501
|
-
|
|
1501
|
+
ue ? /* @__PURE__ */ i(B.Item, {
|
|
1502
1502
|
forceMount: !0,
|
|
1503
1503
|
value: $n,
|
|
1504
1504
|
onSelect: () => {
|
|
1505
|
-
|
|
1505
|
+
he(ue);
|
|
1506
1506
|
},
|
|
1507
|
-
className:
|
|
1508
|
-
children: [/* @__PURE__ */ r(
|
|
1507
|
+
className: V(X, "data-[selected=true]:bg-accent"),
|
|
1508
|
+
children: [/* @__PURE__ */ r(pe, {
|
|
1509
1509
|
"aria-hidden": "true",
|
|
1510
1510
|
className: "size-4 shrink-0 text-brand"
|
|
1511
1511
|
}), /* @__PURE__ */ r("span", {
|
|
1512
1512
|
className: "truncate",
|
|
1513
|
-
children: c(
|
|
1513
|
+
children: c(M.trim())
|
|
1514
1514
|
})]
|
|
1515
1515
|
}) : null
|
|
1516
1516
|
]
|
|
@@ -1528,7 +1528,7 @@ function tr(e, t) {
|
|
|
1528
1528
|
function nr({ children: e, tone: t }) {
|
|
1529
1529
|
return /* @__PURE__ */ r("div", {
|
|
1530
1530
|
role: "status",
|
|
1531
|
-
className:
|
|
1531
|
+
className: V("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
1532
1532
|
children: e
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
@@ -1537,22 +1537,22 @@ var rr = {
|
|
|
1537
1537
|
info: {
|
|
1538
1538
|
box: "border-border bg-card",
|
|
1539
1539
|
icon: "text-info",
|
|
1540
|
-
Icon:
|
|
1540
|
+
Icon: M
|
|
1541
1541
|
},
|
|
1542
1542
|
success: {
|
|
1543
1543
|
box: "border-border bg-card",
|
|
1544
1544
|
icon: "text-success",
|
|
1545
|
-
Icon:
|
|
1545
|
+
Icon: oe
|
|
1546
1546
|
},
|
|
1547
1547
|
warning: {
|
|
1548
1548
|
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
1549
1549
|
icon: "text-warning",
|
|
1550
|
-
Icon:
|
|
1550
|
+
Icon: ge
|
|
1551
1551
|
},
|
|
1552
1552
|
danger: {
|
|
1553
1553
|
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
1554
1554
|
icon: "text-destructive",
|
|
1555
|
-
Icon:
|
|
1555
|
+
Icon: ge
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
1558
|
function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
@@ -1560,11 +1560,11 @@ function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1560
1560
|
return /* @__PURE__ */ i("div", {
|
|
1561
1561
|
"data-slot": "alert",
|
|
1562
1562
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
1563
|
-
className:
|
|
1563
|
+
className: V("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
1564
1564
|
...s,
|
|
1565
1565
|
children: [/* @__PURE__ */ r("span", {
|
|
1566
1566
|
"aria-hidden": "true",
|
|
1567
|
-
className:
|
|
1567
|
+
className: V("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
1568
1568
|
children: n ?? /* @__PURE__ */ r(u, {})
|
|
1569
1569
|
}), /* @__PURE__ */ i("div", {
|
|
1570
1570
|
className: "flex flex-col gap-0.5",
|
|
@@ -1582,13 +1582,13 @@ function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1582
1582
|
function ar({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1583
1583
|
return /* @__PURE__ */ i("div", {
|
|
1584
1584
|
"data-slot": "empty-state",
|
|
1585
|
-
className:
|
|
1585
|
+
className: V("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
1586
1586
|
...s,
|
|
1587
1587
|
children: [
|
|
1588
1588
|
/* @__PURE__ */ r("span", {
|
|
1589
1589
|
"aria-hidden": "true",
|
|
1590
1590
|
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
1591
|
-
children: n ?? /* @__PURE__ */ r(
|
|
1591
|
+
children: n ?? /* @__PURE__ */ r(pe, {})
|
|
1592
1592
|
}),
|
|
1593
1593
|
/* @__PURE__ */ r("p", {
|
|
1594
1594
|
className: "m-0 type-h4",
|
|
@@ -1612,7 +1612,7 @@ function or({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
1612
1612
|
"data-slot": "progress",
|
|
1613
1613
|
value: t,
|
|
1614
1614
|
max: n,
|
|
1615
|
-
className:
|
|
1615
|
+
className: V("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
1616
1616
|
...i,
|
|
1617
1617
|
children: /* @__PURE__ */ r(v.Indicator, {
|
|
1618
1618
|
className: "h-full rounded-full bg-brand transition-[width]",
|
|
@@ -1625,23 +1625,23 @@ function sr({ className: e, ...t }) {
|
|
|
1625
1625
|
return /* @__PURE__ */ r("div", {
|
|
1626
1626
|
"data-slot": "skeleton",
|
|
1627
1627
|
"aria-hidden": "true",
|
|
1628
|
-
className:
|
|
1628
|
+
className: V("animate-pulse rounded-sm bg-muted", e),
|
|
1629
1629
|
...t
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
// src/ui/feedback/spinner.component.tsx
|
|
1633
1633
|
function cr({ className: e, label: t = "Loading", ...n }) {
|
|
1634
|
-
return /* @__PURE__ */ r(
|
|
1634
|
+
return /* @__PURE__ */ r(ce, {
|
|
1635
1635
|
"data-slot": "spinner",
|
|
1636
1636
|
role: "status",
|
|
1637
1637
|
"aria-label": t,
|
|
1638
|
-
className:
|
|
1638
|
+
className: V("size-4 animate-spin text-muted-foreground", e),
|
|
1639
1639
|
...n
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
1642
|
// src/ui/feedback/toaster.component.tsx
|
|
1643
1643
|
function lr(e) {
|
|
1644
|
-
return /* @__PURE__ */ r(
|
|
1644
|
+
return /* @__PURE__ */ r(De, {
|
|
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",
|
|
@@ -1670,7 +1670,7 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1670
1670
|
return /* @__PURE__ */ r($t, { children: /* @__PURE__ */ r("div", {
|
|
1671
1671
|
"data-slot": "file-drop-overlay",
|
|
1672
1672
|
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1673
|
-
className:
|
|
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),
|
|
1674
1674
|
children: /* @__PURE__ */ r("div", {
|
|
1675
1675
|
className: "grid size-full place-items-center rounded-2xl border-2 border-dashed border-brand/60 transition-colors group-data-[state=rejected]/drop:border-destructive/60",
|
|
1676
1676
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -1683,7 +1683,7 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1683
1683
|
children: [/* @__PURE__ */ r("span", {
|
|
1684
1684
|
"aria-hidden": "true",
|
|
1685
1685
|
className: "absolute inset-0 rounded-full bg-current opacity-20 motion-safe:animate-ping"
|
|
1686
|
-
}), t ? c ?? /* @__PURE__ */ r(
|
|
1686
|
+
}), t ? c ?? /* @__PURE__ */ r(_e, { "aria-hidden": "true" }) : /* @__PURE__ */ r(ee, { "aria-hidden": "true" })]
|
|
1687
1687
|
}),
|
|
1688
1688
|
/* @__PURE__ */ r("span", {
|
|
1689
1689
|
className: "text-2xl font-semibold text-foreground",
|
|
@@ -1700,11 +1700,11 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1700
1700
|
}
|
|
1701
1701
|
// src/ui/file-drop/page-drop.hook.ts
|
|
1702
1702
|
function pr(e) {
|
|
1703
|
-
let [t, n] =
|
|
1703
|
+
let [t, n] = R({
|
|
1704
1704
|
isOver: !1,
|
|
1705
1705
|
isAccepted: !0
|
|
1706
|
-
}), r =
|
|
1707
|
-
return r.current = e,
|
|
1706
|
+
}), r = L(e);
|
|
1707
|
+
return r.current = e, I(() => {
|
|
1708
1708
|
let e = 0, t = (e) => !r.current.disabled && !!e.dataTransfer?.types.includes("Files"), i = () => {
|
|
1709
1709
|
e = 0, n({
|
|
1710
1710
|
isOver: !1,
|
|
@@ -1741,14 +1741,14 @@ function pr(e) {
|
|
|
1741
1741
|
function mr({ className: e, ...t }) {
|
|
1742
1742
|
return /* @__PURE__ */ r(a.Root, {
|
|
1743
1743
|
"data-slot": "accordion",
|
|
1744
|
-
className:
|
|
1744
|
+
className: V("border-t", e),
|
|
1745
1745
|
...t
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
1748
|
function hr({ className: e, ...t }) {
|
|
1749
1749
|
return /* @__PURE__ */ r(a.Item, {
|
|
1750
1750
|
"data-slot": "accordion-item",
|
|
1751
|
-
className:
|
|
1751
|
+
className: V("border-b", e),
|
|
1752
1752
|
...t
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
@@ -1757,7 +1757,7 @@ function gr({ className: e, children: t, ...n }) {
|
|
|
1757
1757
|
className: "m-0 flex",
|
|
1758
1758
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
1759
1759
|
"data-slot": "accordion-trigger",
|
|
1760
|
-
className:
|
|
1760
|
+
className: V("group flex flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start type-h4 outline-none transition-colors duration-150 hover:text-brand-text focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", e),
|
|
1761
1761
|
...n,
|
|
1762
1762
|
children: [t, /* @__PURE__ */ i("svg", {
|
|
1763
1763
|
viewBox: "0 0 16 16",
|
|
@@ -1789,7 +1789,7 @@ function _r({ className: e, children: t, ...n }) {
|
|
|
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",
|
|
1790
1790
|
...n,
|
|
1791
1791
|
children: /* @__PURE__ */ r("div", {
|
|
1792
|
-
className:
|
|
1792
|
+
className: V("pb-3", e),
|
|
1793
1793
|
children: t
|
|
1794
1794
|
})
|
|
1795
1795
|
});
|
|
@@ -1798,21 +1798,21 @@ function _r({ className: e, children: t, ...n }) {
|
|
|
1798
1798
|
function vr({ className: e, ...t }) {
|
|
1799
1799
|
return /* @__PURE__ */ r("div", {
|
|
1800
1800
|
"data-slot": "card",
|
|
1801
|
-
className:
|
|
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
1805
|
function yr({ className: e, ...t }) {
|
|
1806
1806
|
return /* @__PURE__ */ r("div", {
|
|
1807
1807
|
"data-slot": "card-header",
|
|
1808
|
-
className:
|
|
1808
|
+
className: V("flex flex-col gap-1 px-5 pt-5", e),
|
|
1809
1809
|
...t
|
|
1810
1810
|
});
|
|
1811
1811
|
}
|
|
1812
1812
|
function br({ className: e, children: t, ...n }) {
|
|
1813
1813
|
return /* @__PURE__ */ r("h3", {
|
|
1814
1814
|
"data-slot": "card-title",
|
|
1815
|
-
className:
|
|
1815
|
+
className: V("m-0 type-h4", e),
|
|
1816
1816
|
...n,
|
|
1817
1817
|
children: t
|
|
1818
1818
|
});
|
|
@@ -1820,21 +1820,21 @@ function br({ className: e, children: t, ...n }) {
|
|
|
1820
1820
|
function xr({ className: e, ...t }) {
|
|
1821
1821
|
return /* @__PURE__ */ r("p", {
|
|
1822
1822
|
"data-slot": "card-description",
|
|
1823
|
-
className:
|
|
1823
|
+
className: V("m-0 text-[13px] text-muted-foreground", e),
|
|
1824
1824
|
...t
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
function Sr({ className: e, ...t }) {
|
|
1828
1828
|
return /* @__PURE__ */ r("div", {
|
|
1829
1829
|
"data-slot": "card-content",
|
|
1830
|
-
className:
|
|
1830
|
+
className: V("px-5 py-4", e),
|
|
1831
1831
|
...t
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
1834
|
function Cr({ className: e, ...t }) {
|
|
1835
1835
|
return /* @__PURE__ */ r("div", {
|
|
1836
1836
|
"data-slot": "card-footer",
|
|
1837
|
-
className:
|
|
1837
|
+
className: V("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1838
1838
|
...t
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
@@ -1842,28 +1842,28 @@ function Cr({ className: e, ...t }) {
|
|
|
1842
1842
|
function wr({ className: e, ...t }) {
|
|
1843
1843
|
return /* @__PURE__ */ r("kbd", {
|
|
1844
1844
|
"data-slot": "kbd",
|
|
1845
|
-
className:
|
|
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),
|
|
1846
1846
|
...t
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
// src/ui/layout/resizable.component.tsx
|
|
1850
1850
|
function Tr({ className: e, ...t }) {
|
|
1851
|
-
return /* @__PURE__ */ r(
|
|
1851
|
+
return /* @__PURE__ */ r(Oe, {
|
|
1852
1852
|
"data-slot": "resizable-panel-group",
|
|
1853
|
-
className:
|
|
1853
|
+
className: V("flex size-full", e),
|
|
1854
1854
|
...t
|
|
1855
1855
|
});
|
|
1856
1856
|
}
|
|
1857
1857
|
function Er(e) {
|
|
1858
|
-
return /* @__PURE__ */ r(
|
|
1858
|
+
return /* @__PURE__ */ r(ke, {
|
|
1859
1859
|
"data-slot": "resizable-panel",
|
|
1860
1860
|
...e
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
function Dr({ className: e, ...t }) {
|
|
1864
|
-
return /* @__PURE__ */ r(
|
|
1864
|
+
return /* @__PURE__ */ r(Ae, {
|
|
1865
1865
|
"data-slot": "resizable-handle",
|
|
1866
|
-
className:
|
|
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
|
}
|
|
@@ -1871,7 +1871,7 @@ function Dr({ className: e, ...t }) {
|
|
|
1871
1871
|
function Or({ className: e, children: t, ...n }) {
|
|
1872
1872
|
return /* @__PURE__ */ i(b.Root, {
|
|
1873
1873
|
"data-slot": "scroll-area",
|
|
1874
|
-
className:
|
|
1874
|
+
className: V("relative overflow-hidden", e),
|
|
1875
1875
|
...n,
|
|
1876
1876
|
children: [
|
|
1877
1877
|
/* @__PURE__ */ r(b.Viewport, {
|
|
@@ -1888,18 +1888,18 @@ function kr({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1888
1888
|
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1889
1889
|
"data-slot": "scroll-area-scrollbar",
|
|
1890
1890
|
orientation: t,
|
|
1891
|
-
className:
|
|
1891
|
+
className: V("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1892
1892
|
...n,
|
|
1893
1893
|
children: /* @__PURE__ */ r(b.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
// src/ui/layout/separator.component.tsx
|
|
1897
1897
|
function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
|
|
1898
|
-
return /* @__PURE__ */ r(
|
|
1898
|
+
return /* @__PURE__ */ r(S.Root, {
|
|
1899
1899
|
"data-slot": "separator",
|
|
1900
1900
|
orientation: t,
|
|
1901
1901
|
decorative: n,
|
|
1902
|
-
className:
|
|
1902
|
+
className: V("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1903
1903
|
...i
|
|
1904
1904
|
});
|
|
1905
1905
|
}
|
|
@@ -1910,7 +1910,7 @@ function jr({ className: e, ...t }) {
|
|
|
1910
1910
|
className: "relative w-full overflow-x-auto",
|
|
1911
1911
|
children: /* @__PURE__ */ r("table", {
|
|
1912
1912
|
"data-slot": "table",
|
|
1913
|
-
className:
|
|
1913
|
+
className: V("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1914
1914
|
...t
|
|
1915
1915
|
})
|
|
1916
1916
|
});
|
|
@@ -1930,28 +1930,28 @@ function Nr(e) {
|
|
|
1930
1930
|
function Pr({ className: e, ...t }) {
|
|
1931
1931
|
return /* @__PURE__ */ r("tr", {
|
|
1932
1932
|
"data-slot": "table-row",
|
|
1933
|
-
className:
|
|
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
1937
|
function Fr({ className: e, ...t }) {
|
|
1938
1938
|
return /* @__PURE__ */ r("th", {
|
|
1939
1939
|
"data-slot": "table-head",
|
|
1940
|
-
className:
|
|
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
1944
|
function Ir({ className: e, ...t }) {
|
|
1945
1945
|
return /* @__PURE__ */ r("td", {
|
|
1946
1946
|
"data-slot": "table-cell",
|
|
1947
|
-
className:
|
|
1947
|
+
className: V("px-3 py-[11px] align-middle", e),
|
|
1948
1948
|
...t
|
|
1949
1949
|
});
|
|
1950
1950
|
}
|
|
1951
1951
|
function Lr({ className: e, ...t }) {
|
|
1952
1952
|
return /* @__PURE__ */ r("caption", {
|
|
1953
1953
|
"data-slot": "table-caption",
|
|
1954
|
-
className:
|
|
1954
|
+
className: V("mt-3 text-xs text-muted-foreground", e),
|
|
1955
1955
|
...t
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
@@ -1966,22 +1966,22 @@ function Rr({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
|
1966
1966
|
function zr({ className: e, ...t }) {
|
|
1967
1967
|
return /* @__PURE__ */ r("ol", {
|
|
1968
1968
|
"data-slot": "breadcrumb-list",
|
|
1969
|
-
className:
|
|
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
1973
|
function Br({ className: e, ...t }) {
|
|
1974
1974
|
return /* @__PURE__ */ r("li", {
|
|
1975
1975
|
"data-slot": "breadcrumb-item",
|
|
1976
|
-
className:
|
|
1976
|
+
className: V("inline-flex items-center gap-2", e),
|
|
1977
1977
|
...t
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
function Vr({ asChild: e = !1, className: t, ...n }) {
|
|
1981
|
-
let i = e ?
|
|
1981
|
+
let i = e ? w.Root : "a";
|
|
1982
1982
|
return /* @__PURE__ */ r(i, {
|
|
1983
1983
|
"data-slot": "breadcrumb-link",
|
|
1984
|
-
className:
|
|
1984
|
+
className: V("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1985
1985
|
...n
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
@@ -1989,7 +1989,7 @@ function Hr({ className: e, ...t }) {
|
|
|
1989
1989
|
return /* @__PURE__ */ r("span", {
|
|
1990
1990
|
"data-slot": "breadcrumb-page",
|
|
1991
1991
|
"aria-current": "page",
|
|
1992
|
-
className:
|
|
1992
|
+
className: V("font-medium text-foreground", e),
|
|
1993
1993
|
...t
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
@@ -2011,7 +2011,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2011
2011
|
viewBox: "0 0 24 24",
|
|
2012
2012
|
fill: "currentColor",
|
|
2013
2013
|
"aria-hidden": "true",
|
|
2014
|
-
className:
|
|
2014
|
+
className: V("group/menu-icon size-5", t),
|
|
2015
2015
|
...n,
|
|
2016
2016
|
children: [
|
|
2017
2017
|
/* @__PURE__ */ r("rect", {
|
|
@@ -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:
|
|
2023
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
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:
|
|
2031
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
2032
2032
|
}),
|
|
2033
2033
|
/* @__PURE__ */ r("rect", {
|
|
2034
2034
|
x: "4",
|
|
@@ -2036,7 +2036,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2036
2036
|
width: "16",
|
|
2037
2037
|
height: "2",
|
|
2038
2038
|
rx: "1",
|
|
2039
|
-
className:
|
|
2039
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
2040
2040
|
})
|
|
2041
2041
|
]
|
|
2042
2042
|
});
|
|
@@ -2045,7 +2045,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2045
2045
|
function Kr({ className: e, ...t }) {
|
|
2046
2046
|
return /* @__PURE__ */ r(m.Root, {
|
|
2047
2047
|
"data-slot": "menubar",
|
|
2048
|
-
className:
|
|
2048
|
+
className: V("flex items-center gap-0.5", e),
|
|
2049
2049
|
...t
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
@@ -2053,7 +2053,7 @@ var qr = m.Menu;
|
|
|
2053
2053
|
function Jr({ className: e, ...t }) {
|
|
2054
2054
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
2055
2055
|
"data-slot": "menubar-trigger",
|
|
2056
|
-
className:
|
|
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
|
}
|
|
@@ -2062,28 +2062,28 @@ function Yr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
|
2062
2062
|
"data-slot": "menubar-content",
|
|
2063
2063
|
align: t,
|
|
2064
2064
|
sideOffset: n,
|
|
2065
|
-
className:
|
|
2065
|
+
className: V("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
2066
2066
|
...i
|
|
2067
2067
|
}) });
|
|
2068
2068
|
}
|
|
2069
2069
|
function Xr({ className: e, ...t }) {
|
|
2070
2070
|
return /* @__PURE__ */ r(m.Item, {
|
|
2071
2071
|
"data-slot": "menubar-item",
|
|
2072
|
-
className:
|
|
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
2076
|
function Zr({ className: e, ...t }) {
|
|
2077
2077
|
return /* @__PURE__ */ r("span", {
|
|
2078
2078
|
"data-slot": "menubar-shortcut",
|
|
2079
|
-
className:
|
|
2079
|
+
className: V("ms-auto text-xs text-muted-foreground", e),
|
|
2080
2080
|
...t
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
2083
|
function Qr({ className: e, ...t }) {
|
|
2084
2084
|
return /* @__PURE__ */ r(m.Separator, {
|
|
2085
2085
|
"data-slot": "menubar-separator",
|
|
2086
|
-
className:
|
|
2086
|
+
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
2087
2087
|
...t
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
@@ -2091,7 +2091,7 @@ function Qr({ className: e, ...t }) {
|
|
|
2091
2091
|
function $r({ className: e, children: t, ...n }) {
|
|
2092
2092
|
return /* @__PURE__ */ i(h.Root, {
|
|
2093
2093
|
"data-slot": "navigation-menu",
|
|
2094
|
-
className:
|
|
2094
|
+
className: V("relative flex items-center", e),
|
|
2095
2095
|
...n,
|
|
2096
2096
|
children: [t, /* @__PURE__ */ r("div", {
|
|
2097
2097
|
className: "absolute start-0 top-full flex justify-center",
|
|
@@ -2102,7 +2102,7 @@ function $r({ className: e, children: t, ...n }) {
|
|
|
2102
2102
|
function ei({ className: e, ...t }) {
|
|
2103
2103
|
return /* @__PURE__ */ r(h.List, {
|
|
2104
2104
|
"data-slot": "navigation-menu-list",
|
|
2105
|
-
className:
|
|
2105
|
+
className: V("m-0 flex list-none items-center gap-1 p-0", e),
|
|
2106
2106
|
...t
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
@@ -2110,9 +2110,9 @@ var ti = h.Item, ni = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer
|
|
|
2110
2110
|
function ri({ className: e, children: t, ...n }) {
|
|
2111
2111
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
2112
2112
|
"data-slot": "navigation-menu-trigger",
|
|
2113
|
-
className:
|
|
2113
|
+
className: V(ni, "group", e),
|
|
2114
2114
|
...n,
|
|
2115
|
-
children: [t, /* @__PURE__ */ r(
|
|
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",
|
|
2117
2117
|
"aria-hidden": "true"
|
|
2118
2118
|
})]
|
|
@@ -2121,14 +2121,14 @@ function ri({ className: e, children: t, ...n }) {
|
|
|
2121
2121
|
function ii({ className: e, ...t }) {
|
|
2122
2122
|
return /* @__PURE__ */ r(h.Content, {
|
|
2123
2123
|
"data-slot": "navigation-menu-content",
|
|
2124
|
-
className:
|
|
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
2128
|
function ai({ className: e, ...t }) {
|
|
2129
2129
|
return /* @__PURE__ */ r(h.Link, {
|
|
2130
2130
|
"data-slot": "navigation-menu-link",
|
|
2131
|
-
className:
|
|
2131
|
+
className: V(ni, e),
|
|
2132
2132
|
...t
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
@@ -2138,11 +2138,11 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2138
2138
|
return /* @__PURE__ */ i("nav", {
|
|
2139
2139
|
"data-slot": "pagination",
|
|
2140
2140
|
"aria-label": "Pagination",
|
|
2141
|
-
className:
|
|
2141
|
+
className: V("flex items-center gap-1", o),
|
|
2142
2142
|
children: [
|
|
2143
2143
|
/* @__PURE__ */ r("button", {
|
|
2144
2144
|
type: "button",
|
|
2145
|
-
className:
|
|
2145
|
+
className: J({
|
|
2146
2146
|
variant: "ghost",
|
|
2147
2147
|
size: "sm"
|
|
2148
2148
|
}),
|
|
@@ -2154,7 +2154,7 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2154
2154
|
type: "button",
|
|
2155
2155
|
"aria-current": t === e ? "page" : void 0,
|
|
2156
2156
|
"aria-label": `Page ${t}`,
|
|
2157
|
-
className:
|
|
2157
|
+
className: J({
|
|
2158
2158
|
variant: t === e ? "outline" : "ghost",
|
|
2159
2159
|
size: "icon-sm"
|
|
2160
2160
|
}),
|
|
@@ -2163,7 +2163,7 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2163
2163
|
}, t)),
|
|
2164
2164
|
/* @__PURE__ */ r("button", {
|
|
2165
2165
|
type: "button",
|
|
2166
|
-
className:
|
|
2166
|
+
className: J({
|
|
2167
2167
|
variant: "ghost",
|
|
2168
2168
|
size: "sm"
|
|
2169
2169
|
}),
|
|
@@ -2175,55 +2175,36 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
// src/ui/navigation/tabs.component.tsx
|
|
2178
|
-
var si =
|
|
2179
|
-
function
|
|
2180
|
-
let
|
|
2181
|
-
return Math.round(r ? a : -a);
|
|
2182
|
-
}
|
|
2183
|
-
function di({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2184
|
-
let l = I(null), u = I(i ?? a), [d, f] = L(), p = I(void 0), m = I(void 0), [h, g] = L(i ?? a), _ = P((e) => {
|
|
2178
|
+
var si = ye(null), ci = ye("pill");
|
|
2179
|
+
function li({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2180
|
+
let l = L(null), u = L(i ?? a), [d, f] = R(!1), p = L(void 0), m = L(void 0), [h, g] = R(i ?? a), _ = F((e) => {
|
|
2185
2181
|
let t = l.current, n = [...t?.querySelectorAll("[data-slot=tabs-trigger]") ?? []], r = n.find((e) => e.dataset.value === u.current), i = n.find((t) => t.dataset.value === e);
|
|
2186
2182
|
if (u.current = e, g(e), !t || !r || !i || r === i) return;
|
|
2187
2183
|
let a = t.ownerDocument.getElementById(r.getAttribute("aria-controls") ?? "");
|
|
2188
2184
|
p.current = a?.offsetHeight;
|
|
2189
|
-
let o =
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
vertical: o
|
|
2200
|
-
} : void 0, f({
|
|
2201
|
-
size: 0,
|
|
2202
|
-
direction: "z"
|
|
2203
|
-
});
|
|
2204
|
-
return;
|
|
2205
|
-
}
|
|
2206
|
-
let d = o ? i.offsetTop - r.offsetTop : i.offsetLeft - r.offsetLeft, h = n.indexOf(i) > n.indexOf(r);
|
|
2207
|
-
f({
|
|
2208
|
-
size: ui(d, (o ? c?.offsetHeight : c?.offsetWidth) ?? 0, o ? t.offsetHeight : t.offsetWidth, h),
|
|
2209
|
-
direction: o ? "y" : "x"
|
|
2210
|
-
});
|
|
2185
|
+
let o = a?.querySelector(":scope > [data-slot=tabs-content-body]");
|
|
2186
|
+
m.current = a && o ? {
|
|
2187
|
+
node: o.cloneNode(!0),
|
|
2188
|
+
top: o.offsetTop,
|
|
2189
|
+
left: o.offsetLeft,
|
|
2190
|
+
width: o.offsetWidth,
|
|
2191
|
+
fromEdge: r.dataset.edge,
|
|
2192
|
+
toEdge: i.dataset.edge,
|
|
2193
|
+
vertical: s === "vertical"
|
|
2194
|
+
} : void 0, f(!0);
|
|
2211
2195
|
}, [s]);
|
|
2212
|
-
return i !== void 0 && i !== u.current && _(i), /* @__PURE__ */ r(
|
|
2196
|
+
return i !== void 0 && i !== u.current && _(i), /* @__PURE__ */ r(E.Root, {
|
|
2213
2197
|
ref: l,
|
|
2214
2198
|
"data-slot": "tabs",
|
|
2215
|
-
"data-direction": d
|
|
2216
|
-
style:
|
|
2217
|
-
...t,
|
|
2218
|
-
"--tab-shift": `${String(d.size)}px`
|
|
2219
|
-
},
|
|
2199
|
+
"data-direction": d ? "z" : void 0,
|
|
2200
|
+
style: t,
|
|
2220
2201
|
value: i,
|
|
2221
2202
|
defaultValue: a,
|
|
2222
2203
|
orientation: s,
|
|
2223
2204
|
onValueChange: (e) => {
|
|
2224
|
-
_(e), o?.(e);
|
|
2205
|
+
i === void 0 && _(e), o?.(e);
|
|
2225
2206
|
},
|
|
2226
|
-
className:
|
|
2207
|
+
className: V("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2227
2208
|
...c,
|
|
2228
2209
|
children: /* @__PURE__ */ r(si, {
|
|
2229
2210
|
value: {
|
|
@@ -2235,45 +2216,45 @@ function di({ className: e, style: t, children: n, value: i, defaultValue: a, on
|
|
|
2235
2216
|
})
|
|
2236
2217
|
});
|
|
2237
2218
|
}
|
|
2238
|
-
var
|
|
2219
|
+
var ui = {
|
|
2239
2220
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2240
2221
|
underline: "w-full gap-5 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:gap-1 data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e",
|
|
2241
2222
|
outline: "z-1 w-full gap-1 data-[orientation=vertical]:w-auto"
|
|
2242
|
-
},
|
|
2223
|
+
}, di = {
|
|
2243
2224
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2244
2225
|
underline: "bg-brand group-data-[orientation=horizontal]/tabs-list:top-auto group-data-[orientation=horizontal]/tabs-list:-bottom-px group-data-[orientation=horizontal]/tabs-list:h-0.5 group-data-[orientation=vertical]/tabs-list:left-auto group-data-[orientation=vertical]/tabs-list:-end-px group-data-[orientation=vertical]/tabs-list:w-0.5",
|
|
2245
2226
|
outline: "hidden"
|
|
2246
2227
|
};
|
|
2247
|
-
function
|
|
2248
|
-
let c =
|
|
2249
|
-
return /* @__PURE__ */ i(
|
|
2228
|
+
function fi({ className: e, variant: t = "pill", fitted: n = !1, flap: a = !1, children: o, ...s }) {
|
|
2229
|
+
let c = lt("[data-slot=tabs-trigger][data-state=active]");
|
|
2230
|
+
return /* @__PURE__ */ i(E.List, {
|
|
2250
2231
|
ref: c,
|
|
2251
2232
|
"data-slot": "tabs-list",
|
|
2252
2233
|
"data-variant": t,
|
|
2253
2234
|
"data-motion": a ? "flap" : "raise",
|
|
2254
|
-
className:
|
|
2235
|
+
className: V("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", ui[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2255
2236
|
...s,
|
|
2256
2237
|
children: [/* @__PURE__ */ r("span", {
|
|
2257
2238
|
"aria-hidden": "true",
|
|
2258
2239
|
"data-slot": "tabs-indicator",
|
|
2259
|
-
className:
|
|
2240
|
+
className: V(ut, di[t])
|
|
2260
2241
|
}), /* @__PURE__ */ r(ci, {
|
|
2261
2242
|
value: t,
|
|
2262
2243
|
children: o
|
|
2263
2244
|
})]
|
|
2264
2245
|
});
|
|
2265
2246
|
}
|
|
2266
|
-
var
|
|
2267
|
-
function
|
|
2247
|
+
var pi = "isolate before:absolute before:-z-10 before:rounded-none before:border before:border-border before:bg-background before:transition-[top,inset-inline-start,border-width,transform,border-radius,border-top-color,border-inline-start-color,bottom,inset-inline-end] before:duration-250 motion-reduce:before:transition-none before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-end,step-end] data-[state=active]:before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-start,step-start] data-[orientation=horizontal]:before:inset-x-0 data-[orientation=horizontal]:before:bottom-0 data-[orientation=horizontal]:before:top-full data-[orientation=horizontal]:before:border-y-0 data-[orientation=horizontal]:data-[state=active]:before:top-0 data-[orientation=horizontal]:data-[state=active]:before:-bottom-px data-[orientation=horizontal]:data-[state=active]:before:border-t-2 data-[orientation=horizontal]:data-[state=active]:before:rounded-t-md data-[orientation=horizontal]:data-[state=active]:before:border-t-brand data-[orientation=vertical]:before:inset-y-0 data-[orientation=vertical]:before:end-0 data-[orientation=vertical]:before:start-full data-[orientation=vertical]:before:border-x-0 data-[orientation=vertical]:data-[state=active]:before:start-0 data-[orientation=vertical]:data-[state=active]:before:-end-px data-[orientation=vertical]:data-[state=active]:before:border-s-2 data-[orientation=vertical]:data-[state=active]:before:rounded-s-md data-[orientation=vertical]:data-[state=active]:before:border-s-brand data-[orientation=horizontal]:[perspective:300px] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:top-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:bottom-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:-bottom-px! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:border-t-2! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:origin-bottom data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:[transform:rotateX(90deg)] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:[transform:rotateX(0deg)] data-[orientation=horizontal]:focus-visible:before:bg-linear-to-b data-[orientation=vertical]:focus-visible:before:bg-linear-to-r rtl:data-[orientation=vertical]:focus-visible:before:bg-linear-to-l focus-visible:before:from-brand/25 focus-visible:before:to-background data-[edge=start]:before:rounded-ss-md data-[edge=end]:data-[orientation=horizontal]:before:rounded-se-md data-[edge=end]:data-[orientation=vertical]:before:rounded-es-md";
|
|
2248
|
+
function mi(e) {
|
|
2268
2249
|
e.preventDefault(), e.stopPropagation();
|
|
2269
2250
|
}
|
|
2270
|
-
function
|
|
2271
|
-
let u =
|
|
2251
|
+
function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2252
|
+
let u = xe(ci), d = F((e) => {
|
|
2272
2253
|
if (!e || u !== "outline") return;
|
|
2273
2254
|
let t = e.parentElement, n = e.dataset.orientation === "vertical", r = n ? e.offsetTop : e.offsetLeft, i = n ? e.offsetHeight : e.offsetWidth, a = (n ? t?.clientHeight : t?.clientWidth) ?? 0;
|
|
2274
2255
|
r <= 0 ? e.dataset.edge = "start" : a > 0 && r + i >= a - 1 ? e.dataset.edge = "end" : delete e.dataset.edge;
|
|
2275
2256
|
}, [u]);
|
|
2276
|
-
return /* @__PURE__ */ i(
|
|
2257
|
+
return /* @__PURE__ */ i(E.Trigger, {
|
|
2277
2258
|
ref: d,
|
|
2278
2259
|
"data-slot": "tabs-trigger",
|
|
2279
2260
|
"data-value": c,
|
|
@@ -2283,7 +2264,7 @@ function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2283
2264
|
onKeyDown: (e) => {
|
|
2284
2265
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2285
2266
|
},
|
|
2286
|
-
className:
|
|
2267
|
+
className: V("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" && pi, e),
|
|
2287
2268
|
...l,
|
|
2288
2269
|
children: [
|
|
2289
2270
|
s,
|
|
@@ -2295,32 +2276,32 @@ function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2295
2276
|
n ? /* @__PURE__ */ r("span", {
|
|
2296
2277
|
"aria-hidden": "true",
|
|
2297
2278
|
"data-slot": "tabs-close",
|
|
2298
|
-
onPointerDown:
|
|
2299
|
-
onMouseDown:
|
|
2279
|
+
onPointerDown: mi,
|
|
2280
|
+
onMouseDown: mi,
|
|
2300
2281
|
onClick: (e) => {
|
|
2301
|
-
|
|
2282
|
+
mi(e), n();
|
|
2302
2283
|
},
|
|
2303
2284
|
className: "-me-1 grid size-[18px] place-items-center rounded-sm opacity-50 transition-opacity hover:bg-muted hover:opacity-100 group-data-[state=active]/tab:opacity-80 [&_svg]:size-3",
|
|
2304
|
-
children: /* @__PURE__ */ r(
|
|
2285
|
+
children: /* @__PURE__ */ r(P, {})
|
|
2305
2286
|
}) : null
|
|
2306
2287
|
]
|
|
2307
2288
|
});
|
|
2308
2289
|
}
|
|
2309
|
-
var
|
|
2290
|
+
var gi = [
|
|
2310
2291
|
"borderTopLeftRadius",
|
|
2311
2292
|
"borderTopRightRadius",
|
|
2312
2293
|
"borderBottomRightRadius",
|
|
2313
2294
|
"borderBottomLeftRadius"
|
|
2314
2295
|
];
|
|
2315
|
-
function
|
|
2296
|
+
function _i(e, t, n) {
|
|
2316
2297
|
if (e === "start") return +!!n;
|
|
2317
2298
|
if (e === "end") return t ? n ? 2 : 3 : +!n;
|
|
2318
2299
|
}
|
|
2319
|
-
function
|
|
2320
|
-
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...
|
|
2300
|
+
function vi(e, t) {
|
|
2301
|
+
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...gi.map((e) => Number(n[e].replace("px", "")))), a = _i(t.fromEdge, t.vertical, r), o = _i(t.toEdge, t.vertical, r);
|
|
2321
2302
|
if (i === 0 || a === o) return;
|
|
2322
2303
|
let s = `${String(i)}px`, c = (t, n, r, i) => {
|
|
2323
|
-
let a = t === void 0 ? void 0 :
|
|
2304
|
+
let a = t === void 0 ? void 0 : gi[t];
|
|
2324
2305
|
a && e.animate([{ [a]: n }, { [a]: r }], i);
|
|
2325
2306
|
};
|
|
2326
2307
|
c(a, "0px", s, {
|
|
@@ -2333,7 +2314,7 @@ function bi(e, t) {
|
|
|
2333
2314
|
easing: "ease-out"
|
|
2334
2315
|
});
|
|
2335
2316
|
}
|
|
2336
|
-
function
|
|
2317
|
+
function yi(e, t) {
|
|
2337
2318
|
for (let t of e.querySelectorAll("[data-slot=tabs-content-ghost]")) t.remove();
|
|
2338
2319
|
let { node: n } = t;
|
|
2339
2320
|
n.dataset.slot = "tabs-content-ghost", n.inert = !0, n.setAttribute("aria-hidden", "true"), Object.assign(n.style, {
|
|
@@ -2343,7 +2324,7 @@ function xi(e, t) {
|
|
|
2343
2324
|
width: `${String(t.width)}px`,
|
|
2344
2325
|
animation: "none",
|
|
2345
2326
|
pointerEvents: "none"
|
|
2346
|
-
}), e.append(n),
|
|
2327
|
+
}), e.append(n), vi(e, t);
|
|
2347
2328
|
let r = n.animate([{
|
|
2348
2329
|
opacity: 1,
|
|
2349
2330
|
scale: 1,
|
|
@@ -2363,15 +2344,15 @@ function xi(e, t) {
|
|
|
2363
2344
|
n.remove();
|
|
2364
2345
|
});
|
|
2365
2346
|
}
|
|
2366
|
-
function
|
|
2367
|
-
let a =
|
|
2368
|
-
return
|
|
2347
|
+
function bi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2348
|
+
let a = xe(si), o = L(null), s = a?.active === i.value;
|
|
2349
|
+
return we(() => {
|
|
2369
2350
|
let e = o.current, t = a?.fromHeightRef.current;
|
|
2370
2351
|
if (!s || !e || !a || t === void 0 || (a.fromHeightRef.current = void 0, typeof e.animate != "function" || matchMedia("(prefers-reduced-motion: reduce)").matches)) return;
|
|
2371
2352
|
let n = a.ghostRef.current;
|
|
2372
2353
|
a.ghostRef.current = void 0;
|
|
2373
2354
|
function r(r) {
|
|
2374
|
-
e && n &&
|
|
2355
|
+
e && n && yi(e, n), e && Math.abs(r - (t ?? r)) >= 1 && e.animate([{
|
|
2375
2356
|
minHeight: `${String(t)}px`,
|
|
2376
2357
|
maxHeight: `${String(t)}px`
|
|
2377
2358
|
}, {
|
|
@@ -2392,44 +2373,44 @@ function Si({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
|
2392
2373
|
return i.observe(e), () => {
|
|
2393
2374
|
i.disconnect();
|
|
2394
2375
|
};
|
|
2395
|
-
}, [s, a]), /* @__PURE__ */ r(
|
|
2376
|
+
}, [s, a]), /* @__PURE__ */ r(E.Content, {
|
|
2396
2377
|
ref: o,
|
|
2397
2378
|
"data-slot": "tabs-content",
|
|
2398
|
-
className:
|
|
2379
|
+
className: V("relative flex-1 overflow-clip outline-none", "group-has-[[data-variant=outline]>[data-state=active][data-edge=start]]/tabs:rounded-ss-none", "group-data-[orientation=horizontal]/tabs:group-has-[[data-variant=outline]>[data-state=active][data-edge=end]]/tabs:rounded-se-none", "group-data-[orientation=vertical]/tabs:group-has-[[data-variant=outline]>[data-state=active][data-edge=end]]/tabs:rounded-es-none", e),
|
|
2399
2380
|
...i,
|
|
2400
2381
|
children: /* @__PURE__ */ r("div", {
|
|
2401
2382
|
"data-slot": "tabs-content-body",
|
|
2402
|
-
className:
|
|
2383
|
+
className: V("group-data-[direction=z]/tabs:animate-tab-in-z motion-reduce:animate-none", t),
|
|
2403
2384
|
children: n
|
|
2404
2385
|
})
|
|
2405
2386
|
});
|
|
2406
2387
|
}
|
|
2407
2388
|
// src/ui/navigation/stepper.component.tsx
|
|
2408
|
-
var
|
|
2389
|
+
var xi = {
|
|
2409
2390
|
done: "bg-primary text-primary-foreground",
|
|
2410
2391
|
current: "border-2 border-primary text-brand-text",
|
|
2411
2392
|
upcoming: "bg-muted text-muted-foreground"
|
|
2412
2393
|
};
|
|
2413
|
-
function
|
|
2394
|
+
function Si({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2414
2395
|
let l = n === "vertical";
|
|
2415
2396
|
return /* @__PURE__ */ r("ol", {
|
|
2416
2397
|
"data-slot": "stepper",
|
|
2417
2398
|
"data-orientation": n,
|
|
2418
2399
|
"aria-label": s,
|
|
2419
|
-
className:
|
|
2400
|
+
className: V("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
2420
2401
|
...c,
|
|
2421
2402
|
children: e.map((n, o) => {
|
|
2422
2403
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2423
2404
|
"aria-hidden": "true",
|
|
2424
|
-
className:
|
|
2425
|
-
children: s === "done" ? /* @__PURE__ */ r(
|
|
2405
|
+
className: V("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", xi[s]),
|
|
2406
|
+
children: s === "done" ? /* @__PURE__ */ r(A, {
|
|
2426
2407
|
className: "size-3.5",
|
|
2427
2408
|
strokeWidth: 2.5
|
|
2428
2409
|
}) : o + 1
|
|
2429
2410
|
}), d = /* @__PURE__ */ i("span", {
|
|
2430
2411
|
className: "flex min-w-0 flex-col",
|
|
2431
2412
|
children: [/* @__PURE__ */ i("span", {
|
|
2432
|
-
className:
|
|
2413
|
+
className: V("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
2433
2414
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
2434
2415
|
className: "sr-only",
|
|
2435
2416
|
children: ", done"
|
|
@@ -2450,25 +2431,25 @@ function wi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2450
2431
|
return /* @__PURE__ */ i("li", {
|
|
2451
2432
|
"data-state": s,
|
|
2452
2433
|
"aria-current": s === "current" ? "step" : void 0,
|
|
2453
|
-
className:
|
|
2434
|
+
className: V("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
2454
2435
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
2455
2436
|
"aria-hidden": "true",
|
|
2456
|
-
className:
|
|
2437
|
+
className: V("shrink-0 bg-border transition-colors duration-200 motion-reduce:transition-none", l ? "my-1 ms-[13px] h-5 w-0.5" : "h-0.5 min-w-4 flex-1", s === "done" && "bg-primary")
|
|
2457
2438
|
})]
|
|
2458
2439
|
}, n.title);
|
|
2459
2440
|
})
|
|
2460
2441
|
});
|
|
2461
2442
|
}
|
|
2462
2443
|
// src/ui/presence/presence.recipe.ts
|
|
2463
|
-
var
|
|
2444
|
+
var Ci = {
|
|
2464
2445
|
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2465
2446
|
scale: "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
2466
2447
|
drop: "data-[state=open]:animate-drop-in data-[state=closed]:animate-drop-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
2467
2448
|
};
|
|
2468
2449
|
// src/ui/presence/presence.component.tsx
|
|
2469
|
-
function
|
|
2470
|
-
let [s, c] =
|
|
2471
|
-
return e && !s && c(!0),
|
|
2450
|
+
function wi({ present: e, animation: t = "fade", unmountOnExit: n = !0, className: i, onAnimationEnd: a, ...o }) {
|
|
2451
|
+
let [s, c] = R(e), l = L(null);
|
|
2452
|
+
return e && !s && c(!0), we(() => {
|
|
2472
2453
|
if (e || !s) return;
|
|
2473
2454
|
let t = l.current;
|
|
2474
2455
|
t && getComputedStyle(t).animationName !== "none" || c(!1);
|
|
@@ -2477,7 +2458,7 @@ function Ei({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2477
2458
|
"data-slot": "presence",
|
|
2478
2459
|
"data-state": e ? "open" : "closed",
|
|
2479
2460
|
hidden: !e && !s,
|
|
2480
|
-
className:
|
|
2461
|
+
className: V(Ci[t], i),
|
|
2481
2462
|
onAnimationEnd: (t) => {
|
|
2482
2463
|
a?.(t), !e && t.target === t.currentTarget && c(!1);
|
|
2483
2464
|
},
|
|
@@ -2485,12 +2466,12 @@ function Ei({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2485
2466
|
});
|
|
2486
2467
|
}
|
|
2487
2468
|
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2488
|
-
function
|
|
2469
|
+
function Ti({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearable: o = !0, clearLabel: s = "Clear selection", className: c }) {
|
|
2489
2470
|
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2490
2471
|
role: "toolbar",
|
|
2491
2472
|
"aria-label": a,
|
|
2492
2473
|
"data-slot": "bulk-action-bar",
|
|
2493
|
-
className:
|
|
2474
|
+
className: V("sticky top-0 z-10 flex items-center gap-2 rounded-md border bg-background px-3 py-1.5 shadow-sm", c),
|
|
2494
2475
|
children: [
|
|
2495
2476
|
/* @__PURE__ */ r("span", {
|
|
2496
2477
|
className: "text-sm font-medium tabular-nums",
|
|
@@ -2500,22 +2481,22 @@ function Di({ selection: e, children: t, countLabel: n = (e) => `${e} selected`,
|
|
|
2500
2481
|
className: "flex flex-1 flex-wrap items-center gap-1.5",
|
|
2501
2482
|
children: t
|
|
2502
2483
|
}),
|
|
2503
|
-
o && /* @__PURE__ */ r(
|
|
2484
|
+
o && /* @__PURE__ */ r(Y, {
|
|
2504
2485
|
variant: "ghost",
|
|
2505
2486
|
size: "icon-sm",
|
|
2506
2487
|
"aria-label": s,
|
|
2507
2488
|
onClick: e.clear,
|
|
2508
|
-
children: /* @__PURE__ */ r(
|
|
2489
|
+
children: /* @__PURE__ */ r(P, {})
|
|
2509
2490
|
})
|
|
2510
2491
|
]
|
|
2511
2492
|
});
|
|
2512
2493
|
}
|
|
2513
2494
|
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2514
|
-
function
|
|
2495
|
+
function Ei({ selection: e, filters: t = [], children: n, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2515
2496
|
return /* @__PURE__ */ i("div", {
|
|
2516
2497
|
"data-slot": "select-all-checkbox",
|
|
2517
|
-
className:
|
|
2518
|
-
children: [/* @__PURE__ */ r(
|
|
2498
|
+
className: V("inline-flex items-center gap-0.5", l),
|
|
2499
|
+
children: [/* @__PURE__ */ r(it, {
|
|
2519
2500
|
"aria-label": a,
|
|
2520
2501
|
checked: e.allState,
|
|
2521
2502
|
onCheckedChange: () => {
|
|
@@ -2523,11 +2504,11 @@ function Oi({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2523
2504
|
}
|
|
2524
2505
|
}), /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2525
2506
|
asChild: !0,
|
|
2526
|
-
children: /* @__PURE__ */ r(
|
|
2507
|
+
children: /* @__PURE__ */ r(Y, {
|
|
2527
2508
|
variant: "ghost",
|
|
2528
2509
|
size: "icon-sm",
|
|
2529
2510
|
"aria-label": o,
|
|
2530
|
-
children: /* @__PURE__ */ r(
|
|
2511
|
+
children: /* @__PURE__ */ r(j, {})
|
|
2531
2512
|
})
|
|
2532
2513
|
}), /* @__PURE__ */ i(zn, {
|
|
2533
2514
|
align: "start",
|
|
@@ -2551,17 +2532,17 @@ function Oi({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2551
2532
|
});
|
|
2552
2533
|
}
|
|
2553
2534
|
// src/ui/selectable-list/selection-header.component.tsx
|
|
2554
|
-
function
|
|
2535
|
+
function Di({ selection: e, actions: t, filters: n, summary: a, countLabel: o, className: s }) {
|
|
2555
2536
|
return /* @__PURE__ */ i("div", {
|
|
2556
2537
|
"data-slot": "selection-header",
|
|
2557
|
-
className:
|
|
2558
|
-
children: [/* @__PURE__ */ r(
|
|
2538
|
+
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(Ei, {
|
|
2559
2540
|
selection: e,
|
|
2560
2541
|
filters: n
|
|
2561
2542
|
}), e.count === 0 ? /* @__PURE__ */ r("div", {
|
|
2562
2543
|
className: "text-sm text-muted-foreground",
|
|
2563
2544
|
children: a
|
|
2564
|
-
}) : /* @__PURE__ */ r(
|
|
2545
|
+
}) : /* @__PURE__ */ r(Ti, {
|
|
2565
2546
|
selection: e,
|
|
2566
2547
|
countLabel: o,
|
|
2567
2548
|
clearable: !1,
|
|
@@ -2571,9 +2552,9 @@ function ki({ selection: e, actions: t, filters: n, summary: a, countLabel: o, c
|
|
|
2571
2552
|
});
|
|
2572
2553
|
}
|
|
2573
2554
|
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2574
|
-
var
|
|
2575
|
-
function
|
|
2576
|
-
let a =
|
|
2555
|
+
var Oi = ye(null), ki = "[data-slot=\"selectable-row\"]";
|
|
2556
|
+
function Ai({ selection: e, className: t, children: n, ...i }) {
|
|
2557
|
+
let a = L(null), [o, s] = R(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2577
2558
|
function l(t) {
|
|
2578
2559
|
let n = t.target;
|
|
2579
2560
|
if ((t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a") {
|
|
@@ -2585,17 +2566,17 @@ function Mi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2585
2566
|
t.preventDefault(), e.clear();
|
|
2586
2567
|
return;
|
|
2587
2568
|
}
|
|
2588
|
-
let r = n.closest(
|
|
2569
|
+
let r = n.closest(ki), i = r?.dataset.id;
|
|
2589
2570
|
if (i === void 0 || !r) return;
|
|
2590
2571
|
if (n === r && t.key === " ") {
|
|
2591
2572
|
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2592
2573
|
return;
|
|
2593
2574
|
}
|
|
2594
2575
|
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2595
|
-
let o = [...a.current?.querySelectorAll(
|
|
2576
|
+
let o = [...a.current?.querySelectorAll(ki) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2596
2577
|
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2597
2578
|
}
|
|
2598
|
-
return /* @__PURE__ */ r(
|
|
2579
|
+
return /* @__PURE__ */ r(Oi, {
|
|
2599
2580
|
value: {
|
|
2600
2581
|
selection: e,
|
|
2601
2582
|
activeId: c,
|
|
@@ -2605,15 +2586,15 @@ function Mi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2605
2586
|
ref: a,
|
|
2606
2587
|
"data-slot": "selectable-list",
|
|
2607
2588
|
"data-selecting": e.count > 0 || void 0,
|
|
2608
|
-
className:
|
|
2589
|
+
className: V("flex flex-col", t),
|
|
2609
2590
|
onKeyDown: l,
|
|
2610
2591
|
...i,
|
|
2611
2592
|
children: n
|
|
2612
2593
|
})
|
|
2613
2594
|
});
|
|
2614
2595
|
}
|
|
2615
|
-
function
|
|
2616
|
-
let l =
|
|
2596
|
+
function ji({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2597
|
+
let l = xe(Oi);
|
|
2617
2598
|
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2618
2599
|
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2619
2600
|
function m(t) {
|
|
@@ -2627,13 +2608,13 @@ function Ni({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2627
2608
|
"data-id": e,
|
|
2628
2609
|
"data-state": p ? "selected" : void 0,
|
|
2629
2610
|
tabIndex: d === e ? 0 : -1,
|
|
2630
|
-
className:
|
|
2611
|
+
className: V("flex items-center gap-3 border-b px-3 py-2.5 outline-none transition-colors hover:bg-muted/60", "focus-visible:shadow-[inset_3px_0_0_var(--brand)] focus-visible:bg-foreground/6 data-[state=selected]:bg-muted data-[state=selected]:focus-visible:bg-foreground/10", u.count > 0 && "cursor-pointer", n),
|
|
2631
2612
|
onClickCapture: h,
|
|
2632
2613
|
onFocus: (t) => {
|
|
2633
2614
|
f(e), s?.(t);
|
|
2634
2615
|
},
|
|
2635
2616
|
...c,
|
|
2636
|
-
children: [/* @__PURE__ */ r(
|
|
2617
|
+
children: [/* @__PURE__ */ r(it, {
|
|
2637
2618
|
"aria-label": t,
|
|
2638
2619
|
checked: p,
|
|
2639
2620
|
tabIndex: -1,
|
|
@@ -2645,17 +2626,17 @@ function Ni({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2645
2626
|
});
|
|
2646
2627
|
}
|
|
2647
2628
|
// src/ui/selectable-list/selection.hook.ts
|
|
2648
|
-
function
|
|
2649
|
-
let [n, r] =
|
|
2629
|
+
function Mi(e, t = {}) {
|
|
2630
|
+
let [n, r] = R(() => new Set(t.defaultSelected)), i = L(void 0), a = Te(() => new Set(e.filter((e) => n.has(e))), [e, n]), o = a.size, s = o === 0 ? !1 : o === e.length || "indeterminate", c = F((e) => a.has(e), [a]), l = F((t, { range: n = !1 } = {}) => {
|
|
2650
2631
|
let o = !a.has(t), s = n && i.current !== void 0 ? e.indexOf(i.current) : -1, c = e.indexOf(t), l = Math.min(s, c) === -1 ? [t] : e.slice(Math.min(s, c), Math.max(s, c) + 1);
|
|
2651
2632
|
i.current = t, r((e) => {
|
|
2652
2633
|
let t = new Set(e);
|
|
2653
2634
|
for (let e of l) o ? t.add(e) : t.delete(e);
|
|
2654
2635
|
return t;
|
|
2655
2636
|
});
|
|
2656
|
-
}, [e, a]), u =
|
|
2637
|
+
}, [e, a]), u = F((e) => {
|
|
2657
2638
|
r((t) => /* @__PURE__ */ new Set([...t, ...e]));
|
|
2658
|
-
}, []), d =
|
|
2639
|
+
}, []), d = F((e) => {
|
|
2659
2640
|
i.current = void 0, r(new Set(e));
|
|
2660
2641
|
}, []);
|
|
2661
2642
|
return {
|
|
@@ -2667,19 +2648,19 @@ function Pi(e, t = {}) {
|
|
|
2667
2648
|
toggle: l,
|
|
2668
2649
|
add: u,
|
|
2669
2650
|
set: d,
|
|
2670
|
-
selectAll:
|
|
2671
|
-
clear:
|
|
2651
|
+
selectAll: F(() => d(e), [e, d]),
|
|
2652
|
+
clear: F(() => d([]), [d])
|
|
2672
2653
|
};
|
|
2673
2654
|
}
|
|
2674
2655
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2675
|
-
var
|
|
2656
|
+
var Ni = ye(null);
|
|
2676
2657
|
function Z() {
|
|
2677
|
-
let e =
|
|
2658
|
+
let e = Se(Ni);
|
|
2678
2659
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2679
2660
|
return e;
|
|
2680
2661
|
}
|
|
2681
2662
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2682
|
-
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none",
|
|
2663
|
+
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", Pi = "grid grid-rows-[1fr] transition-[grid-template-rows,opacity,translate,margin] duration-200 ease-out motion-reduce:transition-none group-data-[collapsed]/sidebar:-mt-2 group-data-[collapsed]/sidebar:translate-y-2 group-data-[collapsed]/sidebar:grid-rows-[0fr] group-data-[collapsed]/sidebar:opacity-0", Fi = "flex h-9 w-full shrink-0 cursor-pointer items-center gap-3 rounded-md px-3 text-[13.5px] font-medium text-muted-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-sidebar-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring [&_svg]:size-4 [&_svg]:shrink-0 aria-[current]:bg-brand-soft aria-[current]:text-brand-text", Ii = {
|
|
2683
2664
|
panel: {
|
|
2684
2665
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2685
2666
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2689,12 +2670,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2689
2670
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2690
2671
|
}
|
|
2691
2672
|
};
|
|
2692
|
-
function
|
|
2693
|
-
let [d, f] =
|
|
2673
|
+
function Li({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2674
|
+
let [d, f] = R(o), p = a ?? d;
|
|
2694
2675
|
function m(e) {
|
|
2695
2676
|
a === void 0 && f(e), s?.(e);
|
|
2696
2677
|
}
|
|
2697
|
-
return /* @__PURE__ */ r(
|
|
2678
|
+
return /* @__PURE__ */ r(Ni, {
|
|
2698
2679
|
value: {
|
|
2699
2680
|
collapsed: p,
|
|
2700
2681
|
setCollapsed: m,
|
|
@@ -2707,7 +2688,7 @@ function zi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2707
2688
|
"data-variant": t,
|
|
2708
2689
|
"data-collapsed": p || void 0,
|
|
2709
2690
|
"aria-label": e,
|
|
2710
|
-
className:
|
|
2691
|
+
className: V("group/sidebar flex h-full min-h-0 shrink-0 flex-col overflow-hidden bg-sidebar text-[13px] text-sidebar-foreground", n === "start" ? "border-e border-sidebar-border" : "border-s border-sidebar-border", "relative transition-[width] duration-150 ease-out motion-reduce:transition-none", p ? Ii[t].collapsed : Ii[t].open, c),
|
|
2711
2692
|
...u,
|
|
2712
2693
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2713
2694
|
"aria-hidden": "true",
|
|
@@ -2717,8 +2698,8 @@ function zi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2717
2698
|
})
|
|
2718
2699
|
});
|
|
2719
2700
|
}
|
|
2720
|
-
function
|
|
2721
|
-
let { collapsed: n, side: a } = Z(), [o, s] =
|
|
2701
|
+
function Ri({ label: e, children: t }) {
|
|
2702
|
+
let { collapsed: n, side: a } = Z(), [o, s] = R(!1);
|
|
2722
2703
|
return /* @__PURE__ */ i(pn, {
|
|
2723
2704
|
open: n && o,
|
|
2724
2705
|
onOpenChange: s,
|
|
@@ -2731,18 +2712,18 @@ function Bi({ label: e, children: t }) {
|
|
|
2731
2712
|
})]
|
|
2732
2713
|
});
|
|
2733
2714
|
}
|
|
2734
|
-
function
|
|
2715
|
+
function zi({ className: e, ...t }) {
|
|
2735
2716
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2736
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2717
|
+
if (c === "nav") return /* @__PURE__ */ r(Ri, {
|
|
2737
2718
|
label: l,
|
|
2738
2719
|
children: /* @__PURE__ */ i("button", {
|
|
2739
2720
|
type: "button",
|
|
2740
2721
|
"aria-label": l,
|
|
2741
2722
|
"aria-expanded": !n,
|
|
2742
2723
|
onClick: () => a(!n),
|
|
2743
|
-
className:
|
|
2724
|
+
className: V(Fi, e),
|
|
2744
2725
|
...t,
|
|
2745
|
-
children: [/* @__PURE__ */ r(
|
|
2726
|
+
children: [/* @__PURE__ */ r(ue, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2746
2727
|
"aria-hidden": "true",
|
|
2747
2728
|
className: Q,
|
|
2748
2729
|
children: "Collapse"
|
|
@@ -2750,29 +2731,29 @@ function Vi({ className: e, ...t }) {
|
|
|
2750
2731
|
})
|
|
2751
2732
|
});
|
|
2752
2733
|
let u = s === "start" !== n;
|
|
2753
|
-
return /* @__PURE__ */ r(
|
|
2734
|
+
return /* @__PURE__ */ r(Y, {
|
|
2754
2735
|
variant: "ghost",
|
|
2755
2736
|
size: "icon-sm",
|
|
2756
2737
|
"aria-label": l,
|
|
2757
2738
|
"aria-expanded": !n,
|
|
2758
2739
|
title: l,
|
|
2759
2740
|
onClick: () => a(!n),
|
|
2760
|
-
className:
|
|
2741
|
+
className: V("shrink-0 text-muted-foreground", e),
|
|
2761
2742
|
...t,
|
|
2762
|
-
children: r(u ?
|
|
2743
|
+
children: r(u ? re : ie, {})
|
|
2763
2744
|
});
|
|
2764
2745
|
}
|
|
2765
|
-
function
|
|
2746
|
+
function Bi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2766
2747
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2767
2748
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2768
2749
|
"data-slot": "sidebar-header",
|
|
2769
|
-
className:
|
|
2750
|
+
className: V("flex h-8 items-center", o),
|
|
2770
2751
|
children: a
|
|
2771
2752
|
});
|
|
2772
2753
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
2773
2754
|
return /* @__PURE__ */ i("div", {
|
|
2774
2755
|
"data-slot": "sidebar-header",
|
|
2775
|
-
className:
|
|
2756
|
+
className: V("flex items-center gap-1", o),
|
|
2776
2757
|
children: [/* @__PURE__ */ i("div", {
|
|
2777
2758
|
inert: s,
|
|
2778
2759
|
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",
|
|
@@ -2782,13 +2763,13 @@ function Hi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2782
2763
|
onChange: (e) => t(e.target.value),
|
|
2783
2764
|
placeholder: u,
|
|
2784
2765
|
"aria-label": u,
|
|
2785
|
-
startIcon: /* @__PURE__ */ r(
|
|
2766
|
+
startIcon: /* @__PURE__ */ r(me, {})
|
|
2786
2767
|
}), a]
|
|
2787
|
-
}), /* @__PURE__ */ r(
|
|
2768
|
+
}), /* @__PURE__ */ r(zi, { className: "ms-auto" })]
|
|
2788
2769
|
});
|
|
2789
2770
|
}
|
|
2790
|
-
function
|
|
2791
|
-
let { label: n, variant: i } = Z(), a =
|
|
2771
|
+
function Vi({ className: e, ...t }) {
|
|
2772
|
+
let { label: n, variant: i } = Z(), a = V("flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-width:thin]", "group-data-[collapsed]/sidebar:[scrollbar-width:none] group-data-[collapsed]/sidebar:[&::-webkit-scrollbar]:hidden", i === "panel" ? "gap-3" : "gap-4", e);
|
|
2792
2773
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2793
2774
|
"data-slot": "sidebar-content",
|
|
2794
2775
|
"aria-label": n,
|
|
@@ -2800,12 +2781,12 @@ function Ui({ className: e, ...t }) {
|
|
|
2800
2781
|
...t
|
|
2801
2782
|
});
|
|
2802
2783
|
}
|
|
2803
|
-
function
|
|
2784
|
+
function Hi({ className: e, children: t, ...n }) {
|
|
2804
2785
|
let { collapsed: i } = Z();
|
|
2805
2786
|
return /* @__PURE__ */ r("div", {
|
|
2806
2787
|
"data-slot": "sidebar-note",
|
|
2807
2788
|
"aria-hidden": i || void 0,
|
|
2808
|
-
className:
|
|
2789
|
+
className: V(Pi, e),
|
|
2809
2790
|
...n,
|
|
2810
2791
|
children: /* @__PURE__ */ r("span", {
|
|
2811
2792
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2813,28 +2794,28 @@ function Wi({ className: e, children: t, ...n }) {
|
|
|
2813
2794
|
})
|
|
2814
2795
|
});
|
|
2815
2796
|
}
|
|
2816
|
-
function
|
|
2797
|
+
function Ui({ className: e, ...t }) {
|
|
2817
2798
|
let { collapsed: n, variant: i } = Z();
|
|
2818
2799
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2819
2800
|
"data-slot": "sidebar-footer",
|
|
2820
|
-
className:
|
|
2801
|
+
className: V("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
2821
2802
|
...t
|
|
2822
2803
|
});
|
|
2823
2804
|
}
|
|
2824
2805
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2825
|
-
function
|
|
2826
|
-
let { collapsed: u, variant: d } = Z(), [f, p] =
|
|
2806
|
+
function Wi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2807
|
+
let { collapsed: u, variant: d } = Z(), [f, p] = R(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
2827
2808
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2828
2809
|
"data-slot": "sidebar-group",
|
|
2829
2810
|
open: n || u || f,
|
|
2830
2811
|
onOpenChange: p,
|
|
2831
|
-
className:
|
|
2812
|
+
className: V("flex flex-col gap-1", s),
|
|
2832
2813
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
2833
2814
|
disabled: n,
|
|
2834
2815
|
inert: u,
|
|
2835
|
-
className:
|
|
2816
|
+
className: V("group/trigger flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-[13px] py-0.5 text-start outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-default", "whitespace-nowrap transition-[translate,opacity] duration-150 ease-out group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 motion-reduce:transition-none"),
|
|
2836
2817
|
children: [
|
|
2837
|
-
/* @__PURE__ */ r(
|
|
2818
|
+
/* @__PURE__ */ r(ne, {
|
|
2838
2819
|
"aria-hidden": "true",
|
|
2839
2820
|
className: "size-3.5 shrink-0 text-muted-foreground transition-transform duration-150 group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
|
|
2840
2821
|
}),
|
|
@@ -2857,16 +2838,16 @@ function Ki({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2857
2838
|
role: "group",
|
|
2858
2839
|
"aria-label": e,
|
|
2859
2840
|
"data-slot": "sidebar-group",
|
|
2860
|
-
className:
|
|
2841
|
+
className: V("flex flex-col gap-0.5", s),
|
|
2861
2842
|
children: [/* @__PURE__ */ r("span", {
|
|
2862
2843
|
"aria-hidden": "true",
|
|
2863
|
-
className:
|
|
2844
|
+
className: V("flex h-6 items-center px-3", h, Q),
|
|
2864
2845
|
children: e
|
|
2865
2846
|
}), c]
|
|
2866
2847
|
});
|
|
2867
2848
|
}
|
|
2868
2849
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2869
|
-
function
|
|
2850
|
+
function Gi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foreground)", badge: c, active: l = !1, asChild: u = !1, className: d, children: f, ...p }) {
|
|
2870
2851
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2871
2852
|
/* @__PURE__ */ r("span", {
|
|
2872
2853
|
"aria-hidden": "true",
|
|
@@ -2878,7 +2859,7 @@ function qi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2878
2859
|
children: e
|
|
2879
2860
|
}),
|
|
2880
2861
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2881
|
-
className:
|
|
2862
|
+
className: V("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Q),
|
|
2882
2863
|
children: c
|
|
2883
2864
|
})
|
|
2884
2865
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2888,11 +2869,11 @@ function qi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2888
2869
|
children: a
|
|
2889
2870
|
}) : /* @__PURE__ */ r("span", {
|
|
2890
2871
|
"aria-hidden": "true",
|
|
2891
|
-
className:
|
|
2872
|
+
className: V("h-6 w-2.5 shrink-0 rounded-[3px]", o ? G[o] : ""),
|
|
2892
2873
|
style: o ? void 0 : { background: s }
|
|
2893
2874
|
}),
|
|
2894
2875
|
/* @__PURE__ */ i("span", {
|
|
2895
|
-
className:
|
|
2876
|
+
className: V("flex flex-col", Q),
|
|
2896
2877
|
children: [/* @__PURE__ */ r("span", {
|
|
2897
2878
|
className: "truncate text-[13px] font-medium",
|
|
2898
2879
|
children: e
|
|
@@ -2902,45 +2883,45 @@ function qi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2902
2883
|
})]
|
|
2903
2884
|
}),
|
|
2904
2885
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2905
|
-
className:
|
|
2886
|
+
className: V("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2906
2887
|
children: c
|
|
2907
2888
|
})
|
|
2908
|
-
] }), v = h === "nav" ?
|
|
2889
|
+
] }), v = h === "nav" ? V(Fi, d) : V("group/item flex cursor-pointer items-center rounded-md border border-transparent text-start text-sidebar-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none", "hover:border-sidebar-border hover:bg-background focus-visible:ring-2 focus-visible:ring-sidebar-ring disabled:cursor-not-allowed disabled:opacity-50", "aria-[current]:border-transparent aria-[current]:bg-brand-soft aria-[current]:text-brand-text", "w-full gap-2 px-[13px] py-1.5", d), y = {
|
|
2909
2890
|
"data-slot": "sidebar-item",
|
|
2910
2891
|
"aria-current": g,
|
|
2911
2892
|
"aria-label": m ? e : void 0,
|
|
2912
2893
|
className: v
|
|
2913
|
-
}, b = u &&
|
|
2894
|
+
}, b = u && be(f) ? /* @__PURE__ */ r(w.Root, {
|
|
2914
2895
|
...y,
|
|
2915
2896
|
...p,
|
|
2916
|
-
children:
|
|
2897
|
+
children: Ki(f, _)
|
|
2917
2898
|
}) : /* @__PURE__ */ r("button", {
|
|
2918
2899
|
type: "button",
|
|
2919
2900
|
...y,
|
|
2920
2901
|
...p,
|
|
2921
2902
|
children: _
|
|
2922
2903
|
});
|
|
2923
|
-
return /* @__PURE__ */ r(
|
|
2904
|
+
return /* @__PURE__ */ r(Ri, {
|
|
2924
2905
|
label: e,
|
|
2925
2906
|
children: b
|
|
2926
2907
|
});
|
|
2927
2908
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return
|
|
2909
|
+
function Ki(e, t) {
|
|
2910
|
+
return ve(e, void 0, t);
|
|
2930
2911
|
}
|
|
2931
2912
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2932
|
-
function
|
|
2913
|
+
function qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2933
2914
|
return /* @__PURE__ */ i(an, {
|
|
2934
2915
|
open: a,
|
|
2935
2916
|
onOpenChange: o,
|
|
2936
2917
|
children: [/* @__PURE__ */ r(on, {
|
|
2937
2918
|
asChild: !0,
|
|
2938
|
-
children: /* @__PURE__ */ r(
|
|
2919
|
+
children: /* @__PURE__ */ r(Y, {
|
|
2939
2920
|
variant: "ghost",
|
|
2940
2921
|
size: "icon",
|
|
2941
2922
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
2942
2923
|
className: s,
|
|
2943
|
-
children: /* @__PURE__ */ r(
|
|
2924
|
+
children: /* @__PURE__ */ r(ue, {})
|
|
2944
2925
|
})
|
|
2945
2926
|
}), /* @__PURE__ */ i(dn, {
|
|
2946
2927
|
"data-slot": "sidebar-sheet",
|
|
@@ -2954,15 +2935,15 @@ function Yi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2954
2935
|
});
|
|
2955
2936
|
}
|
|
2956
2937
|
// src/product/product-switcher.component.tsx
|
|
2957
|
-
function
|
|
2938
|
+
function Ji({ product: e, workspace: t, products: n = Ke, onProductChange: a, className: o }) {
|
|
2958
2939
|
return /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2959
2940
|
asChild: !0,
|
|
2960
|
-
children: /* @__PURE__ */ i(
|
|
2941
|
+
children: /* @__PURE__ */ i(Y, {
|
|
2961
2942
|
variant: "ghost",
|
|
2962
|
-
className:
|
|
2963
|
-
"aria-label": `${
|
|
2943
|
+
className: V("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2944
|
+
"aria-label": `${H[e].name}, switch product`,
|
|
2964
2945
|
children: [
|
|
2965
|
-
/* @__PURE__ */ r(
|
|
2946
|
+
/* @__PURE__ */ r(U, {
|
|
2966
2947
|
product: e,
|
|
2967
2948
|
alt: "",
|
|
2968
2949
|
className: "size-7"
|
|
@@ -2971,13 +2952,13 @@ function Xi({ product: e, workspace: t, products: n = qe, onProductChange: a, cl
|
|
|
2971
2952
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2972
2953
|
children: [/* @__PURE__ */ r("span", {
|
|
2973
2954
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2974
|
-
children:
|
|
2955
|
+
children: H[e].name
|
|
2975
2956
|
}), t && /* @__PURE__ */ r("span", {
|
|
2976
2957
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2977
2958
|
children: t
|
|
2978
2959
|
})]
|
|
2979
2960
|
}),
|
|
2980
|
-
/* @__PURE__ */ r(
|
|
2961
|
+
/* @__PURE__ */ r(ae, {
|
|
2981
2962
|
className: "ms-auto text-muted-foreground",
|
|
2982
2963
|
"aria-hidden": "true"
|
|
2983
2964
|
})
|
|
@@ -2991,21 +2972,21 @@ function Xi({ product: e, workspace: t, products: n = qe, onProductChange: a, cl
|
|
|
2991
2972
|
onValueChange: (e) => a?.(e),
|
|
2992
2973
|
children: n.map((e) => /* @__PURE__ */ i(Vn, {
|
|
2993
2974
|
value: e,
|
|
2994
|
-
children: [/* @__PURE__ */ r(
|
|
2975
|
+
children: [/* @__PURE__ */ r(U, {
|
|
2995
2976
|
product: e,
|
|
2996
2977
|
alt: "",
|
|
2997
2978
|
className: "size-4"
|
|
2998
|
-
}),
|
|
2979
|
+
}), H[e].name]
|
|
2999
2980
|
}, e))
|
|
3000
2981
|
})]
|
|
3001
2982
|
})] });
|
|
3002
2983
|
}
|
|
3003
2984
|
// src/product/sidebar-brand.component.tsx
|
|
3004
|
-
function
|
|
3005
|
-
let { collapsed: a, setCollapsed: o } = Z(), s =
|
|
2985
|
+
function Yi({ product: e, badge: t, className: n }) {
|
|
2986
|
+
let { collapsed: a, setCollapsed: o } = Z(), s = H[e].name;
|
|
3006
2987
|
return /* @__PURE__ */ i("div", {
|
|
3007
2988
|
"data-slot": "sidebar-brand",
|
|
3008
|
-
className:
|
|
2989
|
+
className: V("flex h-8 items-center", n),
|
|
3009
2990
|
children: [
|
|
3010
2991
|
/* @__PURE__ */ r("button", {
|
|
3011
2992
|
type: "button",
|
|
@@ -3013,26 +2994,26 @@ function Zi({ product: e, badge: t, className: n }) {
|
|
|
3013
2994
|
"aria-expanded": !a,
|
|
3014
2995
|
onClick: () => o(!a),
|
|
3015
2996
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
3016
|
-
children: /* @__PURE__ */ r(
|
|
2997
|
+
children: /* @__PURE__ */ r(U, {
|
|
3017
2998
|
product: e,
|
|
3018
2999
|
alt: "",
|
|
3019
|
-
className:
|
|
3000
|
+
className: V("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
3020
3001
|
})
|
|
3021
3002
|
}),
|
|
3022
3003
|
/* @__PURE__ */ r("span", {
|
|
3023
|
-
className:
|
|
3004
|
+
className: V("ms-1 font-display text-lg font-extrabold text-brand-text italic", Q),
|
|
3024
3005
|
children: s
|
|
3025
3006
|
}),
|
|
3026
3007
|
t && /* @__PURE__ */ r("span", {
|
|
3027
|
-
className:
|
|
3008
|
+
className: V("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Q),
|
|
3028
3009
|
children: t
|
|
3029
3010
|
})
|
|
3030
3011
|
]
|
|
3031
3012
|
});
|
|
3032
3013
|
}
|
|
3033
3014
|
// src/app/command-shortcut.hook.ts
|
|
3034
|
-
function
|
|
3035
|
-
|
|
3015
|
+
function Xi(e, t = !0) {
|
|
3016
|
+
I(() => {
|
|
3036
3017
|
if (!t) return;
|
|
3037
3018
|
function n(t) {
|
|
3038
3019
|
t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
|
|
@@ -3040,43 +3021,43 @@ function Qi(e, t = !0) {
|
|
|
3040
3021
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
3041
3022
|
}, [e, t]);
|
|
3042
3023
|
}
|
|
3043
|
-
function
|
|
3024
|
+
function Zi(e) {
|
|
3044
3025
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
3045
3026
|
}
|
|
3046
|
-
function
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3027
|
+
function Qi() {}
|
|
3028
|
+
function $i() {
|
|
3029
|
+
return Qi;
|
|
3049
3030
|
}
|
|
3050
|
-
function
|
|
3031
|
+
function ea() {
|
|
3051
3032
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
3052
3033
|
}
|
|
3053
|
-
function
|
|
3034
|
+
function ta() {
|
|
3054
3035
|
return "";
|
|
3055
3036
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return $i
|
|
3037
|
+
function na() {
|
|
3038
|
+
return Zi(Ee($i, ea, ta));
|
|
3058
3039
|
}
|
|
3059
3040
|
// src/app/app-shell.component.tsx
|
|
3060
|
-
var
|
|
3061
|
-
function
|
|
3041
|
+
var ra = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=app-shell-body]]:gap-0 has-[>[data-slot=app-shell-body]]:overflow-hidden has-[>[data-slot=app-shell-body]]:p-0";
|
|
3042
|
+
function ia({ children: e, className: t }) {
|
|
3062
3043
|
return /* @__PURE__ */ r("div", {
|
|
3063
3044
|
"data-slot": "app-shell-header",
|
|
3064
|
-
className:
|
|
3045
|
+
className: V("shrink-0 border-b px-6 py-4", t),
|
|
3065
3046
|
children: e
|
|
3066
3047
|
});
|
|
3067
3048
|
}
|
|
3068
|
-
var
|
|
3069
|
-
function
|
|
3049
|
+
var aa = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=split-view]]:gap-0 has-[>[data-slot=split-view]]:overflow-hidden has-[>[data-slot=split-view]]:p-0";
|
|
3050
|
+
function oa({ children: e, className: t }) {
|
|
3070
3051
|
return /* @__PURE__ */ r("div", {
|
|
3071
3052
|
"data-slot": "app-shell-body",
|
|
3072
|
-
className:
|
|
3053
|
+
className: V(aa, t),
|
|
3073
3054
|
children: e
|
|
3074
3055
|
});
|
|
3075
3056
|
}
|
|
3076
|
-
function
|
|
3077
|
-
let [
|
|
3078
|
-
|
|
3079
|
-
let
|
|
3057
|
+
function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, commandPlaceholder: g = "Type a command or search…", commandEmpty: _ = "No results.", children: v, className: y }) {
|
|
3058
|
+
let [b, x] = R(!1), S = F(() => x(!0), []);
|
|
3059
|
+
Xi(S, !!h?.length);
|
|
3060
|
+
let C = na(), w = [...new Set(h?.map((e) => e.group))], T = (e) => /* @__PURE__ */ r(Gi, {
|
|
3080
3061
|
asChild: !0,
|
|
3081
3062
|
title: e.label,
|
|
3082
3063
|
icon: e.icon,
|
|
@@ -3086,44 +3067,44 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3086
3067
|
href: e.href,
|
|
3087
3068
|
children: e.label
|
|
3088
3069
|
})
|
|
3089
|
-
}, e.href),
|
|
3090
|
-
/* @__PURE__ */ r(
|
|
3070
|
+
}, e.href), E = /* @__PURE__ */ i(n, { children: [
|
|
3071
|
+
/* @__PURE__ */ r(Bi, {
|
|
3091
3072
|
className: "h-12",
|
|
3092
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
3073
|
+
children: t === "logo" ? /* @__PURE__ */ r(Yi, { product: e }) : /* @__PURE__ */ r(Ji, {
|
|
3093
3074
|
product: e,
|
|
3094
3075
|
workspace: a,
|
|
3095
3076
|
onProductChange: o,
|
|
3096
3077
|
className: "px-2.5"
|
|
3097
3078
|
})
|
|
3098
3079
|
}),
|
|
3099
|
-
/* @__PURE__ */ i(
|
|
3100
|
-
h?.length ? /* @__PURE__ */ r(
|
|
3080
|
+
/* @__PURE__ */ i(Vi, { children: [
|
|
3081
|
+
h?.length ? /* @__PURE__ */ r(Gi, {
|
|
3101
3082
|
title: "Search",
|
|
3102
|
-
icon: /* @__PURE__ */ r(
|
|
3083
|
+
icon: /* @__PURE__ */ r(me, {}),
|
|
3103
3084
|
badge: /* @__PURE__ */ r(wr, {
|
|
3104
3085
|
className: "border-0 bg-transparent",
|
|
3105
|
-
children:
|
|
3086
|
+
children: C
|
|
3106
3087
|
}),
|
|
3107
|
-
onClick:
|
|
3088
|
+
onClick: S
|
|
3108
3089
|
}) : null,
|
|
3109
3090
|
/* @__PURE__ */ r("div", {
|
|
3110
3091
|
className: "flex flex-col gap-0.5",
|
|
3111
|
-
children: s.map((e) =>
|
|
3092
|
+
children: s.map((e) => T(e))
|
|
3112
3093
|
}),
|
|
3113
|
-
c && /* @__PURE__ */ r(
|
|
3094
|
+
c && /* @__PURE__ */ r(Wi, {
|
|
3114
3095
|
title: c.title,
|
|
3115
|
-
children: c.items.map((e) =>
|
|
3096
|
+
children: c.items.map((e) => T(e))
|
|
3116
3097
|
})
|
|
3117
3098
|
] }),
|
|
3118
|
-
/* @__PURE__ */ i(
|
|
3099
|
+
/* @__PURE__ */ i(Ui, { children: [
|
|
3119
3100
|
l && /* @__PURE__ */ r("div", {
|
|
3120
3101
|
className: Q,
|
|
3121
3102
|
children: l
|
|
3122
3103
|
}),
|
|
3123
3104
|
d && /* @__PURE__ */ i("div", {
|
|
3124
3105
|
className: "flex items-center gap-2.5 px-1",
|
|
3125
|
-
children: [/* @__PURE__ */ r(
|
|
3126
|
-
className:
|
|
3106
|
+
children: [/* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(tt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
3107
|
+
className: V("flex flex-col leading-tight", Q),
|
|
3127
3108
|
children: [/* @__PURE__ */ r("span", {
|
|
3128
3109
|
className: "text-[13px] font-semibold",
|
|
3129
3110
|
children: d.name
|
|
@@ -3133,36 +3114,36 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3133
3114
|
})]
|
|
3134
3115
|
})]
|
|
3135
3116
|
}),
|
|
3136
|
-
/* @__PURE__ */ r(
|
|
3137
|
-
u && /* @__PURE__ */ r(
|
|
3117
|
+
/* @__PURE__ */ r(zi, {}),
|
|
3118
|
+
u && /* @__PURE__ */ r(Hi, { children: u })
|
|
3138
3119
|
] })
|
|
3139
3120
|
] });
|
|
3140
3121
|
return /* @__PURE__ */ i("div", {
|
|
3141
3122
|
"data-slot": "app-shell",
|
|
3142
|
-
className:
|
|
3123
|
+
className: V("flex h-dvh overflow-hidden bg-background", y),
|
|
3143
3124
|
children: [
|
|
3144
|
-
/* @__PURE__ */ r(
|
|
3125
|
+
/* @__PURE__ */ r(Li, {
|
|
3145
3126
|
variant: "nav",
|
|
3146
3127
|
label: "Workspace",
|
|
3147
3128
|
className: "h-dvh max-md:hidden",
|
|
3148
|
-
children:
|
|
3129
|
+
children: E
|
|
3149
3130
|
}),
|
|
3150
3131
|
/* @__PURE__ */ i("div", {
|
|
3151
3132
|
className: "relative flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3152
3133
|
children: [
|
|
3153
3134
|
/* @__PURE__ */ i("div", {
|
|
3154
3135
|
"data-slot": "app-top-bar",
|
|
3155
|
-
className:
|
|
3136
|
+
className: V("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
3156
3137
|
children: [
|
|
3157
|
-
/* @__PURE__ */ r(
|
|
3138
|
+
/* @__PURE__ */ r(qi, {
|
|
3158
3139
|
label: "Workspace",
|
|
3159
3140
|
className: "-ms-2 md:hidden",
|
|
3160
|
-
children: /* @__PURE__ */ r(
|
|
3141
|
+
children: /* @__PURE__ */ r(Li, {
|
|
3161
3142
|
variant: "nav",
|
|
3162
3143
|
label: "Workspace",
|
|
3163
3144
|
collapsed: !1,
|
|
3164
3145
|
className: "w-full",
|
|
3165
|
-
children:
|
|
3146
|
+
children: E
|
|
3166
3147
|
})
|
|
3167
3148
|
}),
|
|
3168
3149
|
f,
|
|
@@ -3174,8 +3155,8 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3174
3155
|
}),
|
|
3175
3156
|
/* @__PURE__ */ r("main", {
|
|
3176
3157
|
"data-slot": "app-shell-page",
|
|
3177
|
-
className:
|
|
3178
|
-
children:
|
|
3158
|
+
className: ra,
|
|
3159
|
+
children: v
|
|
3179
3160
|
}),
|
|
3180
3161
|
m && /* @__PURE__ */ r("footer", {
|
|
3181
3162
|
"data-slot": "app-status-bar",
|
|
@@ -3186,13 +3167,13 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3186
3167
|
]
|
|
3187
3168
|
}),
|
|
3188
3169
|
h?.length ? /* @__PURE__ */ i(xn, {
|
|
3189
|
-
open:
|
|
3190
|
-
onOpenChange:
|
|
3191
|
-
children: [/* @__PURE__ */ r(Sn, { placeholder:
|
|
3170
|
+
open: b,
|
|
3171
|
+
onOpenChange: x,
|
|
3172
|
+
children: [/* @__PURE__ */ r(Sn, { placeholder: g }), /* @__PURE__ */ i(Cn, { children: [/* @__PURE__ */ r(wn, { children: _ }), w.map((e) => /* @__PURE__ */ r(Tn, {
|
|
3192
3173
|
heading: e,
|
|
3193
3174
|
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(En, {
|
|
3194
3175
|
onSelect: () => {
|
|
3195
|
-
|
|
3176
|
+
x(!1), e.onSelect();
|
|
3196
3177
|
},
|
|
3197
3178
|
children: e.label
|
|
3198
3179
|
}, e.label))
|
|
@@ -3202,11 +3183,11 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3202
3183
|
});
|
|
3203
3184
|
}
|
|
3204
3185
|
// src/app/filter-bar.component.tsx
|
|
3205
|
-
function
|
|
3186
|
+
function ca({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
3206
3187
|
return /* @__PURE__ */ i("div", {
|
|
3207
3188
|
"data-slot": "filter-bar",
|
|
3208
3189
|
role: "search",
|
|
3209
|
-
className:
|
|
3190
|
+
className: V("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
3210
3191
|
children: [
|
|
3211
3192
|
/* @__PURE__ */ r("div", {
|
|
3212
3193
|
className: "max-w-80 flex-[1_1_220px]",
|
|
@@ -3216,7 +3197,7 @@ function ua({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3216
3197
|
onChange: (e) => t(e.target.value),
|
|
3217
3198
|
placeholder: n,
|
|
3218
3199
|
"aria-label": n,
|
|
3219
|
-
startIcon: /* @__PURE__ */ r(
|
|
3200
|
+
startIcon: /* @__PURE__ */ r(me, {})
|
|
3220
3201
|
})
|
|
3221
3202
|
}),
|
|
3222
3203
|
a,
|
|
@@ -3227,16 +3208,16 @@ function ua({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3227
3208
|
]
|
|
3228
3209
|
});
|
|
3229
3210
|
}
|
|
3230
|
-
function
|
|
3231
|
-
return /* @__PURE__ */ i(
|
|
3211
|
+
function la({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3212
|
+
return /* @__PURE__ */ i(Y, {
|
|
3232
3213
|
variant: "outline",
|
|
3233
3214
|
size: "sm",
|
|
3234
|
-
className:
|
|
3215
|
+
className: V("border-dashed", a),
|
|
3235
3216
|
...o,
|
|
3236
3217
|
children: [
|
|
3237
|
-
n ?? /* @__PURE__ */ r(
|
|
3218
|
+
n ?? /* @__PURE__ */ r(pe, {}),
|
|
3238
3219
|
e,
|
|
3239
|
-
t > 0 && /* @__PURE__ */ r(
|
|
3220
|
+
t > 0 && /* @__PURE__ */ r(q, {
|
|
3240
3221
|
variant: "brand",
|
|
3241
3222
|
className: "h-[18px]",
|
|
3242
3223
|
"aria-label": `${t} selected`,
|
|
@@ -3246,10 +3227,10 @@ function da({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
3246
3227
|
});
|
|
3247
3228
|
}
|
|
3248
3229
|
// src/app/form-section.component.tsx
|
|
3249
|
-
function
|
|
3230
|
+
function ua({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
3250
3231
|
return /* @__PURE__ */ i("section", {
|
|
3251
3232
|
"data-slot": "form-section",
|
|
3252
|
-
className:
|
|
3233
|
+
className: V("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
3253
3234
|
children: [/* @__PURE__ */ i("div", {
|
|
3254
3235
|
className: "flex flex-col gap-1",
|
|
3255
3236
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -3272,10 +3253,10 @@ function fa({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
3272
3253
|
});
|
|
3273
3254
|
}
|
|
3274
3255
|
// src/app/page-header.component.tsx
|
|
3275
|
-
function
|
|
3256
|
+
function da({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
3276
3257
|
return /* @__PURE__ */ i("div", {
|
|
3277
3258
|
"data-slot": "page-header",
|
|
3278
|
-
className:
|
|
3259
|
+
className: V("flex flex-col gap-4", o),
|
|
3279
3260
|
children: [/* @__PURE__ */ i("div", {
|
|
3280
3261
|
className: "flex flex-wrap items-end gap-4",
|
|
3281
3262
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3295,7 +3276,7 @@ function pa({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
3295
3276
|
});
|
|
3296
3277
|
}
|
|
3297
3278
|
// src/app/records-table.component.tsx
|
|
3298
|
-
function
|
|
3279
|
+
function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
3299
3280
|
let u = a !== void 0, d = e.map((e) => n(e)), f = d.filter((e) => a?.has(e)).length, p = f === 0 ? !1 : f === d.length || "indeterminate";
|
|
3300
3281
|
function m(e, t) {
|
|
3301
3282
|
let n = new Set(a);
|
|
@@ -3309,20 +3290,20 @@ function ma({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3309
3290
|
return /* @__PURE__ */ i(jr, {
|
|
3310
3291
|
"data-slot": "records-table",
|
|
3311
3292
|
"aria-label": c,
|
|
3312
|
-
className:
|
|
3293
|
+
className: V("min-w-[760px]", l),
|
|
3313
3294
|
children: [/* @__PURE__ */ r(Mr, { children: /* @__PURE__ */ i(Pr, {
|
|
3314
3295
|
className: "hover:bg-transparent",
|
|
3315
3296
|
children: [
|
|
3316
3297
|
u && /* @__PURE__ */ r(Fr, {
|
|
3317
3298
|
className: "w-9",
|
|
3318
|
-
children: /* @__PURE__ */ r(
|
|
3299
|
+
children: /* @__PURE__ */ r(it, {
|
|
3319
3300
|
"aria-label": "Select all rows",
|
|
3320
3301
|
checked: p,
|
|
3321
3302
|
onCheckedChange: (e) => h(e === !0)
|
|
3322
3303
|
})
|
|
3323
3304
|
}),
|
|
3324
3305
|
t.map((e) => /* @__PURE__ */ r(Fr, {
|
|
3325
|
-
className:
|
|
3306
|
+
className: V(e.align === "end" && "text-end", e.className),
|
|
3326
3307
|
children: e.header
|
|
3327
3308
|
}, e.key)),
|
|
3328
3309
|
s && /* @__PURE__ */ r(Fr, {
|
|
@@ -3338,22 +3319,22 @@ function ma({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3338
3319
|
return /* @__PURE__ */ i(Pr, {
|
|
3339
3320
|
"data-state": c ? "selected" : void 0,
|
|
3340
3321
|
children: [
|
|
3341
|
-
u && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(
|
|
3322
|
+
u && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(it, {
|
|
3342
3323
|
"aria-label": `Select ${o}`,
|
|
3343
3324
|
checked: c,
|
|
3344
3325
|
onCheckedChange: (e) => m(o, e === !0)
|
|
3345
3326
|
}) }),
|
|
3346
3327
|
t.map((t) => /* @__PURE__ */ r(Ir, {
|
|
3347
|
-
className:
|
|
3328
|
+
className: V(t.align === "end" && "text-end tabular-nums", t.className),
|
|
3348
3329
|
children: t.cell(e)
|
|
3349
3330
|
}, t.key)),
|
|
3350
3331
|
s && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
3351
3332
|
asChild: !0,
|
|
3352
|
-
children: /* @__PURE__ */ r(
|
|
3333
|
+
children: /* @__PURE__ */ r(Y, {
|
|
3353
3334
|
variant: "ghost",
|
|
3354
3335
|
size: "icon-sm",
|
|
3355
3336
|
"aria-label": `Actions for ${o}`,
|
|
3356
|
-
children: /* @__PURE__ */ r(
|
|
3337
|
+
children: /* @__PURE__ */ r(se, {})
|
|
3357
3338
|
})
|
|
3358
3339
|
}), /* @__PURE__ */ r(zn, {
|
|
3359
3340
|
align: "end",
|
|
@@ -3365,10 +3346,10 @@ function ma({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3365
3346
|
});
|
|
3366
3347
|
}
|
|
3367
3348
|
// src/app/split-view.component.tsx
|
|
3368
|
-
function
|
|
3369
|
-
let d =
|
|
3370
|
-
|
|
3371
|
-
let m =
|
|
3349
|
+
function pa({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o = 280, listDefaultSize: s = 352, detailMinSize: c = 360, onListSizeChange: l, className: u }) {
|
|
3350
|
+
let d = L(null), f = L(void 0), p = L(0);
|
|
3351
|
+
I(() => () => cancelAnimationFrame(p.current), []);
|
|
3352
|
+
let m = F((e, t) => {
|
|
3372
3353
|
l && t.isUserInteraction && (cancelAnimationFrame(p.current), p.current = requestAnimationFrame(() => {
|
|
3373
3354
|
let e = d.current;
|
|
3374
3355
|
if (!e) return;
|
|
@@ -3378,7 +3359,7 @@ function ha({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3378
3359
|
}, [l]);
|
|
3379
3360
|
return /* @__PURE__ */ r("div", {
|
|
3380
3361
|
"data-slot": "split-view",
|
|
3381
|
-
className:
|
|
3362
|
+
className: V("flex min-h-0 min-w-0 flex-1", u),
|
|
3382
3363
|
children: /* @__PURE__ */ i(Tr, {
|
|
3383
3364
|
orientation: "horizontal",
|
|
3384
3365
|
onLayoutChanged: m,
|
|
@@ -3413,7 +3394,7 @@ function ha({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3413
3394
|
});
|
|
3414
3395
|
}
|
|
3415
3396
|
// src/app/sparkline.algorithm.ts
|
|
3416
|
-
function
|
|
3397
|
+
function ma(e, t, n, r = 2) {
|
|
3417
3398
|
if (e.length < 2) return "";
|
|
3418
3399
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3419
3400
|
return e.map((e, t) => {
|
|
@@ -3422,16 +3403,16 @@ function ga(e, t, n, r = 2) {
|
|
|
3422
3403
|
}).join(" ");
|
|
3423
3404
|
}
|
|
3424
3405
|
// src/app/stat-card.component.tsx
|
|
3425
|
-
var
|
|
3406
|
+
var ha = {
|
|
3426
3407
|
positive: "text-success",
|
|
3427
3408
|
negative: "text-destructive",
|
|
3428
3409
|
neutral: "text-muted-foreground"
|
|
3429
3410
|
};
|
|
3430
|
-
function
|
|
3431
|
-
let c = o ?
|
|
3411
|
+
function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3412
|
+
let c = o ? ma(o, 100, 32) : "";
|
|
3432
3413
|
return /* @__PURE__ */ i(vr, {
|
|
3433
3414
|
"data-slot": "stat-card",
|
|
3434
|
-
className:
|
|
3415
|
+
className: V("gap-1.5 p-4", s),
|
|
3435
3416
|
children: [
|
|
3436
3417
|
/* @__PURE__ */ r("span", {
|
|
3437
3418
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -3460,14 +3441,14 @@ function va({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3460
3441
|
})]
|
|
3461
3442
|
}),
|
|
3462
3443
|
n && /* @__PURE__ */ r("span", {
|
|
3463
|
-
className:
|
|
3444
|
+
className: V("text-xs", ha[a]),
|
|
3464
3445
|
children: n
|
|
3465
3446
|
})
|
|
3466
3447
|
]
|
|
3467
3448
|
});
|
|
3468
3449
|
}
|
|
3469
3450
|
// src/status/run-status.contract.ts
|
|
3470
|
-
var
|
|
3451
|
+
var _a = [
|
|
3471
3452
|
"queued",
|
|
3472
3453
|
"waiting",
|
|
3473
3454
|
"running",
|
|
@@ -3475,7 +3456,7 @@ var ya = [
|
|
|
3475
3456
|
"no-records",
|
|
3476
3457
|
"failed",
|
|
3477
3458
|
"off"
|
|
3478
|
-
],
|
|
3459
|
+
], va = {
|
|
3479
3460
|
queued: {
|
|
3480
3461
|
label: "Queued",
|
|
3481
3462
|
variant: "secondary",
|
|
@@ -3512,13 +3493,13 @@ var ya = [
|
|
|
3512
3493
|
live: !1
|
|
3513
3494
|
}
|
|
3514
3495
|
};
|
|
3515
|
-
function
|
|
3516
|
-
return
|
|
3496
|
+
function ya(e) {
|
|
3497
|
+
return va[e];
|
|
3517
3498
|
}
|
|
3518
3499
|
// src/status/status-badge.component.tsx
|
|
3519
|
-
function
|
|
3520
|
-
let { label: n, variant: i, live: a } =
|
|
3521
|
-
return /* @__PURE__ */ r(
|
|
3500
|
+
function ba({ status: e, ...t }) {
|
|
3501
|
+
let { label: n, variant: i, live: a } = ya(e);
|
|
3502
|
+
return /* @__PURE__ */ r(q, {
|
|
3522
3503
|
variant: i,
|
|
3523
3504
|
dot: a,
|
|
3524
3505
|
"data-status": e,
|
|
@@ -3527,25 +3508,25 @@ function Sa({ status: e, ...t }) {
|
|
|
3527
3508
|
});
|
|
3528
3509
|
}
|
|
3529
3510
|
// src/desktop/flow-node.component.tsx
|
|
3530
|
-
function
|
|
3511
|
+
function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3531
3512
|
return /* @__PURE__ */ i("button", {
|
|
3532
3513
|
type: "button",
|
|
3533
3514
|
"data-slot": "flow-node",
|
|
3534
3515
|
"aria-pressed": o,
|
|
3535
3516
|
onClick: s,
|
|
3536
|
-
className:
|
|
3517
|
+
className: V("flex w-[200px] cursor-pointer flex-col rounded-lg bg-card text-start text-[13px] text-card-foreground shadow-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", o ? "border-2 border-brand" : "border", c),
|
|
3537
3518
|
children: [/* @__PURE__ */ i("span", {
|
|
3538
3519
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
3539
3520
|
children: [
|
|
3540
3521
|
/* @__PURE__ */ r("span", {
|
|
3541
3522
|
"aria-hidden": "true",
|
|
3542
|
-
className:
|
|
3523
|
+
className: V("size-2 shrink-0 rounded-[2px]", a ? G[a] : "bg-muted-foreground")
|
|
3543
3524
|
}),
|
|
3544
3525
|
/* @__PURE__ */ r("span", {
|
|
3545
3526
|
className: "font-semibold",
|
|
3546
3527
|
children: e
|
|
3547
3528
|
}),
|
|
3548
|
-
/* @__PURE__ */ r(
|
|
3529
|
+
/* @__PURE__ */ r(ba, {
|
|
3549
3530
|
status: n,
|
|
3550
3531
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3551
3532
|
})
|
|
@@ -3557,18 +3538,18 @@ function Ca({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3557
3538
|
});
|
|
3558
3539
|
}
|
|
3559
3540
|
// src/desktop/inspector.component.tsx
|
|
3560
|
-
function
|
|
3541
|
+
function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3561
3542
|
return /* @__PURE__ */ i("aside", {
|
|
3562
3543
|
"data-slot": "inspector",
|
|
3563
3544
|
"aria-label": "Inspector",
|
|
3564
|
-
className:
|
|
3545
|
+
className: V("flex h-full flex-col text-[13px]", s),
|
|
3565
3546
|
children: [
|
|
3566
3547
|
/* @__PURE__ */ i("div", {
|
|
3567
3548
|
className: "flex items-center gap-2 border-b p-3",
|
|
3568
3549
|
children: [
|
|
3569
3550
|
n && /* @__PURE__ */ r("span", {
|
|
3570
3551
|
"aria-hidden": "true",
|
|
3571
|
-
className:
|
|
3552
|
+
className: V("size-2.5 shrink-0 rounded-[3px]", G[n])
|
|
3572
3553
|
}),
|
|
3573
3554
|
/* @__PURE__ */ r("h2", {
|
|
3574
3555
|
className: "m-0 type-h4",
|
|
@@ -3580,18 +3561,18 @@ function wa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3580
3561
|
})
|
|
3581
3562
|
]
|
|
3582
3563
|
}),
|
|
3583
|
-
/* @__PURE__ */ i(
|
|
3564
|
+
/* @__PURE__ */ i(li, {
|
|
3584
3565
|
defaultValue: a[0]?.value,
|
|
3585
3566
|
className: "min-h-0 flex-1 gap-0",
|
|
3586
|
-
children: [/* @__PURE__ */ r(
|
|
3567
|
+
children: [/* @__PURE__ */ r(fi, {
|
|
3587
3568
|
variant: "underline",
|
|
3588
3569
|
className: "gap-4 px-3",
|
|
3589
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3570
|
+
children: a.map((e) => /* @__PURE__ */ r(hi, {
|
|
3590
3571
|
value: e.value,
|
|
3591
3572
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3592
3573
|
children: e.label
|
|
3593
3574
|
}, e.value))
|
|
3594
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3575
|
+
}), a.map((e) => /* @__PURE__ */ r(bi, {
|
|
3595
3576
|
value: e.value,
|
|
3596
3577
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3597
3578
|
children: e.content
|
|
@@ -3605,11 +3586,11 @@ function wa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3605
3586
|
});
|
|
3606
3587
|
}
|
|
3607
3588
|
// src/desktop/status-bar.component.tsx
|
|
3608
|
-
function
|
|
3589
|
+
function Ca({ start: e, end: t, className: n }) {
|
|
3609
3590
|
return /* @__PURE__ */ i("div", {
|
|
3610
3591
|
"data-slot": "status-bar",
|
|
3611
3592
|
role: "status",
|
|
3612
|
-
className:
|
|
3593
|
+
className: V("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
3613
3594
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
3614
3595
|
className: "ms-auto flex items-center gap-3.5",
|
|
3615
3596
|
children: t
|
|
@@ -3617,7 +3598,7 @@ function Ta({ start: e, end: t, className: n }) {
|
|
|
3617
3598
|
});
|
|
3618
3599
|
}
|
|
3619
3600
|
// src/desktop/timeline.algorithm.ts
|
|
3620
|
-
function
|
|
3601
|
+
function wa(e, t, n) {
|
|
3621
3602
|
if (n <= 0) return {
|
|
3622
3603
|
left: 0,
|
|
3623
3604
|
width: 0
|
|
@@ -3628,7 +3609,7 @@ function Ea(e, t, n) {
|
|
|
3628
3609
|
width: Math.max(0, r(t) - i)
|
|
3629
3610
|
};
|
|
3630
3611
|
}
|
|
3631
|
-
function
|
|
3612
|
+
function Ta(e, t) {
|
|
3632
3613
|
let n = Math.max(2, t);
|
|
3633
3614
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3634
3615
|
}
|
|
@@ -3636,27 +3617,27 @@ function Da(e, t) {
|
|
|
3636
3617
|
function $(e) {
|
|
3637
3618
|
return String(e).padStart(2, "0");
|
|
3638
3619
|
}
|
|
3639
|
-
function
|
|
3620
|
+
function Ea(e, t = !1) {
|
|
3640
3621
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3641
3622
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3642
3623
|
}
|
|
3643
|
-
function
|
|
3624
|
+
function Da(e, t) {
|
|
3644
3625
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3645
3626
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3646
3627
|
}
|
|
3647
3628
|
// src/desktop/timeline-lanes.component.tsx
|
|
3648
|
-
function
|
|
3649
|
-
let c = (e) => o ?
|
|
3629
|
+
function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3630
|
+
let c = (e) => o ? Da(o, e) : Ea(e), l = n === void 0 ? void 0 : wa(0, n, e).width;
|
|
3650
3631
|
return /* @__PURE__ */ i("div", {
|
|
3651
3632
|
"data-slot": "timeline-lanes",
|
|
3652
3633
|
role: "group",
|
|
3653
3634
|
"aria-label": "Timeline",
|
|
3654
|
-
className:
|
|
3635
|
+
className: V("relative flex flex-col text-[13px]", s),
|
|
3655
3636
|
children: [
|
|
3656
3637
|
/* @__PURE__ */ r("div", {
|
|
3657
3638
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3658
3639
|
"aria-hidden": "true",
|
|
3659
|
-
children:
|
|
3640
|
+
children: Ta(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3660
3641
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3661
3642
|
children: c(e)
|
|
3662
3643
|
}, e))
|
|
@@ -3667,18 +3648,18 @@ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3667
3648
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
3668
3649
|
children: [/* @__PURE__ */ r("span", {
|
|
3669
3650
|
"aria-hidden": "true",
|
|
3670
|
-
className:
|
|
3651
|
+
className: V("size-2 shrink-0 rounded-[2px]", G[t.hue])
|
|
3671
3652
|
}), t.name]
|
|
3672
3653
|
}), /* @__PURE__ */ r("div", {
|
|
3673
3654
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3674
3655
|
children: t.segments.map((n) => {
|
|
3675
|
-
let a =
|
|
3656
|
+
let a = wa(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3676
3657
|
return /* @__PURE__ */ i(pn, { children: [/* @__PURE__ */ r(mn, {
|
|
3677
3658
|
asChild: !0,
|
|
3678
3659
|
children: /* @__PURE__ */ r("button", {
|
|
3679
3660
|
type: "button",
|
|
3680
3661
|
"aria-label": o,
|
|
3681
|
-
className:
|
|
3662
|
+
className: V("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", G[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
3682
3663
|
style: {
|
|
3683
3664
|
left: `${a.left}%`,
|
|
3684
3665
|
width: `${a.width}%`
|
|
@@ -3697,30 +3678,30 @@ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3697
3678
|
});
|
|
3698
3679
|
}
|
|
3699
3680
|
// src/desktop/title-bar.component.tsx
|
|
3700
|
-
function
|
|
3681
|
+
function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3701
3682
|
let l = [
|
|
3702
3683
|
{
|
|
3703
3684
|
label: "Minimise",
|
|
3704
|
-
icon: /* @__PURE__ */ r(
|
|
3685
|
+
icon: /* @__PURE__ */ r(le, {}),
|
|
3705
3686
|
onClick: a
|
|
3706
3687
|
},
|
|
3707
3688
|
{
|
|
3708
3689
|
label: "Maximise",
|
|
3709
|
-
icon: /* @__PURE__ */ r(
|
|
3690
|
+
icon: /* @__PURE__ */ r(he, {}),
|
|
3710
3691
|
onClick: o
|
|
3711
3692
|
},
|
|
3712
3693
|
{
|
|
3713
3694
|
label: "Close window",
|
|
3714
|
-
icon: /* @__PURE__ */ r(
|
|
3695
|
+
icon: /* @__PURE__ */ r(P, {}),
|
|
3715
3696
|
onClick: s
|
|
3716
3697
|
}
|
|
3717
3698
|
].filter((e) => e.onClick);
|
|
3718
3699
|
return /* @__PURE__ */ i("div", {
|
|
3719
3700
|
"data-slot": "title-bar",
|
|
3720
3701
|
"data-tauri-drag-region": "",
|
|
3721
|
-
className:
|
|
3702
|
+
className: V("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
3722
3703
|
children: [
|
|
3723
|
-
/* @__PURE__ */ r(
|
|
3704
|
+
/* @__PURE__ */ r(U, {
|
|
3724
3705
|
product: e,
|
|
3725
3706
|
alt: "",
|
|
3726
3707
|
className: "size-[18px]"
|
|
@@ -3733,11 +3714,11 @@ function ja({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3733
3714
|
}),
|
|
3734
3715
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
3735
3716
|
className: "flex h-full",
|
|
3736
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
3717
|
+
children: l.map((e) => /* @__PURE__ */ r(Y, {
|
|
3737
3718
|
variant: "ghost",
|
|
3738
3719
|
"aria-label": e.label,
|
|
3739
3720
|
onClick: e.onClick,
|
|
3740
|
-
className:
|
|
3721
|
+
className: V("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
3741
3722
|
children: e.icon
|
|
3742
3723
|
}, e.label))
|
|
3743
3724
|
})
|
|
@@ -3745,11 +3726,11 @@ function ja({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3745
3726
|
});
|
|
3746
3727
|
}
|
|
3747
3728
|
// src/mobile/bottom-nav.component.tsx
|
|
3748
|
-
function
|
|
3729
|
+
function Aa({ items: e, className: t }) {
|
|
3749
3730
|
return /* @__PURE__ */ r("nav", {
|
|
3750
3731
|
"data-slot": "bottom-nav",
|
|
3751
3732
|
"aria-label": "Tabs",
|
|
3752
|
-
className:
|
|
3733
|
+
className: V("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
3753
3734
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
3754
3735
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
3755
3736
|
href: e.href,
|
|
@@ -3767,22 +3748,22 @@ function Ma({ items: e, className: t }) {
|
|
|
3767
3748
|
});
|
|
3768
3749
|
}
|
|
3769
3750
|
// src/mobile/capture-frame.component.tsx
|
|
3770
|
-
function
|
|
3751
|
+
function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3771
3752
|
let l = a.filter((e) => !e.passed).length;
|
|
3772
3753
|
return /* @__PURE__ */ i("div", {
|
|
3773
3754
|
"data-slot": "capture-frame",
|
|
3774
|
-
className:
|
|
3755
|
+
className: V("flex h-full flex-col bg-[#0e0d12]", c),
|
|
3775
3756
|
children: [/* @__PURE__ */ i("div", {
|
|
3776
3757
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
3777
3758
|
children: [/* @__PURE__ */ i("div", {
|
|
3778
3759
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
3779
3760
|
children: [
|
|
3780
|
-
/* @__PURE__ */ r(
|
|
3761
|
+
/* @__PURE__ */ r(Y, {
|
|
3781
3762
|
size: "icon",
|
|
3782
3763
|
"aria-label": "Close camera",
|
|
3783
3764
|
onClick: o,
|
|
3784
3765
|
className: "rounded-full bg-white/14 text-white hover:bg-white/24",
|
|
3785
|
-
children: /* @__PURE__ */ r(
|
|
3766
|
+
children: /* @__PURE__ */ r(P, {})
|
|
3786
3767
|
}),
|
|
3787
3768
|
/* @__PURE__ */ r("span", {
|
|
3788
3769
|
className: "text-sm font-semibold text-white",
|
|
@@ -3803,12 +3784,12 @@ function Na({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3803
3784
|
children: [/* @__PURE__ */ r("h2", {
|
|
3804
3785
|
className: "m-0 type-h3 text-[19px]",
|
|
3805
3786
|
children: n
|
|
3806
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
3787
|
+
}), l > 0 ? /* @__PURE__ */ i(q, {
|
|
3807
3788
|
variant: "danger",
|
|
3808
3789
|
dot: !0,
|
|
3809
3790
|
className: "ms-auto",
|
|
3810
3791
|
children: [l, " failed"]
|
|
3811
|
-
}) : /* @__PURE__ */ r(
|
|
3792
|
+
}) : /* @__PURE__ */ r(q, {
|
|
3812
3793
|
variant: "success",
|
|
3813
3794
|
dot: !0,
|
|
3814
3795
|
className: "ms-auto",
|
|
@@ -3821,11 +3802,11 @@ function Na({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3821
3802
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
3822
3803
|
children: [
|
|
3823
3804
|
/* @__PURE__ */ r("span", {
|
|
3824
|
-
className:
|
|
3825
|
-
children: e.passed ? /* @__PURE__ */ r(
|
|
3805
|
+
className: V("grid size-6 shrink-0 place-items-center rounded-full [&_svg]:size-3.5", e.passed ? "bg-success-soft text-success" : "bg-destructive-soft text-destructive"),
|
|
3806
|
+
children: e.passed ? /* @__PURE__ */ r(A, {
|
|
3826
3807
|
strokeWidth: 3,
|
|
3827
3808
|
"aria-label": "Passed"
|
|
3828
|
-
}) : /* @__PURE__ */ r(
|
|
3809
|
+
}) : /* @__PURE__ */ r(P, {
|
|
3829
3810
|
strokeWidth: 3,
|
|
3830
3811
|
"aria-label": "Failed"
|
|
3831
3812
|
})
|
|
@@ -3850,43 +3831,43 @@ function Na({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3850
3831
|
});
|
|
3851
3832
|
}
|
|
3852
3833
|
// src/mobile/record-button.component.tsx
|
|
3853
|
-
function
|
|
3834
|
+
function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3854
3835
|
let u = {
|
|
3855
3836
|
idle: {
|
|
3856
3837
|
label: "Start recording",
|
|
3857
|
-
icon: /* @__PURE__ */ r(
|
|
3838
|
+
icon: /* @__PURE__ */ r(N, {}),
|
|
3858
3839
|
onClick: a
|
|
3859
3840
|
},
|
|
3860
3841
|
recording: {
|
|
3861
3842
|
label: "Pause",
|
|
3862
|
-
icon: /* @__PURE__ */ r(
|
|
3843
|
+
icon: /* @__PURE__ */ r(de, {}),
|
|
3863
3844
|
onClick: o
|
|
3864
3845
|
},
|
|
3865
3846
|
paused: {
|
|
3866
3847
|
label: "Resume",
|
|
3867
|
-
icon: /* @__PURE__ */ r(
|
|
3848
|
+
icon: /* @__PURE__ */ r(fe, {}),
|
|
3868
3849
|
onClick: s
|
|
3869
3850
|
}
|
|
3870
3851
|
}[e];
|
|
3871
3852
|
return /* @__PURE__ */ i("div", {
|
|
3872
3853
|
"data-slot": "record-button",
|
|
3873
|
-
className:
|
|
3854
|
+
className: V("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
3874
3855
|
children: [
|
|
3875
3856
|
/* @__PURE__ */ i("div", {
|
|
3876
3857
|
className: "flex items-center gap-2",
|
|
3877
3858
|
children: [
|
|
3878
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
3859
|
+
e === "recording" && /* @__PURE__ */ r(q, {
|
|
3879
3860
|
variant: "danger",
|
|
3880
3861
|
dot: !0,
|
|
3881
3862
|
className: "bg-card",
|
|
3882
3863
|
children: "Recording"
|
|
3883
3864
|
}),
|
|
3884
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
3865
|
+
e === "paused" && /* @__PURE__ */ r(q, {
|
|
3885
3866
|
variant: "warning",
|
|
3886
3867
|
className: "bg-card",
|
|
3887
3868
|
children: "Paused"
|
|
3888
3869
|
}),
|
|
3889
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
3870
|
+
e === "idle" && /* @__PURE__ */ r(q, {
|
|
3890
3871
|
variant: "outline",
|
|
3891
3872
|
className: "bg-card",
|
|
3892
3873
|
children: "Not recording"
|
|
@@ -3894,7 +3875,7 @@ function Pa({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3894
3875
|
/* @__PURE__ */ r("span", {
|
|
3895
3876
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3896
3877
|
"aria-label": "Recorded time",
|
|
3897
|
-
children:
|
|
3878
|
+
children: Ea(t, !0)
|
|
3898
3879
|
})
|
|
3899
3880
|
]
|
|
3900
3881
|
}),
|
|
@@ -3902,31 +3883,31 @@ function Pa({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3902
3883
|
"aria-hidden": "true",
|
|
3903
3884
|
className: "flex h-10 items-center gap-[3px]",
|
|
3904
3885
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
3905
|
-
className:
|
|
3886
|
+
className: V("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
3906
3887
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
3907
3888
|
}, n))
|
|
3908
3889
|
}),
|
|
3909
3890
|
/* @__PURE__ */ i("div", {
|
|
3910
3891
|
className: "flex gap-2.5",
|
|
3911
|
-
children: [/* @__PURE__ */ i(
|
|
3892
|
+
children: [/* @__PURE__ */ i(Y, {
|
|
3912
3893
|
className: "flex-1",
|
|
3913
3894
|
onClick: u.onClick,
|
|
3914
3895
|
children: [u.icon, u.label]
|
|
3915
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
3896
|
+
}), e === "recording" && c && /* @__PURE__ */ r(Y, {
|
|
3916
3897
|
variant: "outline",
|
|
3917
3898
|
size: "icon",
|
|
3918
3899
|
className: "bg-card",
|
|
3919
3900
|
"aria-label": "Add a marker",
|
|
3920
3901
|
onClick: c,
|
|
3921
|
-
children: /* @__PURE__ */ r(
|
|
3902
|
+
children: /* @__PURE__ */ r(te, {})
|
|
3922
3903
|
})]
|
|
3923
3904
|
})
|
|
3924
3905
|
]
|
|
3925
3906
|
});
|
|
3926
3907
|
}
|
|
3927
3908
|
// src/web/cta-band.component.tsx
|
|
3928
|
-
function
|
|
3929
|
-
let c =
|
|
3909
|
+
function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3910
|
+
let c = Ce();
|
|
3930
3911
|
function l(e) {
|
|
3931
3912
|
e.preventDefault();
|
|
3932
3913
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3934,7 +3915,7 @@ function Fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3934
3915
|
}
|
|
3935
3916
|
return /* @__PURE__ */ r("section", {
|
|
3936
3917
|
"data-slot": "cta-band",
|
|
3937
|
-
className:
|
|
3918
|
+
className: V("py-22", s),
|
|
3938
3919
|
children: /* @__PURE__ */ r("div", {
|
|
3939
3920
|
className: "mx-auto max-w-[1200px] px-6",
|
|
3940
3921
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3966,7 +3947,7 @@ function Fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3966
3947
|
placeholder: a,
|
|
3967
3948
|
className: "flex-[1_1_220px] border-transparent"
|
|
3968
3949
|
}),
|
|
3969
|
-
/* @__PURE__ */ r(
|
|
3950
|
+
/* @__PURE__ */ r(Y, {
|
|
3970
3951
|
type: "submit",
|
|
3971
3952
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3972
3953
|
children: o
|
|
@@ -3978,10 +3959,10 @@ function Fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3978
3959
|
});
|
|
3979
3960
|
}
|
|
3980
3961
|
// src/web/faq.component.tsx
|
|
3981
|
-
function
|
|
3962
|
+
function Pa({ title: e, items: t, className: n }) {
|
|
3982
3963
|
return /* @__PURE__ */ r("section", {
|
|
3983
3964
|
"data-slot": "faq",
|
|
3984
|
-
className:
|
|
3965
|
+
className: V("py-22", n),
|
|
3985
3966
|
children: /* @__PURE__ */ i("div", {
|
|
3986
3967
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3987
3968
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -4002,10 +3983,10 @@ function Ia({ title: e, items: t, className: n }) {
|
|
|
4002
3983
|
});
|
|
4003
3984
|
}
|
|
4004
3985
|
// src/web/feature-grid.component.tsx
|
|
4005
|
-
function
|
|
3986
|
+
function Fa({ title: e, lead: t, features: n, className: a }) {
|
|
4006
3987
|
return /* @__PURE__ */ r("section", {
|
|
4007
3988
|
"data-slot": "feature-grid",
|
|
4008
|
-
className:
|
|
3989
|
+
className: V("border-y bg-canvas py-22", a),
|
|
4009
3990
|
children: /* @__PURE__ */ i("div", {
|
|
4010
3991
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
4011
3992
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -4042,14 +4023,14 @@ function La({ title: e, lead: t, features: n, className: a }) {
|
|
|
4042
4023
|
});
|
|
4043
4024
|
}
|
|
4044
4025
|
// src/web/hero.component.tsx
|
|
4045
|
-
function
|
|
4026
|
+
function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
4046
4027
|
return /* @__PURE__ */ r("section", {
|
|
4047
4028
|
"data-slot": "hero",
|
|
4048
|
-
className:
|
|
4029
|
+
className: V("pt-22 pb-14", o),
|
|
4049
4030
|
children: /* @__PURE__ */ i("div", {
|
|
4050
4031
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
4051
4032
|
children: [
|
|
4052
|
-
e && /* @__PURE__ */ r(
|
|
4033
|
+
e && /* @__PURE__ */ r(q, {
|
|
4053
4034
|
variant: "brand",
|
|
4054
4035
|
className: "h-7 px-3 text-[13px]",
|
|
4055
4036
|
children: e
|
|
@@ -4071,10 +4052,10 @@ function Ra({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
4071
4052
|
});
|
|
4072
4053
|
}
|
|
4073
4054
|
// src/web/how-it-works.component.tsx
|
|
4074
|
-
function
|
|
4055
|
+
function La({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
4075
4056
|
return /* @__PURE__ */ r("section", {
|
|
4076
4057
|
"data-slot": "how-it-works",
|
|
4077
|
-
className:
|
|
4058
|
+
className: V("py-22", o),
|
|
4078
4059
|
children: /* @__PURE__ */ i("div", {
|
|
4079
4060
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
4080
4061
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -4114,14 +4095,14 @@ function za({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
4114
4095
|
});
|
|
4115
4096
|
}
|
|
4116
4097
|
// src/web/mobile-menu.component.tsx
|
|
4117
|
-
var
|
|
4118
|
-
function
|
|
4119
|
-
let [o, s] =
|
|
4120
|
-
|
|
4098
|
+
var Ra = 400;
|
|
4099
|
+
function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
4100
|
+
let [o, s] = R(!1), [c, l] = R(), [u, f] = R(!1), p = L(null);
|
|
4101
|
+
I(() => {
|
|
4121
4102
|
if (o) return;
|
|
4122
|
-
let e = setTimeout(() => f(!1),
|
|
4103
|
+
let e = setTimeout(() => f(!1), Ra);
|
|
4123
4104
|
return () => clearTimeout(e);
|
|
4124
|
-
}, [o]),
|
|
4105
|
+
}, [o]), I(() => {
|
|
4125
4106
|
if (!o) return;
|
|
4126
4107
|
let e = new ResizeObserver(() => m());
|
|
4127
4108
|
return e.observe(document.documentElement), () => e.disconnect();
|
|
@@ -4147,7 +4128,7 @@ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4147
4128
|
onOpenChange: h,
|
|
4148
4129
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
4149
4130
|
asChild: !0,
|
|
4150
|
-
children: /* @__PURE__ */ r(
|
|
4131
|
+
children: /* @__PURE__ */ r(Y, {
|
|
4151
4132
|
ref: p,
|
|
4152
4133
|
variant: "ghost",
|
|
4153
4134
|
size: "icon",
|
|
@@ -4171,7 +4152,7 @@ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4171
4152
|
/* @__PURE__ */ r("div", {
|
|
4172
4153
|
className: "fixed inset-0 [filter:drop-shadow(0_0_1px_rgb(20_18_26/0.4))_drop-shadow(-12px_16px_36px_rgb(20_18_26/0.4))] dark:[filter:drop-shadow(0_0_1px_rgb(255_255_255/0.45))_drop-shadow(-12px_16px_36px_rgb(0_0_0/0.7))]",
|
|
4173
4154
|
children: /* @__PURE__ */ r("div", {
|
|
4174
|
-
className:
|
|
4155
|
+
className: V("fixed inset-0 animate-menu-reveal group-data-[state=closed]/menu:animate-menu-conceal", "motion-reduce:animate-fade-in motion-reduce:group-data-[state=closed]/menu:animate-fade-out"),
|
|
4175
4156
|
children: /* @__PURE__ */ i("div", {
|
|
4176
4157
|
className: "pointer-events-auto absolute inset-y-0 end-0 flex w-[min(340px,86vw)] flex-col gap-1 border-s bg-popover px-5 pt-21 pb-8 text-popover-foreground",
|
|
4177
4158
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -4193,7 +4174,7 @@ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4193
4174
|
}),
|
|
4194
4175
|
/* @__PURE__ */ r(d.Close, {
|
|
4195
4176
|
asChild: !0,
|
|
4196
|
-
children: /* @__PURE__ */ r(
|
|
4177
|
+
children: /* @__PURE__ */ r(Y, {
|
|
4197
4178
|
variant: "ghost",
|
|
4198
4179
|
size: "icon",
|
|
4199
4180
|
"aria-label": "Close menu",
|
|
@@ -4215,11 +4196,11 @@ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4215
4196
|
});
|
|
4216
4197
|
}
|
|
4217
4198
|
// src/web/pricing-table.component.tsx
|
|
4218
|
-
function
|
|
4219
|
-
let [l, u] =
|
|
4199
|
+
function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4200
|
+
let [l, u] = R(a);
|
|
4220
4201
|
return /* @__PURE__ */ r("section", {
|
|
4221
4202
|
"data-slot": "pricing-table",
|
|
4222
|
-
className:
|
|
4203
|
+
className: V("border-y bg-canvas py-22", c),
|
|
4223
4204
|
children: /* @__PURE__ */ i("div", {
|
|
4224
4205
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
4225
4206
|
children: [
|
|
@@ -4234,15 +4215,15 @@ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4234
4215
|
className: "m-0 type-lead",
|
|
4235
4216
|
children: t
|
|
4236
4217
|
})]
|
|
4237
|
-
}), /* @__PURE__ */ i(
|
|
4218
|
+
}), /* @__PURE__ */ i(dt, {
|
|
4238
4219
|
type: "single",
|
|
4239
4220
|
value: l,
|
|
4240
4221
|
onValueChange: (e) => e && u(e),
|
|
4241
4222
|
"aria-label": "Billing",
|
|
4242
|
-
children: [/* @__PURE__ */ r(
|
|
4223
|
+
children: [/* @__PURE__ */ r(ft, {
|
|
4243
4224
|
value: "monthly",
|
|
4244
4225
|
children: "Monthly"
|
|
4245
|
-
}), /* @__PURE__ */ r(
|
|
4226
|
+
}), /* @__PURE__ */ r(ft, {
|
|
4246
4227
|
value: "yearly",
|
|
4247
4228
|
children: "Yearly"
|
|
4248
4229
|
})]
|
|
@@ -4252,14 +4233,14 @@ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4252
4233
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
4253
4234
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
4254
4235
|
"aria-label": e.name,
|
|
4255
|
-
className:
|
|
4236
|
+
className: V("flex flex-col gap-3.5 rounded-2xl border bg-card p-7 shadow-xs", e.featured && "border-brand shadow-[0_0_0_1px_var(--brand),var(--elevation-md)]"),
|
|
4256
4237
|
children: [
|
|
4257
4238
|
/* @__PURE__ */ i("div", {
|
|
4258
4239
|
className: "flex items-center justify-between",
|
|
4259
4240
|
children: [/* @__PURE__ */ r("h3", {
|
|
4260
4241
|
className: "m-0 type-h3",
|
|
4261
4242
|
children: e.name
|
|
4262
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
4243
|
+
}), e.featured && /* @__PURE__ */ r(q, { children: s })]
|
|
4263
4244
|
}),
|
|
4264
4245
|
/* @__PURE__ */ r("span", {
|
|
4265
4246
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -4274,14 +4255,14 @@ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4274
4255
|
className: "m-0 flex list-none flex-col gap-2.5 p-0 text-[15px]",
|
|
4275
4256
|
children: e.features.map((e) => /* @__PURE__ */ i("li", {
|
|
4276
4257
|
className: "flex gap-2.5",
|
|
4277
|
-
children: [/* @__PURE__ */ r(
|
|
4258
|
+
children: [/* @__PURE__ */ r(A, {
|
|
4278
4259
|
className: "mt-0.5 size-4.5 shrink-0 text-brand-text",
|
|
4279
4260
|
strokeWidth: 2,
|
|
4280
4261
|
"aria-hidden": "true"
|
|
4281
4262
|
}), e]
|
|
4282
4263
|
}, e))
|
|
4283
4264
|
}),
|
|
4284
|
-
/* @__PURE__ */ r(
|
|
4265
|
+
/* @__PURE__ */ r(Y, {
|
|
4285
4266
|
asChild: !0,
|
|
4286
4267
|
variant: e.featured ? "default" : "outline",
|
|
4287
4268
|
className: "mt-auto",
|
|
@@ -4302,20 +4283,20 @@ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4302
4283
|
});
|
|
4303
4284
|
}
|
|
4304
4285
|
// src/web/product-card.component.tsx
|
|
4305
|
-
function
|
|
4306
|
-
let s =
|
|
4286
|
+
function Va({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4287
|
+
let s = H[e];
|
|
4307
4288
|
return /* @__PURE__ */ i("a", {
|
|
4308
4289
|
"data-slot": "product-card",
|
|
4309
4290
|
"data-product": e,
|
|
4310
4291
|
href: t,
|
|
4311
|
-
className:
|
|
4292
|
+
className: V("flex flex-col overflow-hidden rounded-2xl border bg-card text-card-foreground no-underline shadow-xs transition-shadow hover:shadow-sm focus-visible:outline-2 focus-visible:outline-ring", o),
|
|
4312
4293
|
children: [/* @__PURE__ */ r("span", {
|
|
4313
4294
|
"aria-hidden": "true",
|
|
4314
4295
|
className: "block h-1.5 bg-brand"
|
|
4315
4296
|
}), /* @__PURE__ */ i("span", {
|
|
4316
4297
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
4317
4298
|
children: [
|
|
4318
|
-
/* @__PURE__ */ r(
|
|
4299
|
+
/* @__PURE__ */ r(U, {
|
|
4319
4300
|
product: e,
|
|
4320
4301
|
alt: "",
|
|
4321
4302
|
className: "size-11"
|
|
@@ -4330,7 +4311,7 @@ function Ua({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4330
4311
|
children: n ?? s.tagline
|
|
4331
4312
|
})]
|
|
4332
4313
|
}),
|
|
4333
|
-
/* @__PURE__ */ r(
|
|
4314
|
+
/* @__PURE__ */ r(q, {
|
|
4334
4315
|
variant: "outline",
|
|
4335
4316
|
className: "self-start",
|
|
4336
4317
|
children: a ?? s.stage
|
|
@@ -4340,17 +4321,17 @@ function Ua({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4340
4321
|
});
|
|
4341
4322
|
}
|
|
4342
4323
|
// src/web/site-footer.component.tsx
|
|
4343
|
-
function
|
|
4324
|
+
function Ha({ tagline: e, columns: t, legal: n, className: a }) {
|
|
4344
4325
|
return /* @__PURE__ */ i("footer", {
|
|
4345
4326
|
"data-slot": "site-footer",
|
|
4346
|
-
className:
|
|
4327
|
+
className: V("border-t pt-14 pb-10", a),
|
|
4347
4328
|
children: [/* @__PURE__ */ i("div", {
|
|
4348
4329
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
4349
4330
|
children: [/* @__PURE__ */ i("div", {
|
|
4350
4331
|
className: "col-span-2 flex flex-col gap-3",
|
|
4351
4332
|
children: [/* @__PURE__ */ i("span", {
|
|
4352
4333
|
className: "flex items-center gap-2",
|
|
4353
|
-
children: [/* @__PURE__ */ r(
|
|
4334
|
+
children: [/* @__PURE__ */ r(U, {
|
|
4354
4335
|
product: "talogic",
|
|
4355
4336
|
alt: "",
|
|
4356
4337
|
className: "size-7"
|
|
@@ -4381,12 +4362,12 @@ function Wa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4381
4362
|
});
|
|
4382
4363
|
}
|
|
4383
4364
|
// src/web/site-header.component.tsx
|
|
4384
|
-
function
|
|
4365
|
+
function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
4385
4366
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4386
4367
|
href: "/",
|
|
4387
4368
|
className: "flex items-center gap-2 no-underline",
|
|
4388
4369
|
"aria-label": "talogic home",
|
|
4389
|
-
children: [/* @__PURE__ */ r(
|
|
4370
|
+
children: [/* @__PURE__ */ r(U, {
|
|
4390
4371
|
product: "talogic",
|
|
4391
4372
|
alt: "",
|
|
4392
4373
|
className: "size-7"
|
|
@@ -4397,7 +4378,7 @@ function Ga({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4397
4378
|
});
|
|
4398
4379
|
return /* @__PURE__ */ r("header", {
|
|
4399
4380
|
"data-slot": "site-header",
|
|
4400
|
-
className:
|
|
4381
|
+
className: V("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
4401
4382
|
children: /* @__PURE__ */ i("div", {
|
|
4402
4383
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
4403
4384
|
children: [
|
|
@@ -4427,7 +4408,7 @@ function Ga({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4427
4408
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4428
4409
|
children: t
|
|
4429
4410
|
}),
|
|
4430
|
-
/* @__PURE__ */ r(
|
|
4411
|
+
/* @__PURE__ */ r(za, {
|
|
4431
4412
|
className: "ms-auto md:hidden",
|
|
4432
4413
|
links: e.flatMap((e) => e.links ?? [{
|
|
4433
4414
|
label: e.label,
|
|
@@ -4439,6 +4420,6 @@ function Ga({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4439
4420
|
})
|
|
4440
4421
|
});
|
|
4441
4422
|
}
|
|
4442
|
-
export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger,
|
|
4423
|
+
export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger, sa as AppShell, oa as AppShellBody, ia as AppShellHeader, $e as Avatar, tt as AvatarFallback, et as AvatarImage, q as Badge, Aa as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, Ti as BulkActionBar, Y as Button, Xe as COLOUR_SCHEMES, ja as CaptureFrame, vr as Card, Sr as CardContent, xr as CardDescription, Cr as CardFooter, yr as CardHeader, br as CardTitle, it as Checkbox, er as Combobox, bn as Command, xn as CommandDialog, wn as CommandEmpty, Tn as CommandGroup, Sn as CommandInput, En as CommandItem, Cn as CommandList, Dn as CommandSeparator, On as CommandShortcut, kn as ContextMenu, jn as ContextMenuContent, Mn as ContextMenuItem, Nn as ContextMenuSeparator, Pn as ContextMenuShortcut, An as ContextMenuTrigger, Na as CtaBand, Ye as DENSITIES, zt as Dialog, Vt as DialogClose, Ht as DialogContent, Kt as DialogDescription, Wt as DialogFooter, Ut as DialogHeader, Gt as DialogTitle, Bt as DialogTrigger, qt as Drawer, Yt as DrawerClose, Xt as DrawerContent, Qt as DrawerDescription, Zt as DrawerTitle, Jt as DrawerTrigger, Fn as DropdownMenu, zn as DropdownMenuContent, Ln as DropdownMenuGroup, Bn as DropdownMenuItem, Hn as DropdownMenuLabel, Rn as DropdownMenuRadioGroup, Vn as DropdownMenuRadioItem, Un as DropdownMenuSeparator, Wn as DropdownMenuShortcut, In as DropdownMenuTrigger, ar as EmptyState, Le as FAMILY_PALETTE, We as FREE_HUES, Pa as Faq, Fa as FeatureGrid, vt as Field, fr as FileDropOverlay, ca as FilterBar, la as FilterChip, xa as FlowNode, ua as FormSection, qe as HUES, G as HUE_FILL, Ia as Hero, La as HowItWorks, yt as Input, Sa as Inspector, wr as Kbd, Me as LABEL_COLORS, K as LOGO_RULE, _t as Label, Gr as MenuIcon, Kr as Menubar, Yr as MenubarContent, Xr as MenubarItem, qr as MenubarMenu, Qr as MenubarSeparator, Zr as MenubarShortcut, Jr as MenubarTrigger, za as MobileMenu, $r as NavigationMenu, ii as NavigationMenuContent, ti as NavigationMenuItem, ai as NavigationMenuLink, ei as NavigationMenuList, ri as NavigationMenuTrigger, Je as PALETTE_STEPS, Ke as PRODUCTS, H as PRODUCT_CATALOGUE, Ue as PRODUCT_HUES, da as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, wi as Presence, Ba as PricingTable, Va as ProductCard, U as ProductLogo, Ji as ProductSwitcher, or as Progress, _a as RUN_STATUSES, at as RadioGroup, ot as RadioGroupItem, Ma as RecordButton, fa as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Ei as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Ai as SelectableList, ji as SelectableRow, Di as SelectionHeader, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, Li as Sidebar, Yi as SidebarBrand, zi as SidebarCollapseButton, Vi as SidebarContent, Ui as SidebarFooter, Wi as SidebarGroup, Bi as SidebarHeader, Gi as SidebarItem, Hi as SidebarNote, qi as SidebarSheet, Ri as SidebarTooltip, Ha as SiteFooter, Ua as SiteHeader, sr as Skeleton, st as Slider, cr as Spinner, pa as SplitView, ga as StatCard, ba as StatusBadge, Ca as StatusBar, Si as Stepper, ct as Switch, Gn as TAG_DELIMITERS, jr as Table, Nr as TableBody, Lr as TableCaption, Ir as TableCell, Fr as TableHead, Mr as TableHeader, Pr as TableRow, li as Tabs, bi as TabsContent, fi as TabsList, hi as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, Qe as ThemeRoot, Oa as TimelineLanes, ka as TitleBar, lr as Toaster, dt as ToggleGroup, ft as ToggleGroupItem, pn as Tooltip, hn as TooltipContent, fn as TooltipProvider, mn as TooltipTrigger, ur as acceptsFile, qn as addTags, Fe as apcaContrast, nt as badgeVariants, J as buttonVariants, V as cn, Zi as commandShortcutLabel, pt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, Da as formatClockTime, Ea as formatTimecode, Ge as hueForProduct, He as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Fi as navRowClassName, kt as overlayClassName, Ci as presenceClassName, Ie as readableLabel, ya as runStatusDisplay, jt as sheetMotionClassName, Pi as sidebarNoteClassName, ma as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Ze as themeAttributes, wa as timelineBox, Ta as timelineTicks, Xi as useCommandShortcut, na as useCommandShortcutLabel, ht as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Mi as useSelection, Z as useSidebar };
|
|
4443
4424
|
|
|
4444
4425
|
//# sourceMappingURL=index.js.map
|