@talogic/react 0.6.1 → 0.6.3
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 +10 -3
- package/index.js +431 -414
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/ui/sidebar/index.d.ts +2 -2
- package/ui/sidebar/sidebar.component.d.ts +11 -2
- package/ui/sidebar/sidebar.recipe.d.ts +8 -3
package/index.js
CHANGED
|
@@ -4,17 +4,17 @@ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
|
4
4
|
import { Accordion as a, AlertDialog as o, Avatar as s, Checkbox as c, Collapsible as l, ContextMenu as u, Dialog as d, DropdownMenu as f, Label as p, Menubar as m, NavigationMenu as h, Popover as g, Progress as _, RadioGroup as v, ScrollArea as y, Select as b, Separator as ee, Slider as x, Slot as S, Switch as te, Tabs as C, ToggleGroup as ne, Tooltip as w } from "radix-ui";
|
|
5
5
|
import { cva as re } from "class-variance-authority";
|
|
6
6
|
import { Bookmark as ie, Check as T, ChevronDown as ae, ChevronRight as oe, ChevronsLeft as se, ChevronsRight as ce, ChevronsUpDown as le, CircleCheck as ue, Ellipsis as de, Info as fe, LoaderCircle as pe, Mic as me, Minus as he, PanelLeft as ge, Pause as _e, Play as ve, Plus as ye, Search as E, Square as be, TriangleAlert as xe, X as D } from "lucide-react";
|
|
7
|
-
import { cloneElement as Se, createContext as Ce, isValidElement as we, useCallback as Te, useContext as Ee, useEffect as O, useId as De, useRef as
|
|
8
|
-
import { Toaster as
|
|
9
|
-
import { Group as
|
|
10
|
-
import { Drawer as
|
|
11
|
-
import { Command as
|
|
7
|
+
import { cloneElement as Se, createContext as Ce, isValidElement as we, useCallback as Te, useContext as Ee, useEffect as O, useId as De, useRef as Oe, useState as k, useSyncExternalStore as ke } from "react";
|
|
8
|
+
import { Toaster as Ae } from "sonner";
|
|
9
|
+
import { Group as je, Panel as Me, Separator as Ne } from "react-resizable-panels";
|
|
10
|
+
import { Drawer as A } from "vaul";
|
|
11
|
+
import { Command as j } from "cmdk";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
|
-
function
|
|
13
|
+
function M(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var N = {
|
|
18
18
|
talogic: {
|
|
19
19
|
name: "Talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
@@ -54,7 +54,7 @@ var P = {
|
|
|
54
54
|
logoColor: "#3e63dd",
|
|
55
55
|
logoAccents: ["#e5484d", "#30a46c"]
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Pe = {
|
|
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 P = {
|
|
|
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 P({ product: e, alt: t = N[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = Pe[e], l = M("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: M(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: M(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function F({ product: e, alt: t = P[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var F = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -106,8 +106,8 @@ var I = {
|
|
|
106
106
|
lowOffset: .027,
|
|
107
107
|
deltaYMin: 5e-4,
|
|
108
108
|
lowClip: .1
|
|
109
|
-
},
|
|
110
|
-
function
|
|
109
|
+
}, Fe = ["#14121a", "#ffffff"];
|
|
110
|
+
function Ie(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 Fe(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 Le(e) {
|
|
120
|
+
let [t, n, r] = Ie(e).map((e) => (e / 255) ** F.mainTrc), i = F.red * t + F.green * n + F.blue * r;
|
|
121
|
+
return i < F.blackThresh ? i + (F.blackThresh - i) ** F.blackClamp : i;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
125
|
-
if (Math.abs(r - n) <
|
|
123
|
+
function Re(e, t) {
|
|
124
|
+
let n = Le(e), r = Le(t);
|
|
125
|
+
if (Math.abs(r - n) < F.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** F.normBg - n ** F.normText) * F.scale;
|
|
128
|
+
return e < F.lowClip ? 0 : (e - F.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** F.revBg - n ** F.revText) * F.scale;
|
|
131
|
+
return i > -F.lowClip ? 0 : (i + F.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ze(e, t = Fe) {
|
|
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(Re(n, e));
|
|
137
137
|
for (let i of t.slice(1)) {
|
|
138
|
-
let t = Math.abs(
|
|
138
|
+
let t = Math.abs(Re(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 I = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -154,7 +154,7 @@ var L = {
|
|
|
154
154
|
violet: "bg-violet-500",
|
|
155
155
|
purple: "bg-purple-500",
|
|
156
156
|
pink: "bg-pink-500"
|
|
157
|
-
},
|
|
157
|
+
}, Be = {
|
|
158
158
|
red: {
|
|
159
159
|
50: "#fef4f3",
|
|
160
160
|
100: "#fee9e7",
|
|
@@ -311,24 +311,24 @@ var L = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, L = {
|
|
315
315
|
saturation: .7,
|
|
316
316
|
lightness: .55,
|
|
317
317
|
maxOklchLightness: .7,
|
|
318
318
|
lightnessStep: .005
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function Ve(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 He(e) {
|
|
328
|
+
let [t, n, r] = Ve(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 Ue(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 He(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 We(e) {
|
|
371
|
+
let [t, n, r] = Ve(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 Ge(e) {
|
|
375
|
+
let t = He(Be[e][500]), n = L.lightness, r = Ue(t, L.saturation, n);
|
|
376
|
+
for (; We(r) > L.maxOklchLightness;) n -= L.lightnessStep, r = Ue(t, L.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
380
|
-
var
|
|
380
|
+
var Ke = {
|
|
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
|
+
}, qe = [
|
|
388
388
|
"lime",
|
|
389
389
|
"teal",
|
|
390
390
|
"cyan",
|
|
@@ -392,18 +392,18 @@ var Ge = {
|
|
|
392
392
|
"purple",
|
|
393
393
|
"pink"
|
|
394
394
|
];
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Je(e) {
|
|
396
|
+
return Ke[e];
|
|
397
397
|
}
|
|
398
398
|
// src/tokens/theme.contract.ts
|
|
399
|
-
var
|
|
399
|
+
var Ye = [
|
|
400
400
|
"talogic",
|
|
401
401
|
"pargic",
|
|
402
402
|
"daygic",
|
|
403
403
|
"ingic",
|
|
404
404
|
"loregic",
|
|
405
405
|
"loomgic"
|
|
406
|
-
],
|
|
406
|
+
], Xe = [
|
|
407
407
|
"red",
|
|
408
408
|
"orange",
|
|
409
409
|
"amber",
|
|
@@ -416,7 +416,7 @@ var Je = [
|
|
|
416
416
|
"violet",
|
|
417
417
|
"purple",
|
|
418
418
|
"pink"
|
|
419
|
-
],
|
|
419
|
+
], Ze = [
|
|
420
420
|
"50",
|
|
421
421
|
"100",
|
|
422
422
|
"200",
|
|
@@ -428,20 +428,20 @@ var Je = [
|
|
|
428
428
|
"800",
|
|
429
429
|
"900",
|
|
430
430
|
"950"
|
|
431
|
-
],
|
|
431
|
+
], Qe = [
|
|
432
432
|
"web",
|
|
433
433
|
"app",
|
|
434
434
|
"desk",
|
|
435
435
|
"mob"
|
|
436
|
-
],
|
|
436
|
+
], $e = ["light", "dark"];
|
|
437
437
|
// src/tokens/theme-attributes.mapper.ts
|
|
438
|
-
function
|
|
438
|
+
function et(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 tt({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
|
|
444
|
+
let { className: c, ...l } = et({
|
|
445
445
|
product: e,
|
|
446
446
|
hue: t,
|
|
447
447
|
scheme: n,
|
|
@@ -449,35 +449,35 @@ function et({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, classN
|
|
|
449
449
|
}), u = a ? S.Root : "div";
|
|
450
450
|
return /* @__PURE__ */ r(u, {
|
|
451
451
|
"data-slot": "theme-root",
|
|
452
|
-
className:
|
|
452
|
+
className: M(c, o),
|
|
453
453
|
...l,
|
|
454
454
|
...s
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
// src/ui/avatar/avatar.component.tsx
|
|
458
|
-
function
|
|
458
|
+
function nt({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
|
-
className:
|
|
461
|
+
className: M("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function rt({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
|
-
className:
|
|
468
|
+
className: M("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function it({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
|
-
className:
|
|
475
|
+
className: M("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 at = re("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 it = re("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-now
|
|
|
491
491
|
defaultVariants: { variant: "default" }
|
|
492
492
|
});
|
|
493
493
|
// src/ui/badge/badge.component.tsx
|
|
494
|
-
function
|
|
494
|
+
function R({ 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: M(at({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,7 +503,7 @@ function z({ 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 z = re([
|
|
507
507
|
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium no-underline",
|
|
508
508
|
"transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
509
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -537,11 +537,11 @@ var B = re([
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
// src/ui/button/button.component.tsx
|
|
540
|
-
function
|
|
540
|
+
function B({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
541
541
|
let d = o ? S.Root : "button";
|
|
542
542
|
return /* @__PURE__ */ r(d, {
|
|
543
543
|
"data-slot": "button",
|
|
544
|
-
className:
|
|
544
|
+
className: M(z({
|
|
545
545
|
variant: t,
|
|
546
546
|
size: a
|
|
547
547
|
}), e),
|
|
@@ -555,11 +555,11 @@ function V({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
// src/ui/choice/checkbox.component.tsx
|
|
558
|
-
var
|
|
559
|
-
function
|
|
558
|
+
var ot = "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";
|
|
559
|
+
function V({ className: e, ...t }) {
|
|
560
560
|
return /* @__PURE__ */ r(c.Root, {
|
|
561
561
|
"data-slot": "checkbox",
|
|
562
|
-
className:
|
|
562
|
+
className: M("peer group/checkbox grid size-4 shrink-0 cursor-pointer place-content-center rounded-[4px] border border-input bg-background text-primary-foreground shadow-xs outline-none", "transition-[background-color,border-color] duration-150 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", e),
|
|
563
563
|
...t,
|
|
564
564
|
children: /* @__PURE__ */ r(c.Indicator, {
|
|
565
565
|
forceMount: !0,
|
|
@@ -571,11 +571,11 @@ function ot({ className: e, ...t }) {
|
|
|
571
571
|
children: [/* @__PURE__ */ r("path", {
|
|
572
572
|
d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
|
|
573
573
|
pathLength: 1,
|
|
574
|
-
className:
|
|
574
|
+
className: M(ot, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
|
|
575
575
|
}), /* @__PURE__ */ r("path", {
|
|
576
576
|
d: "M4 8 L12 8",
|
|
577
577
|
pathLength: 1,
|
|
578
|
-
className:
|
|
578
|
+
className: M(ot, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
|
|
579
579
|
})]
|
|
580
580
|
})
|
|
581
581
|
})
|
|
@@ -585,14 +585,14 @@ function ot({ className: e, ...t }) {
|
|
|
585
585
|
function st({ className: e, ...t }) {
|
|
586
586
|
return /* @__PURE__ */ r(v.Root, {
|
|
587
587
|
"data-slot": "radio-group",
|
|
588
|
-
className:
|
|
588
|
+
className: M("grid gap-2.5", e),
|
|
589
589
|
...t
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
function ct({ className: e, ...t }) {
|
|
593
593
|
return /* @__PURE__ */ r(v.Item, {
|
|
594
594
|
"data-slot": "radio-group-item",
|
|
595
|
-
className:
|
|
595
|
+
className: M("peer group/radio grid size-4 shrink-0 cursor-pointer place-content-center rounded-full border border-input bg-background shadow-xs outline-none", "transition-[background-color,border-color] duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary", e),
|
|
596
596
|
...t,
|
|
597
597
|
children: /* @__PURE__ */ r(v.Indicator, {
|
|
598
598
|
forceMount: !0,
|
|
@@ -602,7 +602,7 @@ function ct({ className: e, ...t }) {
|
|
|
602
602
|
}
|
|
603
603
|
// src/ui/choice/slider.component.tsx
|
|
604
604
|
function lt({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
605
|
-
let [d, f] =
|
|
605
|
+
let [d, f] = k(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
606
606
|
return /* @__PURE__ */ i(x.Root, {
|
|
607
607
|
"data-slot": "slider",
|
|
608
608
|
value: t,
|
|
@@ -619,7 +619,7 @@ function lt({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
619
619
|
onPointerUp: (e) => {
|
|
620
620
|
f(!1), l?.(e);
|
|
621
621
|
},
|
|
622
|
-
className:
|
|
622
|
+
className: M("group/slider relative flex w-full touch-none select-none items-center data-disabled:opacity-50", "not-data-dragging:[&>span:has([role=slider])]:transition-[left] not-data-dragging:[&>span:has([role=slider])]:duration-200 not-data-dragging:[&>span:has([role=slider])]:ease-emphasised", "motion-reduce:[&>span:has([role=slider])]:transition-none", e),
|
|
623
623
|
...u,
|
|
624
624
|
children: [/* @__PURE__ */ r(x.Track, {
|
|
625
625
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
@@ -634,14 +634,14 @@ function lt({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
634
634
|
function ut({ className: e, ...t }) {
|
|
635
635
|
return /* @__PURE__ */ r(te.Root, {
|
|
636
636
|
"data-slot": "switch",
|
|
637
|
-
className:
|
|
637
|
+
className: M("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full bg-input p-0.5 outline-none transition-colors duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary", e),
|
|
638
638
|
...t,
|
|
639
639
|
children: /* @__PURE__ */ r(te.Thumb, { className: "block size-4 rounded-full bg-white shadow-xs transition-transform duration-200 ease-emphasised data-[state=checked]:translate-x-4 motion-reduce:transition-none" })
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
643
643
|
function dt(e) {
|
|
644
|
-
let t =
|
|
644
|
+
let t = Oe(null), n = Oe(void 0), r = Te((r) => {
|
|
645
645
|
if (n.current?.(), n.current = void 0, t.current = r, !r) return;
|
|
646
646
|
function i() {
|
|
647
647
|
if (!r) return;
|
|
@@ -674,19 +674,19 @@ function pt({ className: e, children: t, ...n }) {
|
|
|
674
674
|
ref: o ? a : void 0,
|
|
675
675
|
"data-slot": "toggle-group",
|
|
676
676
|
"data-mode": n.type,
|
|
677
|
-
className:
|
|
677
|
+
className: M("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
|
|
678
678
|
...n,
|
|
679
679
|
children: [o && /* @__PURE__ */ r("span", {
|
|
680
680
|
"aria-hidden": "true",
|
|
681
681
|
"data-slot": "toggle-group-indicator",
|
|
682
|
-
className:
|
|
682
|
+
className: M(ft, "rounded-sm bg-background shadow-xs")
|
|
683
683
|
}), t]
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
function mt({ className: e, ...t }) {
|
|
687
687
|
return /* @__PURE__ */ r(ne.Item, {
|
|
688
688
|
"data-slot": "toggle-group-item",
|
|
689
|
-
className:
|
|
689
|
+
className: M("inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-sm px-3 text-[13px] font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 [&_svg]:size-4", "relative transition-colors duration-150 data-[state=on]:text-foreground motion-reduce:transition-none", "in-data-[mode=multiple]:data-[state=on]:bg-background in-data-[mode=multiple]:data-[state=on]:shadow-xs", e),
|
|
690
690
|
...t
|
|
691
691
|
});
|
|
692
692
|
}
|
|
@@ -718,11 +718,11 @@ function gt({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
718
718
|
return /* @__PURE__ */ i("div", {
|
|
719
719
|
"data-slot": "alert",
|
|
720
720
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
721
|
-
className:
|
|
721
|
+
className: M("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
722
722
|
...s,
|
|
723
723
|
children: [/* @__PURE__ */ r("span", {
|
|
724
724
|
"aria-hidden": "true",
|
|
725
|
-
className:
|
|
725
|
+
className: M("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
726
726
|
children: n ?? /* @__PURE__ */ r(u, {})
|
|
727
727
|
}), /* @__PURE__ */ i("div", {
|
|
728
728
|
className: "flex flex-col gap-0.5",
|
|
@@ -740,7 +740,7 @@ function gt({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
740
740
|
function _t({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
741
741
|
return /* @__PURE__ */ i("div", {
|
|
742
742
|
"data-slot": "empty-state",
|
|
743
|
-
className:
|
|
743
|
+
className: M("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
744
744
|
...s,
|
|
745
745
|
children: [
|
|
746
746
|
/* @__PURE__ */ r("span", {
|
|
@@ -770,7 +770,7 @@ function vt({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
770
770
|
"data-slot": "progress",
|
|
771
771
|
value: t,
|
|
772
772
|
max: n,
|
|
773
|
-
className:
|
|
773
|
+
className: M("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
774
774
|
...i,
|
|
775
775
|
children: /* @__PURE__ */ r(_.Indicator, {
|
|
776
776
|
className: "h-full rounded-full bg-brand transition-[width]",
|
|
@@ -783,7 +783,7 @@ function yt({ className: e, ...t }) {
|
|
|
783
783
|
return /* @__PURE__ */ r("div", {
|
|
784
784
|
"data-slot": "skeleton",
|
|
785
785
|
"aria-hidden": "true",
|
|
786
|
-
className:
|
|
786
|
+
className: M("animate-pulse rounded-sm bg-muted", e),
|
|
787
787
|
...t
|
|
788
788
|
});
|
|
789
789
|
}
|
|
@@ -793,13 +793,13 @@ function bt({ className: e, label: t = "Loading", ...n }) {
|
|
|
793
793
|
"data-slot": "spinner",
|
|
794
794
|
role: "status",
|
|
795
795
|
"aria-label": t,
|
|
796
|
-
className:
|
|
796
|
+
className: M("size-4 animate-spin text-muted-foreground", e),
|
|
797
797
|
...n
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
800
|
// src/ui/feedback/toaster.component.tsx
|
|
801
801
|
function xt(e) {
|
|
802
|
-
return /* @__PURE__ */ r(
|
|
802
|
+
return /* @__PURE__ */ r(Ae, {
|
|
803
803
|
className: "toaster group",
|
|
804
804
|
toastOptions: { classNames: {
|
|
805
805
|
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",
|
|
@@ -827,7 +827,7 @@ function U(e = {}) {
|
|
|
827
827
|
function Ct({ className: e, ...t }) {
|
|
828
828
|
return /* @__PURE__ */ r(p.Root, {
|
|
829
829
|
"data-slot": "label",
|
|
830
|
-
className:
|
|
830
|
+
className: M("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
831
831
|
...t
|
|
832
832
|
});
|
|
833
833
|
}
|
|
@@ -842,7 +842,7 @@ function wt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
842
842
|
},
|
|
843
843
|
children: /* @__PURE__ */ i("div", {
|
|
844
844
|
"data-slot": "field",
|
|
845
|
-
className:
|
|
845
|
+
className: M("flex flex-col gap-1.5", s),
|
|
846
846
|
children: [
|
|
847
847
|
/* @__PURE__ */ r(Ct, {
|
|
848
848
|
htmlFor: l,
|
|
@@ -868,7 +868,7 @@ function W({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
868
868
|
let o = U(a), s = /* @__PURE__ */ r("input", {
|
|
869
869
|
"data-slot": "input",
|
|
870
870
|
type: n,
|
|
871
|
-
className:
|
|
871
|
+
className: M(H, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
872
872
|
...a,
|
|
873
873
|
...o
|
|
874
874
|
});
|
|
@@ -887,7 +887,7 @@ function Ot({ className: e, children: t, ...n }) {
|
|
|
887
887
|
let a = U(n);
|
|
888
888
|
return /* @__PURE__ */ i(b.Trigger, {
|
|
889
889
|
"data-slot": "select-trigger",
|
|
890
|
-
className:
|
|
890
|
+
className: M(H, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
891
891
|
...n,
|
|
892
892
|
...a,
|
|
893
893
|
children: [t, /* @__PURE__ */ r(b.Icon, {
|
|
@@ -903,7 +903,7 @@ function kt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
903
903
|
return /* @__PURE__ */ r(b.Portal, { children: /* @__PURE__ */ r(b.Content, {
|
|
904
904
|
"data-slot": "select-content",
|
|
905
905
|
position: n,
|
|
906
|
-
className:
|
|
906
|
+
className: M("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),
|
|
907
907
|
...i,
|
|
908
908
|
children: /* @__PURE__ */ r(b.Viewport, {
|
|
909
909
|
className: "p-1",
|
|
@@ -914,14 +914,14 @@ function kt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
914
914
|
function At({ className: e, ...t }) {
|
|
915
915
|
return /* @__PURE__ */ r(b.Label, {
|
|
916
916
|
"data-slot": "select-label",
|
|
917
|
-
className:
|
|
917
|
+
className: M("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
918
918
|
...t
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
function jt({ className: e, children: t, ...n }) {
|
|
922
922
|
return /* @__PURE__ */ i(b.Item, {
|
|
923
923
|
"data-slot": "select-item",
|
|
924
|
-
className:
|
|
924
|
+
className: M("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),
|
|
925
925
|
...n,
|
|
926
926
|
children: [/* @__PURE__ */ r(b.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
927
927
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
@@ -935,7 +935,7 @@ function jt({ className: e, children: t, ...n }) {
|
|
|
935
935
|
function Mt({ className: e, ...t }) {
|
|
936
936
|
return /* @__PURE__ */ r(b.Separator, {
|
|
937
937
|
"data-slot": "select-separator",
|
|
938
|
-
className:
|
|
938
|
+
className: M("-mx-1 my-1 h-px bg-border", e),
|
|
939
939
|
...t
|
|
940
940
|
});
|
|
941
941
|
}
|
|
@@ -944,7 +944,7 @@ function Nt({ className: e, ...t }) {
|
|
|
944
944
|
let n = U(t);
|
|
945
945
|
return /* @__PURE__ */ r("textarea", {
|
|
946
946
|
"data-slot": "textarea",
|
|
947
|
-
className:
|
|
947
|
+
className: M(H, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
948
948
|
...t,
|
|
949
949
|
...n
|
|
950
950
|
});
|
|
@@ -953,14 +953,14 @@ function Nt({ className: e, ...t }) {
|
|
|
953
953
|
function Pt({ className: e, ...t }) {
|
|
954
954
|
return /* @__PURE__ */ r(a.Root, {
|
|
955
955
|
"data-slot": "accordion",
|
|
956
|
-
className:
|
|
956
|
+
className: M("border-t", e),
|
|
957
957
|
...t
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
function Ft({ className: e, ...t }) {
|
|
961
961
|
return /* @__PURE__ */ r(a.Item, {
|
|
962
962
|
"data-slot": "accordion-item",
|
|
963
|
-
className:
|
|
963
|
+
className: M("border-b", e),
|
|
964
964
|
...t
|
|
965
965
|
});
|
|
966
966
|
}
|
|
@@ -969,7 +969,7 @@ function It({ className: e, children: t, ...n }) {
|
|
|
969
969
|
className: "m-0 flex",
|
|
970
970
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
971
971
|
"data-slot": "accordion-trigger",
|
|
972
|
-
className:
|
|
972
|
+
className: M("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),
|
|
973
973
|
...n,
|
|
974
974
|
children: [t, /* @__PURE__ */ i("svg", {
|
|
975
975
|
viewBox: "0 0 16 16",
|
|
@@ -1001,7 +1001,7 @@ function Lt({ className: e, children: t, ...n }) {
|
|
|
1001
1001
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down motion-reduce:animate-none",
|
|
1002
1002
|
...n,
|
|
1003
1003
|
children: /* @__PURE__ */ r("div", {
|
|
1004
|
-
className:
|
|
1004
|
+
className: M("pb-3", e),
|
|
1005
1005
|
children: t
|
|
1006
1006
|
})
|
|
1007
1007
|
});
|
|
@@ -1010,21 +1010,21 @@ function Lt({ className: e, children: t, ...n }) {
|
|
|
1010
1010
|
function Rt({ className: e, ...t }) {
|
|
1011
1011
|
return /* @__PURE__ */ r("div", {
|
|
1012
1012
|
"data-slot": "card",
|
|
1013
|
-
className:
|
|
1013
|
+
className: M("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1014
1014
|
...t
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
function zt({ className: e, ...t }) {
|
|
1018
1018
|
return /* @__PURE__ */ r("div", {
|
|
1019
1019
|
"data-slot": "card-header",
|
|
1020
|
-
className:
|
|
1020
|
+
className: M("flex flex-col gap-1 px-5 pt-5", e),
|
|
1021
1021
|
...t
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
1024
|
function Bt({ className: e, children: t, ...n }) {
|
|
1025
1025
|
return /* @__PURE__ */ r("h3", {
|
|
1026
1026
|
"data-slot": "card-title",
|
|
1027
|
-
className:
|
|
1027
|
+
className: M("m-0 type-h4", e),
|
|
1028
1028
|
...n,
|
|
1029
1029
|
children: t
|
|
1030
1030
|
});
|
|
@@ -1032,21 +1032,21 @@ function Bt({ className: e, children: t, ...n }) {
|
|
|
1032
1032
|
function Vt({ className: e, ...t }) {
|
|
1033
1033
|
return /* @__PURE__ */ r("p", {
|
|
1034
1034
|
"data-slot": "card-description",
|
|
1035
|
-
className:
|
|
1035
|
+
className: M("m-0 text-[13px] text-muted-foreground", e),
|
|
1036
1036
|
...t
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
function Ht({ className: e, ...t }) {
|
|
1040
1040
|
return /* @__PURE__ */ r("div", {
|
|
1041
1041
|
"data-slot": "card-content",
|
|
1042
|
-
className:
|
|
1042
|
+
className: M("px-5 py-4", e),
|
|
1043
1043
|
...t
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
1046
|
function Ut({ className: e, ...t }) {
|
|
1047
1047
|
return /* @__PURE__ */ r("div", {
|
|
1048
1048
|
"data-slot": "card-footer",
|
|
1049
|
-
className:
|
|
1049
|
+
className: M("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1050
1050
|
...t
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
@@ -1054,28 +1054,28 @@ function Ut({ className: e, ...t }) {
|
|
|
1054
1054
|
function Wt({ className: e, ...t }) {
|
|
1055
1055
|
return /* @__PURE__ */ r("kbd", {
|
|
1056
1056
|
"data-slot": "kbd",
|
|
1057
|
-
className:
|
|
1057
|
+
className: M("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),
|
|
1058
1058
|
...t
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
1061
|
// src/ui/layout/resizable.component.tsx
|
|
1062
1062
|
function Gt({ className: e, ...t }) {
|
|
1063
|
-
return /* @__PURE__ */ r(
|
|
1063
|
+
return /* @__PURE__ */ r(je, {
|
|
1064
1064
|
"data-slot": "resizable-panel-group",
|
|
1065
|
-
className:
|
|
1065
|
+
className: M("flex size-full", e),
|
|
1066
1066
|
...t
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
function Kt(e) {
|
|
1070
|
-
return /* @__PURE__ */ r(
|
|
1070
|
+
return /* @__PURE__ */ r(Me, {
|
|
1071
1071
|
"data-slot": "resizable-panel",
|
|
1072
1072
|
...e
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
function qt({ className: e, ...t }) {
|
|
1076
|
-
return /* @__PURE__ */ r(
|
|
1076
|
+
return /* @__PURE__ */ r(Ne, {
|
|
1077
1077
|
"data-slot": "resizable-handle",
|
|
1078
|
-
className:
|
|
1078
|
+
className: M("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),
|
|
1079
1079
|
...t
|
|
1080
1080
|
});
|
|
1081
1081
|
}
|
|
@@ -1083,7 +1083,7 @@ function qt({ className: e, ...t }) {
|
|
|
1083
1083
|
function Jt({ className: e, children: t, ...n }) {
|
|
1084
1084
|
return /* @__PURE__ */ i(y.Root, {
|
|
1085
1085
|
"data-slot": "scroll-area",
|
|
1086
|
-
className:
|
|
1086
|
+
className: M("relative overflow-hidden", e),
|
|
1087
1087
|
...n,
|
|
1088
1088
|
children: [
|
|
1089
1089
|
/* @__PURE__ */ r(y.Viewport, {
|
|
@@ -1100,7 +1100,7 @@ function Yt({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1100
1100
|
return /* @__PURE__ */ r(y.Scrollbar, {
|
|
1101
1101
|
"data-slot": "scroll-area-scrollbar",
|
|
1102
1102
|
orientation: t,
|
|
1103
|
-
className:
|
|
1103
|
+
className: M("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1104
1104
|
...n,
|
|
1105
1105
|
children: /* @__PURE__ */ r(y.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1106
1106
|
});
|
|
@@ -1111,7 +1111,7 @@ function Xt({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1111
1111
|
"data-slot": "separator",
|
|
1112
1112
|
orientation: t,
|
|
1113
1113
|
decorative: n,
|
|
1114
|
-
className:
|
|
1114
|
+
className: M("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1115
1115
|
...i
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
@@ -1122,7 +1122,7 @@ function Zt({ className: e, ...t }) {
|
|
|
1122
1122
|
className: "relative w-full overflow-x-auto",
|
|
1123
1123
|
children: /* @__PURE__ */ r("table", {
|
|
1124
1124
|
"data-slot": "table",
|
|
1125
|
-
className:
|
|
1125
|
+
className: M("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1126
1126
|
...t
|
|
1127
1127
|
})
|
|
1128
1128
|
});
|
|
@@ -1142,28 +1142,28 @@ function $t(e) {
|
|
|
1142
1142
|
function en({ className: e, ...t }) {
|
|
1143
1143
|
return /* @__PURE__ */ r("tr", {
|
|
1144
1144
|
"data-slot": "table-row",
|
|
1145
|
-
className:
|
|
1145
|
+
className: M("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1146
1146
|
...t
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
function G({ className: e, ...t }) {
|
|
1150
1150
|
return /* @__PURE__ */ r("th", {
|
|
1151
1151
|
"data-slot": "table-head",
|
|
1152
|
-
className:
|
|
1152
|
+
className: M("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1153
1153
|
...t
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
function K({ className: e, ...t }) {
|
|
1157
1157
|
return /* @__PURE__ */ r("td", {
|
|
1158
1158
|
"data-slot": "table-cell",
|
|
1159
|
-
className:
|
|
1159
|
+
className: M("px-3 py-[11px] align-middle", e),
|
|
1160
1160
|
...t
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
1163
|
function tn({ className: e, ...t }) {
|
|
1164
1164
|
return /* @__PURE__ */ r("caption", {
|
|
1165
1165
|
"data-slot": "table-caption",
|
|
1166
|
-
className:
|
|
1166
|
+
className: M("mt-3 text-xs text-muted-foreground", e),
|
|
1167
1167
|
...t
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
@@ -1177,35 +1177,35 @@ var q = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop-
|
|
|
1177
1177
|
function on({ className: e, ...t }) {
|
|
1178
1178
|
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: q }), /* @__PURE__ */ r(o.Content, {
|
|
1179
1179
|
"data-slot": "alert-dialog-content",
|
|
1180
|
-
className:
|
|
1180
|
+
className: M("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", J, e),
|
|
1181
1181
|
...t
|
|
1182
1182
|
})] });
|
|
1183
1183
|
}
|
|
1184
1184
|
function sn({ className: e, ...t }) {
|
|
1185
1185
|
return /* @__PURE__ */ r(o.Title, {
|
|
1186
1186
|
"data-slot": "alert-dialog-title",
|
|
1187
|
-
className:
|
|
1187
|
+
className: M("m-0 font-display text-lg font-bold leading-tight", e),
|
|
1188
1188
|
...t
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
1191
|
function cn({ className: e, ...t }) {
|
|
1192
1192
|
return /* @__PURE__ */ r(o.Description, {
|
|
1193
1193
|
"data-slot": "alert-dialog-description",
|
|
1194
|
-
className:
|
|
1194
|
+
className: M("m-0 text-sm text-muted-foreground", e),
|
|
1195
1195
|
...t
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
1198
|
function ln({ className: e, variant: t = "default", ...n }) {
|
|
1199
1199
|
return /* @__PURE__ */ r(o.Action, {
|
|
1200
1200
|
"data-slot": "alert-dialog-action",
|
|
1201
|
-
className:
|
|
1201
|
+
className: M(z({ variant: t }), e),
|
|
1202
1202
|
...n
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
function un({ className: e, ...t }) {
|
|
1206
1206
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
1207
1207
|
"data-slot": "alert-dialog-cancel",
|
|
1208
|
-
className:
|
|
1208
|
+
className: M(z({ variant: "outline" }), e),
|
|
1209
1209
|
...t
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
@@ -1214,7 +1214,7 @@ var dn = d.Root, fn = d.Trigger, pn = d.Close;
|
|
|
1214
1214
|
function mn({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
1215
1215
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: q }), /* @__PURE__ */ i(d.Content, {
|
|
1216
1216
|
"data-slot": "dialog-content",
|
|
1217
|
-
className:
|
|
1217
|
+
className: M("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", J, e),
|
|
1218
1218
|
...a,
|
|
1219
1219
|
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
1220
1220
|
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",
|
|
@@ -1231,37 +1231,37 @@ function mn({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
1231
1231
|
function hn({ className: e, ...t }) {
|
|
1232
1232
|
return /* @__PURE__ */ r("div", {
|
|
1233
1233
|
"data-slot": "dialog-header",
|
|
1234
|
-
className:
|
|
1234
|
+
className: M("flex flex-col gap-1.5 text-start", e),
|
|
1235
1235
|
...t
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
1238
|
function gn({ className: e, ...t }) {
|
|
1239
1239
|
return /* @__PURE__ */ r("div", {
|
|
1240
1240
|
"data-slot": "dialog-footer",
|
|
1241
|
-
className:
|
|
1241
|
+
className: M("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
1242
1242
|
...t
|
|
1243
1243
|
});
|
|
1244
1244
|
}
|
|
1245
1245
|
function _n({ className: e, ...t }) {
|
|
1246
1246
|
return /* @__PURE__ */ r(d.Title, {
|
|
1247
1247
|
"data-slot": "dialog-title",
|
|
1248
|
-
className:
|
|
1248
|
+
className: M("m-0 font-display text-lg font-bold leading-tight", e),
|
|
1249
1249
|
...t
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
function vn({ className: e, ...t }) {
|
|
1253
1253
|
return /* @__PURE__ */ r(d.Description, {
|
|
1254
1254
|
"data-slot": "dialog-description",
|
|
1255
|
-
className:
|
|
1255
|
+
className: M("m-0 text-sm text-muted-foreground", e),
|
|
1256
1256
|
...t
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
1259
|
// src/ui/overlay/drawer.component.tsx
|
|
1260
|
-
var yn =
|
|
1260
|
+
var yn = A.Root, bn = A.Trigger, xn = A.Close;
|
|
1261
1261
|
function Sn({ className: e, children: t, ...n }) {
|
|
1262
|
-
return /* @__PURE__ */ i(
|
|
1262
|
+
return /* @__PURE__ */ i(A.Portal, { children: [/* @__PURE__ */ r(A.Overlay, { className: q }), /* @__PURE__ */ i(A.Content, {
|
|
1263
1263
|
"data-slot": "drawer-content",
|
|
1264
|
-
className:
|
|
1264
|
+
className: M("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),
|
|
1265
1265
|
...n,
|
|
1266
1266
|
children: [/* @__PURE__ */ r("div", {
|
|
1267
1267
|
"aria-hidden": "true",
|
|
@@ -1270,16 +1270,16 @@ function Sn({ className: e, children: t, ...n }) {
|
|
|
1270
1270
|
})] });
|
|
1271
1271
|
}
|
|
1272
1272
|
function Cn({ className: e, ...t }) {
|
|
1273
|
-
return /* @__PURE__ */ r(
|
|
1273
|
+
return /* @__PURE__ */ r(A.Title, {
|
|
1274
1274
|
"data-slot": "drawer-title",
|
|
1275
|
-
className:
|
|
1275
|
+
className: M("m-0 text-xl font-semibold leading-tight", e),
|
|
1276
1276
|
...t
|
|
1277
1277
|
});
|
|
1278
1278
|
}
|
|
1279
1279
|
function wn({ className: e, ...t }) {
|
|
1280
|
-
return /* @__PURE__ */ r(
|
|
1280
|
+
return /* @__PURE__ */ r(A.Description, {
|
|
1281
1281
|
"data-slot": "drawer-description",
|
|
1282
|
-
className:
|
|
1282
|
+
className: M("m-0 text-sm text-muted-foreground", e),
|
|
1283
1283
|
...t
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
@@ -1290,7 +1290,7 @@ function On({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
|
1290
1290
|
"data-slot": "popover-content",
|
|
1291
1291
|
align: t,
|
|
1292
1292
|
sideOffset: n,
|
|
1293
|
-
className:
|
|
1293
|
+
className: M("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", J, e),
|
|
1294
1294
|
...i
|
|
1295
1295
|
}) });
|
|
1296
1296
|
}
|
|
@@ -1304,7 +1304,7 @@ var kn = d.Root, An = d.Trigger, jn = d.Close, Mn = d.Title, Nn = d.Description,
|
|
|
1304
1304
|
function Fn({ className: e, children: t, side: n = "end", ...a }) {
|
|
1305
1305
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: q }), /* @__PURE__ */ i(d.Content, {
|
|
1306
1306
|
"data-slot": "sheet-content",
|
|
1307
|
-
className:
|
|
1307
|
+
className: M("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", Pn[n], nn[n], e),
|
|
1308
1308
|
...a,
|
|
1309
1309
|
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
1310
1310
|
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",
|
|
@@ -1334,7 +1334,7 @@ function zn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1334
1334
|
return /* @__PURE__ */ r(w.Portal, { children: /* @__PURE__ */ r(w.Content, {
|
|
1335
1335
|
"data-slot": "tooltip-content",
|
|
1336
1336
|
sideOffset: t,
|
|
1337
|
-
className:
|
|
1337
|
+
className: M("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", J, e),
|
|
1338
1338
|
...n
|
|
1339
1339
|
}) });
|
|
1340
1340
|
}
|
|
@@ -1342,9 +1342,9 @@ function zn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1342
1342
|
var Bn = "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", Y = "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 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:[&_svg]:text-destructive", Vn = "ms-auto text-xs tracking-wide text-muted-foreground", Hn = "-mx-1 my-1 h-px bg-border", Un = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1343
1343
|
// src/ui/menu/command.component.tsx
|
|
1344
1344
|
function Wn({ className: e, ...t }) {
|
|
1345
|
-
return /* @__PURE__ */ r(
|
|
1345
|
+
return /* @__PURE__ */ r(j, {
|
|
1346
1346
|
"data-slot": "command",
|
|
1347
|
-
className:
|
|
1347
|
+
className: M("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1348
1348
|
...t
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
@@ -1352,7 +1352,7 @@ function Gn({ title: e = "Search", children: t, ...n }) {
|
|
|
1352
1352
|
return /* @__PURE__ */ r(d.Root, {
|
|
1353
1353
|
...n,
|
|
1354
1354
|
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: q }), /* @__PURE__ */ i(d.Content, {
|
|
1355
|
-
className:
|
|
1355
|
+
className: M("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", J),
|
|
1356
1356
|
children: [
|
|
1357
1357
|
/* @__PURE__ */ r(d.Title, {
|
|
1358
1358
|
className: "sr-only",
|
|
@@ -1374,52 +1374,52 @@ function Kn({ className: e, ...t }) {
|
|
|
1374
1374
|
children: [/* @__PURE__ */ r(E, {
|
|
1375
1375
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
1376
1376
|
"aria-hidden": "true"
|
|
1377
|
-
}), /* @__PURE__ */ r(
|
|
1377
|
+
}), /* @__PURE__ */ r(j.Input, {
|
|
1378
1378
|
"data-slot": "command-input",
|
|
1379
|
-
className:
|
|
1379
|
+
className: M("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1380
1380
|
...t
|
|
1381
1381
|
})]
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
1384
|
function qn({ className: e, ...t }) {
|
|
1385
|
-
return /* @__PURE__ */ r(
|
|
1385
|
+
return /* @__PURE__ */ r(j.List, {
|
|
1386
1386
|
"data-slot": "command-list",
|
|
1387
|
-
className:
|
|
1387
|
+
className: M("max-h-80 overflow-y-auto p-1", e),
|
|
1388
1388
|
...t
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
function Jn({ className: e, ...t }) {
|
|
1392
|
-
return /* @__PURE__ */ r(
|
|
1392
|
+
return /* @__PURE__ */ r(j.Empty, {
|
|
1393
1393
|
"data-slot": "command-empty",
|
|
1394
|
-
className:
|
|
1394
|
+
className: M("py-6 text-center text-sm text-muted-foreground", e),
|
|
1395
1395
|
...t
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
function Yn({ className: e, ...t }) {
|
|
1399
|
-
return /* @__PURE__ */ r(
|
|
1399
|
+
return /* @__PURE__ */ r(j.Group, {
|
|
1400
1400
|
"data-slot": "command-group",
|
|
1401
|
-
className:
|
|
1401
|
+
className: M("[&_[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),
|
|
1402
1402
|
...t
|
|
1403
1403
|
});
|
|
1404
1404
|
}
|
|
1405
1405
|
function Xn({ className: e, ...t }) {
|
|
1406
|
-
return /* @__PURE__ */ r(
|
|
1406
|
+
return /* @__PURE__ */ r(j.Item, {
|
|
1407
1407
|
"data-slot": "command-item",
|
|
1408
|
-
className:
|
|
1408
|
+
className: M(Y, "data-[selected=true]:bg-accent", e),
|
|
1409
1409
|
...t
|
|
1410
1410
|
});
|
|
1411
1411
|
}
|
|
1412
1412
|
function Zn({ className: e, ...t }) {
|
|
1413
|
-
return /* @__PURE__ */ r(
|
|
1413
|
+
return /* @__PURE__ */ r(j.Separator, {
|
|
1414
1414
|
"data-slot": "command-separator",
|
|
1415
|
-
className:
|
|
1415
|
+
className: M(Hn, e),
|
|
1416
1416
|
...t
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
1419
|
function Qn({ className: e, ...t }) {
|
|
1420
1420
|
return /* @__PURE__ */ r("span", {
|
|
1421
1421
|
"data-slot": "command-shortcut",
|
|
1422
|
-
className:
|
|
1422
|
+
className: M(Vn, e),
|
|
1423
1423
|
...t
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
@@ -1428,7 +1428,7 @@ var $n = u.Root, er = u.Trigger;
|
|
|
1428
1428
|
function tr({ className: e, ...t }) {
|
|
1429
1429
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1430
1430
|
"data-slot": "context-menu-content",
|
|
1431
|
-
className:
|
|
1431
|
+
className: M(Bn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1432
1432
|
...t
|
|
1433
1433
|
}) });
|
|
1434
1434
|
}
|
|
@@ -1436,21 +1436,21 @@ function nr({ className: e, variant: t = "default", ...n }) {
|
|
|
1436
1436
|
return /* @__PURE__ */ r(u.Item, {
|
|
1437
1437
|
"data-slot": "context-menu-item",
|
|
1438
1438
|
"data-variant": t,
|
|
1439
|
-
className:
|
|
1439
|
+
className: M(Y, e),
|
|
1440
1440
|
...n
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
1443
1443
|
function rr({ className: e, ...t }) {
|
|
1444
1444
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1445
1445
|
"data-slot": "context-menu-separator",
|
|
1446
|
-
className:
|
|
1446
|
+
className: M(Hn, e),
|
|
1447
1447
|
...t
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
function ir({ className: e, ...t }) {
|
|
1451
1451
|
return /* @__PURE__ */ r("span", {
|
|
1452
1452
|
"data-slot": "context-menu-shortcut",
|
|
1453
|
-
className:
|
|
1453
|
+
className: M(Vn, e),
|
|
1454
1454
|
...t
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
@@ -1460,7 +1460,7 @@ function lr({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1460
1460
|
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1461
1461
|
"data-slot": "dropdown-menu-content",
|
|
1462
1462
|
sideOffset: t,
|
|
1463
|
-
className:
|
|
1463
|
+
className: M(Bn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1464
1464
|
...n
|
|
1465
1465
|
}) });
|
|
1466
1466
|
}
|
|
@@ -1468,14 +1468,14 @@ function ur({ className: e, variant: t = "default", ...n }) {
|
|
|
1468
1468
|
return /* @__PURE__ */ r(f.Item, {
|
|
1469
1469
|
"data-slot": "dropdown-menu-item",
|
|
1470
1470
|
"data-variant": t,
|
|
1471
|
-
className:
|
|
1471
|
+
className: M(Y, e),
|
|
1472
1472
|
...n
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
function dr({ className: e, children: t, ...n }) {
|
|
1476
1476
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1477
1477
|
"data-slot": "dropdown-menu-radio-item",
|
|
1478
|
-
className:
|
|
1478
|
+
className: M(Y, "ps-7", e),
|
|
1479
1479
|
...n,
|
|
1480
1480
|
children: [/* @__PURE__ */ r("span", {
|
|
1481
1481
|
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
@@ -1486,21 +1486,21 @@ function dr({ className: e, children: t, ...n }) {
|
|
|
1486
1486
|
function fr({ className: e, ...t }) {
|
|
1487
1487
|
return /* @__PURE__ */ r(f.Label, {
|
|
1488
1488
|
"data-slot": "dropdown-menu-label",
|
|
1489
|
-
className:
|
|
1489
|
+
className: M(Un, e),
|
|
1490
1490
|
...t
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
1493
|
function pr({ className: e, ...t }) {
|
|
1494
1494
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1495
1495
|
"data-slot": "dropdown-menu-separator",
|
|
1496
|
-
className:
|
|
1496
|
+
className: M(Hn, e),
|
|
1497
1497
|
...t
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
1500
|
function mr({ className: e, ...t }) {
|
|
1501
1501
|
return /* @__PURE__ */ r("span", {
|
|
1502
1502
|
"data-slot": "dropdown-menu-shortcut",
|
|
1503
|
-
className:
|
|
1503
|
+
className: M(Vn, e),
|
|
1504
1504
|
...t
|
|
1505
1505
|
});
|
|
1506
1506
|
}
|
|
@@ -1515,14 +1515,14 @@ function hr({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
|
1515
1515
|
function gr({ className: e, ...t }) {
|
|
1516
1516
|
return /* @__PURE__ */ r("ol", {
|
|
1517
1517
|
"data-slot": "breadcrumb-list",
|
|
1518
|
-
className:
|
|
1518
|
+
className: M("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1519
1519
|
...t
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
function _r({ className: e, ...t }) {
|
|
1523
1523
|
return /* @__PURE__ */ r("li", {
|
|
1524
1524
|
"data-slot": "breadcrumb-item",
|
|
1525
|
-
className:
|
|
1525
|
+
className: M("inline-flex items-center gap-2", e),
|
|
1526
1526
|
...t
|
|
1527
1527
|
});
|
|
1528
1528
|
}
|
|
@@ -1530,7 +1530,7 @@ function vr({ asChild: e = !1, className: t, ...n }) {
|
|
|
1530
1530
|
let i = e ? S.Root : "a";
|
|
1531
1531
|
return /* @__PURE__ */ r(i, {
|
|
1532
1532
|
"data-slot": "breadcrumb-link",
|
|
1533
|
-
className:
|
|
1533
|
+
className: M("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1534
1534
|
...n
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
@@ -1538,7 +1538,7 @@ function yr({ className: e, ...t }) {
|
|
|
1538
1538
|
return /* @__PURE__ */ r("span", {
|
|
1539
1539
|
"data-slot": "breadcrumb-page",
|
|
1540
1540
|
"aria-current": "page",
|
|
1541
|
-
className:
|
|
1541
|
+
className: M("font-medium text-foreground", e),
|
|
1542
1542
|
...t
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
@@ -1560,7 +1560,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1560
1560
|
viewBox: "0 0 24 24",
|
|
1561
1561
|
fill: "currentColor",
|
|
1562
1562
|
"aria-hidden": "true",
|
|
1563
|
-
className:
|
|
1563
|
+
className: M("group/menu-icon size-5", t),
|
|
1564
1564
|
...n,
|
|
1565
1565
|
children: [
|
|
1566
1566
|
/* @__PURE__ */ r("rect", {
|
|
@@ -1569,7 +1569,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1569
1569
|
width: "16",
|
|
1570
1570
|
height: "2",
|
|
1571
1571
|
rx: "1",
|
|
1572
|
-
className:
|
|
1572
|
+
className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
1573
1573
|
}),
|
|
1574
1574
|
/* @__PURE__ */ r("rect", {
|
|
1575
1575
|
x: "4",
|
|
@@ -1577,7 +1577,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1577
1577
|
width: "16",
|
|
1578
1578
|
height: "2",
|
|
1579
1579
|
rx: "1",
|
|
1580
|
-
className:
|
|
1580
|
+
className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
1581
1581
|
}),
|
|
1582
1582
|
/* @__PURE__ */ r("rect", {
|
|
1583
1583
|
x: "4",
|
|
@@ -1585,7 +1585,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1585
1585
|
width: "16",
|
|
1586
1586
|
height: "2",
|
|
1587
1587
|
rx: "1",
|
|
1588
|
-
className:
|
|
1588
|
+
className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
1589
1589
|
})
|
|
1590
1590
|
]
|
|
1591
1591
|
});
|
|
@@ -1594,7 +1594,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1594
1594
|
function Cr({ className: e, ...t }) {
|
|
1595
1595
|
return /* @__PURE__ */ r(m.Root, {
|
|
1596
1596
|
"data-slot": "menubar",
|
|
1597
|
-
className:
|
|
1597
|
+
className: M("flex items-center gap-0.5", e),
|
|
1598
1598
|
...t
|
|
1599
1599
|
});
|
|
1600
1600
|
}
|
|
@@ -1602,7 +1602,7 @@ var wr = m.Menu;
|
|
|
1602
1602
|
function Tr({ className: e, ...t }) {
|
|
1603
1603
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
1604
1604
|
"data-slot": "menubar-trigger",
|
|
1605
|
-
className:
|
|
1605
|
+
className: M("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),
|
|
1606
1606
|
...t
|
|
1607
1607
|
});
|
|
1608
1608
|
}
|
|
@@ -1611,28 +1611,28 @@ function Er({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
|
1611
1611
|
"data-slot": "menubar-content",
|
|
1612
1612
|
align: t,
|
|
1613
1613
|
sideOffset: n,
|
|
1614
|
-
className:
|
|
1614
|
+
className: M("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),
|
|
1615
1615
|
...i
|
|
1616
1616
|
}) });
|
|
1617
1617
|
}
|
|
1618
1618
|
function Dr({ className: e, ...t }) {
|
|
1619
1619
|
return /* @__PURE__ */ r(m.Item, {
|
|
1620
1620
|
"data-slot": "menubar-item",
|
|
1621
|
-
className:
|
|
1621
|
+
className: M("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),
|
|
1622
1622
|
...t
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
1625
|
function Or({ className: e, ...t }) {
|
|
1626
1626
|
return /* @__PURE__ */ r("span", {
|
|
1627
1627
|
"data-slot": "menubar-shortcut",
|
|
1628
|
-
className:
|
|
1628
|
+
className: M("ms-auto text-xs text-muted-foreground", e),
|
|
1629
1629
|
...t
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
function kr({ className: e, ...t }) {
|
|
1633
1633
|
return /* @__PURE__ */ r(m.Separator, {
|
|
1634
1634
|
"data-slot": "menubar-separator",
|
|
1635
|
-
className:
|
|
1635
|
+
className: M("-mx-1 my-1 h-px bg-border", e),
|
|
1636
1636
|
...t
|
|
1637
1637
|
});
|
|
1638
1638
|
}
|
|
@@ -1640,7 +1640,7 @@ function kr({ className: e, ...t }) {
|
|
|
1640
1640
|
function Ar({ className: e, children: t, ...n }) {
|
|
1641
1641
|
return /* @__PURE__ */ i(h.Root, {
|
|
1642
1642
|
"data-slot": "navigation-menu",
|
|
1643
|
-
className:
|
|
1643
|
+
className: M("relative flex items-center", e),
|
|
1644
1644
|
...n,
|
|
1645
1645
|
children: [t, /* @__PURE__ */ r("div", {
|
|
1646
1646
|
className: "absolute start-0 top-full flex justify-center",
|
|
@@ -1651,7 +1651,7 @@ function Ar({ className: e, children: t, ...n }) {
|
|
|
1651
1651
|
function jr({ className: e, ...t }) {
|
|
1652
1652
|
return /* @__PURE__ */ r(h.List, {
|
|
1653
1653
|
"data-slot": "navigation-menu-list",
|
|
1654
|
-
className:
|
|
1654
|
+
className: M("m-0 flex list-none items-center gap-1 p-0", e),
|
|
1655
1655
|
...t
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
@@ -1659,7 +1659,7 @@ var Mr = h.Item, Nr = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer
|
|
|
1659
1659
|
function Pr({ className: e, children: t, ...n }) {
|
|
1660
1660
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
1661
1661
|
"data-slot": "navigation-menu-trigger",
|
|
1662
|
-
className:
|
|
1662
|
+
className: M(Nr, "group", e),
|
|
1663
1663
|
...n,
|
|
1664
1664
|
children: [t, /* @__PURE__ */ r(ae, {
|
|
1665
1665
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
@@ -1670,14 +1670,14 @@ function Pr({ className: e, children: t, ...n }) {
|
|
|
1670
1670
|
function Fr({ className: e, ...t }) {
|
|
1671
1671
|
return /* @__PURE__ */ r(h.Content, {
|
|
1672
1672
|
"data-slot": "navigation-menu-content",
|
|
1673
|
-
className:
|
|
1673
|
+
className: M("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),
|
|
1674
1674
|
...t
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
function Ir({ className: e, ...t }) {
|
|
1678
1678
|
return /* @__PURE__ */ r(h.Link, {
|
|
1679
1679
|
"data-slot": "navigation-menu-link",
|
|
1680
|
-
className:
|
|
1680
|
+
className: M(Nr, e),
|
|
1681
1681
|
...t
|
|
1682
1682
|
});
|
|
1683
1683
|
}
|
|
@@ -1687,11 +1687,11 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1687
1687
|
return /* @__PURE__ */ i("nav", {
|
|
1688
1688
|
"data-slot": "pagination",
|
|
1689
1689
|
"aria-label": "Pagination",
|
|
1690
|
-
className:
|
|
1690
|
+
className: M("flex items-center gap-1", o),
|
|
1691
1691
|
children: [
|
|
1692
1692
|
/* @__PURE__ */ r("button", {
|
|
1693
1693
|
type: "button",
|
|
1694
|
-
className:
|
|
1694
|
+
className: z({
|
|
1695
1695
|
variant: "ghost",
|
|
1696
1696
|
size: "sm"
|
|
1697
1697
|
}),
|
|
@@ -1703,7 +1703,7 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1703
1703
|
type: "button",
|
|
1704
1704
|
"aria-current": t === e ? "page" : void 0,
|
|
1705
1705
|
"aria-label": `Page ${t}`,
|
|
1706
|
-
className:
|
|
1706
|
+
className: z({
|
|
1707
1707
|
variant: t === e ? "outline" : "ghost",
|
|
1708
1708
|
size: "icon-sm"
|
|
1709
1709
|
}),
|
|
@@ -1712,7 +1712,7 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1712
1712
|
}, t)),
|
|
1713
1713
|
/* @__PURE__ */ r("button", {
|
|
1714
1714
|
type: "button",
|
|
1715
|
-
className:
|
|
1715
|
+
className: z({
|
|
1716
1716
|
variant: "ghost",
|
|
1717
1717
|
size: "sm"
|
|
1718
1718
|
}),
|
|
@@ -1727,7 +1727,7 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1727
1727
|
function Rr({ className: e, ...t }) {
|
|
1728
1728
|
return /* @__PURE__ */ r(C.Root, {
|
|
1729
1729
|
"data-slot": "tabs",
|
|
1730
|
-
className:
|
|
1730
|
+
className: M("flex flex-col gap-3", e),
|
|
1731
1731
|
...t
|
|
1732
1732
|
});
|
|
1733
1733
|
}
|
|
@@ -1737,26 +1737,26 @@ function zr({ className: e, variant: t = "pill", children: n, ...a }) {
|
|
|
1737
1737
|
ref: o,
|
|
1738
1738
|
"data-slot": "tabs-list",
|
|
1739
1739
|
"data-variant": t,
|
|
1740
|
-
className:
|
|
1740
|
+
className: M("group/tabs-list group/indicator relative inline-flex w-fit items-center", t === "pill" ? "gap-0.5 rounded-md bg-muted p-[3px]" : "w-full gap-5 border-b", e),
|
|
1741
1741
|
...a,
|
|
1742
1742
|
children: [/* @__PURE__ */ r("span", {
|
|
1743
1743
|
"aria-hidden": "true",
|
|
1744
1744
|
"data-slot": "tabs-indicator",
|
|
1745
|
-
className:
|
|
1745
|
+
className: M(ft, t === "pill" ? "rounded-sm bg-background shadow-xs" : "top-auto -bottom-px h-0.5 bg-brand")
|
|
1746
1746
|
}), n]
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
1749
|
function Br({ className: e, ...t }) {
|
|
1750
1750
|
return /* @__PURE__ */ r(C.Trigger, {
|
|
1751
1751
|
"data-slot": "tabs-trigger",
|
|
1752
|
-
className:
|
|
1752
|
+
className: M("inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "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]", "relative transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=underline]/tabs-list:-mb-px group-data-[variant=underline]/tabs-list:border-b-2 group-data-[variant=underline]/tabs-list:border-transparent group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", e),
|
|
1753
1753
|
...t
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
1756
|
function Vr({ className: e, ...t }) {
|
|
1757
1757
|
return /* @__PURE__ */ r(C.Content, {
|
|
1758
1758
|
"data-slot": "tabs-content",
|
|
1759
|
-
className:
|
|
1759
|
+
className: M("flex-1 outline-none", e),
|
|
1760
1760
|
...t
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
@@ -1772,12 +1772,12 @@ function Ur({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
1772
1772
|
"data-slot": "stepper",
|
|
1773
1773
|
"data-orientation": n,
|
|
1774
1774
|
"aria-label": s,
|
|
1775
|
-
className:
|
|
1775
|
+
className: M("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
1776
1776
|
...c,
|
|
1777
1777
|
children: e.map((n, o) => {
|
|
1778
1778
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
1779
1779
|
"aria-hidden": "true",
|
|
1780
|
-
className:
|
|
1780
|
+
className: M("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", Hr[s]),
|
|
1781
1781
|
children: s === "done" ? /* @__PURE__ */ r(T, {
|
|
1782
1782
|
className: "size-3.5",
|
|
1783
1783
|
strokeWidth: 2.5
|
|
@@ -1785,7 +1785,7 @@ function Ur({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
1785
1785
|
}), d = /* @__PURE__ */ i("span", {
|
|
1786
1786
|
className: "flex min-w-0 flex-col",
|
|
1787
1787
|
children: [/* @__PURE__ */ i("span", {
|
|
1788
|
-
className:
|
|
1788
|
+
className: M("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
1789
1789
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
1790
1790
|
className: "sr-only",
|
|
1791
1791
|
children: ", done"
|
|
@@ -1806,10 +1806,10 @@ function Ur({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
1806
1806
|
return /* @__PURE__ */ i("li", {
|
|
1807
1807
|
"data-state": s,
|
|
1808
1808
|
"aria-current": s === "current" ? "step" : void 0,
|
|
1809
|
-
className:
|
|
1809
|
+
className: M("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
1810
1810
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
1811
1811
|
"aria-hidden": "true",
|
|
1812
|
-
className:
|
|
1812
|
+
className: M("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")
|
|
1813
1813
|
})]
|
|
1814
1814
|
}, n.title);
|
|
1815
1815
|
})
|
|
@@ -1823,7 +1823,7 @@ function X() {
|
|
|
1823
1823
|
return e;
|
|
1824
1824
|
}
|
|
1825
1825
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
1826
|
-
var Z = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out motion-reduce:transition-none group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", Gr = "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",
|
|
1826
|
+
var Z = "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", Gr = "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", Kr = "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", qr = {
|
|
1827
1827
|
panel: {
|
|
1828
1828
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
1829
1829
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -1833,8 +1833,8 @@ var Z = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
1833
1833
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
function
|
|
1837
|
-
let [d, f] =
|
|
1836
|
+
function Jr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
1837
|
+
let [d, f] = k(o), p = a ?? d;
|
|
1838
1838
|
function m(e) {
|
|
1839
1839
|
a === void 0 && f(e), s?.(e);
|
|
1840
1840
|
}
|
|
@@ -1851,7 +1851,7 @@ function qr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
1851
1851
|
"data-variant": t,
|
|
1852
1852
|
"data-collapsed": p || void 0,
|
|
1853
1853
|
"aria-label": e,
|
|
1854
|
-
className:
|
|
1854
|
+
className: M("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 ? qr[t].collapsed : qr[t].open, c),
|
|
1855
1855
|
...u,
|
|
1856
1856
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
1857
1857
|
"aria-hidden": "true",
|
|
@@ -1861,26 +1861,30 @@ function qr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
1861
1861
|
})
|
|
1862
1862
|
});
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
let { collapsed: n, side: a } = X();
|
|
1866
|
-
return
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1864
|
+
function Q({ label: e, children: t }) {
|
|
1865
|
+
let { collapsed: n, side: a } = X(), [o, s] = k(!1);
|
|
1866
|
+
return /* @__PURE__ */ i(Ln, {
|
|
1867
|
+
open: n && o,
|
|
1868
|
+
onOpenChange: s,
|
|
1869
|
+
children: [/* @__PURE__ */ r(Rn, {
|
|
1870
|
+
asChild: !0,
|
|
1871
|
+
children: t
|
|
1872
|
+
}), /* @__PURE__ */ r(zn, {
|
|
1873
|
+
side: a === "start" ? "right" : "left",
|
|
1874
|
+
children: e
|
|
1875
|
+
})]
|
|
1876
|
+
});
|
|
1873
1877
|
}
|
|
1874
1878
|
function Yr({ className: e, ...t }) {
|
|
1875
1879
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = X(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
1876
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
1880
|
+
if (c === "nav") return /* @__PURE__ */ r(Q, {
|
|
1877
1881
|
label: l,
|
|
1878
1882
|
children: /* @__PURE__ */ i("button", {
|
|
1879
1883
|
type: "button",
|
|
1880
1884
|
"aria-label": l,
|
|
1881
1885
|
"aria-expanded": !n,
|
|
1882
1886
|
onClick: () => a(!n),
|
|
1883
|
-
className:
|
|
1887
|
+
className: M(Kr, e),
|
|
1884
1888
|
...t,
|
|
1885
1889
|
children: [/* @__PURE__ */ r(ge, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
1886
1890
|
"aria-hidden": "true",
|
|
@@ -1890,14 +1894,14 @@ function Yr({ className: e, ...t }) {
|
|
|
1890
1894
|
})
|
|
1891
1895
|
});
|
|
1892
1896
|
let u = s === "start" !== n;
|
|
1893
|
-
return /* @__PURE__ */ r(
|
|
1897
|
+
return /* @__PURE__ */ r(B, {
|
|
1894
1898
|
variant: "ghost",
|
|
1895
1899
|
size: "icon-sm",
|
|
1896
1900
|
"aria-label": l,
|
|
1897
1901
|
"aria-expanded": !n,
|
|
1898
1902
|
title: l,
|
|
1899
1903
|
onClick: () => a(!n),
|
|
1900
|
-
className:
|
|
1904
|
+
className: M("shrink-0 text-muted-foreground", e),
|
|
1901
1905
|
...t,
|
|
1902
1906
|
children: r(u ? se : ce, {})
|
|
1903
1907
|
});
|
|
@@ -1906,13 +1910,13 @@ function Xr({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
1906
1910
|
let { collapsed: s, label: c, variant: l } = X();
|
|
1907
1911
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
1908
1912
|
"data-slot": "sidebar-header",
|
|
1909
|
-
className:
|
|
1913
|
+
className: M("flex h-8 items-center", o),
|
|
1910
1914
|
children: a
|
|
1911
1915
|
});
|
|
1912
1916
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
1913
1917
|
return /* @__PURE__ */ i("div", {
|
|
1914
1918
|
"data-slot": "sidebar-header",
|
|
1915
|
-
className:
|
|
1919
|
+
className: M("flex items-center gap-1", o),
|
|
1916
1920
|
children: [/* @__PURE__ */ i("div", {
|
|
1917
1921
|
inert: s,
|
|
1918
1922
|
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",
|
|
@@ -1928,7 +1932,7 @@ function Xr({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
1928
1932
|
});
|
|
1929
1933
|
}
|
|
1930
1934
|
function Zr({ className: e, ...t }) {
|
|
1931
|
-
let { label: n, variant: i } = X(), a =
|
|
1935
|
+
let { label: n, variant: i } = X(), a = M("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);
|
|
1932
1936
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
1933
1937
|
"data-slot": "sidebar-content",
|
|
1934
1938
|
"aria-label": n,
|
|
@@ -1940,26 +1944,39 @@ function Zr({ className: e, ...t }) {
|
|
|
1940
1944
|
...t
|
|
1941
1945
|
});
|
|
1942
1946
|
}
|
|
1943
|
-
function Qr({ className: e,
|
|
1947
|
+
function Qr({ className: e, children: t, ...n }) {
|
|
1948
|
+
let { collapsed: i } = X();
|
|
1949
|
+
return /* @__PURE__ */ r("div", {
|
|
1950
|
+
"data-slot": "sidebar-note",
|
|
1951
|
+
"aria-hidden": i || void 0,
|
|
1952
|
+
className: M(Gr, e),
|
|
1953
|
+
...n,
|
|
1954
|
+
children: /* @__PURE__ */ r("span", {
|
|
1955
|
+
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
1956
|
+
children: t
|
|
1957
|
+
})
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
function $r({ className: e, ...t }) {
|
|
1944
1961
|
let { collapsed: n, variant: i } = X();
|
|
1945
1962
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
1946
1963
|
"data-slot": "sidebar-footer",
|
|
1947
|
-
className:
|
|
1964
|
+
className: M("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
1948
1965
|
...t
|
|
1949
1966
|
});
|
|
1950
1967
|
}
|
|
1951
1968
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
1952
|
-
function
|
|
1953
|
-
let { collapsed: u, variant: d } = X(), [f, p] =
|
|
1969
|
+
function ei({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
1970
|
+
let { collapsed: u, variant: d } = X(), [f, p] = k(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
1954
1971
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
1955
1972
|
"data-slot": "sidebar-group",
|
|
1956
1973
|
open: n || u || f,
|
|
1957
1974
|
onOpenChange: p,
|
|
1958
|
-
className:
|
|
1975
|
+
className: M("flex flex-col gap-1", s),
|
|
1959
1976
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
1960
1977
|
disabled: n,
|
|
1961
1978
|
inert: u,
|
|
1962
|
-
className:
|
|
1979
|
+
className: M("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"),
|
|
1963
1980
|
children: [
|
|
1964
1981
|
/* @__PURE__ */ r(oe, {
|
|
1965
1982
|
"aria-hidden": "true",
|
|
@@ -1984,16 +2001,16 @@ function $r({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
1984
2001
|
role: "group",
|
|
1985
2002
|
"aria-label": e,
|
|
1986
2003
|
"data-slot": "sidebar-group",
|
|
1987
|
-
className:
|
|
2004
|
+
className: M("flex flex-col gap-0.5", s),
|
|
1988
2005
|
children: [/* @__PURE__ */ r("span", {
|
|
1989
2006
|
"aria-hidden": "true",
|
|
1990
|
-
className:
|
|
2007
|
+
className: M("flex h-6 items-center px-3", h, Z),
|
|
1991
2008
|
children: e
|
|
1992
2009
|
}), c]
|
|
1993
2010
|
});
|
|
1994
2011
|
}
|
|
1995
2012
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
1996
|
-
function
|
|
2013
|
+
function ti({ 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 }) {
|
|
1997
2014
|
let { collapsed: m, variant: h } = X(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
1998
2015
|
/* @__PURE__ */ r("span", {
|
|
1999
2016
|
"aria-hidden": "true",
|
|
@@ -2005,7 +2022,7 @@ function ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2005
2022
|
children: e
|
|
2006
2023
|
}),
|
|
2007
2024
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2008
|
-
className:
|
|
2025
|
+
className: M("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Z),
|
|
2009
2026
|
children: c
|
|
2010
2027
|
})
|
|
2011
2028
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2015,11 +2032,11 @@ function ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2015
2032
|
children: a
|
|
2016
2033
|
}) : /* @__PURE__ */ r("span", {
|
|
2017
2034
|
"aria-hidden": "true",
|
|
2018
|
-
className:
|
|
2035
|
+
className: M("h-6 w-2.5 shrink-0 rounded-[3px]", o ? I[o] : ""),
|
|
2019
2036
|
style: o ? void 0 : { background: s }
|
|
2020
2037
|
}),
|
|
2021
2038
|
/* @__PURE__ */ i("span", {
|
|
2022
|
-
className:
|
|
2039
|
+
className: M("flex flex-col", Z),
|
|
2023
2040
|
children: [/* @__PURE__ */ r("span", {
|
|
2024
2041
|
className: "truncate text-[13px] font-medium",
|
|
2025
2042
|
children: e
|
|
@@ -2029,10 +2046,10 @@ function ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2029
2046
|
})]
|
|
2030
2047
|
}),
|
|
2031
2048
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2032
|
-
className:
|
|
2049
|
+
className: M("ms-auto text-[11px] text-muted-foreground tabular-nums", Z),
|
|
2033
2050
|
children: c
|
|
2034
2051
|
})
|
|
2035
|
-
] }), v = h === "nav" ?
|
|
2052
|
+
] }), v = h === "nav" ? M(Kr, d) : M("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 = {
|
|
2036
2053
|
"data-slot": "sidebar-item",
|
|
2037
2054
|
"aria-current": g,
|
|
2038
2055
|
"aria-label": m ? e : void 0,
|
|
@@ -2040,29 +2057,29 @@ function ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2040
2057
|
}, b = u && we(f) ? /* @__PURE__ */ r(S.Root, {
|
|
2041
2058
|
...y,
|
|
2042
2059
|
...p,
|
|
2043
|
-
children:
|
|
2060
|
+
children: ni(f, _)
|
|
2044
2061
|
}) : /* @__PURE__ */ r("button", {
|
|
2045
2062
|
type: "button",
|
|
2046
2063
|
...y,
|
|
2047
2064
|
...p,
|
|
2048
2065
|
children: _
|
|
2049
2066
|
});
|
|
2050
|
-
return /* @__PURE__ */ r(
|
|
2067
|
+
return /* @__PURE__ */ r(Q, {
|
|
2051
2068
|
label: e,
|
|
2052
2069
|
children: b
|
|
2053
2070
|
});
|
|
2054
2071
|
}
|
|
2055
|
-
function
|
|
2072
|
+
function ni(e, t) {
|
|
2056
2073
|
return Se(e, void 0, t);
|
|
2057
2074
|
}
|
|
2058
2075
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2059
|
-
function
|
|
2076
|
+
function ri({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2060
2077
|
return /* @__PURE__ */ i(kn, {
|
|
2061
2078
|
open: a,
|
|
2062
2079
|
onOpenChange: o,
|
|
2063
2080
|
children: [/* @__PURE__ */ r(An, {
|
|
2064
2081
|
asChild: !0,
|
|
2065
|
-
children: /* @__PURE__ */ r(
|
|
2082
|
+
children: /* @__PURE__ */ r(B, {
|
|
2066
2083
|
variant: "ghost",
|
|
2067
2084
|
size: "icon",
|
|
2068
2085
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
@@ -2081,15 +2098,15 @@ function ni({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2081
2098
|
});
|
|
2082
2099
|
}
|
|
2083
2100
|
// src/product/product-switcher.component.tsx
|
|
2084
|
-
function
|
|
2101
|
+
function ii({ product: e, workspace: t, products: n = Ye, onProductChange: a, className: o }) {
|
|
2085
2102
|
return /* @__PURE__ */ i(ar, { children: [/* @__PURE__ */ r(or, {
|
|
2086
2103
|
asChild: !0,
|
|
2087
|
-
children: /* @__PURE__ */ i(
|
|
2104
|
+
children: /* @__PURE__ */ i(B, {
|
|
2088
2105
|
variant: "ghost",
|
|
2089
|
-
className:
|
|
2090
|
-
"aria-label": `${
|
|
2106
|
+
className: M("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2107
|
+
"aria-label": `${N[e].name}, switch product`,
|
|
2091
2108
|
children: [
|
|
2092
|
-
/* @__PURE__ */ r(
|
|
2109
|
+
/* @__PURE__ */ r(P, {
|
|
2093
2110
|
product: e,
|
|
2094
2111
|
alt: "",
|
|
2095
2112
|
className: "size-7"
|
|
@@ -2098,7 +2115,7 @@ function ri({ product: e, workspace: t, products: n = Je, onProductChange: a, cl
|
|
|
2098
2115
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2099
2116
|
children: [/* @__PURE__ */ r("span", {
|
|
2100
2117
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2101
|
-
children:
|
|
2118
|
+
children: N[e].name
|
|
2102
2119
|
}), t && /* @__PURE__ */ r("span", {
|
|
2103
2120
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2104
2121
|
children: t
|
|
@@ -2118,21 +2135,21 @@ function ri({ product: e, workspace: t, products: n = Je, onProductChange: a, cl
|
|
|
2118
2135
|
onValueChange: (e) => a?.(e),
|
|
2119
2136
|
children: n.map((e) => /* @__PURE__ */ i(dr, {
|
|
2120
2137
|
value: e,
|
|
2121
|
-
children: [/* @__PURE__ */ r(
|
|
2138
|
+
children: [/* @__PURE__ */ r(P, {
|
|
2122
2139
|
product: e,
|
|
2123
2140
|
alt: "",
|
|
2124
2141
|
className: "size-4"
|
|
2125
|
-
}),
|
|
2142
|
+
}), N[e].name]
|
|
2126
2143
|
}, e))
|
|
2127
2144
|
})]
|
|
2128
2145
|
})] });
|
|
2129
2146
|
}
|
|
2130
2147
|
// src/product/sidebar-brand.component.tsx
|
|
2131
|
-
function
|
|
2132
|
-
let { collapsed: a, setCollapsed: o } = X(), s =
|
|
2148
|
+
function ai({ product: e, badge: t, className: n }) {
|
|
2149
|
+
let { collapsed: a, setCollapsed: o } = X(), s = N[e].name;
|
|
2133
2150
|
return /* @__PURE__ */ i("div", {
|
|
2134
2151
|
"data-slot": "sidebar-brand",
|
|
2135
|
-
className:
|
|
2152
|
+
className: M("flex h-8 items-center", n),
|
|
2136
2153
|
children: [
|
|
2137
2154
|
/* @__PURE__ */ r("button", {
|
|
2138
2155
|
type: "button",
|
|
@@ -2140,25 +2157,25 @@ function ii({ product: e, badge: t, className: n }) {
|
|
|
2140
2157
|
"aria-expanded": !a,
|
|
2141
2158
|
onClick: () => o(!a),
|
|
2142
2159
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2143
|
-
children: /* @__PURE__ */ r(
|
|
2160
|
+
children: /* @__PURE__ */ r(P, {
|
|
2144
2161
|
product: e,
|
|
2145
2162
|
alt: "",
|
|
2146
|
-
className:
|
|
2163
|
+
className: M("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
2147
2164
|
})
|
|
2148
2165
|
}),
|
|
2149
2166
|
/* @__PURE__ */ r("span", {
|
|
2150
|
-
className:
|
|
2167
|
+
className: M("ms-1 font-display text-lg font-extrabold text-brand-text italic", Z),
|
|
2151
2168
|
children: s
|
|
2152
2169
|
}),
|
|
2153
2170
|
t && /* @__PURE__ */ r("span", {
|
|
2154
|
-
className:
|
|
2171
|
+
className: M("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Z),
|
|
2155
2172
|
children: t
|
|
2156
2173
|
})
|
|
2157
2174
|
]
|
|
2158
2175
|
});
|
|
2159
2176
|
}
|
|
2160
2177
|
// src/app/command-shortcut.hook.ts
|
|
2161
|
-
function
|
|
2178
|
+
function oi(e, t = !0) {
|
|
2162
2179
|
O(() => {
|
|
2163
2180
|
if (!t) return;
|
|
2164
2181
|
function n(t) {
|
|
@@ -2167,27 +2184,27 @@ function ai(e, t = !0) {
|
|
|
2167
2184
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
2168
2185
|
}, [e, t]);
|
|
2169
2186
|
}
|
|
2170
|
-
function
|
|
2187
|
+
function si(e) {
|
|
2171
2188
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
2172
2189
|
}
|
|
2173
|
-
function
|
|
2174
|
-
function ci() {
|
|
2175
|
-
return si;
|
|
2176
|
-
}
|
|
2190
|
+
function ci() {}
|
|
2177
2191
|
function li() {
|
|
2178
|
-
return
|
|
2192
|
+
return ci;
|
|
2179
2193
|
}
|
|
2180
2194
|
function ui() {
|
|
2181
|
-
return
|
|
2195
|
+
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
2182
2196
|
}
|
|
2183
2197
|
function di() {
|
|
2184
|
-
return
|
|
2198
|
+
return "";
|
|
2199
|
+
}
|
|
2200
|
+
function fi() {
|
|
2201
|
+
return si(ke(li, ui, di));
|
|
2185
2202
|
}
|
|
2186
2203
|
// src/app/app-shell.component.tsx
|
|
2187
|
-
function
|
|
2188
|
-
let [
|
|
2189
|
-
|
|
2190
|
-
let
|
|
2204
|
+
function pi({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, user: u, breadcrumb: d, topActions: f, commands: p, children: m, className: h }) {
|
|
2205
|
+
let [g, _] = k(!1), v = Te(() => _(!0), []);
|
|
2206
|
+
oi(v, !!p?.length);
|
|
2207
|
+
let y = fi(), b = [...new Set(p?.map((e) => e.group))], ee = (e) => /* @__PURE__ */ r(ti, {
|
|
2191
2208
|
asChild: !0,
|
|
2192
2209
|
title: e.label,
|
|
2193
2210
|
icon: e.icon,
|
|
@@ -2197,50 +2214,50 @@ function fi({ product: e, workspace: t, onProductChange: a, nav: o, secondaryNav
|
|
|
2197
2214
|
href: e.href,
|
|
2198
2215
|
children: e.label
|
|
2199
2216
|
})
|
|
2200
|
-
}, e.href),
|
|
2217
|
+
}, e.href), x = /* @__PURE__ */ i(n, { children: [
|
|
2201
2218
|
/* @__PURE__ */ r(Xr, {
|
|
2202
2219
|
className: "h-12",
|
|
2203
|
-
children: /* @__PURE__ */ r(
|
|
2220
|
+
children: t === "logo" ? /* @__PURE__ */ r(ai, { product: e }) : /* @__PURE__ */ r(ii, {
|
|
2204
2221
|
product: e,
|
|
2205
|
-
workspace:
|
|
2206
|
-
onProductChange:
|
|
2222
|
+
workspace: a,
|
|
2223
|
+
onProductChange: o,
|
|
2207
2224
|
className: "px-2.5"
|
|
2208
2225
|
})
|
|
2209
2226
|
}),
|
|
2210
2227
|
/* @__PURE__ */ i(Zr, { children: [
|
|
2211
|
-
|
|
2228
|
+
p?.length ? /* @__PURE__ */ r(ti, {
|
|
2212
2229
|
title: "Search",
|
|
2213
2230
|
icon: /* @__PURE__ */ r(E, {}),
|
|
2214
2231
|
badge: /* @__PURE__ */ r(Wt, {
|
|
2215
2232
|
className: "border-0 bg-transparent",
|
|
2216
|
-
children:
|
|
2233
|
+
children: y
|
|
2217
2234
|
}),
|
|
2218
|
-
onClick:
|
|
2235
|
+
onClick: v
|
|
2219
2236
|
}) : null,
|
|
2220
2237
|
/* @__PURE__ */ r("div", {
|
|
2221
2238
|
className: "flex flex-col gap-0.5",
|
|
2222
|
-
children:
|
|
2239
|
+
children: s.map((e) => ee(e))
|
|
2223
2240
|
}),
|
|
2224
|
-
|
|
2225
|
-
title:
|
|
2226
|
-
children:
|
|
2241
|
+
c && /* @__PURE__ */ r(ei, {
|
|
2242
|
+
title: c.title,
|
|
2243
|
+
children: c.items.map((e) => ee(e))
|
|
2227
2244
|
})
|
|
2228
2245
|
] }),
|
|
2229
|
-
/* @__PURE__ */ i(
|
|
2230
|
-
|
|
2246
|
+
/* @__PURE__ */ i($r, { children: [
|
|
2247
|
+
l && /* @__PURE__ */ r("div", {
|
|
2231
2248
|
className: Z,
|
|
2232
|
-
children:
|
|
2249
|
+
children: l
|
|
2233
2250
|
}),
|
|
2234
|
-
|
|
2251
|
+
u && /* @__PURE__ */ i("div", {
|
|
2235
2252
|
className: "flex items-center gap-2.5 px-1",
|
|
2236
|
-
children: [/* @__PURE__ */ r(
|
|
2237
|
-
className:
|
|
2253
|
+
children: [/* @__PURE__ */ r(nt, { children: /* @__PURE__ */ r(it, { children: u.initials }) }), /* @__PURE__ */ i("span", {
|
|
2254
|
+
className: M("flex flex-col leading-tight", Z),
|
|
2238
2255
|
children: [/* @__PURE__ */ r("span", {
|
|
2239
2256
|
className: "text-[13px] font-semibold",
|
|
2240
|
-
children:
|
|
2241
|
-
}),
|
|
2257
|
+
children: u.name
|
|
2258
|
+
}), u.role && /* @__PURE__ */ r("span", {
|
|
2242
2259
|
className: "text-xs text-muted-foreground",
|
|
2243
|
-
children:
|
|
2260
|
+
children: u.role
|
|
2244
2261
|
})]
|
|
2245
2262
|
})]
|
|
2246
2263
|
}),
|
|
@@ -2249,49 +2266,49 @@ function fi({ product: e, workspace: t, onProductChange: a, nav: o, secondaryNav
|
|
|
2249
2266
|
] });
|
|
2250
2267
|
return /* @__PURE__ */ i("div", {
|
|
2251
2268
|
"data-slot": "app-shell",
|
|
2252
|
-
className:
|
|
2269
|
+
className: M("flex min-h-screen flex-wrap bg-background", h),
|
|
2253
2270
|
children: [
|
|
2254
|
-
/* @__PURE__ */ r(
|
|
2271
|
+
/* @__PURE__ */ r(Jr, {
|
|
2255
2272
|
variant: "nav",
|
|
2256
2273
|
label: "Workspace",
|
|
2257
2274
|
className: "sticky top-0 h-screen max-md:hidden",
|
|
2258
|
-
children:
|
|
2275
|
+
children: x
|
|
2259
2276
|
}),
|
|
2260
2277
|
/* @__PURE__ */ i("div", {
|
|
2261
2278
|
className: "relative flex min-w-0 flex-[999_1_560px] flex-col",
|
|
2262
2279
|
children: [/* @__PURE__ */ i("div", {
|
|
2263
2280
|
className: "flex h-14 flex-wrap items-center gap-3 border-b px-6",
|
|
2264
2281
|
children: [
|
|
2265
|
-
/* @__PURE__ */ r(
|
|
2282
|
+
/* @__PURE__ */ r(ri, {
|
|
2266
2283
|
label: "Workspace",
|
|
2267
2284
|
className: "-ms-2 md:hidden",
|
|
2268
|
-
children: /* @__PURE__ */ r(
|
|
2285
|
+
children: /* @__PURE__ */ r(Jr, {
|
|
2269
2286
|
variant: "nav",
|
|
2270
2287
|
label: "Workspace",
|
|
2271
2288
|
collapsed: !1,
|
|
2272
2289
|
className: "w-full",
|
|
2273
|
-
children:
|
|
2290
|
+
children: x
|
|
2274
2291
|
})
|
|
2275
2292
|
}),
|
|
2276
|
-
|
|
2277
|
-
|
|
2293
|
+
d,
|
|
2294
|
+
f && /* @__PURE__ */ r("div", {
|
|
2278
2295
|
className: "ms-auto flex items-center gap-1.5",
|
|
2279
|
-
children:
|
|
2296
|
+
children: f
|
|
2280
2297
|
})
|
|
2281
2298
|
]
|
|
2282
2299
|
}), /* @__PURE__ */ r("main", {
|
|
2283
2300
|
className: "flex flex-col gap-5 p-6",
|
|
2284
|
-
children:
|
|
2301
|
+
children: m
|
|
2285
2302
|
})]
|
|
2286
2303
|
}),
|
|
2287
|
-
|
|
2288
|
-
open:
|
|
2289
|
-
onOpenChange:
|
|
2290
|
-
children: [/* @__PURE__ */ r(Kn, { placeholder: "Search recipes, runs and settings" }), /* @__PURE__ */ i(qn, { children: [/* @__PURE__ */ r(Jn, { children: "No results." }),
|
|
2304
|
+
p?.length ? /* @__PURE__ */ i(Gn, {
|
|
2305
|
+
open: g,
|
|
2306
|
+
onOpenChange: _,
|
|
2307
|
+
children: [/* @__PURE__ */ r(Kn, { placeholder: "Search recipes, runs and settings" }), /* @__PURE__ */ i(qn, { children: [/* @__PURE__ */ r(Jn, { children: "No results." }), b.map((e) => /* @__PURE__ */ r(Yn, {
|
|
2291
2308
|
heading: e,
|
|
2292
|
-
children:
|
|
2309
|
+
children: p.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(Xn, {
|
|
2293
2310
|
onSelect: () => {
|
|
2294
|
-
|
|
2311
|
+
_(!1), e.onSelect();
|
|
2295
2312
|
},
|
|
2296
2313
|
children: e.label
|
|
2297
2314
|
}, e.label))
|
|
@@ -2301,11 +2318,11 @@ function fi({ product: e, workspace: t, onProductChange: a, nav: o, secondaryNav
|
|
|
2301
2318
|
});
|
|
2302
2319
|
}
|
|
2303
2320
|
// src/app/filter-bar.component.tsx
|
|
2304
|
-
function
|
|
2321
|
+
function mi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
2305
2322
|
return /* @__PURE__ */ i("div", {
|
|
2306
2323
|
"data-slot": "filter-bar",
|
|
2307
2324
|
role: "search",
|
|
2308
|
-
className:
|
|
2325
|
+
className: M("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
2309
2326
|
children: [
|
|
2310
2327
|
/* @__PURE__ */ r("div", {
|
|
2311
2328
|
className: "max-w-80 flex-[1_1_220px]",
|
|
@@ -2326,16 +2343,16 @@ function pi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
2326
2343
|
]
|
|
2327
2344
|
});
|
|
2328
2345
|
}
|
|
2329
|
-
function
|
|
2330
|
-
return /* @__PURE__ */ i(
|
|
2346
|
+
function hi({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
2347
|
+
return /* @__PURE__ */ i(B, {
|
|
2331
2348
|
variant: "outline",
|
|
2332
2349
|
size: "sm",
|
|
2333
|
-
className:
|
|
2350
|
+
className: M("border-dashed", a),
|
|
2334
2351
|
...o,
|
|
2335
2352
|
children: [
|
|
2336
2353
|
n ?? /* @__PURE__ */ r(ye, {}),
|
|
2337
2354
|
e,
|
|
2338
|
-
t > 0 && /* @__PURE__ */ r(
|
|
2355
|
+
t > 0 && /* @__PURE__ */ r(R, {
|
|
2339
2356
|
variant: "brand",
|
|
2340
2357
|
className: "h-[18px]",
|
|
2341
2358
|
"aria-label": `${t} selected`,
|
|
@@ -2345,10 +2362,10 @@ function mi({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
2345
2362
|
});
|
|
2346
2363
|
}
|
|
2347
2364
|
// src/app/form-section.component.tsx
|
|
2348
|
-
function
|
|
2365
|
+
function gi({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
2349
2366
|
return /* @__PURE__ */ i("section", {
|
|
2350
2367
|
"data-slot": "form-section",
|
|
2351
|
-
className:
|
|
2368
|
+
className: M("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
2352
2369
|
children: [/* @__PURE__ */ i("div", {
|
|
2353
2370
|
className: "flex flex-col gap-1",
|
|
2354
2371
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -2371,10 +2388,10 @@ function hi({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
2371
2388
|
});
|
|
2372
2389
|
}
|
|
2373
2390
|
// src/app/page-header.component.tsx
|
|
2374
|
-
function
|
|
2391
|
+
function _i({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
2375
2392
|
return /* @__PURE__ */ i("div", {
|
|
2376
2393
|
"data-slot": "page-header",
|
|
2377
|
-
className:
|
|
2394
|
+
className: M("flex flex-col gap-4", o),
|
|
2378
2395
|
children: [/* @__PURE__ */ i("div", {
|
|
2379
2396
|
className: "flex flex-wrap items-end gap-4",
|
|
2380
2397
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -2394,7 +2411,7 @@ function gi({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
2394
2411
|
});
|
|
2395
2412
|
}
|
|
2396
2413
|
// src/app/records-table.component.tsx
|
|
2397
|
-
function
|
|
2414
|
+
function vi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
2398
2415
|
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";
|
|
2399
2416
|
function m(e, t) {
|
|
2400
2417
|
let n = new Set(a);
|
|
@@ -2408,20 +2425,20 @@ function _i({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2408
2425
|
return /* @__PURE__ */ i(Zt, {
|
|
2409
2426
|
"data-slot": "records-table",
|
|
2410
2427
|
"aria-label": c,
|
|
2411
|
-
className:
|
|
2428
|
+
className: M("min-w-[760px]", l),
|
|
2412
2429
|
children: [/* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ i(en, {
|
|
2413
2430
|
className: "hover:bg-transparent",
|
|
2414
2431
|
children: [
|
|
2415
2432
|
u && /* @__PURE__ */ r(G, {
|
|
2416
2433
|
className: "w-9",
|
|
2417
|
-
children: /* @__PURE__ */ r(
|
|
2434
|
+
children: /* @__PURE__ */ r(V, {
|
|
2418
2435
|
"aria-label": "Select all rows",
|
|
2419
2436
|
checked: p,
|
|
2420
2437
|
onCheckedChange: (e) => h(e === !0)
|
|
2421
2438
|
})
|
|
2422
2439
|
}),
|
|
2423
2440
|
t.map((e) => /* @__PURE__ */ r(G, {
|
|
2424
|
-
className:
|
|
2441
|
+
className: M(e.align === "end" && "text-end", e.className),
|
|
2425
2442
|
children: e.header
|
|
2426
2443
|
}, e.key)),
|
|
2427
2444
|
s && /* @__PURE__ */ r(G, {
|
|
@@ -2437,18 +2454,18 @@ function _i({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2437
2454
|
return /* @__PURE__ */ i(en, {
|
|
2438
2455
|
"data-state": c ? "selected" : void 0,
|
|
2439
2456
|
children: [
|
|
2440
|
-
u && /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(
|
|
2457
|
+
u && /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(V, {
|
|
2441
2458
|
"aria-label": `Select ${o}`,
|
|
2442
2459
|
checked: c,
|
|
2443
2460
|
onCheckedChange: (e) => m(o, e === !0)
|
|
2444
2461
|
}) }),
|
|
2445
2462
|
t.map((t) => /* @__PURE__ */ r(K, {
|
|
2446
|
-
className:
|
|
2463
|
+
className: M(t.align === "end" && "text-end tabular-nums", t.className),
|
|
2447
2464
|
children: t.cell(e)
|
|
2448
2465
|
}, t.key)),
|
|
2449
2466
|
s && /* @__PURE__ */ r(K, { children: /* @__PURE__ */ i(ar, { children: [/* @__PURE__ */ r(or, {
|
|
2450
2467
|
asChild: !0,
|
|
2451
|
-
children: /* @__PURE__ */ r(
|
|
2468
|
+
children: /* @__PURE__ */ r(B, {
|
|
2452
2469
|
variant: "ghost",
|
|
2453
2470
|
size: "icon-sm",
|
|
2454
2471
|
"aria-label": `Actions for ${o}`,
|
|
@@ -2464,7 +2481,7 @@ function _i({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2464
2481
|
});
|
|
2465
2482
|
}
|
|
2466
2483
|
// src/app/sparkline.algorithm.ts
|
|
2467
|
-
function
|
|
2484
|
+
function yi(e, t, n, r = 2) {
|
|
2468
2485
|
if (e.length < 2) return "";
|
|
2469
2486
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
2470
2487
|
return e.map((e, t) => {
|
|
@@ -2473,16 +2490,16 @@ function vi(e, t, n, r = 2) {
|
|
|
2473
2490
|
}).join(" ");
|
|
2474
2491
|
}
|
|
2475
2492
|
// src/app/stat-card.component.tsx
|
|
2476
|
-
var
|
|
2493
|
+
var bi = {
|
|
2477
2494
|
positive: "text-success",
|
|
2478
2495
|
negative: "text-destructive",
|
|
2479
2496
|
neutral: "text-muted-foreground"
|
|
2480
2497
|
};
|
|
2481
|
-
function
|
|
2482
|
-
let c = o ?
|
|
2498
|
+
function xi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
2499
|
+
let c = o ? yi(o, 100, 32) : "";
|
|
2483
2500
|
return /* @__PURE__ */ i(Rt, {
|
|
2484
2501
|
"data-slot": "stat-card",
|
|
2485
|
-
className:
|
|
2502
|
+
className: M("gap-1.5 p-4", s),
|
|
2486
2503
|
children: [
|
|
2487
2504
|
/* @__PURE__ */ r("span", {
|
|
2488
2505
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -2511,14 +2528,14 @@ function bi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
2511
2528
|
})]
|
|
2512
2529
|
}),
|
|
2513
2530
|
n && /* @__PURE__ */ r("span", {
|
|
2514
|
-
className:
|
|
2531
|
+
className: M("text-xs", bi[a]),
|
|
2515
2532
|
children: n
|
|
2516
2533
|
})
|
|
2517
2534
|
]
|
|
2518
2535
|
});
|
|
2519
2536
|
}
|
|
2520
2537
|
// src/status/run-status.contract.ts
|
|
2521
|
-
var
|
|
2538
|
+
var Si = [
|
|
2522
2539
|
"queued",
|
|
2523
2540
|
"waiting",
|
|
2524
2541
|
"running",
|
|
@@ -2526,7 +2543,7 @@ var xi = [
|
|
|
2526
2543
|
"no-records",
|
|
2527
2544
|
"failed",
|
|
2528
2545
|
"off"
|
|
2529
|
-
],
|
|
2546
|
+
], Ci = {
|
|
2530
2547
|
queued: {
|
|
2531
2548
|
label: "Queued",
|
|
2532
2549
|
variant: "secondary",
|
|
@@ -2563,13 +2580,13 @@ var xi = [
|
|
|
2563
2580
|
live: !1
|
|
2564
2581
|
}
|
|
2565
2582
|
};
|
|
2566
|
-
function
|
|
2567
|
-
return
|
|
2583
|
+
function wi(e) {
|
|
2584
|
+
return Ci[e];
|
|
2568
2585
|
}
|
|
2569
2586
|
// src/status/status-badge.component.tsx
|
|
2570
|
-
function
|
|
2571
|
-
let { label: n, variant: i, live: a } =
|
|
2572
|
-
return /* @__PURE__ */ r(
|
|
2587
|
+
function Ti({ status: e, ...t }) {
|
|
2588
|
+
let { label: n, variant: i, live: a } = wi(e);
|
|
2589
|
+
return /* @__PURE__ */ r(R, {
|
|
2573
2590
|
variant: i,
|
|
2574
2591
|
dot: a,
|
|
2575
2592
|
"data-status": e,
|
|
@@ -2578,25 +2595,25 @@ function wi({ status: e, ...t }) {
|
|
|
2578
2595
|
});
|
|
2579
2596
|
}
|
|
2580
2597
|
// src/desktop/flow-node.component.tsx
|
|
2581
|
-
function
|
|
2598
|
+
function Ei({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
2582
2599
|
return /* @__PURE__ */ i("button", {
|
|
2583
2600
|
type: "button",
|
|
2584
2601
|
"data-slot": "flow-node",
|
|
2585
2602
|
"aria-pressed": o,
|
|
2586
2603
|
onClick: s,
|
|
2587
|
-
className:
|
|
2604
|
+
className: M("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),
|
|
2588
2605
|
children: [/* @__PURE__ */ i("span", {
|
|
2589
2606
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
2590
2607
|
children: [
|
|
2591
2608
|
/* @__PURE__ */ r("span", {
|
|
2592
2609
|
"aria-hidden": "true",
|
|
2593
|
-
className:
|
|
2610
|
+
className: M("size-2 shrink-0 rounded-[2px]", a ? I[a] : "bg-muted-foreground")
|
|
2594
2611
|
}),
|
|
2595
2612
|
/* @__PURE__ */ r("span", {
|
|
2596
2613
|
className: "font-semibold",
|
|
2597
2614
|
children: e
|
|
2598
2615
|
}),
|
|
2599
|
-
/* @__PURE__ */ r(
|
|
2616
|
+
/* @__PURE__ */ r(Ti, {
|
|
2600
2617
|
status: n,
|
|
2601
2618
|
className: "ms-auto h-[18px] text-[11px]"
|
|
2602
2619
|
})
|
|
@@ -2608,18 +2625,18 @@ function Ti({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
2608
2625
|
});
|
|
2609
2626
|
}
|
|
2610
2627
|
// src/desktop/inspector.component.tsx
|
|
2611
|
-
function
|
|
2628
|
+
function Di({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
2612
2629
|
return /* @__PURE__ */ i("aside", {
|
|
2613
2630
|
"data-slot": "inspector",
|
|
2614
2631
|
"aria-label": "Inspector",
|
|
2615
|
-
className:
|
|
2632
|
+
className: M("flex h-full flex-col text-[13px]", s),
|
|
2616
2633
|
children: [
|
|
2617
2634
|
/* @__PURE__ */ i("div", {
|
|
2618
2635
|
className: "flex items-center gap-2 border-b p-3",
|
|
2619
2636
|
children: [
|
|
2620
2637
|
n && /* @__PURE__ */ r("span", {
|
|
2621
2638
|
"aria-hidden": "true",
|
|
2622
|
-
className:
|
|
2639
|
+
className: M("size-2.5 shrink-0 rounded-[3px]", I[n])
|
|
2623
2640
|
}),
|
|
2624
2641
|
/* @__PURE__ */ r("h2", {
|
|
2625
2642
|
className: "m-0 type-h4",
|
|
@@ -2656,11 +2673,11 @@ function Ei({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
2656
2673
|
});
|
|
2657
2674
|
}
|
|
2658
2675
|
// src/desktop/status-bar.component.tsx
|
|
2659
|
-
function
|
|
2676
|
+
function Oi({ start: e, end: t, className: n }) {
|
|
2660
2677
|
return /* @__PURE__ */ i("div", {
|
|
2661
2678
|
"data-slot": "status-bar",
|
|
2662
2679
|
role: "status",
|
|
2663
|
-
className:
|
|
2680
|
+
className: M("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
2664
2681
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
2665
2682
|
className: "ms-auto flex items-center gap-3.5",
|
|
2666
2683
|
children: t
|
|
@@ -2668,7 +2685,7 @@ function Di({ start: e, end: t, className: n }) {
|
|
|
2668
2685
|
});
|
|
2669
2686
|
}
|
|
2670
2687
|
// src/desktop/timeline.algorithm.ts
|
|
2671
|
-
function
|
|
2688
|
+
function ki(e, t, n) {
|
|
2672
2689
|
if (n <= 0) return {
|
|
2673
2690
|
left: 0,
|
|
2674
2691
|
width: 0
|
|
@@ -2679,35 +2696,35 @@ function Oi(e, t, n) {
|
|
|
2679
2696
|
width: Math.max(0, r(t) - i)
|
|
2680
2697
|
};
|
|
2681
2698
|
}
|
|
2682
|
-
function
|
|
2699
|
+
function Ai(e, t) {
|
|
2683
2700
|
let n = Math.max(2, t);
|
|
2684
2701
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
2685
2702
|
}
|
|
2686
2703
|
// src/timecode/timecode.mapper.ts
|
|
2687
|
-
function
|
|
2704
|
+
function $(e) {
|
|
2688
2705
|
return String(e).padStart(2, "0");
|
|
2689
2706
|
}
|
|
2690
|
-
function
|
|
2707
|
+
function ji(e, t = !1) {
|
|
2691
2708
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
2692
|
-
return t || r > 0 ? `${
|
|
2709
|
+
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
2693
2710
|
}
|
|
2694
|
-
function
|
|
2711
|
+
function Mi(e, t) {
|
|
2695
2712
|
let n = new Date(e.getTime() + t * 1e3);
|
|
2696
|
-
return `${
|
|
2713
|
+
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
2697
2714
|
}
|
|
2698
2715
|
// src/desktop/timeline-lanes.component.tsx
|
|
2699
|
-
function
|
|
2700
|
-
let c = (e) => o ?
|
|
2716
|
+
function Ni({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
2717
|
+
let c = (e) => o ? Mi(o, e) : ji(e), l = n === void 0 ? void 0 : ki(0, n, e).width;
|
|
2701
2718
|
return /* @__PURE__ */ i("div", {
|
|
2702
2719
|
"data-slot": "timeline-lanes",
|
|
2703
2720
|
role: "group",
|
|
2704
2721
|
"aria-label": "Timeline",
|
|
2705
|
-
className:
|
|
2722
|
+
className: M("relative flex flex-col text-[13px]", s),
|
|
2706
2723
|
children: [
|
|
2707
2724
|
/* @__PURE__ */ r("div", {
|
|
2708
2725
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
2709
2726
|
"aria-hidden": "true",
|
|
2710
|
-
children:
|
|
2727
|
+
children: Ai(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
2711
2728
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
2712
2729
|
children: c(e)
|
|
2713
2730
|
}, e))
|
|
@@ -2718,18 +2735,18 @@ function ji({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
2718
2735
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
2719
2736
|
children: [/* @__PURE__ */ r("span", {
|
|
2720
2737
|
"aria-hidden": "true",
|
|
2721
|
-
className:
|
|
2738
|
+
className: M("size-2 shrink-0 rounded-[2px]", I[t.hue])
|
|
2722
2739
|
}), t.name]
|
|
2723
2740
|
}), /* @__PURE__ */ r("div", {
|
|
2724
2741
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
2725
2742
|
children: t.segments.map((n) => {
|
|
2726
|
-
let a =
|
|
2743
|
+
let a = ki(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
2727
2744
|
return /* @__PURE__ */ i(Ln, { children: [/* @__PURE__ */ r(Rn, {
|
|
2728
2745
|
asChild: !0,
|
|
2729
2746
|
children: /* @__PURE__ */ r("button", {
|
|
2730
2747
|
type: "button",
|
|
2731
2748
|
"aria-label": o,
|
|
2732
|
-
className:
|
|
2749
|
+
className: M("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", I[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
2733
2750
|
style: {
|
|
2734
2751
|
left: `${a.left}%`,
|
|
2735
2752
|
width: `${a.width}%`
|
|
@@ -2748,7 +2765,7 @@ function ji({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
2748
2765
|
});
|
|
2749
2766
|
}
|
|
2750
2767
|
// src/desktop/title-bar.component.tsx
|
|
2751
|
-
function
|
|
2768
|
+
function Pi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
2752
2769
|
let l = [
|
|
2753
2770
|
{
|
|
2754
2771
|
label: "Minimise",
|
|
@@ -2769,9 +2786,9 @@ function Mi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
2769
2786
|
return /* @__PURE__ */ i("div", {
|
|
2770
2787
|
"data-slot": "title-bar",
|
|
2771
2788
|
"data-tauri-drag-region": "",
|
|
2772
|
-
className:
|
|
2789
|
+
className: M("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
2773
2790
|
children: [
|
|
2774
|
-
/* @__PURE__ */ r(
|
|
2791
|
+
/* @__PURE__ */ r(P, {
|
|
2775
2792
|
product: e,
|
|
2776
2793
|
alt: "",
|
|
2777
2794
|
className: "size-[18px]"
|
|
@@ -2784,11 +2801,11 @@ function Mi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
2784
2801
|
}),
|
|
2785
2802
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
2786
2803
|
className: "flex h-full",
|
|
2787
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
2804
|
+
children: l.map((e) => /* @__PURE__ */ r(B, {
|
|
2788
2805
|
variant: "ghost",
|
|
2789
2806
|
"aria-label": e.label,
|
|
2790
2807
|
onClick: e.onClick,
|
|
2791
|
-
className:
|
|
2808
|
+
className: M("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
2792
2809
|
children: e.icon
|
|
2793
2810
|
}, e.label))
|
|
2794
2811
|
})
|
|
@@ -2796,11 +2813,11 @@ function Mi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
2796
2813
|
});
|
|
2797
2814
|
}
|
|
2798
2815
|
// src/mobile/bottom-nav.component.tsx
|
|
2799
|
-
function
|
|
2816
|
+
function Fi({ items: e, className: t }) {
|
|
2800
2817
|
return /* @__PURE__ */ r("nav", {
|
|
2801
2818
|
"data-slot": "bottom-nav",
|
|
2802
2819
|
"aria-label": "Tabs",
|
|
2803
|
-
className:
|
|
2820
|
+
className: M("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
2804
2821
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
2805
2822
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
2806
2823
|
href: e.href,
|
|
@@ -2818,17 +2835,17 @@ function Ni({ items: e, className: t }) {
|
|
|
2818
2835
|
});
|
|
2819
2836
|
}
|
|
2820
2837
|
// src/mobile/capture-frame.component.tsx
|
|
2821
|
-
function
|
|
2838
|
+
function Ii({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
2822
2839
|
let l = a.filter((e) => !e.passed).length;
|
|
2823
2840
|
return /* @__PURE__ */ i("div", {
|
|
2824
2841
|
"data-slot": "capture-frame",
|
|
2825
|
-
className:
|
|
2842
|
+
className: M("flex h-full flex-col bg-[#0e0d12]", c),
|
|
2826
2843
|
children: [/* @__PURE__ */ i("div", {
|
|
2827
2844
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
2828
2845
|
children: [/* @__PURE__ */ i("div", {
|
|
2829
2846
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
2830
2847
|
children: [
|
|
2831
|
-
/* @__PURE__ */ r(
|
|
2848
|
+
/* @__PURE__ */ r(B, {
|
|
2832
2849
|
size: "icon",
|
|
2833
2850
|
"aria-label": "Close camera",
|
|
2834
2851
|
onClick: o,
|
|
@@ -2854,12 +2871,12 @@ function Pi({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2854
2871
|
children: [/* @__PURE__ */ r("h2", {
|
|
2855
2872
|
className: "m-0 type-h3 text-[19px]",
|
|
2856
2873
|
children: n
|
|
2857
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
2874
|
+
}), l > 0 ? /* @__PURE__ */ i(R, {
|
|
2858
2875
|
variant: "danger",
|
|
2859
2876
|
dot: !0,
|
|
2860
2877
|
className: "ms-auto",
|
|
2861
2878
|
children: [l, " failed"]
|
|
2862
|
-
}) : /* @__PURE__ */ r(
|
|
2879
|
+
}) : /* @__PURE__ */ r(R, {
|
|
2863
2880
|
variant: "success",
|
|
2864
2881
|
dot: !0,
|
|
2865
2882
|
className: "ms-auto",
|
|
@@ -2872,7 +2889,7 @@ function Pi({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2872
2889
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
2873
2890
|
children: [
|
|
2874
2891
|
/* @__PURE__ */ r("span", {
|
|
2875
|
-
className:
|
|
2892
|
+
className: M("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"),
|
|
2876
2893
|
children: e.passed ? /* @__PURE__ */ r(T, {
|
|
2877
2894
|
strokeWidth: 3,
|
|
2878
2895
|
"aria-label": "Passed"
|
|
@@ -2901,7 +2918,7 @@ function Pi({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2901
2918
|
});
|
|
2902
2919
|
}
|
|
2903
2920
|
// src/mobile/record-button.component.tsx
|
|
2904
|
-
function
|
|
2921
|
+
function Li({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
2905
2922
|
let u = {
|
|
2906
2923
|
idle: {
|
|
2907
2924
|
label: "Start recording",
|
|
@@ -2921,23 +2938,23 @@ function Fi({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2921
2938
|
}[e];
|
|
2922
2939
|
return /* @__PURE__ */ i("div", {
|
|
2923
2940
|
"data-slot": "record-button",
|
|
2924
|
-
className:
|
|
2941
|
+
className: M("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
2925
2942
|
children: [
|
|
2926
2943
|
/* @__PURE__ */ i("div", {
|
|
2927
2944
|
className: "flex items-center gap-2",
|
|
2928
2945
|
children: [
|
|
2929
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
2946
|
+
e === "recording" && /* @__PURE__ */ r(R, {
|
|
2930
2947
|
variant: "danger",
|
|
2931
2948
|
dot: !0,
|
|
2932
2949
|
className: "bg-card",
|
|
2933
2950
|
children: "Recording"
|
|
2934
2951
|
}),
|
|
2935
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
2952
|
+
e === "paused" && /* @__PURE__ */ r(R, {
|
|
2936
2953
|
variant: "warning",
|
|
2937
2954
|
className: "bg-card",
|
|
2938
2955
|
children: "Paused"
|
|
2939
2956
|
}),
|
|
2940
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
2957
|
+
e === "idle" && /* @__PURE__ */ r(R, {
|
|
2941
2958
|
variant: "outline",
|
|
2942
2959
|
className: "bg-card",
|
|
2943
2960
|
children: "Not recording"
|
|
@@ -2945,7 +2962,7 @@ function Fi({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2945
2962
|
/* @__PURE__ */ r("span", {
|
|
2946
2963
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
2947
2964
|
"aria-label": "Recorded time",
|
|
2948
|
-
children:
|
|
2965
|
+
children: ji(t, !0)
|
|
2949
2966
|
})
|
|
2950
2967
|
]
|
|
2951
2968
|
}),
|
|
@@ -2953,17 +2970,17 @@ function Fi({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2953
2970
|
"aria-hidden": "true",
|
|
2954
2971
|
className: "flex h-10 items-center gap-[3px]",
|
|
2955
2972
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
2956
|
-
className:
|
|
2973
|
+
className: M("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
2957
2974
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
2958
2975
|
}, n))
|
|
2959
2976
|
}),
|
|
2960
2977
|
/* @__PURE__ */ i("div", {
|
|
2961
2978
|
className: "flex gap-2.5",
|
|
2962
|
-
children: [/* @__PURE__ */ i(
|
|
2979
|
+
children: [/* @__PURE__ */ i(B, {
|
|
2963
2980
|
className: "flex-1",
|
|
2964
2981
|
onClick: u.onClick,
|
|
2965
2982
|
children: [u.icon, u.label]
|
|
2966
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
2983
|
+
}), e === "recording" && c && /* @__PURE__ */ r(B, {
|
|
2967
2984
|
variant: "outline",
|
|
2968
2985
|
size: "icon",
|
|
2969
2986
|
className: "bg-card",
|
|
@@ -2976,7 +2993,7 @@ function Fi({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2976
2993
|
});
|
|
2977
2994
|
}
|
|
2978
2995
|
// src/web/cta-band.component.tsx
|
|
2979
|
-
function
|
|
2996
|
+
function Ri({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
2980
2997
|
let c = De();
|
|
2981
2998
|
function l(e) {
|
|
2982
2999
|
e.preventDefault();
|
|
@@ -2985,7 +3002,7 @@ function Ii({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
2985
3002
|
}
|
|
2986
3003
|
return /* @__PURE__ */ r("section", {
|
|
2987
3004
|
"data-slot": "cta-band",
|
|
2988
|
-
className:
|
|
3005
|
+
className: M("py-22", s),
|
|
2989
3006
|
children: /* @__PURE__ */ r("div", {
|
|
2990
3007
|
className: "mx-auto max-w-[1200px] px-6",
|
|
2991
3008
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3017,7 +3034,7 @@ function Ii({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3017
3034
|
placeholder: a,
|
|
3018
3035
|
className: "flex-[1_1_220px] border-transparent"
|
|
3019
3036
|
}),
|
|
3020
|
-
/* @__PURE__ */ r(
|
|
3037
|
+
/* @__PURE__ */ r(B, {
|
|
3021
3038
|
type: "submit",
|
|
3022
3039
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3023
3040
|
children: o
|
|
@@ -3029,10 +3046,10 @@ function Ii({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3029
3046
|
});
|
|
3030
3047
|
}
|
|
3031
3048
|
// src/web/faq.component.tsx
|
|
3032
|
-
function
|
|
3049
|
+
function zi({ title: e, items: t, className: n }) {
|
|
3033
3050
|
return /* @__PURE__ */ r("section", {
|
|
3034
3051
|
"data-slot": "faq",
|
|
3035
|
-
className:
|
|
3052
|
+
className: M("py-22", n),
|
|
3036
3053
|
children: /* @__PURE__ */ i("div", {
|
|
3037
3054
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3038
3055
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -3053,10 +3070,10 @@ function Li({ title: e, items: t, className: n }) {
|
|
|
3053
3070
|
});
|
|
3054
3071
|
}
|
|
3055
3072
|
// src/web/feature-grid.component.tsx
|
|
3056
|
-
function
|
|
3073
|
+
function Bi({ title: e, lead: t, features: n, className: a }) {
|
|
3057
3074
|
return /* @__PURE__ */ r("section", {
|
|
3058
3075
|
"data-slot": "feature-grid",
|
|
3059
|
-
className:
|
|
3076
|
+
className: M("border-y bg-canvas py-22", a),
|
|
3060
3077
|
children: /* @__PURE__ */ i("div", {
|
|
3061
3078
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
3062
3079
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -3093,14 +3110,14 @@ function Ri({ title: e, lead: t, features: n, className: a }) {
|
|
|
3093
3110
|
});
|
|
3094
3111
|
}
|
|
3095
3112
|
// src/web/hero.component.tsx
|
|
3096
|
-
function
|
|
3113
|
+
function Vi({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
3097
3114
|
return /* @__PURE__ */ r("section", {
|
|
3098
3115
|
"data-slot": "hero",
|
|
3099
|
-
className:
|
|
3116
|
+
className: M("pt-22 pb-14", o),
|
|
3100
3117
|
children: /* @__PURE__ */ i("div", {
|
|
3101
3118
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
3102
3119
|
children: [
|
|
3103
|
-
e && /* @__PURE__ */ r(
|
|
3120
|
+
e && /* @__PURE__ */ r(R, {
|
|
3104
3121
|
variant: "brand",
|
|
3105
3122
|
className: "h-7 px-3 text-[13px]",
|
|
3106
3123
|
children: e
|
|
@@ -3122,10 +3139,10 @@ function zi({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
3122
3139
|
});
|
|
3123
3140
|
}
|
|
3124
3141
|
// src/web/how-it-works.component.tsx
|
|
3125
|
-
function
|
|
3142
|
+
function Hi({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
3126
3143
|
return /* @__PURE__ */ r("section", {
|
|
3127
3144
|
"data-slot": "how-it-works",
|
|
3128
|
-
className:
|
|
3145
|
+
className: M("py-22", o),
|
|
3129
3146
|
children: /* @__PURE__ */ i("div", {
|
|
3130
3147
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3131
3148
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3165,12 +3182,12 @@ function Bi({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
3165
3182
|
});
|
|
3166
3183
|
}
|
|
3167
3184
|
// src/web/mobile-menu.component.tsx
|
|
3168
|
-
var
|
|
3169
|
-
function
|
|
3170
|
-
let [o, s] =
|
|
3185
|
+
var Ui = 400;
|
|
3186
|
+
function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
3187
|
+
let [o, s] = k(!1), [c, l] = k(), [u, f] = k(!1), p = Oe(null);
|
|
3171
3188
|
O(() => {
|
|
3172
3189
|
if (o) return;
|
|
3173
|
-
let e = setTimeout(() => f(!1),
|
|
3190
|
+
let e = setTimeout(() => f(!1), Ui);
|
|
3174
3191
|
return () => clearTimeout(e);
|
|
3175
3192
|
}, [o]), O(() => {
|
|
3176
3193
|
if (!o) return;
|
|
@@ -3198,7 +3215,7 @@ function Hi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3198
3215
|
onOpenChange: h,
|
|
3199
3216
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
3200
3217
|
asChild: !0,
|
|
3201
|
-
children: /* @__PURE__ */ r(
|
|
3218
|
+
children: /* @__PURE__ */ r(B, {
|
|
3202
3219
|
ref: p,
|
|
3203
3220
|
variant: "ghost",
|
|
3204
3221
|
size: "icon",
|
|
@@ -3222,7 +3239,7 @@ function Hi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3222
3239
|
/* @__PURE__ */ r("div", {
|
|
3223
3240
|
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))]",
|
|
3224
3241
|
children: /* @__PURE__ */ r("div", {
|
|
3225
|
-
className:
|
|
3242
|
+
className: M("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"),
|
|
3226
3243
|
children: /* @__PURE__ */ i("div", {
|
|
3227
3244
|
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",
|
|
3228
3245
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -3244,7 +3261,7 @@ function Hi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3244
3261
|
}),
|
|
3245
3262
|
/* @__PURE__ */ r(d.Close, {
|
|
3246
3263
|
asChild: !0,
|
|
3247
|
-
children: /* @__PURE__ */ r(
|
|
3264
|
+
children: /* @__PURE__ */ r(B, {
|
|
3248
3265
|
variant: "ghost",
|
|
3249
3266
|
size: "icon",
|
|
3250
3267
|
"aria-label": "Close menu",
|
|
@@ -3266,11 +3283,11 @@ function Hi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3266
3283
|
});
|
|
3267
3284
|
}
|
|
3268
3285
|
// src/web/pricing-table.component.tsx
|
|
3269
|
-
function
|
|
3270
|
-
let [l, u] =
|
|
3286
|
+
function Gi({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
3287
|
+
let [l, u] = k(a);
|
|
3271
3288
|
return /* @__PURE__ */ r("section", {
|
|
3272
3289
|
"data-slot": "pricing-table",
|
|
3273
|
-
className:
|
|
3290
|
+
className: M("border-y bg-canvas py-22", c),
|
|
3274
3291
|
children: /* @__PURE__ */ i("div", {
|
|
3275
3292
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
3276
3293
|
children: [
|
|
@@ -3303,14 +3320,14 @@ function Ui({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3303
3320
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
3304
3321
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
3305
3322
|
"aria-label": e.name,
|
|
3306
|
-
className:
|
|
3323
|
+
className: M("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)]"),
|
|
3307
3324
|
children: [
|
|
3308
3325
|
/* @__PURE__ */ i("div", {
|
|
3309
3326
|
className: "flex items-center justify-between",
|
|
3310
3327
|
children: [/* @__PURE__ */ r("h3", {
|
|
3311
3328
|
className: "m-0 type-h3",
|
|
3312
3329
|
children: e.name
|
|
3313
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
3330
|
+
}), e.featured && /* @__PURE__ */ r(R, { children: s })]
|
|
3314
3331
|
}),
|
|
3315
3332
|
/* @__PURE__ */ r("span", {
|
|
3316
3333
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -3332,7 +3349,7 @@ function Ui({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3332
3349
|
}), e]
|
|
3333
3350
|
}, e))
|
|
3334
3351
|
}),
|
|
3335
|
-
/* @__PURE__ */ r(
|
|
3352
|
+
/* @__PURE__ */ r(B, {
|
|
3336
3353
|
asChild: !0,
|
|
3337
3354
|
variant: e.featured ? "default" : "outline",
|
|
3338
3355
|
className: "mt-auto",
|
|
@@ -3353,20 +3370,20 @@ function Ui({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3353
3370
|
});
|
|
3354
3371
|
}
|
|
3355
3372
|
// src/web/product-card.component.tsx
|
|
3356
|
-
function
|
|
3357
|
-
let s =
|
|
3373
|
+
function Ki({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
3374
|
+
let s = N[e];
|
|
3358
3375
|
return /* @__PURE__ */ i("a", {
|
|
3359
3376
|
"data-slot": "product-card",
|
|
3360
3377
|
"data-product": e,
|
|
3361
3378
|
href: t,
|
|
3362
|
-
className:
|
|
3379
|
+
className: M("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),
|
|
3363
3380
|
children: [/* @__PURE__ */ r("span", {
|
|
3364
3381
|
"aria-hidden": "true",
|
|
3365
3382
|
className: "block h-1.5 bg-brand"
|
|
3366
3383
|
}), /* @__PURE__ */ i("span", {
|
|
3367
3384
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
3368
3385
|
children: [
|
|
3369
|
-
/* @__PURE__ */ r(
|
|
3386
|
+
/* @__PURE__ */ r(P, {
|
|
3370
3387
|
product: e,
|
|
3371
3388
|
alt: "",
|
|
3372
3389
|
className: "size-11"
|
|
@@ -3381,7 +3398,7 @@ function Wi({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3381
3398
|
children: n ?? s.tagline
|
|
3382
3399
|
})]
|
|
3383
3400
|
}),
|
|
3384
|
-
/* @__PURE__ */ r(
|
|
3401
|
+
/* @__PURE__ */ r(R, {
|
|
3385
3402
|
variant: "outline",
|
|
3386
3403
|
className: "self-start",
|
|
3387
3404
|
children: a ?? s.stage
|
|
@@ -3391,17 +3408,17 @@ function Wi({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3391
3408
|
});
|
|
3392
3409
|
}
|
|
3393
3410
|
// src/web/site-footer.component.tsx
|
|
3394
|
-
function
|
|
3411
|
+
function qi({ tagline: e, columns: t, legal: n, className: a }) {
|
|
3395
3412
|
return /* @__PURE__ */ i("footer", {
|
|
3396
3413
|
"data-slot": "site-footer",
|
|
3397
|
-
className:
|
|
3414
|
+
className: M("border-t pt-14 pb-10", a),
|
|
3398
3415
|
children: [/* @__PURE__ */ i("div", {
|
|
3399
3416
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
3400
3417
|
children: [/* @__PURE__ */ i("div", {
|
|
3401
3418
|
className: "col-span-2 flex flex-col gap-3",
|
|
3402
3419
|
children: [/* @__PURE__ */ i("span", {
|
|
3403
3420
|
className: "flex items-center gap-2",
|
|
3404
|
-
children: [/* @__PURE__ */ r(
|
|
3421
|
+
children: [/* @__PURE__ */ r(P, {
|
|
3405
3422
|
product: "talogic",
|
|
3406
3423
|
alt: "",
|
|
3407
3424
|
className: "size-7"
|
|
@@ -3432,12 +3449,12 @@ function Gi({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
3432
3449
|
});
|
|
3433
3450
|
}
|
|
3434
3451
|
// src/web/site-header.component.tsx
|
|
3435
|
-
function
|
|
3452
|
+
function Ji({ nav: e, actions: t, brand: a, className: o }) {
|
|
3436
3453
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
3437
3454
|
href: "/",
|
|
3438
3455
|
className: "flex items-center gap-2 no-underline",
|
|
3439
3456
|
"aria-label": "Talogic home",
|
|
3440
|
-
children: [/* @__PURE__ */ r(
|
|
3457
|
+
children: [/* @__PURE__ */ r(P, {
|
|
3441
3458
|
product: "talogic",
|
|
3442
3459
|
alt: "",
|
|
3443
3460
|
className: "size-7"
|
|
@@ -3448,7 +3465,7 @@ function Ki({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3448
3465
|
});
|
|
3449
3466
|
return /* @__PURE__ */ r("header", {
|
|
3450
3467
|
"data-slot": "site-header",
|
|
3451
|
-
className:
|
|
3468
|
+
className: M("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
3452
3469
|
children: /* @__PURE__ */ i("div", {
|
|
3453
3470
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
3454
3471
|
children: [
|
|
@@ -3478,7 +3495,7 @@ function Ki({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3478
3495
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
3479
3496
|
children: t
|
|
3480
3497
|
}),
|
|
3481
|
-
/* @__PURE__ */ r(
|
|
3498
|
+
/* @__PURE__ */ r(Wi, {
|
|
3482
3499
|
className: "ms-auto md:hidden",
|
|
3483
3500
|
links: e.flatMap((e) => e.links ?? [{
|
|
3484
3501
|
label: e.label,
|
|
@@ -3490,6 +3507,6 @@ function Ki({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3490
3507
|
})
|
|
3491
3508
|
});
|
|
3492
3509
|
}
|
|
3493
|
-
export { Pt as Accordion, Lt as AccordionContent, Ft as AccordionItem, It as AccordionTrigger, gt as Alert, rn as AlertDialog, ln as AlertDialogAction, un as AlertDialogCancel, on as AlertDialogContent, cn as AlertDialogDescription, sn as AlertDialogTitle, an as AlertDialogTrigger,
|
|
3510
|
+
export { Pt as Accordion, Lt as AccordionContent, Ft as AccordionItem, It as AccordionTrigger, gt as Alert, rn as AlertDialog, ln as AlertDialogAction, un as AlertDialogCancel, on as AlertDialogContent, cn as AlertDialogDescription, sn as AlertDialogTitle, an as AlertDialogTrigger, pi as AppShell, nt as Avatar, it as AvatarFallback, rt as AvatarImage, R as Badge, Fi as BottomNav, hr as Breadcrumb, _r as BreadcrumbItem, vr as BreadcrumbLink, gr as BreadcrumbList, yr as BreadcrumbPage, br as BreadcrumbSeparator, B as Button, $e as COLOUR_SCHEMES, Ii as CaptureFrame, Rt as Card, Ht as CardContent, Vt as CardDescription, Ut as CardFooter, zt as CardHeader, Bt as CardTitle, V as Checkbox, Wn as Command, Gn as CommandDialog, Jn as CommandEmpty, Yn as CommandGroup, Kn as CommandInput, Xn as CommandItem, qn as CommandList, Zn as CommandSeparator, Qn as CommandShortcut, $n as ContextMenu, tr as ContextMenuContent, nr as ContextMenuItem, rr as ContextMenuSeparator, ir as ContextMenuShortcut, er as ContextMenuTrigger, Ri as CtaBand, Qe as DENSITIES, dn as Dialog, pn as DialogClose, mn as DialogContent, vn as DialogDescription, gn as DialogFooter, hn as DialogHeader, _n as DialogTitle, fn as DialogTrigger, yn as Drawer, xn as DrawerClose, Sn as DrawerContent, wn as DrawerDescription, Cn as DrawerTitle, bn as DrawerTrigger, ar as DropdownMenu, lr as DropdownMenuContent, sr as DropdownMenuGroup, ur as DropdownMenuItem, fr as DropdownMenuLabel, cr as DropdownMenuRadioGroup, dr as DropdownMenuRadioItem, pr as DropdownMenuSeparator, mr as DropdownMenuShortcut, or as DropdownMenuTrigger, _t as EmptyState, Be as FAMILY_PALETTE, qe as FREE_HUES, zi as Faq, Bi as FeatureGrid, wt as Field, mi as FilterBar, hi as FilterChip, Ei as FlowNode, gi as FormSection, Xe as HUES, I as HUE_FILL, Vi as Hero, Hi as HowItWorks, W as Input, Di as Inspector, Wt as Kbd, Fe as LABEL_COLORS, L as LOGO_RULE, Ct as Label, Sr as MenuIcon, Cr as Menubar, Er as MenubarContent, Dr as MenubarItem, wr as MenubarMenu, kr as MenubarSeparator, Or as MenubarShortcut, Tr as MenubarTrigger, Wi as MobileMenu, Ar as NavigationMenu, Fr as NavigationMenuContent, Mr as NavigationMenuItem, Ir as NavigationMenuLink, jr as NavigationMenuList, Pr as NavigationMenuTrigger, Ze as PALETTE_STEPS, Ye as PRODUCTS, N as PRODUCT_CATALOGUE, Ke as PRODUCT_HUES, _i as PageHeader, Lr as Pagination, Tn as Popover, Dn as PopoverAnchor, On as PopoverContent, En as PopoverTrigger, Gi as PricingTable, Ki as ProductCard, P as ProductLogo, ii as ProductSwitcher, vt as Progress, Si as RUN_STATUSES, st as RadioGroup, ct as RadioGroupItem, Li as RecordButton, vi as RecordsTable, qt as ResizableHandle, Kt as ResizablePanel, Gt as ResizablePanelGroup, Jt as ScrollArea, Yt as ScrollBar, Tt as Select, kt as SelectContent, Et as SelectGroup, jt as SelectItem, At as SelectLabel, Mt as SelectSeparator, Ot as SelectTrigger, Dt as SelectValue, Xt as Separator, kn as Sheet, jn as SheetClose, Fn as SheetContent, Nn as SheetDescription, Mn as SheetTitle, An as SheetTrigger, Jr as Sidebar, ai as SidebarBrand, Yr as SidebarCollapseButton, Zr as SidebarContent, $r as SidebarFooter, ei as SidebarGroup, Xr as SidebarHeader, ti as SidebarItem, Qr as SidebarNote, ri as SidebarSheet, Q as SidebarTooltip, qi as SiteFooter, Ji as SiteHeader, yt as Skeleton, lt as Slider, bt as Spinner, xi as StatCard, Ti as StatusBadge, Oi as StatusBar, Ur as Stepper, ut as Switch, Zt as Table, $t as TableBody, tn as TableCaption, K as TableCell, G as TableHead, Qt as TableHeader, en as TableRow, Rr as Tabs, Vr as TabsContent, zr as TabsList, Br as TabsTrigger, Nt as Textarea, tt as ThemeRoot, Ni as TimelineLanes, Pi as TitleBar, xt as Toaster, pt as ToggleGroup, mt as ToggleGroupItem, Ln as Tooltip, zn as TooltipContent, In as TooltipProvider, Rn as TooltipTrigger, Re as apcaContrast, at as badgeVariants, z as buttonVariants, M as cn, si as commandShortcutLabel, H as controlClassName, Z as fadingLabelClassName, J as floatingMotionClassName, Mi as formatClockTime, ji as formatTimecode, Je as hueForProduct, Ge as logoColorForHue, Kr as navRowClassName, q as overlayClassName, ze as readableLabel, wi as runStatusDisplay, nn as sheetMotionClassName, Gr as sidebarNoteClassName, yi as sparklinePath, et as themeAttributes, ki as timelineBox, Ai as timelineTicks, oi as useCommandShortcut, fi as useCommandShortcutLabel, U as useFieldControl, X as useSidebar };
|
|
3494
3511
|
|
|
3495
3512
|
//# sourceMappingURL=index.js.map
|