@talogic/react 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +728 -611
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +6 -0
- package/ui/button/button.recipe.d.ts +4 -0
- package/ui/navigation/tabs.component.d.ts +13 -5
- package/ui/selectable-list/bulk-action-bar.component.d.ts +6 -4
- package/ui/selectable-list/index.d.ts +3 -1
- package/ui/selectable-list/select-all-checkbox.component.d.ts +18 -4
- package/ui/selectable-list/selection-header.component.d.ts +28 -0
package/index.js
CHANGED
|
@@ -3,18 +3,18 @@ import { twMerge as t } from "tailwind-merge";
|
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Accordion as a, AlertDialog as o, Avatar as s, Checkbox as c, Collapsible as l, ContextMenu as u, Dialog as d, DropdownMenu as f, Label as p, Menubar as m, NavigationMenu as h, Popover as g, Portal as _, Progress as v, RadioGroup as y, ScrollArea as b, Select as x, Separator as ee, Slider as S, Slot as C, Switch as w, Tabs as T, ToggleGroup as E, Tooltip as D } from "radix-ui";
|
|
5
5
|
import { cva as O } from "class-variance-authority";
|
|
6
|
-
import { Ban as te, Bookmark as ne, Check as k, ChevronDown as A, ChevronRight as re, ChevronsLeft as
|
|
7
|
-
import { cloneElement as
|
|
8
|
-
import { Drawer as
|
|
9
|
-
import { Command as
|
|
10
|
-
import { Toaster as
|
|
11
|
-
import { Group as
|
|
6
|
+
import { Ban as te, Bookmark as ne, Check as k, ChevronDown as A, ChevronRight as re, ChevronsLeft as ie, ChevronsRight as ae, ChevronsUpDown as oe, CircleCheck as se, Ellipsis as ce, Info as j, LoaderCircle as le, Mic as M, Minus as ue, PanelLeft as de, Pause as fe, Play as pe, Plus as me, Search as he, Square as ge, TriangleAlert as _e, Upload as ve, X as N } from "lucide-react";
|
|
7
|
+
import { cloneElement as ye, createContext as be, isValidElement as xe, use as Se, useCallback as P, useContext as Ce, useEffect as F, useId as we, useLayoutEffect as Te, useMemo as Ee, useRef as I, useState as L, useSyncExternalStore as De } from "react";
|
|
8
|
+
import { Drawer as R } from "vaul";
|
|
9
|
+
import { Command as z } from "cmdk";
|
|
10
|
+
import { Toaster as Oe } from "sonner";
|
|
11
|
+
import { Group as ke, Panel as Ae, Separator as je } from "react-resizable-panels";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
|
-
function
|
|
13
|
+
function B(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var V = {
|
|
18
18
|
talogic: {
|
|
19
19
|
name: "talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
@@ -54,7 +54,7 @@ var H = {
|
|
|
54
54
|
logoColor: "#3e63dd",
|
|
55
55
|
logoAccents: ["#e5484d", "#30a46c"]
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Me = {
|
|
58
58
|
talogic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3ccircle%20cx='4266.667'%20cy='4266.667'%20r='4266.667'%20fill='%23753edd'/%3e%3cpath%20d='M6239.492,7179.279c-587.992,403.439%20-1284.858,619.682%20-1998.46,619.682c-1937.781,0%20-3532.333,-1594.553%20-3532.333,-3532.333c0,-1937.781%201594.553,-3532.333%203532.333,-3532.333c1593.826,-0%202999.58,1078.727%203412.017,2618.266c53.557,199.918%20-65.269,405.709%20-265.188,459.266c-199.918,53.557%20-405.709,-65.269%20-459.266,-265.188c-324.867,-1212.657%20-1432.145,-2062.344%20-2687.563,-2062.344c-1526.343,-0%20-2782.333,1255.99%20-2782.333,2782.333c0,1526.343%201255.99,2782.333%202782.333,2782.333c559.652,0%201106.236,-168.857%201568.116,-483.988l-249.007,-355.451l1686.002,-207.645l-771.521,1513.043l-235.13,-335.642Zm-3156.366,-3334.215c39.357,-108.037%20159.021,-163.797%20267.058,-124.44c108.037,39.357%20163.797,159.021%20124.44,267.058c-32.594,89.472%20-49.269,183.965%20-49.269,279.189c0,447.461%20368.205,815.667%20815.667,815.667c447.461,0%20815.667,-368.205%20815.667,-815.667c0,-291.052%20-155.783,-560.872%20-407.844,-706.394c-99.578,-57.49%20-133.749,-185.009%20-76.26,-284.587c57.49,-99.578%20185.009,-133.749%20284.587,-76.26c380.821,219.859%20616.183,627.511%20616.183,1067.242c0,676.038%20-556.295,1232.333%20-1232.333,1232.333c-676.038,0%20-1232.333,-556.295%20-1232.333,-1232.333c0,-143.867%2025.193,-286.63%2074.437,-421.807Zm3319.934,1203.659c-55.039,151.274%20-222.539,229.404%20-373.813,174.364c-151.274,-55.039%20-229.404,-222.539%20-174.364,-373.813c68.47,-188.186%20103.497,-386.907%20103.497,-587.163c0,-942.081%20-775.215,-1717.296%20-1717.296,-1717.296c-942.081,0%20-1717.296,775.215%20-1717.296,1717.296c0,612.741%20327.944,1180.786%20858.578,1487.182c139.405,80.494%20187.233,259.024%20106.739,398.429c-80.494,139.405%20-259.024,187.233%20-398.429,106.739c-710.881,-410.472%20-1150.221,-1171.472%20-1150.221,-1992.349c0,-1262.088%201038.541,-2300.629%202300.629,-2300.629c1262.088,0%202300.629,1038.541%202300.629,2300.629c0,268.278%20-46.926,534.501%20-138.654,786.611Zm-2172.051,-1208.724c229.965,0%20416.667,186.702%20416.667,416.667c0,229.965%20-186.702,416.667%20-416.667,416.667c-229.965,0%20-416.667,-186.702%20-416.667,-416.667c0,-229.965%20186.702,-416.667%20416.667,-416.667Z'%20fill='%23fff'/%3e%3c/svg%3e" },
|
|
59
59
|
pargic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M8350.618,5542.197c-16.744,53.324%20-34,106.427%20-51.758,159.296c-44.706,128.857%20-95.419,254.916%20-151.804,377.842l-1503.884,-488.642l-256.17,788.41l-1812.022,-1974.821l2626.74,-532.622l-256.169,788.407l1504.03,488.689c-26.854,133.499%20-59.948,264.752%20-98.963,393.441Zm-8116.145,159.296c-17.758,-52.869%20-35.014,-105.971%20-51.758,-159.296c-39.015,-128.688%20-72.108,-259.939%20-98.962,-393.437l1504.031,-488.689l-256.17,-788.41l2626.728,532.584l-1812.01,1974.86l-256.169,-788.407l-1503.884,488.641c-56.385,-122.927%20-107.099,-248.988%20-151.806,-377.846Zm1936.602,-5114.117l929.208,1278.945l670.662,-487.264l305.186,2662.744l-2438.145,-1113.059l670.659,-487.262l-928.662,-1278.193c239.997,-220.72%20505.322,-414.318%20791.092,-575.911Zm4982.272,575.908l-928.662,1278.194l670.662,487.264l-2438.112,1113.082l305.153,-2662.768l670.659,487.262l929.208,-1278.945c285.77,161.593%20551.095,355.19%20791.092,575.91Zm-3375.938,7379.666l0,-1581.091l-828.984,0l1318.221,-2333.589l1318.261,2333.589l-828.98,0l0,1581.091c-160.561,18.364%20-323.818,27.801%20-489.261,27.801c-165.442,0%20-328.698,-9.437%20-489.257,-27.801Z'%20fill='%23dd773e'/%3e%3c/svg%3e" },
|
|
60
60
|
daygic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M4266.667,0c513.234,0%20929.915,416.681%20929.915,929.915l0,1969.231c0,513.234%20-416.681,929.915%20-929.915,929.915c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-1969.231c0,-513.234%20416.681,-929.915%20929.915,-929.915Zm3884.531,2899.145c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-1136.936,656.41c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l1136.936,-656.41c444.474,-256.617%201013.67,-104.101%201270.287,340.372Zm-568.468,4157.265c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-568.468,-328.205c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l568.468,328.205c444.474,256.617%20596.989,825.813%20340.372,1270.287Zm-3316.063,1476.923c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-218.803c0,-513.234%20416.681,-929.915%20929.915,-929.915c513.234,0%20929.915,416.681%20929.915,929.915l0,218.803c0,513.234%20-416.681,929.915%20-929.915,929.915Zm-3316.063,-1476.923c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l568.468,-328.205c444.474,-256.617%201013.67,-104.101%201270.287,340.372c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-568.468,328.205c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372Zm-568.468,-4157.265c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l1136.936,656.41c444.474,256.617%20596.989,825.813%20340.372,1270.287c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-1136.936,-656.41c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287Z'%20fill='%23c8902e'/%3e%3ccircle%20cx='4266.667'%20cy='5141.88'%20r='984.615'%20fill='%239a6a1c'/%3e%3c/svg%3e" },
|
|
@@ -68,19 +68,19 @@ var H = {
|
|
|
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 H({ product: e, alt: t = V[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = Me[e], l = B("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: B(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: B(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function U({ product: e, alt: t = H[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var U = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -106,8 +106,8 @@ var W = {
|
|
|
106
106
|
lowOffset: .027,
|
|
107
107
|
deltaYMin: 5e-4,
|
|
108
108
|
lowClip: .1
|
|
109
|
-
},
|
|
110
|
-
function
|
|
109
|
+
}, Ne = ["#14121a", "#ffffff"];
|
|
110
|
+
function Pe(e) {
|
|
111
111
|
let t = e.replace("#", "").trim(), n = t.length === 3 ? [...t].map((e) => e.repeat(2)).join("") : t;
|
|
112
112
|
if (!/^[\da-f]{6}$/i.test(n)) throw RangeError(`Not a hex colour: ${e}`);
|
|
113
113
|
return [
|
|
@@ -116,32 +116,32 @@ function Ne(e) {
|
|
|
116
116
|
4
|
|
117
117
|
].map((e) => Number.parseInt(n.slice(e, e + 2), 16));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let [t, n, r] =
|
|
121
|
-
return i <
|
|
119
|
+
function Fe(e) {
|
|
120
|
+
let [t, n, r] = Pe(e).map((e) => (e / 255) ** U.mainTrc), i = U.red * t + U.green * n + U.blue * r;
|
|
121
|
+
return i < U.blackThresh ? i + (U.blackThresh - i) ** U.blackClamp : i;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
125
|
-
if (Math.abs(r - n) <
|
|
123
|
+
function Ie(e, t) {
|
|
124
|
+
let n = Fe(e), r = Fe(t);
|
|
125
|
+
if (Math.abs(r - n) < U.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** U.normBg - n ** U.normText) * U.scale;
|
|
128
|
+
return e < U.lowClip ? 0 : (e - U.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** U.revBg - n ** U.revText) * U.scale;
|
|
131
|
+
return i > -U.lowClip ? 0 : (i + U.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Le(e, t = Ne) {
|
|
134
134
|
let n = t[0];
|
|
135
135
|
if (n === void 0) throw RangeError("No label colour to choose from");
|
|
136
|
-
let r = Math.abs(
|
|
136
|
+
let r = Math.abs(Ie(n, e));
|
|
137
137
|
for (let i of t.slice(1)) {
|
|
138
|
-
let t = Math.abs(
|
|
138
|
+
let t = Math.abs(Ie(i, e));
|
|
139
139
|
t > r && (n = i, r = t);
|
|
140
140
|
}
|
|
141
141
|
return n;
|
|
142
142
|
}
|
|
143
143
|
// src/tokens/hue-fill.style.ts
|
|
144
|
-
var
|
|
144
|
+
var W = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -154,7 +154,7 @@ var G = {
|
|
|
154
154
|
violet: "bg-violet-500",
|
|
155
155
|
purple: "bg-purple-500",
|
|
156
156
|
pink: "bg-pink-500"
|
|
157
|
-
},
|
|
157
|
+
}, Re = {
|
|
158
158
|
red: {
|
|
159
159
|
50: "#fef4f3",
|
|
160
160
|
100: "#fee9e7",
|
|
@@ -311,24 +311,24 @@ var G = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, G = {
|
|
315
315
|
saturation: .7,
|
|
316
316
|
lightness: .55,
|
|
317
317
|
maxOklchLightness: .7,
|
|
318
318
|
lightnessStep: .005
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function ze(e) {
|
|
321
321
|
return [
|
|
322
322
|
1,
|
|
323
323
|
3,
|
|
324
324
|
5
|
|
325
325
|
].map((t) => Number.parseInt(e.slice(t, t + 2), 16) / 255);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
let [t, n, r] =
|
|
327
|
+
function Be(e) {
|
|
328
|
+
let [t, n, r] = ze(e), i = Math.max(t, n, r), a = i - Math.min(t, n, r);
|
|
329
329
|
return a === 0 ? 0 : ((i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4) * 60 + 360) % 360;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ve(e, t, n) {
|
|
332
332
|
let r = (1 - Math.abs(2 * n - 1)) * t, i = r * (1 - Math.abs(e / 60 % 2 - 1)), a = n - r / 2, o = Math.floor(e / 60) % 6;
|
|
333
333
|
return `#${([
|
|
334
334
|
[
|
|
@@ -367,24 +367,24 @@ function Be(e, t, n) {
|
|
|
367
367
|
0
|
|
368
368
|
]).map((e) => Math.round((e + a) * 255).toString(16).padStart(2, "0")).join("")}`;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
let [t, n, r] =
|
|
370
|
+
function He(e) {
|
|
371
|
+
let [t, n, r] = ze(e).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), i = Math.cbrt(.4122214708 * t + .5363325363 * n + .0514459929 * r), a = Math.cbrt(.2119034982 * t + .6806995451 * n + .1073969566 * r), o = Math.cbrt(.0883024619 * t + .2817188376 * n + .6299787005 * r);
|
|
372
372
|
return .2104542553 * i + .793617785 * a - .0040720468 * o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let t =
|
|
376
|
-
for (;
|
|
374
|
+
function Ue(e) {
|
|
375
|
+
let t = Be(Re[e][500]), n = G.lightness, r = Ve(t, G.saturation, n);
|
|
376
|
+
for (; He(r) > G.maxOklchLightness;) n -= G.lightnessStep, r = Ve(t, G.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
380
|
-
var
|
|
380
|
+
var We = {
|
|
381
381
|
talogic: "violet",
|
|
382
382
|
pargic: "orange",
|
|
383
383
|
daygic: "amber",
|
|
384
384
|
ingic: "blue",
|
|
385
385
|
loregic: "green",
|
|
386
386
|
loomgic: "blue"
|
|
387
|
-
},
|
|
387
|
+
}, Ge = [
|
|
388
388
|
"lime",
|
|
389
389
|
"teal",
|
|
390
390
|
"cyan",
|
|
@@ -392,18 +392,18 @@ var Ue = {
|
|
|
392
392
|
"purple",
|
|
393
393
|
"pink"
|
|
394
394
|
];
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Ke(e) {
|
|
396
|
+
return We[e];
|
|
397
397
|
}
|
|
398
398
|
// src/tokens/theme.contract.ts
|
|
399
|
-
var
|
|
399
|
+
var qe = [
|
|
400
400
|
"talogic",
|
|
401
401
|
"pargic",
|
|
402
402
|
"daygic",
|
|
403
403
|
"ingic",
|
|
404
404
|
"loregic",
|
|
405
405
|
"loomgic"
|
|
406
|
-
],
|
|
406
|
+
], Je = [
|
|
407
407
|
"red",
|
|
408
408
|
"orange",
|
|
409
409
|
"amber",
|
|
@@ -416,7 +416,7 @@ var Ke = [
|
|
|
416
416
|
"violet",
|
|
417
417
|
"purple",
|
|
418
418
|
"pink"
|
|
419
|
-
],
|
|
419
|
+
], Ye = [
|
|
420
420
|
"50",
|
|
421
421
|
"100",
|
|
422
422
|
"200",
|
|
@@ -428,20 +428,20 @@ var Ke = [
|
|
|
428
428
|
"800",
|
|
429
429
|
"900",
|
|
430
430
|
"950"
|
|
431
|
-
],
|
|
431
|
+
], Xe = [
|
|
432
432
|
"web",
|
|
433
433
|
"app",
|
|
434
434
|
"desk",
|
|
435
435
|
"mob"
|
|
436
|
-
],
|
|
436
|
+
], Ze = ["light", "dark"];
|
|
437
437
|
// src/tokens/theme-attributes.mapper.ts
|
|
438
|
-
function
|
|
438
|
+
function Qe(e) {
|
|
439
439
|
let t = { className: [e.scheme === "dark" ? "dark" : "", e.density ? `d-${e.density}` : ""].filter(Boolean).join(" ") };
|
|
440
440
|
return e.product && (t["data-product"] = e.product), e.hue && (t["data-hue"] = e.hue), t;
|
|
441
441
|
}
|
|
442
442
|
// src/tokens/theme-root.component.tsx
|
|
443
|
-
function
|
|
444
|
-
let { className: c, ...l } =
|
|
443
|
+
function $e({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
|
|
444
|
+
let { className: c, ...l } = Qe({
|
|
445
445
|
product: e,
|
|
446
446
|
hue: t,
|
|
447
447
|
scheme: n,
|
|
@@ -449,35 +449,35 @@ function Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, classN
|
|
|
449
449
|
}), u = a ? C.Root : "div";
|
|
450
450
|
return /* @__PURE__ */ r(u, {
|
|
451
451
|
"data-slot": "theme-root",
|
|
452
|
-
className:
|
|
452
|
+
className: B(c, o),
|
|
453
453
|
...l,
|
|
454
454
|
...s
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
// src/ui/avatar/avatar.component.tsx
|
|
458
|
-
function
|
|
458
|
+
function et({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
|
-
className:
|
|
461
|
+
className: B("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function tt({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
|
-
className:
|
|
468
|
+
className: B("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function nt({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
|
-
className:
|
|
475
|
+
className: B("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 rt = O("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 nt = O("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowr
|
|
|
491
491
|
defaultVariants: { variant: "default" }
|
|
492
492
|
});
|
|
493
493
|
// src/ui/badge/badge.component.tsx
|
|
494
|
-
function
|
|
494
|
+
function K({ 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: B(rt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,21 +503,23 @@ function q({ 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 q = O([
|
|
507
507
|
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium no-underline",
|
|
508
|
-
"transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
|
-
"
|
|
508
|
+
"relative isolate transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
|
+
"before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-[inherit] before:bg-current before:opacity-0 before:scale-90",
|
|
510
|
+
"before:transition-[opacity,scale] before:duration-150 before:ease-out motion-reduce:before:transition-none",
|
|
511
|
+
"hover:before:scale-100 hover:before:opacity-8 focus-visible:before:scale-100 focus-visible:before:opacity-12 active:before:opacity-16",
|
|
510
512
|
"disabled:pointer-events-none disabled:opacity-50 aria-busy:cursor-progress",
|
|
511
513
|
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
512
514
|
], {
|
|
513
515
|
variants: {
|
|
514
516
|
variant: {
|
|
515
|
-
default: "bg-primary text-primary-foreground shadow-xs
|
|
516
|
-
secondary: "bg-secondary text-secondary-foreground
|
|
517
|
-
outline: "border-input bg-background text-foreground shadow-xs
|
|
518
|
-
ghost: "bg-transparent text-foreground
|
|
519
|
-
destructive: "bg-destructive text-destructive-foreground shadow-xs
|
|
520
|
-
link: "bg-transparent text-brand-text underline underline-offset-3"
|
|
517
|
+
default: "bg-primary text-primary-foreground shadow-xs focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
518
|
+
secondary: "bg-secondary text-secondary-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
519
|
+
outline: "border-input bg-background text-foreground shadow-xs focus-visible:border-foreground/70",
|
|
520
|
+
ghost: "bg-transparent text-foreground focus-visible:border-foreground/50",
|
|
521
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
522
|
+
link: "bg-transparent text-brand-text underline underline-offset-3 before:hidden focus-visible:rounded-sm focus-visible:bg-brand-soft focus-visible:decoration-2"
|
|
521
523
|
},
|
|
522
524
|
size: {
|
|
523
525
|
default: "h-(--control-h) px-(--control-px) text-(length:--control-fs)",
|
|
@@ -537,29 +539,29 @@ var J = O([
|
|
|
537
539
|
}
|
|
538
540
|
});
|
|
539
541
|
// src/ui/button/button.component.tsx
|
|
540
|
-
function
|
|
542
|
+
function J({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
541
543
|
let d = o ? C.Root : "button";
|
|
542
544
|
return /* @__PURE__ */ r(d, {
|
|
543
545
|
"data-slot": "button",
|
|
544
|
-
className:
|
|
546
|
+
className: B(q({
|
|
545
547
|
variant: t,
|
|
546
548
|
size: a
|
|
547
549
|
}), e),
|
|
548
550
|
disabled: o ? void 0 : c,
|
|
549
551
|
"aria-busy": s || void 0,
|
|
550
552
|
...u,
|
|
551
|
-
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(
|
|
553
|
+
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(le, {
|
|
552
554
|
className: "animate-spin",
|
|
553
555
|
"aria-hidden": "true"
|
|
554
556
|
}), l] }) : l
|
|
555
557
|
});
|
|
556
558
|
}
|
|
557
559
|
// src/ui/choice/checkbox.component.tsx
|
|
558
|
-
var
|
|
559
|
-
function
|
|
560
|
+
var it = "fill-none stroke-current [stroke-dasharray:1] [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:2.4] transition-[stroke-dashoffset] ease-emphasised motion-reduce:transition-none";
|
|
561
|
+
function at({ className: e, ...t }) {
|
|
560
562
|
return /* @__PURE__ */ r(c.Root, {
|
|
561
563
|
"data-slot": "checkbox",
|
|
562
|
-
className:
|
|
564
|
+
className: B("peer group/checkbox grid size-4 shrink-0 cursor-pointer place-content-center rounded-[4px] border border-input bg-background text-primary-foreground shadow-xs outline-none", "transition-[background-color,border-color] duration-150 motion-reduce:transition-none", "focus-visible:shadow-[0_0_0_6px_color-mix(in_oklab,var(--foreground)_12%,transparent)] disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", e),
|
|
563
565
|
...t,
|
|
564
566
|
children: /* @__PURE__ */ r(c.Indicator, {
|
|
565
567
|
forceMount: !0,
|
|
@@ -571,28 +573,28 @@ function it({ className: e, ...t }) {
|
|
|
571
573
|
children: [/* @__PURE__ */ r("path", {
|
|
572
574
|
d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
|
|
573
575
|
pathLength: 1,
|
|
574
|
-
className:
|
|
576
|
+
className: B(it, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
|
|
575
577
|
}), /* @__PURE__ */ r("path", {
|
|
576
578
|
d: "M4 8 L12 8",
|
|
577
579
|
pathLength: 1,
|
|
578
|
-
className:
|
|
580
|
+
className: B(it, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
|
|
579
581
|
})]
|
|
580
582
|
})
|
|
581
583
|
})
|
|
582
584
|
});
|
|
583
585
|
}
|
|
584
586
|
// src/ui/choice/radio-group.component.tsx
|
|
585
|
-
function
|
|
587
|
+
function ot({ className: e, ...t }) {
|
|
586
588
|
return /* @__PURE__ */ r(y.Root, {
|
|
587
589
|
"data-slot": "radio-group",
|
|
588
|
-
className:
|
|
590
|
+
className: B("grid gap-2.5", e),
|
|
589
591
|
...t
|
|
590
592
|
});
|
|
591
593
|
}
|
|
592
|
-
function
|
|
594
|
+
function st({ className: e, ...t }) {
|
|
593
595
|
return /* @__PURE__ */ r(y.Item, {
|
|
594
596
|
"data-slot": "radio-group-item",
|
|
595
|
-
className:
|
|
597
|
+
className: B("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
598
|
...t,
|
|
597
599
|
children: /* @__PURE__ */ r(y.Indicator, {
|
|
598
600
|
forceMount: !0,
|
|
@@ -601,8 +603,8 @@ function ot({ className: e, ...t }) {
|
|
|
601
603
|
});
|
|
602
604
|
}
|
|
603
605
|
// src/ui/choice/slider.component.tsx
|
|
604
|
-
function
|
|
605
|
-
let [d, f] =
|
|
606
|
+
function ct({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
607
|
+
let [d, f] = L(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
606
608
|
return /* @__PURE__ */ i(S.Root, {
|
|
607
609
|
"data-slot": "slider",
|
|
608
610
|
value: t,
|
|
@@ -619,7 +621,7 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
619
621
|
onPointerUp: (e) => {
|
|
620
622
|
f(!1), l?.(e);
|
|
621
623
|
},
|
|
622
|
-
className:
|
|
624
|
+
className: B("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
625
|
...u,
|
|
624
626
|
children: [/* @__PURE__ */ r(S.Track, {
|
|
625
627
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
@@ -631,17 +633,17 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
631
633
|
});
|
|
632
634
|
}
|
|
633
635
|
// src/ui/choice/switch.component.tsx
|
|
634
|
-
function
|
|
636
|
+
function lt({ className: e, ...t }) {
|
|
635
637
|
return /* @__PURE__ */ r(w.Root, {
|
|
636
638
|
"data-slot": "switch",
|
|
637
|
-
className:
|
|
639
|
+
className: B("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
640
|
...t,
|
|
639
641
|
children: /* @__PURE__ */ r(w.Thumb, { className: "block size-4 rounded-full bg-white shadow-xs transition-transform duration-200 ease-emphasised data-[state=checked]:translate-x-4 motion-reduce:transition-none" })
|
|
640
642
|
});
|
|
641
643
|
}
|
|
642
644
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
643
|
-
function
|
|
644
|
-
let t =
|
|
645
|
+
function ut(e) {
|
|
646
|
+
let t = I(null), n = I(void 0), r = P((r) => {
|
|
645
647
|
if (n.current?.(), n.current = void 0, t.current = r, !r) return;
|
|
646
648
|
function i() {
|
|
647
649
|
if (!r) return;
|
|
@@ -663,37 +665,37 @@ function lt(e) {
|
|
|
663
665
|
a.disconnect(), o.disconnect();
|
|
664
666
|
};
|
|
665
667
|
}, [e]);
|
|
666
|
-
return
|
|
668
|
+
return F(() => () => n.current?.(), []), r;
|
|
667
669
|
}
|
|
668
670
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
669
|
-
var
|
|
671
|
+
var dt = "pointer-events-none absolute left-(--indicator-left) top-(--indicator-top) h-(--indicator-height) w-(--indicator-width) group-data-[indicator=ready]/indicator:transition-[left,top,width,height] group-data-[indicator=ready]/indicator:duration-250 group-data-[indicator=ready]/indicator:ease-emphasised group-data-[indicator=none]/indicator:opacity-0 group-not-data-indicator/indicator:opacity-0 motion-reduce:transition-none";
|
|
670
672
|
// src/ui/choice/toggle-group.component.tsx
|
|
671
|
-
function
|
|
672
|
-
let a =
|
|
673
|
+
function ft({ className: e, children: t, ...n }) {
|
|
674
|
+
let a = ut("[data-state=on]"), o = n.type === "single";
|
|
673
675
|
return /* @__PURE__ */ i(E.Root, {
|
|
674
676
|
ref: o ? a : void 0,
|
|
675
677
|
"data-slot": "toggle-group",
|
|
676
678
|
"data-mode": n.type,
|
|
677
|
-
className:
|
|
679
|
+
className: B("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
|
|
678
680
|
...n,
|
|
679
681
|
children: [o && /* @__PURE__ */ r("span", {
|
|
680
682
|
"aria-hidden": "true",
|
|
681
683
|
"data-slot": "toggle-group-indicator",
|
|
682
|
-
className:
|
|
684
|
+
className: B(dt, "rounded-sm bg-background shadow-xs")
|
|
683
685
|
}), t]
|
|
684
686
|
});
|
|
685
687
|
}
|
|
686
|
-
function
|
|
688
|
+
function pt({ className: e, ...t }) {
|
|
687
689
|
return /* @__PURE__ */ r(E.Item, {
|
|
688
690
|
"data-slot": "toggle-group-item",
|
|
689
|
-
className:
|
|
691
|
+
className: B("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
692
|
...t
|
|
691
693
|
});
|
|
692
694
|
}
|
|
693
695
|
// src/ui/field/control.recipe.ts
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
let t =
|
|
696
|
+
var mt = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", ht = be(null);
|
|
697
|
+
function Y(e = {}) {
|
|
698
|
+
let t = Ce(ht);
|
|
697
699
|
return t ? {
|
|
698
700
|
id: e.id ?? t.id,
|
|
699
701
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
@@ -701,20 +703,20 @@ function ht(e = {}) {
|
|
|
701
703
|
} : e;
|
|
702
704
|
}
|
|
703
705
|
function gt() {
|
|
704
|
-
return
|
|
706
|
+
return Ce(ht)?.labelId;
|
|
705
707
|
}
|
|
706
708
|
// src/ui/field/label.component.tsx
|
|
707
709
|
function _t({ className: e, ...t }) {
|
|
708
710
|
return /* @__PURE__ */ r(p.Root, {
|
|
709
711
|
"data-slot": "label",
|
|
710
|
-
className:
|
|
712
|
+
className: B("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
711
713
|
...t
|
|
712
714
|
});
|
|
713
715
|
}
|
|
714
716
|
// src/ui/field/field.component.tsx
|
|
715
717
|
function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
716
|
-
let c =
|
|
717
|
-
return /* @__PURE__ */ r(
|
|
718
|
+
let c = we(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
719
|
+
return /* @__PURE__ */ r(ht, {
|
|
718
720
|
value: {
|
|
719
721
|
id: l,
|
|
720
722
|
describedBy: f,
|
|
@@ -723,7 +725,7 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
723
725
|
},
|
|
724
726
|
children: /* @__PURE__ */ i("div", {
|
|
725
727
|
"data-slot": "field",
|
|
726
|
-
className:
|
|
728
|
+
className: B("flex flex-col gap-1.5", s),
|
|
727
729
|
children: [
|
|
728
730
|
/* @__PURE__ */ r(_t, {
|
|
729
731
|
id: `${l}-label`,
|
|
@@ -747,10 +749,10 @@ function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
747
749
|
}
|
|
748
750
|
// src/ui/field/input.component.tsx
|
|
749
751
|
function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
750
|
-
let o =
|
|
752
|
+
let o = Y(a), s = /* @__PURE__ */ r("input", {
|
|
751
753
|
"data-slot": "input",
|
|
752
754
|
type: n,
|
|
753
|
-
className:
|
|
755
|
+
className: B(mt, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
754
756
|
...a,
|
|
755
757
|
...o
|
|
756
758
|
});
|
|
@@ -766,10 +768,10 @@ function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
766
768
|
// src/ui/field/select.component.tsx
|
|
767
769
|
var bt = x.Root, xt = x.Group, St = x.Value;
|
|
768
770
|
function Ct({ className: e, children: t, ...n }) {
|
|
769
|
-
let a =
|
|
771
|
+
let a = Y(n);
|
|
770
772
|
return /* @__PURE__ */ i(x.Trigger, {
|
|
771
773
|
"data-slot": "select-trigger",
|
|
772
|
-
className:
|
|
774
|
+
className: B(mt, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
773
775
|
...n,
|
|
774
776
|
...a,
|
|
775
777
|
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
@@ -785,7 +787,7 @@ function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
785
787
|
return /* @__PURE__ */ r(x.Portal, { children: /* @__PURE__ */ r(x.Content, {
|
|
786
788
|
"data-slot": "select-content",
|
|
787
789
|
position: n,
|
|
788
|
-
className:
|
|
790
|
+
className: B("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", n === "popper" && "w-full min-w-(--radix-select-trigger-width) data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", e),
|
|
789
791
|
...i,
|
|
790
792
|
children: /* @__PURE__ */ r(x.Viewport, {
|
|
791
793
|
className: "p-1",
|
|
@@ -796,14 +798,14 @@ function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
796
798
|
function Tt({ className: e, ...t }) {
|
|
797
799
|
return /* @__PURE__ */ r(x.Label, {
|
|
798
800
|
"data-slot": "select-label",
|
|
799
|
-
className:
|
|
801
|
+
className: B("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
800
802
|
...t
|
|
801
803
|
});
|
|
802
804
|
}
|
|
803
805
|
function Et({ className: e, children: t, ...n }) {
|
|
804
806
|
return /* @__PURE__ */ i(x.Item, {
|
|
805
807
|
"data-slot": "select-item",
|
|
806
|
-
className:
|
|
808
|
+
className: B("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2.5 pe-8 text-[13.5px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
807
809
|
...n,
|
|
808
810
|
children: [/* @__PURE__ */ r(x.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
809
811
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
@@ -817,16 +819,16 @@ function Et({ className: e, children: t, ...n }) {
|
|
|
817
819
|
function Dt({ className: e, ...t }) {
|
|
818
820
|
return /* @__PURE__ */ r(x.Separator, {
|
|
819
821
|
"data-slot": "select-separator",
|
|
820
|
-
className:
|
|
822
|
+
className: B("-mx-1 my-1 h-px bg-border", e),
|
|
821
823
|
...t
|
|
822
824
|
});
|
|
823
825
|
}
|
|
824
826
|
// src/ui/field/textarea.component.tsx
|
|
825
827
|
function Ot({ className: e, ...t }) {
|
|
826
|
-
let n =
|
|
828
|
+
let n = Y(t);
|
|
827
829
|
return /* @__PURE__ */ r("textarea", {
|
|
828
830
|
"data-slot": "textarea",
|
|
829
|
-
className:
|
|
831
|
+
className: B(mt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
830
832
|
...t,
|
|
831
833
|
...n
|
|
832
834
|
});
|
|
@@ -841,35 +843,35 @@ var kt = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop
|
|
|
841
843
|
function Pt({ className: e, ...t }) {
|
|
842
844
|
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: kt }), /* @__PURE__ */ r(o.Content, {
|
|
843
845
|
"data-slot": "alert-dialog-content",
|
|
844
|
-
className:
|
|
846
|
+
className: B("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", At, e),
|
|
845
847
|
...t
|
|
846
848
|
})] });
|
|
847
849
|
}
|
|
848
850
|
function Ft({ className: e, ...t }) {
|
|
849
851
|
return /* @__PURE__ */ r(o.Title, {
|
|
850
852
|
"data-slot": "alert-dialog-title",
|
|
851
|
-
className:
|
|
853
|
+
className: B("m-0 font-display text-lg font-bold leading-tight", e),
|
|
852
854
|
...t
|
|
853
855
|
});
|
|
854
856
|
}
|
|
855
857
|
function It({ className: e, ...t }) {
|
|
856
858
|
return /* @__PURE__ */ r(o.Description, {
|
|
857
859
|
"data-slot": "alert-dialog-description",
|
|
858
|
-
className:
|
|
860
|
+
className: B("m-0 text-sm text-muted-foreground", e),
|
|
859
861
|
...t
|
|
860
862
|
});
|
|
861
863
|
}
|
|
862
864
|
function Lt({ className: e, variant: t = "default", ...n }) {
|
|
863
865
|
return /* @__PURE__ */ r(o.Action, {
|
|
864
866
|
"data-slot": "alert-dialog-action",
|
|
865
|
-
className:
|
|
867
|
+
className: B(q({ variant: t }), e),
|
|
866
868
|
...n
|
|
867
869
|
});
|
|
868
870
|
}
|
|
869
871
|
function Rt({ className: e, ...t }) {
|
|
870
872
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
871
873
|
"data-slot": "alert-dialog-cancel",
|
|
872
|
-
className:
|
|
874
|
+
className: B(q({ variant: "outline" }), e),
|
|
873
875
|
...t
|
|
874
876
|
});
|
|
875
877
|
}
|
|
@@ -878,11 +880,11 @@ var zt = d.Root, Bt = d.Trigger, Vt = d.Close;
|
|
|
878
880
|
function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
879
881
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
880
882
|
"data-slot": "dialog-content",
|
|
881
|
-
className:
|
|
883
|
+
className: B("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", At, e),
|
|
882
884
|
...a,
|
|
883
885
|
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
884
886
|
className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
|
|
885
|
-
children: [/* @__PURE__ */ r(
|
|
887
|
+
children: [/* @__PURE__ */ r(N, {
|
|
886
888
|
className: "size-4",
|
|
887
889
|
"aria-hidden": "true"
|
|
888
890
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -895,37 +897,37 @@ function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
895
897
|
function Ut({ className: e, ...t }) {
|
|
896
898
|
return /* @__PURE__ */ r("div", {
|
|
897
899
|
"data-slot": "dialog-header",
|
|
898
|
-
className:
|
|
900
|
+
className: B("flex flex-col gap-1.5 text-start", e),
|
|
899
901
|
...t
|
|
900
902
|
});
|
|
901
903
|
}
|
|
902
904
|
function Wt({ className: e, ...t }) {
|
|
903
905
|
return /* @__PURE__ */ r("div", {
|
|
904
906
|
"data-slot": "dialog-footer",
|
|
905
|
-
className:
|
|
907
|
+
className: B("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
906
908
|
...t
|
|
907
909
|
});
|
|
908
910
|
}
|
|
909
911
|
function Gt({ className: e, ...t }) {
|
|
910
912
|
return /* @__PURE__ */ r(d.Title, {
|
|
911
913
|
"data-slot": "dialog-title",
|
|
912
|
-
className:
|
|
914
|
+
className: B("m-0 font-display text-lg font-bold leading-tight", e),
|
|
913
915
|
...t
|
|
914
916
|
});
|
|
915
917
|
}
|
|
916
918
|
function Kt({ className: e, ...t }) {
|
|
917
919
|
return /* @__PURE__ */ r(d.Description, {
|
|
918
920
|
"data-slot": "dialog-description",
|
|
919
|
-
className:
|
|
921
|
+
className: B("m-0 text-sm text-muted-foreground", e),
|
|
920
922
|
...t
|
|
921
923
|
});
|
|
922
924
|
}
|
|
923
925
|
// src/ui/overlay/drawer.component.tsx
|
|
924
|
-
var qt =
|
|
926
|
+
var qt = R.Root, Jt = R.Trigger, Yt = R.Close;
|
|
925
927
|
function Xt({ className: e, children: t, ...n }) {
|
|
926
|
-
return /* @__PURE__ */ i(
|
|
928
|
+
return /* @__PURE__ */ i(R.Portal, { children: [/* @__PURE__ */ r(R.Overlay, { className: kt }), /* @__PURE__ */ i(R.Content, {
|
|
927
929
|
"data-slot": "drawer-content",
|
|
928
|
-
className:
|
|
930
|
+
className: B("fixed inset-x-0 bottom-0 z-50 flex max-h-[85vh] flex-col gap-3.5 rounded-t-3xl border-t bg-popover px-5 pt-2.5 pb-8 text-popover-foreground outline-none", e),
|
|
929
931
|
...n,
|
|
930
932
|
children: [/* @__PURE__ */ r("div", {
|
|
931
933
|
"aria-hidden": "true",
|
|
@@ -934,16 +936,16 @@ function Xt({ className: e, children: t, ...n }) {
|
|
|
934
936
|
})] });
|
|
935
937
|
}
|
|
936
938
|
function Zt({ className: e, ...t }) {
|
|
937
|
-
return /* @__PURE__ */ r(
|
|
939
|
+
return /* @__PURE__ */ r(R.Title, {
|
|
938
940
|
"data-slot": "drawer-title",
|
|
939
|
-
className:
|
|
941
|
+
className: B("m-0 text-xl font-semibold leading-tight", e),
|
|
940
942
|
...t
|
|
941
943
|
});
|
|
942
944
|
}
|
|
943
945
|
function Qt({ className: e, ...t }) {
|
|
944
|
-
return /* @__PURE__ */ r(
|
|
946
|
+
return /* @__PURE__ */ r(R.Description, {
|
|
945
947
|
"data-slot": "drawer-description",
|
|
946
|
-
className:
|
|
948
|
+
className: B("m-0 text-sm text-muted-foreground", e),
|
|
947
949
|
...t
|
|
948
950
|
});
|
|
949
951
|
}
|
|
@@ -961,7 +963,7 @@ function rn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
|
961
963
|
"data-slot": "popover-content",
|
|
962
964
|
align: t,
|
|
963
965
|
sideOffset: n,
|
|
964
|
-
className:
|
|
966
|
+
className: B("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", At, e),
|
|
965
967
|
...i
|
|
966
968
|
}) });
|
|
967
969
|
}
|
|
@@ -975,11 +977,11 @@ var an = d.Root, on = d.Trigger, sn = d.Close, cn = d.Title, ln = d.Description,
|
|
|
975
977
|
function dn({ className: e, children: t, side: n = "end", ...a }) {
|
|
976
978
|
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
977
979
|
"data-slot": "sheet-content",
|
|
978
|
-
className:
|
|
980
|
+
className: B("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", un[n], jt[n], e),
|
|
979
981
|
...a,
|
|
980
982
|
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
981
983
|
className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
|
|
982
|
-
children: [/* @__PURE__ */ r(
|
|
984
|
+
children: [/* @__PURE__ */ r(N, {
|
|
983
985
|
className: "size-4",
|
|
984
986
|
"aria-hidden": "true"
|
|
985
987
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -1005,7 +1007,7 @@ function hn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1005
1007
|
return /* @__PURE__ */ r(D.Portal, { children: /* @__PURE__ */ r(D.Content, {
|
|
1006
1008
|
"data-slot": "tooltip-content",
|
|
1007
1009
|
sideOffset: t,
|
|
1008
|
-
className:
|
|
1010
|
+
className: B("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", At, e),
|
|
1009
1011
|
...n
|
|
1010
1012
|
}) });
|
|
1011
1013
|
}
|
|
@@ -1013,9 +1015,9 @@ function hn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1013
1015
|
var gn = "z-50 min-w-48 overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", X = "relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-[7px] text-[13.5px] outline-none transition-colors duration-150 motion-reduce:transition-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50 data-[disabled=false]:pointer-events-auto data-[disabled=false]:opacity-100 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:[&_svg]:text-destructive", _n = "ms-auto text-xs tracking-wide text-muted-foreground", vn = "-mx-1 my-1 h-px bg-border", yn = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1014
1016
|
// src/ui/menu/command.component.tsx
|
|
1015
1017
|
function bn({ className: e, ...t }) {
|
|
1016
|
-
return /* @__PURE__ */ r(
|
|
1018
|
+
return /* @__PURE__ */ r(z, {
|
|
1017
1019
|
"data-slot": "command",
|
|
1018
|
-
className:
|
|
1020
|
+
className: B("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1019
1021
|
...t
|
|
1020
1022
|
});
|
|
1021
1023
|
}
|
|
@@ -1023,7 +1025,7 @@ function xn({ title: e = "Search", children: t, ...n }) {
|
|
|
1023
1025
|
return /* @__PURE__ */ r(d.Root, {
|
|
1024
1026
|
...n,
|
|
1025
1027
|
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
1026
|
-
className:
|
|
1028
|
+
className: B("fixed start-1/2 top-[18%] z-50 w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 overflow-hidden rounded-xl border bg-popover shadow-lg outline-none rtl:translate-x-1/2", At),
|
|
1027
1029
|
children: [
|
|
1028
1030
|
/* @__PURE__ */ r(d.Title, {
|
|
1029
1031
|
className: "sr-only",
|
|
@@ -1042,55 +1044,55 @@ function Sn({ className: e, ...t }) {
|
|
|
1042
1044
|
return /* @__PURE__ */ i("div", {
|
|
1043
1045
|
"data-slot": "command-input-wrapper",
|
|
1044
1046
|
className: "flex h-11 items-center gap-2 border-b px-3",
|
|
1045
|
-
children: [/* @__PURE__ */ r(
|
|
1047
|
+
children: [/* @__PURE__ */ r(he, {
|
|
1046
1048
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
1047
1049
|
"aria-hidden": "true"
|
|
1048
|
-
}), /* @__PURE__ */ r(
|
|
1050
|
+
}), /* @__PURE__ */ r(z.Input, {
|
|
1049
1051
|
"data-slot": "command-input",
|
|
1050
|
-
className:
|
|
1052
|
+
className: B("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1051
1053
|
...t
|
|
1052
1054
|
})]
|
|
1053
1055
|
});
|
|
1054
1056
|
}
|
|
1055
1057
|
function Cn({ className: e, ...t }) {
|
|
1056
|
-
return /* @__PURE__ */ r(
|
|
1058
|
+
return /* @__PURE__ */ r(z.List, {
|
|
1057
1059
|
"data-slot": "command-list",
|
|
1058
|
-
className:
|
|
1060
|
+
className: B("max-h-80 overflow-y-auto p-1", e),
|
|
1059
1061
|
...t
|
|
1060
1062
|
});
|
|
1061
1063
|
}
|
|
1062
1064
|
function wn({ className: e, ...t }) {
|
|
1063
|
-
return /* @__PURE__ */ r(
|
|
1065
|
+
return /* @__PURE__ */ r(z.Empty, {
|
|
1064
1066
|
"data-slot": "command-empty",
|
|
1065
|
-
className:
|
|
1067
|
+
className: B("py-6 text-center text-sm text-muted-foreground", e),
|
|
1066
1068
|
...t
|
|
1067
1069
|
});
|
|
1068
1070
|
}
|
|
1069
1071
|
function Tn({ className: e, ...t }) {
|
|
1070
|
-
return /* @__PURE__ */ r(
|
|
1072
|
+
return /* @__PURE__ */ r(z.Group, {
|
|
1071
1073
|
"data-slot": "command-group",
|
|
1072
|
-
className:
|
|
1074
|
+
className: B("[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
|
|
1073
1075
|
...t
|
|
1074
1076
|
});
|
|
1075
1077
|
}
|
|
1076
1078
|
function En({ className: e, ...t }) {
|
|
1077
|
-
return /* @__PURE__ */ r(
|
|
1079
|
+
return /* @__PURE__ */ r(z.Item, {
|
|
1078
1080
|
"data-slot": "command-item",
|
|
1079
|
-
className:
|
|
1081
|
+
className: B(X, "data-[selected=true]:bg-accent", e),
|
|
1080
1082
|
...t
|
|
1081
1083
|
});
|
|
1082
1084
|
}
|
|
1083
1085
|
function Dn({ className: e, ...t }) {
|
|
1084
|
-
return /* @__PURE__ */ r(
|
|
1086
|
+
return /* @__PURE__ */ r(z.Separator, {
|
|
1085
1087
|
"data-slot": "command-separator",
|
|
1086
|
-
className:
|
|
1088
|
+
className: B(vn, e),
|
|
1087
1089
|
...t
|
|
1088
1090
|
});
|
|
1089
1091
|
}
|
|
1090
1092
|
function On({ className: e, ...t }) {
|
|
1091
1093
|
return /* @__PURE__ */ r("span", {
|
|
1092
1094
|
"data-slot": "command-shortcut",
|
|
1093
|
-
className:
|
|
1095
|
+
className: B(_n, e),
|
|
1094
1096
|
...t
|
|
1095
1097
|
});
|
|
1096
1098
|
}
|
|
@@ -1099,7 +1101,7 @@ var kn = u.Root, An = u.Trigger;
|
|
|
1099
1101
|
function jn({ className: e, ...t }) {
|
|
1100
1102
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1101
1103
|
"data-slot": "context-menu-content",
|
|
1102
|
-
className:
|
|
1104
|
+
className: B(gn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1103
1105
|
...t
|
|
1104
1106
|
}) });
|
|
1105
1107
|
}
|
|
@@ -1107,21 +1109,21 @@ function Mn({ className: e, variant: t = "default", ...n }) {
|
|
|
1107
1109
|
return /* @__PURE__ */ r(u.Item, {
|
|
1108
1110
|
"data-slot": "context-menu-item",
|
|
1109
1111
|
"data-variant": t,
|
|
1110
|
-
className:
|
|
1112
|
+
className: B(X, e),
|
|
1111
1113
|
...n
|
|
1112
1114
|
});
|
|
1113
1115
|
}
|
|
1114
1116
|
function Nn({ className: e, ...t }) {
|
|
1115
1117
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1116
1118
|
"data-slot": "context-menu-separator",
|
|
1117
|
-
className:
|
|
1119
|
+
className: B(vn, e),
|
|
1118
1120
|
...t
|
|
1119
1121
|
});
|
|
1120
1122
|
}
|
|
1121
1123
|
function Pn({ className: e, ...t }) {
|
|
1122
1124
|
return /* @__PURE__ */ r("span", {
|
|
1123
1125
|
"data-slot": "context-menu-shortcut",
|
|
1124
|
-
className:
|
|
1126
|
+
className: B(_n, e),
|
|
1125
1127
|
...t
|
|
1126
1128
|
});
|
|
1127
1129
|
}
|
|
@@ -1131,7 +1133,7 @@ function zn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1131
1133
|
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1132
1134
|
"data-slot": "dropdown-menu-content",
|
|
1133
1135
|
sideOffset: t,
|
|
1134
|
-
className:
|
|
1136
|
+
className: B(gn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1135
1137
|
...n
|
|
1136
1138
|
}) });
|
|
1137
1139
|
}
|
|
@@ -1139,14 +1141,14 @@ function Bn({ className: e, variant: t = "default", ...n }) {
|
|
|
1139
1141
|
return /* @__PURE__ */ r(f.Item, {
|
|
1140
1142
|
"data-slot": "dropdown-menu-item",
|
|
1141
1143
|
"data-variant": t,
|
|
1142
|
-
className:
|
|
1144
|
+
className: B(X, e),
|
|
1143
1145
|
...n
|
|
1144
1146
|
});
|
|
1145
1147
|
}
|
|
1146
1148
|
function Vn({ className: e, children: t, ...n }) {
|
|
1147
1149
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1148
1150
|
"data-slot": "dropdown-menu-radio-item",
|
|
1149
|
-
className:
|
|
1151
|
+
className: B(X, "ps-7", e),
|
|
1150
1152
|
...n,
|
|
1151
1153
|
children: [/* @__PURE__ */ r("span", {
|
|
1152
1154
|
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
@@ -1157,21 +1159,21 @@ function Vn({ className: e, children: t, ...n }) {
|
|
|
1157
1159
|
function Hn({ className: e, ...t }) {
|
|
1158
1160
|
return /* @__PURE__ */ r(f.Label, {
|
|
1159
1161
|
"data-slot": "dropdown-menu-label",
|
|
1160
|
-
className:
|
|
1162
|
+
className: B(yn, e),
|
|
1161
1163
|
...t
|
|
1162
1164
|
});
|
|
1163
1165
|
}
|
|
1164
1166
|
function Un({ className: e, ...t }) {
|
|
1165
1167
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1166
1168
|
"data-slot": "dropdown-menu-separator",
|
|
1167
|
-
className:
|
|
1169
|
+
className: B(vn, e),
|
|
1168
1170
|
...t
|
|
1169
1171
|
});
|
|
1170
1172
|
}
|
|
1171
1173
|
function Wn({ className: e, ...t }) {
|
|
1172
1174
|
return /* @__PURE__ */ r("span", {
|
|
1173
1175
|
"data-slot": "dropdown-menu-shortcut",
|
|
1174
|
-
className:
|
|
1176
|
+
className: B(_n, e),
|
|
1175
1177
|
...t
|
|
1176
1178
|
});
|
|
1177
1179
|
}
|
|
@@ -1193,7 +1195,7 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1193
1195
|
return /* @__PURE__ */ i("span", {
|
|
1194
1196
|
"data-slot": "tag",
|
|
1195
1197
|
"data-highlighted": o || void 0,
|
|
1196
|
-
className:
|
|
1198
|
+
className: B("inline-flex h-6 max-w-full items-center gap-0.5 rounded-sm bg-brand-soft ps-2 text-[13px] font-medium text-brand-text animate-zoom-in motion-reduce:animate-none", "data-highlighted:ring-2 data-highlighted:ring-brand", n ? "pe-0.5" : "pe-2", e),
|
|
1197
1199
|
...s,
|
|
1198
1200
|
children: [/* @__PURE__ */ r("span", {
|
|
1199
1201
|
className: "truncate",
|
|
@@ -1203,7 +1205,7 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1203
1205
|
"aria-label": a,
|
|
1204
1206
|
onClick: n,
|
|
1205
1207
|
className: "grid size-5 shrink-0 cursor-pointer place-items-center rounded-[3px] outline-none hover:bg-brand/15 focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3",
|
|
1206
|
-
children: /* @__PURE__ */ r(
|
|
1208
|
+
children: /* @__PURE__ */ r(N, { "aria-hidden": "true" })
|
|
1207
1209
|
}) : null]
|
|
1208
1210
|
});
|
|
1209
1211
|
}
|
|
@@ -1211,7 +1213,7 @@ function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1211
1213
|
var Yn = "flex min-h-(--control-h) w-full min-w-0 cursor-text flex-wrap items-center gap-1 rounded-md border border-input bg-background px-1.5 py-1 shadow-xs text-(length:--control-fs) text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/25 has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]]:ring-3 has-[input[aria-invalid=true]]:ring-destructive/20 has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-50", Xn = "h-6 min-w-16 flex-1 bg-transparent px-1 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed";
|
|
1212
1214
|
// src/ui/tags-input/tags-input.component.tsx
|
|
1213
1215
|
function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max: o, validate: s, allowDuplicates: c, addOnBlur: l = !0, removeLabel: u = (e) => `Remove ${e}`, fieldClassName: d, className: f, disabled: p, placeholder: m, onKeyDown: h, onPaste: g, onBlur: _, ...v }) {
|
|
1214
|
-
let [y, b] =
|
|
1216
|
+
let [y, b] = L(t), [x, ee] = L(""), [S, C] = L(!1), [w, T] = L(!1), E = I(null), D = e ?? y, O = Y(v), te = o !== void 0 && D.length >= o;
|
|
1215
1217
|
function ne(t) {
|
|
1216
1218
|
e === void 0 && b(t), n?.(t);
|
|
1217
1219
|
}
|
|
@@ -1239,14 +1241,14 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1239
1241
|
} else x === "" && e.key === "Backspace" && D.length > 0 ? (e.preventDefault(), w ? A(D.length - 1) : T(!0)) : T(!1);
|
|
1240
1242
|
}
|
|
1241
1243
|
}
|
|
1242
|
-
function
|
|
1244
|
+
function ie(e) {
|
|
1243
1245
|
g?.(e);
|
|
1244
1246
|
let t = e.clipboardData.getData("text");
|
|
1245
1247
|
!e.defaultPrevented && Gn.test(t) && (e.preventDefault(), k(Kn(`${x}${t}`)));
|
|
1246
1248
|
}
|
|
1247
1249
|
return /* @__PURE__ */ i("div", {
|
|
1248
1250
|
"data-slot": "tags-input",
|
|
1249
|
-
className:
|
|
1251
|
+
className: B(Yn, d),
|
|
1250
1252
|
onClick: (e) => {
|
|
1251
1253
|
e.target === e.currentTarget && E.current?.focus();
|
|
1252
1254
|
},
|
|
@@ -1265,12 +1267,12 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1265
1267
|
disabled: p,
|
|
1266
1268
|
placeholder: D.length === 0 ? m : void 0,
|
|
1267
1269
|
readOnly: te,
|
|
1268
|
-
className:
|
|
1270
|
+
className: B(Xn, f),
|
|
1269
1271
|
onChange: (e) => {
|
|
1270
1272
|
ee(e.target.value), C(!1), T(!1);
|
|
1271
1273
|
},
|
|
1272
1274
|
onKeyDown: re,
|
|
1273
|
-
onPaste:
|
|
1275
|
+
onPaste: ie,
|
|
1274
1276
|
onBlur: (e) => {
|
|
1275
1277
|
_?.(e), T(!1), l && !S && k(Kn(x));
|
|
1276
1278
|
},
|
|
@@ -1282,11 +1284,11 @@ function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1282
1284
|
}
|
|
1283
1285
|
// src/ui/combobox/option-search.hook.ts
|
|
1284
1286
|
function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1285
|
-
let [i, a] =
|
|
1287
|
+
let [i, a] = L({
|
|
1286
1288
|
options: [],
|
|
1287
1289
|
status: "idle"
|
|
1288
|
-
}), o =
|
|
1289
|
-
return o.current = e,
|
|
1290
|
+
}), o = I(e);
|
|
1291
|
+
return o.current = e, F(() => {
|
|
1290
1292
|
let e = t.trim();
|
|
1291
1293
|
if (!o.current || e.length < r) {
|
|
1292
1294
|
a({
|
|
@@ -1329,40 +1331,40 @@ function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
|
1329
1331
|
// src/ui/combobox/combobox.component.tsx
|
|
1330
1332
|
var $n = "\0create";
|
|
1331
1333
|
function er(e) {
|
|
1332
|
-
let { options: t, loadOptions: n, debounceMs: a, minQueryLength: o = +!!n, createOption: s, createLabel: c = (e) => `Use "${e}"`, emptyText: l = "No results", loadingText: u = "Searching…", errorText: d = "The search failed. Try again.", idleText: f = "Type to search", placeholder: p, disabled: m, className: h, contentClassName: g } = e, _ = n !== void 0, v =
|
|
1334
|
+
let { options: t, loadOptions: n, debounceMs: a, minQueryLength: o = +!!n, createOption: s, createLabel: c = (e) => `Use "${e}"`, emptyText: l = "No results", loadingText: u = "Searching…", errorText: d = "The search failed. Try again.", idleText: f = "Type to search", placeholder: p, disabled: m, className: h, contentClassName: g } = e, _ = n !== void 0, v = Y({
|
|
1333
1335
|
id: e.id,
|
|
1334
1336
|
"aria-describedby": e["aria-describedby"],
|
|
1335
1337
|
"aria-invalid": e["aria-invalid"]
|
|
1336
|
-
}), [y, b] =
|
|
1338
|
+
}), [y, b] = L(e.multiple ? null : e.defaultValue ?? null), [x, ee] = L(e.multiple ? e.defaultValue ?? [] : []), S = e.multiple ? null : e.value === void 0 ? y : e.value, C = e.multiple ? e.value ?? x : S ? [S] : [], [w, T] = L(!1), [E, D] = L(S?.label ?? ""), [O, te] = L(!1), ne = I(!1);
|
|
1337
1339
|
ne.current = O;
|
|
1338
|
-
let [re,
|
|
1339
|
-
|
|
1340
|
-
let e =
|
|
1341
|
-
e && (
|
|
1342
|
-
}, [
|
|
1343
|
-
let
|
|
1340
|
+
let [re, ie] = L(!1), ae = I(null), oe = I(null), se = gt(), ce = e["aria-label"];
|
|
1341
|
+
Te(() => {
|
|
1342
|
+
let e = ae.current;
|
|
1343
|
+
e && (se ? e.setAttribute("aria-labelledby", se) : ce && e.removeAttribute("aria-labelledby"));
|
|
1344
|
+
}, [se, ce]);
|
|
1345
|
+
let j = O ? E : "", M = Qn(n, j, {
|
|
1344
1346
|
debounceMs: a,
|
|
1345
1347
|
minQueryLength: o
|
|
1346
|
-
}),
|
|
1347
|
-
function
|
|
1348
|
+
}), ue = _ ? M.options : t ?? [], de = s && j.trim() !== "" && ue.every((e) => e.label.toLowerCase() !== j.trim().toLowerCase()) ? s(j.trim()) : null, fe = e.multiple && e.max !== void 0 && C.length >= e.max;
|
|
1349
|
+
function pe(t) {
|
|
1348
1350
|
e.multiple || (e.value === void 0 && b(t), e.onValueChange?.(t));
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1352
|
+
function he(t) {
|
|
1351
1353
|
e.multiple && (e.value === void 0 && ee(t), e.onValueChange?.(t));
|
|
1352
1354
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (te(!1),
|
|
1355
|
-
|
|
1355
|
+
function ge(t) {
|
|
1356
|
+
if (te(!1), ie(!1), !e.multiple) {
|
|
1357
|
+
pe(t), D(t.label), T(!1);
|
|
1356
1358
|
return;
|
|
1357
1359
|
}
|
|
1358
1360
|
let n = C.some((e) => e.value === t.value);
|
|
1359
|
-
(n || !
|
|
1361
|
+
(n || !fe) && (he(n ? C.filter((e) => e.value !== t.value) : [...C, t]), D(""));
|
|
1360
1362
|
}
|
|
1361
|
-
function
|
|
1362
|
-
T(!1), te(!1),
|
|
1363
|
+
function _e() {
|
|
1364
|
+
T(!1), te(!1), ie(!1), D(e.multiple ? "" : S?.label ?? "");
|
|
1363
1365
|
}
|
|
1364
|
-
let
|
|
1365
|
-
return /* @__PURE__ */ r(
|
|
1366
|
+
let ve = (e) => C.some((t) => t.value === e.value);
|
|
1367
|
+
return /* @__PURE__ */ r(z, {
|
|
1366
1368
|
"data-slot": "combobox",
|
|
1367
1369
|
shouldFilter: !_,
|
|
1368
1370
|
filter: (e, t, n) => ne.current ? tr(t, [e, ...n ?? []]) : 1,
|
|
@@ -1371,23 +1373,23 @@ function er(e) {
|
|
|
1371
1373
|
children: /* @__PURE__ */ i(en, {
|
|
1372
1374
|
open: w,
|
|
1373
1375
|
onOpenChange: (e) => {
|
|
1374
|
-
e ||
|
|
1376
|
+
e || _e();
|
|
1375
1377
|
},
|
|
1376
1378
|
children: [/* @__PURE__ */ r(nn, {
|
|
1377
1379
|
asChild: !0,
|
|
1378
1380
|
children: /* @__PURE__ */ i("div", {
|
|
1379
|
-
ref:
|
|
1381
|
+
ref: oe,
|
|
1380
1382
|
"data-slot": "combobox-field",
|
|
1381
|
-
className:
|
|
1383
|
+
className: B(Yn, "pe-1", h),
|
|
1382
1384
|
onClick: (e) => {
|
|
1383
|
-
e.target === e.currentTarget &&
|
|
1385
|
+
e.target === e.currentTarget && ae.current?.focus();
|
|
1384
1386
|
},
|
|
1385
1387
|
children: [
|
|
1386
1388
|
e.multiple ? C.map((e, t) => /* @__PURE__ */ r(Jn, {
|
|
1387
1389
|
highlighted: re && t === C.length - 1,
|
|
1388
1390
|
removeLabel: `Remove ${e.label}`,
|
|
1389
1391
|
onRemove: m ? void 0 : () => {
|
|
1390
|
-
|
|
1392
|
+
ge(e);
|
|
1391
1393
|
},
|
|
1392
1394
|
children: e.label
|
|
1393
1395
|
}, e.value)) : !O && S?.icon ? /* @__PURE__ */ r("span", {
|
|
@@ -1395,28 +1397,28 @@ function er(e) {
|
|
|
1395
1397
|
className: "ms-1 flex text-muted-foreground [&_svg]:size-4",
|
|
1396
1398
|
children: S.icon
|
|
1397
1399
|
}) : null,
|
|
1398
|
-
/* @__PURE__ */ r(
|
|
1399
|
-
ref:
|
|
1400
|
+
/* @__PURE__ */ r(z.Input, {
|
|
1401
|
+
ref: ae,
|
|
1400
1402
|
"data-slot": "combobox-input",
|
|
1401
1403
|
value: E,
|
|
1402
1404
|
disabled: m,
|
|
1403
|
-
readOnly:
|
|
1405
|
+
readOnly: fe,
|
|
1404
1406
|
placeholder: C.length === 0 || !e.multiple ? p : void 0,
|
|
1405
1407
|
"aria-label": e["aria-label"],
|
|
1406
1408
|
className: Xn,
|
|
1407
1409
|
onValueChange: (e) => {
|
|
1408
|
-
D(e), te(!0),
|
|
1410
|
+
D(e), te(!0), ie(!1), T(!0);
|
|
1409
1411
|
},
|
|
1410
1412
|
onFocus: () => {
|
|
1411
1413
|
_ || T(!0);
|
|
1412
1414
|
},
|
|
1413
1415
|
onKeyDown: (t) => {
|
|
1414
|
-
if (t.key === "Escape") w && t.preventDefault(),
|
|
1416
|
+
if (t.key === "Escape") w && t.preventDefault(), _e();
|
|
1415
1417
|
else if (!w && t.key === "ArrowDown") T(!0);
|
|
1416
1418
|
else if (E === "" && t.key === "Backspace" && e.multiple && C.length > 0) {
|
|
1417
1419
|
t.preventDefault();
|
|
1418
1420
|
let e = C.at(-1);
|
|
1419
|
-
re && e ?
|
|
1421
|
+
re && e ? ge(e) : ie(!0);
|
|
1420
1422
|
}
|
|
1421
1423
|
},
|
|
1422
1424
|
...v
|
|
@@ -1426,54 +1428,54 @@ function er(e) {
|
|
|
1426
1428
|
"aria-label": "Clear",
|
|
1427
1429
|
className: "grid size-6 shrink-0 cursor-pointer place-items-center rounded-sm text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3.5",
|
|
1428
1430
|
onClick: () => {
|
|
1429
|
-
|
|
1431
|
+
pe(null), D(""), ae.current?.focus();
|
|
1430
1432
|
},
|
|
1431
|
-
children: /* @__PURE__ */ r(
|
|
1433
|
+
children: /* @__PURE__ */ r(N, { "aria-hidden": "true" })
|
|
1432
1434
|
}) : null,
|
|
1433
1435
|
_ ? null : /* @__PURE__ */ r(A, {
|
|
1434
1436
|
"aria-hidden": "true",
|
|
1435
|
-
className:
|
|
1437
|
+
className: B("mx-1 size-4 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none", w && "rotate-180")
|
|
1436
1438
|
})
|
|
1437
1439
|
]
|
|
1438
1440
|
})
|
|
1439
1441
|
}), /* @__PURE__ */ r(rn, {
|
|
1440
1442
|
align: "start",
|
|
1441
1443
|
sideOffset: 4,
|
|
1442
|
-
className:
|
|
1444
|
+
className: B("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
1443
1445
|
onOpenAutoFocus: (e) => {
|
|
1444
1446
|
e.preventDefault();
|
|
1445
1447
|
},
|
|
1446
1448
|
onInteractOutside: (e) => {
|
|
1447
|
-
e.target instanceof Node &&
|
|
1449
|
+
e.target instanceof Node && oe.current?.contains(e.target) && e.preventDefault();
|
|
1448
1450
|
},
|
|
1449
1451
|
onMouseDown: (e) => {
|
|
1450
1452
|
e.preventDefault();
|
|
1451
1453
|
},
|
|
1452
|
-
children: /* @__PURE__ */ i(
|
|
1454
|
+
children: /* @__PURE__ */ i(z.List, {
|
|
1453
1455
|
"data-slot": "combobox-list",
|
|
1454
1456
|
className: "max-h-72 overflow-y-auto",
|
|
1455
1457
|
children: [
|
|
1456
|
-
_ &&
|
|
1457
|
-
_ &&
|
|
1458
|
+
_ && M.status === "idle" ? /* @__PURE__ */ r(nr, { children: f }) : null,
|
|
1459
|
+
_ && M.status === "loading" ? /* @__PURE__ */ i(nr, { children: [/* @__PURE__ */ r(le, {
|
|
1458
1460
|
"aria-hidden": "true",
|
|
1459
1461
|
className: "size-4 animate-spin"
|
|
1460
1462
|
}), u] }) : null,
|
|
1461
|
-
_ &&
|
|
1463
|
+
_ && M.status === "error" ? /* @__PURE__ */ r(nr, {
|
|
1462
1464
|
tone: "destructive",
|
|
1463
1465
|
children: d
|
|
1464
1466
|
}) : null,
|
|
1465
|
-
!_ ||
|
|
1467
|
+
!_ || M.status === "done" ? /* @__PURE__ */ r(z.Empty, {
|
|
1466
1468
|
className: "px-2.5 py-5 text-center text-sm text-muted-foreground",
|
|
1467
|
-
children:
|
|
1469
|
+
children: de ? null : l
|
|
1468
1470
|
}) : null,
|
|
1469
|
-
(!_ ||
|
|
1471
|
+
(!_ || M.status === "done") && ue.map((e) => /* @__PURE__ */ i(z.Item, {
|
|
1470
1472
|
value: e.value,
|
|
1471
1473
|
keywords: [e.label, e.description ?? ""],
|
|
1472
1474
|
disabled: e.disabled,
|
|
1473
1475
|
onSelect: () => {
|
|
1474
|
-
|
|
1476
|
+
ge(e);
|
|
1475
1477
|
},
|
|
1476
|
-
className:
|
|
1478
|
+
className: B(X, "data-[selected=true]:bg-accent"),
|
|
1477
1479
|
children: [
|
|
1478
1480
|
e.icon ? /* @__PURE__ */ r("span", {
|
|
1479
1481
|
"aria-hidden": "true",
|
|
@@ -1492,23 +1494,23 @@ function er(e) {
|
|
|
1492
1494
|
}),
|
|
1493
1495
|
/* @__PURE__ */ r(k, {
|
|
1494
1496
|
"aria-hidden": "true",
|
|
1495
|
-
className:
|
|
1497
|
+
className: B("size-4 shrink-0 text-brand", ve(e) ? "opacity-100" : "opacity-0")
|
|
1496
1498
|
})
|
|
1497
1499
|
]
|
|
1498
1500
|
}, e.value)),
|
|
1499
|
-
|
|
1501
|
+
de ? /* @__PURE__ */ i(z.Item, {
|
|
1500
1502
|
forceMount: !0,
|
|
1501
1503
|
value: $n,
|
|
1502
1504
|
onSelect: () => {
|
|
1503
|
-
|
|
1505
|
+
ge(de);
|
|
1504
1506
|
},
|
|
1505
|
-
className:
|
|
1506
|
-
children: [/* @__PURE__ */ r(
|
|
1507
|
+
className: B(X, "data-[selected=true]:bg-accent"),
|
|
1508
|
+
children: [/* @__PURE__ */ r(me, {
|
|
1507
1509
|
"aria-hidden": "true",
|
|
1508
1510
|
className: "size-4 shrink-0 text-brand"
|
|
1509
1511
|
}), /* @__PURE__ */ r("span", {
|
|
1510
1512
|
className: "truncate",
|
|
1511
|
-
children: c(
|
|
1513
|
+
children: c(j.trim())
|
|
1512
1514
|
})]
|
|
1513
1515
|
}) : null
|
|
1514
1516
|
]
|
|
@@ -1526,7 +1528,7 @@ function tr(e, t) {
|
|
|
1526
1528
|
function nr({ children: e, tone: t }) {
|
|
1527
1529
|
return /* @__PURE__ */ r("div", {
|
|
1528
1530
|
role: "status",
|
|
1529
|
-
className:
|
|
1531
|
+
className: B("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
1530
1532
|
children: e
|
|
1531
1533
|
});
|
|
1532
1534
|
}
|
|
@@ -1535,22 +1537,22 @@ var rr = {
|
|
|
1535
1537
|
info: {
|
|
1536
1538
|
box: "border-border bg-card",
|
|
1537
1539
|
icon: "text-info",
|
|
1538
|
-
Icon:
|
|
1540
|
+
Icon: j
|
|
1539
1541
|
},
|
|
1540
1542
|
success: {
|
|
1541
1543
|
box: "border-border bg-card",
|
|
1542
1544
|
icon: "text-success",
|
|
1543
|
-
Icon:
|
|
1545
|
+
Icon: se
|
|
1544
1546
|
},
|
|
1545
1547
|
warning: {
|
|
1546
1548
|
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
1547
1549
|
icon: "text-warning",
|
|
1548
|
-
Icon:
|
|
1550
|
+
Icon: _e
|
|
1549
1551
|
},
|
|
1550
1552
|
danger: {
|
|
1551
1553
|
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
1552
1554
|
icon: "text-destructive",
|
|
1553
|
-
Icon:
|
|
1555
|
+
Icon: _e
|
|
1554
1556
|
}
|
|
1555
1557
|
};
|
|
1556
1558
|
function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
@@ -1558,11 +1560,11 @@ function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1558
1560
|
return /* @__PURE__ */ i("div", {
|
|
1559
1561
|
"data-slot": "alert",
|
|
1560
1562
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
1561
|
-
className:
|
|
1563
|
+
className: B("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
1562
1564
|
...s,
|
|
1563
1565
|
children: [/* @__PURE__ */ r("span", {
|
|
1564
1566
|
"aria-hidden": "true",
|
|
1565
|
-
className:
|
|
1567
|
+
className: B("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
1566
1568
|
children: n ?? /* @__PURE__ */ r(u, {})
|
|
1567
1569
|
}), /* @__PURE__ */ i("div", {
|
|
1568
1570
|
className: "flex flex-col gap-0.5",
|
|
@@ -1580,13 +1582,13 @@ function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1580
1582
|
function ar({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1581
1583
|
return /* @__PURE__ */ i("div", {
|
|
1582
1584
|
"data-slot": "empty-state",
|
|
1583
|
-
className:
|
|
1585
|
+
className: B("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
1584
1586
|
...s,
|
|
1585
1587
|
children: [
|
|
1586
1588
|
/* @__PURE__ */ r("span", {
|
|
1587
1589
|
"aria-hidden": "true",
|
|
1588
1590
|
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
1589
|
-
children: n ?? /* @__PURE__ */ r(
|
|
1591
|
+
children: n ?? /* @__PURE__ */ r(me, {})
|
|
1590
1592
|
}),
|
|
1591
1593
|
/* @__PURE__ */ r("p", {
|
|
1592
1594
|
className: "m-0 type-h4",
|
|
@@ -1610,7 +1612,7 @@ function or({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
1610
1612
|
"data-slot": "progress",
|
|
1611
1613
|
value: t,
|
|
1612
1614
|
max: n,
|
|
1613
|
-
className:
|
|
1615
|
+
className: B("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
1614
1616
|
...i,
|
|
1615
1617
|
children: /* @__PURE__ */ r(v.Indicator, {
|
|
1616
1618
|
className: "h-full rounded-full bg-brand transition-[width]",
|
|
@@ -1623,23 +1625,23 @@ function sr({ className: e, ...t }) {
|
|
|
1623
1625
|
return /* @__PURE__ */ r("div", {
|
|
1624
1626
|
"data-slot": "skeleton",
|
|
1625
1627
|
"aria-hidden": "true",
|
|
1626
|
-
className:
|
|
1628
|
+
className: B("animate-pulse rounded-sm bg-muted", e),
|
|
1627
1629
|
...t
|
|
1628
1630
|
});
|
|
1629
1631
|
}
|
|
1630
1632
|
// src/ui/feedback/spinner.component.tsx
|
|
1631
1633
|
function cr({ className: e, label: t = "Loading", ...n }) {
|
|
1632
|
-
return /* @__PURE__ */ r(
|
|
1634
|
+
return /* @__PURE__ */ r(le, {
|
|
1633
1635
|
"data-slot": "spinner",
|
|
1634
1636
|
role: "status",
|
|
1635
1637
|
"aria-label": t,
|
|
1636
|
-
className:
|
|
1638
|
+
className: B("size-4 animate-spin text-muted-foreground", e),
|
|
1637
1639
|
...n
|
|
1638
1640
|
});
|
|
1639
1641
|
}
|
|
1640
1642
|
// src/ui/feedback/toaster.component.tsx
|
|
1641
1643
|
function lr(e) {
|
|
1642
|
-
return /* @__PURE__ */ r(
|
|
1644
|
+
return /* @__PURE__ */ r(Oe, {
|
|
1643
1645
|
className: "toaster group",
|
|
1644
1646
|
toastOptions: { classNames: {
|
|
1645
1647
|
toast: "group flex w-[360px] items-start gap-3 rounded-lg border bg-popover px-4 py-3.5 font-sans text-popover-foreground shadow-lg",
|
|
@@ -1668,7 +1670,7 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1668
1670
|
return /* @__PURE__ */ r($t, { children: /* @__PURE__ */ r("div", {
|
|
1669
1671
|
"data-slot": "file-drop-overlay",
|
|
1670
1672
|
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1671
|
-
className:
|
|
1673
|
+
className: B("group/drop pointer-events-none fixed inset-0 z-1000 grid place-items-center p-4 backdrop-blur-md transition-[opacity,visibility] duration-200 motion-reduce:transition-none", "data-[state=closed]:invisible data-[state=closed]:opacity-0 data-[state=accepted]:bg-brand/15 data-[state=rejected]:bg-destructive/10", l),
|
|
1672
1674
|
children: /* @__PURE__ */ r("div", {
|
|
1673
1675
|
className: "grid size-full place-items-center rounded-2xl border-2 border-dashed border-brand/60 transition-colors group-data-[state=rejected]/drop:border-destructive/60",
|
|
1674
1676
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -1681,7 +1683,7 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1681
1683
|
children: [/* @__PURE__ */ r("span", {
|
|
1682
1684
|
"aria-hidden": "true",
|
|
1683
1685
|
className: "absolute inset-0 rounded-full bg-current opacity-20 motion-safe:animate-ping"
|
|
1684
|
-
}), t ? c ?? /* @__PURE__ */ r(
|
|
1686
|
+
}), t ? c ?? /* @__PURE__ */ r(ve, { "aria-hidden": "true" }) : /* @__PURE__ */ r(te, { "aria-hidden": "true" })]
|
|
1685
1687
|
}),
|
|
1686
1688
|
/* @__PURE__ */ r("span", {
|
|
1687
1689
|
className: "text-2xl font-semibold text-foreground",
|
|
@@ -1698,11 +1700,11 @@ function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1698
1700
|
}
|
|
1699
1701
|
// src/ui/file-drop/page-drop.hook.ts
|
|
1700
1702
|
function pr(e) {
|
|
1701
|
-
let [t, n] =
|
|
1703
|
+
let [t, n] = L({
|
|
1702
1704
|
isOver: !1,
|
|
1703
1705
|
isAccepted: !0
|
|
1704
|
-
}), r =
|
|
1705
|
-
return r.current = e,
|
|
1706
|
+
}), r = I(e);
|
|
1707
|
+
return r.current = e, F(() => {
|
|
1706
1708
|
let e = 0, t = (e) => !r.current.disabled && !!e.dataTransfer?.types.includes("Files"), i = () => {
|
|
1707
1709
|
e = 0, n({
|
|
1708
1710
|
isOver: !1,
|
|
@@ -1739,14 +1741,14 @@ function pr(e) {
|
|
|
1739
1741
|
function mr({ className: e, ...t }) {
|
|
1740
1742
|
return /* @__PURE__ */ r(a.Root, {
|
|
1741
1743
|
"data-slot": "accordion",
|
|
1742
|
-
className:
|
|
1744
|
+
className: B("border-t", e),
|
|
1743
1745
|
...t
|
|
1744
1746
|
});
|
|
1745
1747
|
}
|
|
1746
1748
|
function hr({ className: e, ...t }) {
|
|
1747
1749
|
return /* @__PURE__ */ r(a.Item, {
|
|
1748
1750
|
"data-slot": "accordion-item",
|
|
1749
|
-
className:
|
|
1751
|
+
className: B("border-b", e),
|
|
1750
1752
|
...t
|
|
1751
1753
|
});
|
|
1752
1754
|
}
|
|
@@ -1755,7 +1757,7 @@ function gr({ className: e, children: t, ...n }) {
|
|
|
1755
1757
|
className: "m-0 flex",
|
|
1756
1758
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
1757
1759
|
"data-slot": "accordion-trigger",
|
|
1758
|
-
className:
|
|
1760
|
+
className: B("group flex flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start type-h4 outline-none transition-colors duration-150 hover:text-brand-text focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", e),
|
|
1759
1761
|
...n,
|
|
1760
1762
|
children: [t, /* @__PURE__ */ i("svg", {
|
|
1761
1763
|
viewBox: "0 0 16 16",
|
|
@@ -1787,7 +1789,7 @@ function _r({ className: e, children: t, ...n }) {
|
|
|
1787
1789
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down motion-reduce:animate-none",
|
|
1788
1790
|
...n,
|
|
1789
1791
|
children: /* @__PURE__ */ r("div", {
|
|
1790
|
-
className:
|
|
1792
|
+
className: B("pb-3", e),
|
|
1791
1793
|
children: t
|
|
1792
1794
|
})
|
|
1793
1795
|
});
|
|
@@ -1796,21 +1798,21 @@ function _r({ className: e, children: t, ...n }) {
|
|
|
1796
1798
|
function vr({ className: e, ...t }) {
|
|
1797
1799
|
return /* @__PURE__ */ r("div", {
|
|
1798
1800
|
"data-slot": "card",
|
|
1799
|
-
className:
|
|
1801
|
+
className: B("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1800
1802
|
...t
|
|
1801
1803
|
});
|
|
1802
1804
|
}
|
|
1803
1805
|
function yr({ className: e, ...t }) {
|
|
1804
1806
|
return /* @__PURE__ */ r("div", {
|
|
1805
1807
|
"data-slot": "card-header",
|
|
1806
|
-
className:
|
|
1808
|
+
className: B("flex flex-col gap-1 px-5 pt-5", e),
|
|
1807
1809
|
...t
|
|
1808
1810
|
});
|
|
1809
1811
|
}
|
|
1810
1812
|
function br({ className: e, children: t, ...n }) {
|
|
1811
1813
|
return /* @__PURE__ */ r("h3", {
|
|
1812
1814
|
"data-slot": "card-title",
|
|
1813
|
-
className:
|
|
1815
|
+
className: B("m-0 type-h4", e),
|
|
1814
1816
|
...n,
|
|
1815
1817
|
children: t
|
|
1816
1818
|
});
|
|
@@ -1818,21 +1820,21 @@ function br({ className: e, children: t, ...n }) {
|
|
|
1818
1820
|
function xr({ className: e, ...t }) {
|
|
1819
1821
|
return /* @__PURE__ */ r("p", {
|
|
1820
1822
|
"data-slot": "card-description",
|
|
1821
|
-
className:
|
|
1823
|
+
className: B("m-0 text-[13px] text-muted-foreground", e),
|
|
1822
1824
|
...t
|
|
1823
1825
|
});
|
|
1824
1826
|
}
|
|
1825
1827
|
function Sr({ className: e, ...t }) {
|
|
1826
1828
|
return /* @__PURE__ */ r("div", {
|
|
1827
1829
|
"data-slot": "card-content",
|
|
1828
|
-
className:
|
|
1830
|
+
className: B("px-5 py-4", e),
|
|
1829
1831
|
...t
|
|
1830
1832
|
});
|
|
1831
1833
|
}
|
|
1832
1834
|
function Cr({ className: e, ...t }) {
|
|
1833
1835
|
return /* @__PURE__ */ r("div", {
|
|
1834
1836
|
"data-slot": "card-footer",
|
|
1835
|
-
className:
|
|
1837
|
+
className: B("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1836
1838
|
...t
|
|
1837
1839
|
});
|
|
1838
1840
|
}
|
|
@@ -1840,28 +1842,28 @@ function Cr({ className: e, ...t }) {
|
|
|
1840
1842
|
function wr({ className: e, ...t }) {
|
|
1841
1843
|
return /* @__PURE__ */ r("kbd", {
|
|
1842
1844
|
"data-slot": "kbd",
|
|
1843
|
-
className:
|
|
1845
|
+
className: B("inline-flex h-5 min-w-5 items-center justify-center rounded-[5px] border border-b-2 bg-muted px-1.5 font-mono text-[11px] text-muted-foreground", e),
|
|
1844
1846
|
...t
|
|
1845
1847
|
});
|
|
1846
1848
|
}
|
|
1847
1849
|
// src/ui/layout/resizable.component.tsx
|
|
1848
1850
|
function Tr({ className: e, ...t }) {
|
|
1849
|
-
return /* @__PURE__ */ r(
|
|
1851
|
+
return /* @__PURE__ */ r(ke, {
|
|
1850
1852
|
"data-slot": "resizable-panel-group",
|
|
1851
|
-
className:
|
|
1853
|
+
className: B("flex size-full", e),
|
|
1852
1854
|
...t
|
|
1853
1855
|
});
|
|
1854
1856
|
}
|
|
1855
1857
|
function Er(e) {
|
|
1856
|
-
return /* @__PURE__ */ r(
|
|
1858
|
+
return /* @__PURE__ */ r(Ae, {
|
|
1857
1859
|
"data-slot": "resizable-panel",
|
|
1858
1860
|
...e
|
|
1859
1861
|
});
|
|
1860
1862
|
}
|
|
1861
1863
|
function Dr({ className: e, ...t }) {
|
|
1862
|
-
return /* @__PURE__ */ r(
|
|
1864
|
+
return /* @__PURE__ */ r(je, {
|
|
1863
1865
|
"data-slot": "resizable-handle",
|
|
1864
|
-
className:
|
|
1866
|
+
className: B("relative flex w-px shrink-0 items-center justify-center bg-border outline-none after:absolute after:inset-y-0 after:start-1/2 after:w-2 after:-translate-x-1/2", "hover:bg-ring focus-visible:bg-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full", e),
|
|
1865
1867
|
...t
|
|
1866
1868
|
});
|
|
1867
1869
|
}
|
|
@@ -1869,7 +1871,7 @@ function Dr({ className: e, ...t }) {
|
|
|
1869
1871
|
function Or({ className: e, children: t, ...n }) {
|
|
1870
1872
|
return /* @__PURE__ */ i(b.Root, {
|
|
1871
1873
|
"data-slot": "scroll-area",
|
|
1872
|
-
className:
|
|
1874
|
+
className: B("relative overflow-hidden", e),
|
|
1873
1875
|
...n,
|
|
1874
1876
|
children: [
|
|
1875
1877
|
/* @__PURE__ */ r(b.Viewport, {
|
|
@@ -1886,7 +1888,7 @@ function kr({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1886
1888
|
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1887
1889
|
"data-slot": "scroll-area-scrollbar",
|
|
1888
1890
|
orientation: t,
|
|
1889
|
-
className:
|
|
1891
|
+
className: B("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1890
1892
|
...n,
|
|
1891
1893
|
children: /* @__PURE__ */ r(b.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1892
1894
|
});
|
|
@@ -1897,7 +1899,7 @@ function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1897
1899
|
"data-slot": "separator",
|
|
1898
1900
|
orientation: t,
|
|
1899
1901
|
decorative: n,
|
|
1900
|
-
className:
|
|
1902
|
+
className: B("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1901
1903
|
...i
|
|
1902
1904
|
});
|
|
1903
1905
|
}
|
|
@@ -1908,7 +1910,7 @@ function jr({ className: e, ...t }) {
|
|
|
1908
1910
|
className: "relative w-full overflow-x-auto",
|
|
1909
1911
|
children: /* @__PURE__ */ r("table", {
|
|
1910
1912
|
"data-slot": "table",
|
|
1911
|
-
className:
|
|
1913
|
+
className: B("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1912
1914
|
...t
|
|
1913
1915
|
})
|
|
1914
1916
|
});
|
|
@@ -1928,28 +1930,28 @@ function Nr(e) {
|
|
|
1928
1930
|
function Pr({ className: e, ...t }) {
|
|
1929
1931
|
return /* @__PURE__ */ r("tr", {
|
|
1930
1932
|
"data-slot": "table-row",
|
|
1931
|
-
className:
|
|
1933
|
+
className: B("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1932
1934
|
...t
|
|
1933
1935
|
});
|
|
1934
1936
|
}
|
|
1935
1937
|
function Fr({ className: e, ...t }) {
|
|
1936
1938
|
return /* @__PURE__ */ r("th", {
|
|
1937
1939
|
"data-slot": "table-head",
|
|
1938
|
-
className:
|
|
1940
|
+
className: B("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1939
1941
|
...t
|
|
1940
1942
|
});
|
|
1941
1943
|
}
|
|
1942
1944
|
function Ir({ className: e, ...t }) {
|
|
1943
1945
|
return /* @__PURE__ */ r("td", {
|
|
1944
1946
|
"data-slot": "table-cell",
|
|
1945
|
-
className:
|
|
1947
|
+
className: B("px-3 py-[11px] align-middle", e),
|
|
1946
1948
|
...t
|
|
1947
1949
|
});
|
|
1948
1950
|
}
|
|
1949
1951
|
function Lr({ className: e, ...t }) {
|
|
1950
1952
|
return /* @__PURE__ */ r("caption", {
|
|
1951
1953
|
"data-slot": "table-caption",
|
|
1952
|
-
className:
|
|
1954
|
+
className: B("mt-3 text-xs text-muted-foreground", e),
|
|
1953
1955
|
...t
|
|
1954
1956
|
});
|
|
1955
1957
|
}
|
|
@@ -1964,14 +1966,14 @@ function Rr({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
|
1964
1966
|
function zr({ className: e, ...t }) {
|
|
1965
1967
|
return /* @__PURE__ */ r("ol", {
|
|
1966
1968
|
"data-slot": "breadcrumb-list",
|
|
1967
|
-
className:
|
|
1969
|
+
className: B("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1968
1970
|
...t
|
|
1969
1971
|
});
|
|
1970
1972
|
}
|
|
1971
1973
|
function Br({ className: e, ...t }) {
|
|
1972
1974
|
return /* @__PURE__ */ r("li", {
|
|
1973
1975
|
"data-slot": "breadcrumb-item",
|
|
1974
|
-
className:
|
|
1976
|
+
className: B("inline-flex items-center gap-2", e),
|
|
1975
1977
|
...t
|
|
1976
1978
|
});
|
|
1977
1979
|
}
|
|
@@ -1979,7 +1981,7 @@ function Vr({ asChild: e = !1, className: t, ...n }) {
|
|
|
1979
1981
|
let i = e ? C.Root : "a";
|
|
1980
1982
|
return /* @__PURE__ */ r(i, {
|
|
1981
1983
|
"data-slot": "breadcrumb-link",
|
|
1982
|
-
className:
|
|
1984
|
+
className: B("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1983
1985
|
...n
|
|
1984
1986
|
});
|
|
1985
1987
|
}
|
|
@@ -1987,7 +1989,7 @@ function Hr({ className: e, ...t }) {
|
|
|
1987
1989
|
return /* @__PURE__ */ r("span", {
|
|
1988
1990
|
"data-slot": "breadcrumb-page",
|
|
1989
1991
|
"aria-current": "page",
|
|
1990
|
-
className:
|
|
1992
|
+
className: B("font-medium text-foreground", e),
|
|
1991
1993
|
...t
|
|
1992
1994
|
});
|
|
1993
1995
|
}
|
|
@@ -2009,7 +2011,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2009
2011
|
viewBox: "0 0 24 24",
|
|
2010
2012
|
fill: "currentColor",
|
|
2011
2013
|
"aria-hidden": "true",
|
|
2012
|
-
className:
|
|
2014
|
+
className: B("group/menu-icon size-5", t),
|
|
2013
2015
|
...n,
|
|
2014
2016
|
children: [
|
|
2015
2017
|
/* @__PURE__ */ r("rect", {
|
|
@@ -2018,7 +2020,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2018
2020
|
width: "16",
|
|
2019
2021
|
height: "2",
|
|
2020
2022
|
rx: "1",
|
|
2021
|
-
className:
|
|
2023
|
+
className: B(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
2022
2024
|
}),
|
|
2023
2025
|
/* @__PURE__ */ r("rect", {
|
|
2024
2026
|
x: "4",
|
|
@@ -2026,7 +2028,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2026
2028
|
width: "16",
|
|
2027
2029
|
height: "2",
|
|
2028
2030
|
rx: "1",
|
|
2029
|
-
className:
|
|
2031
|
+
className: B(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
2030
2032
|
}),
|
|
2031
2033
|
/* @__PURE__ */ r("rect", {
|
|
2032
2034
|
x: "4",
|
|
@@ -2034,7 +2036,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2034
2036
|
width: "16",
|
|
2035
2037
|
height: "2",
|
|
2036
2038
|
rx: "1",
|
|
2037
|
-
className:
|
|
2039
|
+
className: B(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
2038
2040
|
})
|
|
2039
2041
|
]
|
|
2040
2042
|
});
|
|
@@ -2043,7 +2045,7 @@ function Gr({ open: e, className: t, ...n }) {
|
|
|
2043
2045
|
function Kr({ className: e, ...t }) {
|
|
2044
2046
|
return /* @__PURE__ */ r(m.Root, {
|
|
2045
2047
|
"data-slot": "menubar",
|
|
2046
|
-
className:
|
|
2048
|
+
className: B("flex items-center gap-0.5", e),
|
|
2047
2049
|
...t
|
|
2048
2050
|
});
|
|
2049
2051
|
}
|
|
@@ -2051,7 +2053,7 @@ var qr = m.Menu;
|
|
|
2051
2053
|
function Jr({ className: e, ...t }) {
|
|
2052
2054
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
2053
2055
|
"data-slot": "menubar-trigger",
|
|
2054
|
-
className:
|
|
2056
|
+
className: B("flex h-[26px] cursor-default select-none items-center rounded-sm px-2 text-[13px] outline-none hover:bg-accent focus:bg-accent data-[state=open]:bg-accent", e),
|
|
2055
2057
|
...t
|
|
2056
2058
|
});
|
|
2057
2059
|
}
|
|
@@ -2060,28 +2062,28 @@ function Yr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
|
2060
2062
|
"data-slot": "menubar-content",
|
|
2061
2063
|
align: t,
|
|
2062
2064
|
sideOffset: n,
|
|
2063
|
-
className:
|
|
2065
|
+
className: B("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
2064
2066
|
...i
|
|
2065
2067
|
}) });
|
|
2066
2068
|
}
|
|
2067
2069
|
function Xr({ className: e, ...t }) {
|
|
2068
2070
|
return /* @__PURE__ */ r(m.Item, {
|
|
2069
2071
|
"data-slot": "menubar-item",
|
|
2070
|
-
className:
|
|
2072
|
+
className: B("relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-1.5 text-[13px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
2071
2073
|
...t
|
|
2072
2074
|
});
|
|
2073
2075
|
}
|
|
2074
2076
|
function Zr({ className: e, ...t }) {
|
|
2075
2077
|
return /* @__PURE__ */ r("span", {
|
|
2076
2078
|
"data-slot": "menubar-shortcut",
|
|
2077
|
-
className:
|
|
2079
|
+
className: B("ms-auto text-xs text-muted-foreground", e),
|
|
2078
2080
|
...t
|
|
2079
2081
|
});
|
|
2080
2082
|
}
|
|
2081
2083
|
function Qr({ className: e, ...t }) {
|
|
2082
2084
|
return /* @__PURE__ */ r(m.Separator, {
|
|
2083
2085
|
"data-slot": "menubar-separator",
|
|
2084
|
-
className:
|
|
2086
|
+
className: B("-mx-1 my-1 h-px bg-border", e),
|
|
2085
2087
|
...t
|
|
2086
2088
|
});
|
|
2087
2089
|
}
|
|
@@ -2089,7 +2091,7 @@ function Qr({ className: e, ...t }) {
|
|
|
2089
2091
|
function $r({ className: e, children: t, ...n }) {
|
|
2090
2092
|
return /* @__PURE__ */ i(h.Root, {
|
|
2091
2093
|
"data-slot": "navigation-menu",
|
|
2092
|
-
className:
|
|
2094
|
+
className: B("relative flex items-center", e),
|
|
2093
2095
|
...n,
|
|
2094
2096
|
children: [t, /* @__PURE__ */ r("div", {
|
|
2095
2097
|
className: "absolute start-0 top-full flex justify-center",
|
|
@@ -2100,7 +2102,7 @@ function $r({ className: e, children: t, ...n }) {
|
|
|
2100
2102
|
function ei({ className: e, ...t }) {
|
|
2101
2103
|
return /* @__PURE__ */ r(h.List, {
|
|
2102
2104
|
"data-slot": "navigation-menu-list",
|
|
2103
|
-
className:
|
|
2105
|
+
className: B("m-0 flex list-none items-center gap-1 p-0", e),
|
|
2104
2106
|
...t
|
|
2105
2107
|
});
|
|
2106
2108
|
}
|
|
@@ -2108,7 +2110,7 @@ var ti = h.Item, ni = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer
|
|
|
2108
2110
|
function ri({ className: e, children: t, ...n }) {
|
|
2109
2111
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
2110
2112
|
"data-slot": "navigation-menu-trigger",
|
|
2111
|
-
className:
|
|
2113
|
+
className: B(ni, "group", e),
|
|
2112
2114
|
...n,
|
|
2113
2115
|
children: [t, /* @__PURE__ */ r(A, {
|
|
2114
2116
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
@@ -2119,14 +2121,14 @@ function ri({ className: e, children: t, ...n }) {
|
|
|
2119
2121
|
function ii({ className: e, ...t }) {
|
|
2120
2122
|
return /* @__PURE__ */ r(h.Content, {
|
|
2121
2123
|
"data-slot": "navigation-menu-content",
|
|
2122
|
-
className:
|
|
2124
|
+
className: B("top-0 start-0 w-full origin-top p-2 md:absolute md:w-auto", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
2123
2125
|
...t
|
|
2124
2126
|
});
|
|
2125
2127
|
}
|
|
2126
2128
|
function ai({ className: e, ...t }) {
|
|
2127
2129
|
return /* @__PURE__ */ r(h.Link, {
|
|
2128
2130
|
"data-slot": "navigation-menu-link",
|
|
2129
|
-
className:
|
|
2131
|
+
className: B(ni, e),
|
|
2130
2132
|
...t
|
|
2131
2133
|
});
|
|
2132
2134
|
}
|
|
@@ -2136,11 +2138,11 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2136
2138
|
return /* @__PURE__ */ i("nav", {
|
|
2137
2139
|
"data-slot": "pagination",
|
|
2138
2140
|
"aria-label": "Pagination",
|
|
2139
|
-
className:
|
|
2141
|
+
className: B("flex items-center gap-1", o),
|
|
2140
2142
|
children: [
|
|
2141
2143
|
/* @__PURE__ */ r("button", {
|
|
2142
2144
|
type: "button",
|
|
2143
|
-
className:
|
|
2145
|
+
className: q({
|
|
2144
2146
|
variant: "ghost",
|
|
2145
2147
|
size: "sm"
|
|
2146
2148
|
}),
|
|
@@ -2152,7 +2154,7 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2152
2154
|
type: "button",
|
|
2153
2155
|
"aria-current": t === e ? "page" : void 0,
|
|
2154
2156
|
"aria-label": `Page ${t}`,
|
|
2155
|
-
className:
|
|
2157
|
+
className: q({
|
|
2156
2158
|
variant: t === e ? "outline" : "ghost",
|
|
2157
2159
|
size: "icon-sm"
|
|
2158
2160
|
}),
|
|
@@ -2161,7 +2163,7 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2161
2163
|
}, t)),
|
|
2162
2164
|
/* @__PURE__ */ r("button", {
|
|
2163
2165
|
type: "button",
|
|
2164
|
-
className:
|
|
2166
|
+
className: q({
|
|
2165
2167
|
variant: "ghost",
|
|
2166
2168
|
size: "sm"
|
|
2167
2169
|
}),
|
|
@@ -2173,75 +2175,106 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2173
2175
|
});
|
|
2174
2176
|
}
|
|
2175
2177
|
// src/ui/navigation/tabs.component.tsx
|
|
2176
|
-
var si =
|
|
2177
|
-
function
|
|
2178
|
-
let i = Math.abs(e) * (t > 0 ? n / t : 1), a = Math.min(Math.max(i,
|
|
2178
|
+
var si = be(null), ci = be("pill"), li = 24;
|
|
2179
|
+
function ui(e, t, n, r) {
|
|
2180
|
+
let i = Math.abs(e) * (t > 0 ? n / t : 1), a = Math.min(Math.max(i, li), Math.max(n / 2, li));
|
|
2179
2181
|
return Math.round(r ? a : -a);
|
|
2180
2182
|
}
|
|
2181
|
-
function
|
|
2182
|
-
let l =
|
|
2183
|
+
function di({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2184
|
+
let l = I(null), u = I(i ?? a), [d, f] = L(), p = I(void 0), m = I(void 0), [h, g] = L(i ?? a), _ = P((e) => {
|
|
2183
2185
|
let t = l.current, n = [...t?.querySelectorAll("[data-slot=tabs-trigger]") ?? []], r = n.find((e) => e.dataset.value === u.current), i = n.find((t) => t.dataset.value === e);
|
|
2184
|
-
if (u.current = e,
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2186
|
+
if (u.current = e, g(e), !t || !r || !i || r === i) return;
|
|
2187
|
+
let a = t.ownerDocument.getElementById(r.getAttribute("aria-controls") ?? "");
|
|
2188
|
+
p.current = a?.offsetHeight;
|
|
2189
|
+
let o = s === "vertical", c = t.querySelector("[data-slot=tabs-list]");
|
|
2190
|
+
if (c?.dataset.variant === "outline") {
|
|
2191
|
+
let e = a?.querySelector(":scope > [data-slot=tabs-content-body]");
|
|
2192
|
+
m.current = a && e ? {
|
|
2193
|
+
node: e.cloneNode(!0),
|
|
2194
|
+
top: e.offsetTop,
|
|
2195
|
+
left: e.offsetLeft,
|
|
2196
|
+
width: e.offsetWidth,
|
|
2197
|
+
fromEdge: r.dataset.edge,
|
|
2198
|
+
toEdge: i.dataset.edge,
|
|
2199
|
+
vertical: o
|
|
2200
|
+
} : void 0, f({
|
|
2201
|
+
size: 0,
|
|
2202
|
+
direction: "z"
|
|
2203
|
+
});
|
|
2204
|
+
return;
|
|
2205
|
+
}
|
|
2206
|
+
let d = o ? i.offsetTop - r.offsetTop : i.offsetLeft - r.offsetLeft, h = n.indexOf(i) > n.indexOf(r);
|
|
2207
|
+
f({
|
|
2208
|
+
size: ui(d, (o ? c?.offsetHeight : c?.offsetWidth) ?? 0, o ? t.offsetHeight : t.offsetWidth, h),
|
|
2209
|
+
direction: o ? "y" : "x"
|
|
2210
|
+
});
|
|
2188
2211
|
}, [s]);
|
|
2189
|
-
return
|
|
2190
|
-
i !== void 0 && i !== u.current && g(i);
|
|
2191
|
-
}, [i, g]), /* @__PURE__ */ r(T.Root, {
|
|
2212
|
+
return i !== void 0 && i !== u.current && _(i), /* @__PURE__ */ r(T.Root, {
|
|
2192
2213
|
ref: l,
|
|
2193
2214
|
"data-slot": "tabs",
|
|
2194
|
-
"data-direction": d
|
|
2215
|
+
"data-direction": d?.direction,
|
|
2195
2216
|
style: d === void 0 ? t : {
|
|
2196
2217
|
...t,
|
|
2197
|
-
"--tab-shift": `${String(d)}px`
|
|
2218
|
+
"--tab-shift": `${String(d.size)}px`
|
|
2198
2219
|
},
|
|
2199
2220
|
value: i,
|
|
2200
2221
|
defaultValue: a,
|
|
2201
2222
|
orientation: s,
|
|
2202
2223
|
onValueChange: (e) => {
|
|
2203
|
-
|
|
2224
|
+
_(e), o?.(e);
|
|
2204
2225
|
},
|
|
2205
|
-
className:
|
|
2226
|
+
className: B("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2206
2227
|
...c,
|
|
2207
2228
|
children: /* @__PURE__ */ r(si, {
|
|
2208
2229
|
value: {
|
|
2209
|
-
active:
|
|
2210
|
-
fromHeightRef: p
|
|
2230
|
+
active: h,
|
|
2231
|
+
fromHeightRef: p,
|
|
2232
|
+
ghostRef: m
|
|
2211
2233
|
},
|
|
2212
2234
|
children: n
|
|
2213
2235
|
})
|
|
2214
2236
|
});
|
|
2215
2237
|
}
|
|
2216
|
-
var
|
|
2238
|
+
var fi = {
|
|
2217
2239
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2218
2240
|
underline: "w-full gap-5 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:gap-1 data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e",
|
|
2219
|
-
outline: "w-full gap-1
|
|
2220
|
-
},
|
|
2241
|
+
outline: "z-1 w-full gap-1 data-[orientation=vertical]:w-auto"
|
|
2242
|
+
}, pi = {
|
|
2221
2243
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2222
2244
|
underline: "bg-brand group-data-[orientation=horizontal]/tabs-list:top-auto group-data-[orientation=horizontal]/tabs-list:-bottom-px group-data-[orientation=horizontal]/tabs-list:h-0.5 group-data-[orientation=vertical]/tabs-list:left-auto group-data-[orientation=vertical]/tabs-list:-end-px group-data-[orientation=vertical]/tabs-list:w-0.5",
|
|
2223
|
-
outline: "
|
|
2245
|
+
outline: "hidden"
|
|
2224
2246
|
};
|
|
2225
|
-
function
|
|
2226
|
-
let
|
|
2247
|
+
function mi({ className: e, variant: t = "pill", fitted: n = !1, flap: a = !1, children: o, ...s }) {
|
|
2248
|
+
let c = ut("[data-slot=tabs-trigger][data-state=active]");
|
|
2227
2249
|
return /* @__PURE__ */ i(T.List, {
|
|
2228
|
-
ref:
|
|
2250
|
+
ref: c,
|
|
2229
2251
|
"data-slot": "tabs-list",
|
|
2230
2252
|
"data-variant": t,
|
|
2231
|
-
|
|
2232
|
-
|
|
2253
|
+
"data-motion": a ? "flap" : "raise",
|
|
2254
|
+
className: B("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", fi[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2255
|
+
...s,
|
|
2233
2256
|
children: [/* @__PURE__ */ r("span", {
|
|
2234
2257
|
"aria-hidden": "true",
|
|
2235
2258
|
"data-slot": "tabs-indicator",
|
|
2236
|
-
className:
|
|
2237
|
-
}),
|
|
2259
|
+
className: B(dt, pi[t])
|
|
2260
|
+
}), /* @__PURE__ */ r(ci, {
|
|
2261
|
+
value: t,
|
|
2262
|
+
children: o
|
|
2263
|
+
})]
|
|
2238
2264
|
});
|
|
2239
2265
|
}
|
|
2240
|
-
function
|
|
2266
|
+
var hi = "isolate before:absolute before:-z-10 before:rounded-none before:border before:border-border before:bg-background before:transition-[top,inset-inline-start,border-width,transform,border-radius,border-top-color,border-inline-start-color,bottom,inset-inline-end] before:duration-250 motion-reduce:before:transition-none before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-end,step-end] data-[state=active]:before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-start,step-start] data-[orientation=horizontal]:before:inset-x-0 data-[orientation=horizontal]:before:bottom-0 data-[orientation=horizontal]:before:top-full data-[orientation=horizontal]:before:border-y-0 data-[orientation=horizontal]:data-[state=active]:before:top-0 data-[orientation=horizontal]:data-[state=active]:before:-bottom-px data-[orientation=horizontal]:data-[state=active]:before:border-t-2 data-[orientation=horizontal]:data-[state=active]:before:rounded-t-md data-[orientation=horizontal]:data-[state=active]:before:border-t-brand data-[orientation=vertical]:before:inset-y-0 data-[orientation=vertical]:before:end-0 data-[orientation=vertical]:before:start-full data-[orientation=vertical]:before:border-x-0 data-[orientation=vertical]:data-[state=active]:before:start-0 data-[orientation=vertical]:data-[state=active]:before:-end-px data-[orientation=vertical]:data-[state=active]:before:border-s-2 data-[orientation=vertical]:data-[state=active]:before:rounded-s-md data-[orientation=vertical]:data-[state=active]:before:border-s-brand data-[orientation=horizontal]:[perspective:300px] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:top-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:bottom-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:-bottom-px! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:border-t-2! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:origin-bottom data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:[transform:rotateX(90deg)] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:[transform:rotateX(0deg)] data-[orientation=horizontal]:focus-visible:before:bg-linear-to-b data-[orientation=vertical]:focus-visible:before:bg-linear-to-r rtl:data-[orientation=vertical]:focus-visible:before:bg-linear-to-l focus-visible:before:from-brand/25 focus-visible:before:to-background data-[edge=start]:before:rounded-ss-md data-[edge=end]:data-[orientation=horizontal]:before:rounded-se-md data-[edge=end]:data-[orientation=vertical]:before:rounded-es-md";
|
|
2267
|
+
function gi(e) {
|
|
2241
2268
|
e.preventDefault(), e.stopPropagation();
|
|
2242
2269
|
}
|
|
2243
|
-
function
|
|
2270
|
+
function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2271
|
+
let u = Se(ci), d = P((e) => {
|
|
2272
|
+
if (!e || u !== "outline") return;
|
|
2273
|
+
let t = e.parentElement, n = e.dataset.orientation === "vertical", r = n ? e.offsetTop : e.offsetLeft, i = n ? e.offsetHeight : e.offsetWidth, a = (n ? t?.clientHeight : t?.clientWidth) ?? 0;
|
|
2274
|
+
r <= 0 ? e.dataset.edge = "start" : a > 0 && r + i >= a - 1 ? e.dataset.edge = "end" : delete e.dataset.edge;
|
|
2275
|
+
}, [u]);
|
|
2244
2276
|
return /* @__PURE__ */ i(T.Trigger, {
|
|
2277
|
+
ref: d,
|
|
2245
2278
|
"data-slot": "tabs-trigger",
|
|
2246
2279
|
"data-value": c,
|
|
2247
2280
|
value: c,
|
|
@@ -2250,7 +2283,7 @@ function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2250
2283
|
onKeyDown: (e) => {
|
|
2251
2284
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2252
2285
|
},
|
|
2253
|
-
className:
|
|
2286
|
+
className: B("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" && hi, e),
|
|
2254
2287
|
...l,
|
|
2255
2288
|
children: [
|
|
2256
2289
|
s,
|
|
@@ -2262,74 +2295,133 @@ function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2262
2295
|
n ? /* @__PURE__ */ r("span", {
|
|
2263
2296
|
"aria-hidden": "true",
|
|
2264
2297
|
"data-slot": "tabs-close",
|
|
2265
|
-
onPointerDown:
|
|
2266
|
-
onMouseDown:
|
|
2298
|
+
onPointerDown: gi,
|
|
2299
|
+
onMouseDown: gi,
|
|
2267
2300
|
onClick: (e) => {
|
|
2268
|
-
|
|
2301
|
+
gi(e), n();
|
|
2269
2302
|
},
|
|
2270
2303
|
className: "-me-1 grid size-[18px] place-items-center rounded-sm opacity-50 transition-opacity hover:bg-muted hover:opacity-100 group-data-[state=active]/tab:opacity-80 [&_svg]:size-3",
|
|
2271
|
-
children: /* @__PURE__ */ r(
|
|
2304
|
+
children: /* @__PURE__ */ r(N, {})
|
|
2272
2305
|
}) : null
|
|
2273
2306
|
]
|
|
2274
2307
|
});
|
|
2275
2308
|
}
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2309
|
+
var vi = [
|
|
2310
|
+
"borderTopLeftRadius",
|
|
2311
|
+
"borderTopRightRadius",
|
|
2312
|
+
"borderBottomRightRadius",
|
|
2313
|
+
"borderBottomLeftRadius"
|
|
2314
|
+
];
|
|
2315
|
+
function yi(e, t, n) {
|
|
2316
|
+
if (e === "start") return +!!n;
|
|
2317
|
+
if (e === "end") return t ? n ? 2 : 3 : +!n;
|
|
2318
|
+
}
|
|
2319
|
+
function bi(e, t) {
|
|
2320
|
+
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...vi.map((e) => Number(n[e].replace("px", "")))), a = yi(t.fromEdge, t.vertical, r), o = yi(t.toEdge, t.vertical, r);
|
|
2321
|
+
if (i === 0 || a === o) return;
|
|
2322
|
+
let s = `${String(i)}px`, c = (t, n, r, i) => {
|
|
2323
|
+
let a = t === void 0 ? void 0 : vi[t];
|
|
2324
|
+
a && e.animate([{ [a]: n }, { [a]: r }], i);
|
|
2325
|
+
};
|
|
2326
|
+
c(a, "0px", s, {
|
|
2327
|
+
delay: 150,
|
|
2328
|
+
duration: 100,
|
|
2329
|
+
easing: "ease-out",
|
|
2330
|
+
fill: "backwards"
|
|
2331
|
+
}), c(o, s, "0px", {
|
|
2332
|
+
duration: 80,
|
|
2333
|
+
easing: "ease-out"
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
function xi(e, t) {
|
|
2337
|
+
for (let t of e.querySelectorAll("[data-slot=tabs-content-ghost]")) t.remove();
|
|
2338
|
+
let { node: n } = t;
|
|
2339
|
+
n.dataset.slot = "tabs-content-ghost", n.inert = !0, n.setAttribute("aria-hidden", "true"), Object.assign(n.style, {
|
|
2340
|
+
position: "absolute",
|
|
2341
|
+
top: `${String(t.top)}px`,
|
|
2342
|
+
left: `${String(t.left)}px`,
|
|
2343
|
+
width: `${String(t.width)}px`,
|
|
2344
|
+
animation: "none",
|
|
2345
|
+
pointerEvents: "none"
|
|
2346
|
+
}), e.append(n), bi(e, t);
|
|
2347
|
+
let r = n.animate([{
|
|
2348
|
+
opacity: 1,
|
|
2349
|
+
scale: 1,
|
|
2350
|
+
filter: "blur(0)"
|
|
2351
|
+
}, {
|
|
2352
|
+
opacity: 0,
|
|
2353
|
+
scale: 1.1,
|
|
2354
|
+
filter: "blur(4px)"
|
|
2355
|
+
}], {
|
|
2356
|
+
duration: 250,
|
|
2357
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
2358
|
+
fill: "forwards"
|
|
2359
|
+
});
|
|
2360
|
+
r.addEventListener("finish", () => {
|
|
2361
|
+
n.remove();
|
|
2362
|
+
}), r.addEventListener("cancel", () => {
|
|
2363
|
+
n.remove();
|
|
2364
|
+
});
|
|
2365
|
+
}
|
|
2366
|
+
function Si({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2367
|
+
let a = Se(si), o = I(null), s = a?.active === i.value;
|
|
2368
|
+
return Te(() => {
|
|
2279
2369
|
let e = o.current, t = a?.fromHeightRef.current;
|
|
2280
2370
|
if (!s || !e || !a || t === void 0 || (a.fromHeightRef.current = void 0, typeof e.animate != "function" || matchMedia("(prefers-reduced-motion: reduce)").matches)) return;
|
|
2281
|
-
|
|
2282
|
-
|
|
2371
|
+
let n = a.ghostRef.current;
|
|
2372
|
+
a.ghostRef.current = void 0;
|
|
2373
|
+
function r(r) {
|
|
2374
|
+
e && n && xi(e, n), e && Math.abs(r - (t ?? r)) >= 1 && e.animate([{
|
|
2283
2375
|
minHeight: `${String(t)}px`,
|
|
2284
2376
|
maxHeight: `${String(t)}px`
|
|
2285
2377
|
}, {
|
|
2286
|
-
minHeight: `${String(
|
|
2287
|
-
maxHeight: `${String(
|
|
2378
|
+
minHeight: `${String(r)}px`,
|
|
2379
|
+
maxHeight: `${String(r)}px`
|
|
2288
2380
|
}], {
|
|
2289
2381
|
duration: 250,
|
|
2290
2382
|
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2291
2383
|
});
|
|
2292
2384
|
}
|
|
2293
2385
|
if (e.offsetHeight > 0) {
|
|
2294
|
-
|
|
2386
|
+
r(e.offsetHeight);
|
|
2295
2387
|
return;
|
|
2296
2388
|
}
|
|
2297
|
-
let
|
|
2298
|
-
e.offsetHeight !== 0 && (
|
|
2389
|
+
let i = new ResizeObserver(() => {
|
|
2390
|
+
e.offsetHeight !== 0 && (i.disconnect(), r(e.offsetHeight));
|
|
2299
2391
|
});
|
|
2300
|
-
return
|
|
2301
|
-
|
|
2392
|
+
return i.observe(e), () => {
|
|
2393
|
+
i.disconnect();
|
|
2302
2394
|
};
|
|
2303
2395
|
}, [s, a]), /* @__PURE__ */ r(T.Content, {
|
|
2304
2396
|
ref: o,
|
|
2305
2397
|
"data-slot": "tabs-content",
|
|
2306
|
-
className:
|
|
2398
|
+
className: B("relative flex-1 overflow-clip outline-none", "group-has-[[data-variant=outline]>[data-state=active][data-edge=start]]/tabs:rounded-ss-none", "group-data-[orientation=horizontal]/tabs:group-has-[[data-variant=outline]>[data-state=active][data-edge=end]]/tabs:rounded-se-none", "group-data-[orientation=vertical]/tabs:group-has-[[data-variant=outline]>[data-state=active][data-edge=end]]/tabs:rounded-es-none", e),
|
|
2307
2399
|
...i,
|
|
2308
2400
|
children: /* @__PURE__ */ r("div", {
|
|
2309
2401
|
"data-slot": "tabs-content-body",
|
|
2310
|
-
className:
|
|
2402
|
+
className: B("group-data-[direction=x]/tabs:animate-tab-in-x group-data-[direction=y]/tabs:animate-tab-in-y group-data-[direction=z]/tabs:animate-tab-in-z motion-reduce:animate-none", t),
|
|
2311
2403
|
children: n
|
|
2312
2404
|
})
|
|
2313
2405
|
});
|
|
2314
2406
|
}
|
|
2315
2407
|
// src/ui/navigation/stepper.component.tsx
|
|
2316
|
-
var
|
|
2408
|
+
var Ci = {
|
|
2317
2409
|
done: "bg-primary text-primary-foreground",
|
|
2318
2410
|
current: "border-2 border-primary text-brand-text",
|
|
2319
2411
|
upcoming: "bg-muted text-muted-foreground"
|
|
2320
2412
|
};
|
|
2321
|
-
function
|
|
2413
|
+
function wi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2322
2414
|
let l = n === "vertical";
|
|
2323
2415
|
return /* @__PURE__ */ r("ol", {
|
|
2324
2416
|
"data-slot": "stepper",
|
|
2325
2417
|
"data-orientation": n,
|
|
2326
2418
|
"aria-label": s,
|
|
2327
|
-
className:
|
|
2419
|
+
className: B("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
2328
2420
|
...c,
|
|
2329
2421
|
children: e.map((n, o) => {
|
|
2330
2422
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2331
2423
|
"aria-hidden": "true",
|
|
2332
|
-
className:
|
|
2424
|
+
className: B("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", Ci[s]),
|
|
2333
2425
|
children: s === "done" ? /* @__PURE__ */ r(k, {
|
|
2334
2426
|
className: "size-3.5",
|
|
2335
2427
|
strokeWidth: 2.5
|
|
@@ -2337,7 +2429,7 @@ function vi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2337
2429
|
}), d = /* @__PURE__ */ i("span", {
|
|
2338
2430
|
className: "flex min-w-0 flex-col",
|
|
2339
2431
|
children: [/* @__PURE__ */ i("span", {
|
|
2340
|
-
className:
|
|
2432
|
+
className: B("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
2341
2433
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
2342
2434
|
className: "sr-only",
|
|
2343
2435
|
children: ", done"
|
|
@@ -2358,25 +2450,25 @@ function vi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2358
2450
|
return /* @__PURE__ */ i("li", {
|
|
2359
2451
|
"data-state": s,
|
|
2360
2452
|
"aria-current": s === "current" ? "step" : void 0,
|
|
2361
|
-
className:
|
|
2453
|
+
className: B("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
2362
2454
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
2363
2455
|
"aria-hidden": "true",
|
|
2364
|
-
className:
|
|
2456
|
+
className: B("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")
|
|
2365
2457
|
})]
|
|
2366
2458
|
}, n.title);
|
|
2367
2459
|
})
|
|
2368
2460
|
});
|
|
2369
2461
|
}
|
|
2370
2462
|
// src/ui/presence/presence.recipe.ts
|
|
2371
|
-
var
|
|
2463
|
+
var Ti = {
|
|
2372
2464
|
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2373
2465
|
scale: "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
2374
2466
|
drop: "data-[state=open]:animate-drop-in data-[state=closed]:animate-drop-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
2375
2467
|
};
|
|
2376
2468
|
// src/ui/presence/presence.component.tsx
|
|
2377
|
-
function
|
|
2378
|
-
let [s, c] =
|
|
2379
|
-
return e && !s && c(!0),
|
|
2469
|
+
function Ei({ present: e, animation: t = "fade", unmountOnExit: n = !0, className: i, onAnimationEnd: a, ...o }) {
|
|
2470
|
+
let [s, c] = L(e), l = I(null);
|
|
2471
|
+
return e && !s && c(!0), Te(() => {
|
|
2380
2472
|
if (e || !s) return;
|
|
2381
2473
|
let t = l.current;
|
|
2382
2474
|
t && getComputedStyle(t).animationName !== "none" || c(!1);
|
|
@@ -2385,7 +2477,7 @@ function bi({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2385
2477
|
"data-slot": "presence",
|
|
2386
2478
|
"data-state": e ? "open" : "closed",
|
|
2387
2479
|
hidden: !e && !s,
|
|
2388
|
-
className:
|
|
2480
|
+
className: B(Ti[t], i),
|
|
2389
2481
|
onAnimationEnd: (t) => {
|
|
2390
2482
|
a?.(t), !e && t.target === t.currentTarget && c(!1);
|
|
2391
2483
|
},
|
|
@@ -2393,12 +2485,12 @@ function bi({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2393
2485
|
});
|
|
2394
2486
|
}
|
|
2395
2487
|
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2396
|
-
function
|
|
2488
|
+
function Di({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearable: o = !0, clearLabel: s = "Clear selection", className: c }) {
|
|
2397
2489
|
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2398
2490
|
role: "toolbar",
|
|
2399
2491
|
"aria-label": a,
|
|
2400
2492
|
"data-slot": "bulk-action-bar",
|
|
2401
|
-
className:
|
|
2493
|
+
className: B("sticky top-0 z-10 flex items-center gap-2 rounded-md border bg-background px-3 py-1.5 shadow-sm", c),
|
|
2402
2494
|
children: [
|
|
2403
2495
|
/* @__PURE__ */ r("span", {
|
|
2404
2496
|
className: "text-sm font-medium tabular-nums",
|
|
@@ -2408,22 +2500,22 @@ function xi({ selection: e, children: t, countLabel: n = (e) => `${e} selected`,
|
|
|
2408
2500
|
className: "flex flex-1 flex-wrap items-center gap-1.5",
|
|
2409
2501
|
children: t
|
|
2410
2502
|
}),
|
|
2411
|
-
/* @__PURE__ */ r(
|
|
2503
|
+
o && /* @__PURE__ */ r(J, {
|
|
2412
2504
|
variant: "ghost",
|
|
2413
2505
|
size: "icon-sm",
|
|
2414
|
-
"aria-label":
|
|
2506
|
+
"aria-label": s,
|
|
2415
2507
|
onClick: e.clear,
|
|
2416
|
-
children: /* @__PURE__ */ r(
|
|
2508
|
+
children: /* @__PURE__ */ r(N, {})
|
|
2417
2509
|
})
|
|
2418
2510
|
]
|
|
2419
2511
|
});
|
|
2420
2512
|
}
|
|
2421
2513
|
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2422
|
-
function
|
|
2514
|
+
function Oi({ selection: e, filters: t = [], children: n, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2423
2515
|
return /* @__PURE__ */ i("div", {
|
|
2424
2516
|
"data-slot": "select-all-checkbox",
|
|
2425
|
-
className:
|
|
2426
|
-
children: [/* @__PURE__ */ r(
|
|
2517
|
+
className: B("inline-flex items-center gap-0.5", l),
|
|
2518
|
+
children: [/* @__PURE__ */ r(at, {
|
|
2427
2519
|
"aria-label": a,
|
|
2428
2520
|
checked: e.allState,
|
|
2429
2521
|
onCheckedChange: () => {
|
|
@@ -2431,7 +2523,7 @@ function Si({ selection: e, children: t, label: a = "Select all", menuLabel: o =
|
|
|
2431
2523
|
}
|
|
2432
2524
|
}), /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2433
2525
|
asChild: !0,
|
|
2434
|
-
children: /* @__PURE__ */ r(
|
|
2526
|
+
children: /* @__PURE__ */ r(J, {
|
|
2435
2527
|
variant: "ghost",
|
|
2436
2528
|
size: "icon-sm",
|
|
2437
2529
|
"aria-label": o,
|
|
@@ -2448,15 +2540,40 @@ function Si({ selection: e, children: t, label: a = "Select all", menuLabel: o =
|
|
|
2448
2540
|
onSelect: e.clear,
|
|
2449
2541
|
children: c
|
|
2450
2542
|
}),
|
|
2451
|
-
t
|
|
2543
|
+
(t.length > 0 || n) && /* @__PURE__ */ r(Un, {}),
|
|
2544
|
+
t.map((t) => /* @__PURE__ */ r(Bn, {
|
|
2545
|
+
onSelect: () => e.set(e.ids.filter((e) => t.match(e))),
|
|
2546
|
+
children: t.label
|
|
2547
|
+
}, t.label)),
|
|
2548
|
+
n
|
|
2452
2549
|
]
|
|
2453
2550
|
})] })]
|
|
2454
2551
|
});
|
|
2455
2552
|
}
|
|
2553
|
+
// src/ui/selectable-list/selection-header.component.tsx
|
|
2554
|
+
function ki({ selection: e, actions: t, filters: n, summary: a, countLabel: o, className: s }) {
|
|
2555
|
+
return /* @__PURE__ */ i("div", {
|
|
2556
|
+
"data-slot": "selection-header",
|
|
2557
|
+
className: B("sticky top-0 z-10 flex min-h-11 items-center gap-2 border-b bg-background px-3", s),
|
|
2558
|
+
children: [/* @__PURE__ */ r(Oi, {
|
|
2559
|
+
selection: e,
|
|
2560
|
+
filters: n
|
|
2561
|
+
}), e.count === 0 ? /* @__PURE__ */ r("div", {
|
|
2562
|
+
className: "text-sm text-muted-foreground",
|
|
2563
|
+
children: a
|
|
2564
|
+
}) : /* @__PURE__ */ r(Di, {
|
|
2565
|
+
selection: e,
|
|
2566
|
+
countLabel: o,
|
|
2567
|
+
clearable: !1,
|
|
2568
|
+
className: "static flex-1 rounded-none border-0 bg-transparent p-0 shadow-none",
|
|
2569
|
+
children: t
|
|
2570
|
+
})]
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2456
2573
|
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2457
|
-
var
|
|
2458
|
-
function
|
|
2459
|
-
let a =
|
|
2574
|
+
var Ai = be(null), ji = "[data-slot=\"selectable-row\"]";
|
|
2575
|
+
function Mi({ selection: e, className: t, children: n, ...i }) {
|
|
2576
|
+
let a = I(null), [o, s] = L(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2460
2577
|
function l(t) {
|
|
2461
2578
|
let n = t.target;
|
|
2462
2579
|
if ((t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a") {
|
|
@@ -2468,17 +2585,17 @@ function Ti({ selection: e, className: t, children: n, ...i }) {
|
|
|
2468
2585
|
t.preventDefault(), e.clear();
|
|
2469
2586
|
return;
|
|
2470
2587
|
}
|
|
2471
|
-
let r = n.closest(
|
|
2588
|
+
let r = n.closest(ji), i = r?.dataset.id;
|
|
2472
2589
|
if (i === void 0 || !r) return;
|
|
2473
2590
|
if (n === r && t.key === " ") {
|
|
2474
2591
|
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2475
2592
|
return;
|
|
2476
2593
|
}
|
|
2477
2594
|
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2478
|
-
let o = [...a.current?.querySelectorAll(
|
|
2595
|
+
let o = [...a.current?.querySelectorAll(ji) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2479
2596
|
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2480
2597
|
}
|
|
2481
|
-
return /* @__PURE__ */ r(
|
|
2598
|
+
return /* @__PURE__ */ r(Ai, {
|
|
2482
2599
|
value: {
|
|
2483
2600
|
selection: e,
|
|
2484
2601
|
activeId: c,
|
|
@@ -2488,15 +2605,15 @@ function Ti({ selection: e, className: t, children: n, ...i }) {
|
|
|
2488
2605
|
ref: a,
|
|
2489
2606
|
"data-slot": "selectable-list",
|
|
2490
2607
|
"data-selecting": e.count > 0 || void 0,
|
|
2491
|
-
className:
|
|
2608
|
+
className: B("flex flex-col", t),
|
|
2492
2609
|
onKeyDown: l,
|
|
2493
2610
|
...i,
|
|
2494
2611
|
children: n
|
|
2495
2612
|
})
|
|
2496
2613
|
});
|
|
2497
2614
|
}
|
|
2498
|
-
function
|
|
2499
|
-
let l =
|
|
2615
|
+
function Ni({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2616
|
+
let l = Se(Ai);
|
|
2500
2617
|
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2501
2618
|
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2502
2619
|
function m(t) {
|
|
@@ -2510,13 +2627,13 @@ function Ei({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2510
2627
|
"data-id": e,
|
|
2511
2628
|
"data-state": p ? "selected" : void 0,
|
|
2512
2629
|
tabIndex: d === e ? 0 : -1,
|
|
2513
|
-
className:
|
|
2630
|
+
className: B("flex items-center gap-3 border-b px-3 py-2.5 outline-none transition-colors hover:bg-muted/60", "focus-visible:shadow-[inset_3px_0_0_var(--brand)] focus-visible:bg-foreground/6 data-[state=selected]:bg-muted data-[state=selected]:focus-visible:bg-foreground/10", u.count > 0 && "cursor-pointer", n),
|
|
2514
2631
|
onClickCapture: h,
|
|
2515
2632
|
onFocus: (t) => {
|
|
2516
2633
|
f(e), s?.(t);
|
|
2517
2634
|
},
|
|
2518
2635
|
...c,
|
|
2519
|
-
children: [/* @__PURE__ */ r(
|
|
2636
|
+
children: [/* @__PURE__ */ r(at, {
|
|
2520
2637
|
"aria-label": t,
|
|
2521
2638
|
checked: p,
|
|
2522
2639
|
tabIndex: -1,
|
|
@@ -2528,17 +2645,17 @@ function Ei({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2528
2645
|
});
|
|
2529
2646
|
}
|
|
2530
2647
|
// src/ui/selectable-list/selection.hook.ts
|
|
2531
|
-
function
|
|
2532
|
-
let [n, r] =
|
|
2648
|
+
function Pi(e, t = {}) {
|
|
2649
|
+
let [n, r] = L(() => new Set(t.defaultSelected)), i = I(void 0), a = Ee(() => new Set(e.filter((e) => n.has(e))), [e, n]), o = a.size, s = o === 0 ? !1 : o === e.length || "indeterminate", c = P((e) => a.has(e), [a]), l = P((t, { range: n = !1 } = {}) => {
|
|
2533
2650
|
let o = !a.has(t), s = n && i.current !== void 0 ? e.indexOf(i.current) : -1, c = e.indexOf(t), l = Math.min(s, c) === -1 ? [t] : e.slice(Math.min(s, c), Math.max(s, c) + 1);
|
|
2534
2651
|
i.current = t, r((e) => {
|
|
2535
2652
|
let t = new Set(e);
|
|
2536
2653
|
for (let e of l) o ? t.add(e) : t.delete(e);
|
|
2537
2654
|
return t;
|
|
2538
2655
|
});
|
|
2539
|
-
}, [e, a]), u =
|
|
2656
|
+
}, [e, a]), u = P((e) => {
|
|
2540
2657
|
r((t) => /* @__PURE__ */ new Set([...t, ...e]));
|
|
2541
|
-
}, []), d =
|
|
2658
|
+
}, []), d = P((e) => {
|
|
2542
2659
|
i.current = void 0, r(new Set(e));
|
|
2543
2660
|
}, []);
|
|
2544
2661
|
return {
|
|
@@ -2550,19 +2667,19 @@ function Di(e, t = {}) {
|
|
|
2550
2667
|
toggle: l,
|
|
2551
2668
|
add: u,
|
|
2552
2669
|
set: d,
|
|
2553
|
-
selectAll:
|
|
2554
|
-
clear:
|
|
2670
|
+
selectAll: P(() => d(e), [e, d]),
|
|
2671
|
+
clear: P(() => d([]), [d])
|
|
2555
2672
|
};
|
|
2556
2673
|
}
|
|
2557
2674
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2558
|
-
var
|
|
2675
|
+
var Fi = be(null);
|
|
2559
2676
|
function Z() {
|
|
2560
|
-
let e =
|
|
2677
|
+
let e = Ce(Fi);
|
|
2561
2678
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2562
2679
|
return e;
|
|
2563
2680
|
}
|
|
2564
2681
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2565
|
-
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none",
|
|
2682
|
+
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", Ii = "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", Li = "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", Ri = {
|
|
2566
2683
|
panel: {
|
|
2567
2684
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2568
2685
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2572,12 +2689,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2572
2689
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2573
2690
|
}
|
|
2574
2691
|
};
|
|
2575
|
-
function
|
|
2576
|
-
let [d, f] =
|
|
2692
|
+
function zi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2693
|
+
let [d, f] = L(o), p = a ?? d;
|
|
2577
2694
|
function m(e) {
|
|
2578
2695
|
a === void 0 && f(e), s?.(e);
|
|
2579
2696
|
}
|
|
2580
|
-
return /* @__PURE__ */ r(
|
|
2697
|
+
return /* @__PURE__ */ r(Fi, {
|
|
2581
2698
|
value: {
|
|
2582
2699
|
collapsed: p,
|
|
2583
2700
|
setCollapsed: m,
|
|
@@ -2590,7 +2707,7 @@ function Mi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2590
2707
|
"data-variant": t,
|
|
2591
2708
|
"data-collapsed": p || void 0,
|
|
2592
2709
|
"aria-label": e,
|
|
2593
|
-
className:
|
|
2710
|
+
className: B("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 ? Ri[t].collapsed : Ri[t].open, c),
|
|
2594
2711
|
...u,
|
|
2595
2712
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2596
2713
|
"aria-hidden": "true",
|
|
@@ -2600,8 +2717,8 @@ function Mi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2600
2717
|
})
|
|
2601
2718
|
});
|
|
2602
2719
|
}
|
|
2603
|
-
function
|
|
2604
|
-
let { collapsed: n, side: a } = Z(), [o, s] =
|
|
2720
|
+
function Bi({ label: e, children: t }) {
|
|
2721
|
+
let { collapsed: n, side: a } = Z(), [o, s] = L(!1);
|
|
2605
2722
|
return /* @__PURE__ */ i(pn, {
|
|
2606
2723
|
open: n && o,
|
|
2607
2724
|
onOpenChange: s,
|
|
@@ -2614,18 +2731,18 @@ function Ni({ label: e, children: t }) {
|
|
|
2614
2731
|
})]
|
|
2615
2732
|
});
|
|
2616
2733
|
}
|
|
2617
|
-
function
|
|
2734
|
+
function Vi({ className: e, ...t }) {
|
|
2618
2735
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2619
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2736
|
+
if (c === "nav") return /* @__PURE__ */ r(Bi, {
|
|
2620
2737
|
label: l,
|
|
2621
2738
|
children: /* @__PURE__ */ i("button", {
|
|
2622
2739
|
type: "button",
|
|
2623
2740
|
"aria-label": l,
|
|
2624
2741
|
"aria-expanded": !n,
|
|
2625
2742
|
onClick: () => a(!n),
|
|
2626
|
-
className:
|
|
2743
|
+
className: B(Li, e),
|
|
2627
2744
|
...t,
|
|
2628
|
-
children: [/* @__PURE__ */ r(
|
|
2745
|
+
children: [/* @__PURE__ */ r(de, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2629
2746
|
"aria-hidden": "true",
|
|
2630
2747
|
className: Q,
|
|
2631
2748
|
children: "Collapse"
|
|
@@ -2633,29 +2750,29 @@ function Pi({ className: e, ...t }) {
|
|
|
2633
2750
|
})
|
|
2634
2751
|
});
|
|
2635
2752
|
let u = s === "start" !== n;
|
|
2636
|
-
return /* @__PURE__ */ r(
|
|
2753
|
+
return /* @__PURE__ */ r(J, {
|
|
2637
2754
|
variant: "ghost",
|
|
2638
2755
|
size: "icon-sm",
|
|
2639
2756
|
"aria-label": l,
|
|
2640
2757
|
"aria-expanded": !n,
|
|
2641
2758
|
title: l,
|
|
2642
2759
|
onClick: () => a(!n),
|
|
2643
|
-
className:
|
|
2760
|
+
className: B("shrink-0 text-muted-foreground", e),
|
|
2644
2761
|
...t,
|
|
2645
|
-
children: r(u ?
|
|
2762
|
+
children: r(u ? ie : ae, {})
|
|
2646
2763
|
});
|
|
2647
2764
|
}
|
|
2648
|
-
function
|
|
2765
|
+
function Hi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2649
2766
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2650
2767
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2651
2768
|
"data-slot": "sidebar-header",
|
|
2652
|
-
className:
|
|
2769
|
+
className: B("flex h-8 items-center", o),
|
|
2653
2770
|
children: a
|
|
2654
2771
|
});
|
|
2655
2772
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
2656
2773
|
return /* @__PURE__ */ i("div", {
|
|
2657
2774
|
"data-slot": "sidebar-header",
|
|
2658
|
-
className:
|
|
2775
|
+
className: B("flex items-center gap-1", o),
|
|
2659
2776
|
children: [/* @__PURE__ */ i("div", {
|
|
2660
2777
|
inert: s,
|
|
2661
2778
|
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",
|
|
@@ -2665,13 +2782,13 @@ function Fi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2665
2782
|
onChange: (e) => t(e.target.value),
|
|
2666
2783
|
placeholder: u,
|
|
2667
2784
|
"aria-label": u,
|
|
2668
|
-
startIcon: /* @__PURE__ */ r(
|
|
2785
|
+
startIcon: /* @__PURE__ */ r(he, {})
|
|
2669
2786
|
}), a]
|
|
2670
|
-
}), /* @__PURE__ */ r(
|
|
2787
|
+
}), /* @__PURE__ */ r(Vi, { className: "ms-auto" })]
|
|
2671
2788
|
});
|
|
2672
2789
|
}
|
|
2673
|
-
function
|
|
2674
|
-
let { label: n, variant: i } = Z(), a =
|
|
2790
|
+
function Ui({ className: e, ...t }) {
|
|
2791
|
+
let { label: n, variant: i } = Z(), a = B("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);
|
|
2675
2792
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2676
2793
|
"data-slot": "sidebar-content",
|
|
2677
2794
|
"aria-label": n,
|
|
@@ -2683,12 +2800,12 @@ function Ii({ className: e, ...t }) {
|
|
|
2683
2800
|
...t
|
|
2684
2801
|
});
|
|
2685
2802
|
}
|
|
2686
|
-
function
|
|
2803
|
+
function Wi({ className: e, children: t, ...n }) {
|
|
2687
2804
|
let { collapsed: i } = Z();
|
|
2688
2805
|
return /* @__PURE__ */ r("div", {
|
|
2689
2806
|
"data-slot": "sidebar-note",
|
|
2690
2807
|
"aria-hidden": i || void 0,
|
|
2691
|
-
className:
|
|
2808
|
+
className: B(Ii, e),
|
|
2692
2809
|
...n,
|
|
2693
2810
|
children: /* @__PURE__ */ r("span", {
|
|
2694
2811
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2696,26 +2813,26 @@ function Li({ className: e, children: t, ...n }) {
|
|
|
2696
2813
|
})
|
|
2697
2814
|
});
|
|
2698
2815
|
}
|
|
2699
|
-
function
|
|
2816
|
+
function Gi({ className: e, ...t }) {
|
|
2700
2817
|
let { collapsed: n, variant: i } = Z();
|
|
2701
2818
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2702
2819
|
"data-slot": "sidebar-footer",
|
|
2703
|
-
className:
|
|
2820
|
+
className: B("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
2704
2821
|
...t
|
|
2705
2822
|
});
|
|
2706
2823
|
}
|
|
2707
2824
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2708
|
-
function
|
|
2709
|
-
let { collapsed: u, variant: d } = Z(), [f, p] =
|
|
2825
|
+
function Ki({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2826
|
+
let { collapsed: u, variant: d } = Z(), [f, p] = L(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
2710
2827
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2711
2828
|
"data-slot": "sidebar-group",
|
|
2712
2829
|
open: n || u || f,
|
|
2713
2830
|
onOpenChange: p,
|
|
2714
|
-
className:
|
|
2831
|
+
className: B("flex flex-col gap-1", s),
|
|
2715
2832
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
2716
2833
|
disabled: n,
|
|
2717
2834
|
inert: u,
|
|
2718
|
-
className:
|
|
2835
|
+
className: B("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"),
|
|
2719
2836
|
children: [
|
|
2720
2837
|
/* @__PURE__ */ r(re, {
|
|
2721
2838
|
"aria-hidden": "true",
|
|
@@ -2740,16 +2857,16 @@ function zi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2740
2857
|
role: "group",
|
|
2741
2858
|
"aria-label": e,
|
|
2742
2859
|
"data-slot": "sidebar-group",
|
|
2743
|
-
className:
|
|
2860
|
+
className: B("flex flex-col gap-0.5", s),
|
|
2744
2861
|
children: [/* @__PURE__ */ r("span", {
|
|
2745
2862
|
"aria-hidden": "true",
|
|
2746
|
-
className:
|
|
2863
|
+
className: B("flex h-6 items-center px-3", h, Q),
|
|
2747
2864
|
children: e
|
|
2748
2865
|
}), c]
|
|
2749
2866
|
});
|
|
2750
2867
|
}
|
|
2751
2868
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2752
|
-
function
|
|
2869
|
+
function qi({ 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 }) {
|
|
2753
2870
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2754
2871
|
/* @__PURE__ */ r("span", {
|
|
2755
2872
|
"aria-hidden": "true",
|
|
@@ -2761,7 +2878,7 @@ function Bi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2761
2878
|
children: e
|
|
2762
2879
|
}),
|
|
2763
2880
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2764
|
-
className:
|
|
2881
|
+
className: B("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Q),
|
|
2765
2882
|
children: c
|
|
2766
2883
|
})
|
|
2767
2884
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2771,11 +2888,11 @@ function Bi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2771
2888
|
children: a
|
|
2772
2889
|
}) : /* @__PURE__ */ r("span", {
|
|
2773
2890
|
"aria-hidden": "true",
|
|
2774
|
-
className:
|
|
2891
|
+
className: B("h-6 w-2.5 shrink-0 rounded-[3px]", o ? W[o] : ""),
|
|
2775
2892
|
style: o ? void 0 : { background: s }
|
|
2776
2893
|
}),
|
|
2777
2894
|
/* @__PURE__ */ i("span", {
|
|
2778
|
-
className:
|
|
2895
|
+
className: B("flex flex-col", Q),
|
|
2779
2896
|
children: [/* @__PURE__ */ r("span", {
|
|
2780
2897
|
className: "truncate text-[13px] font-medium",
|
|
2781
2898
|
children: e
|
|
@@ -2785,45 +2902,45 @@ function Bi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2785
2902
|
})]
|
|
2786
2903
|
}),
|
|
2787
2904
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2788
|
-
className:
|
|
2905
|
+
className: B("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2789
2906
|
children: c
|
|
2790
2907
|
})
|
|
2791
|
-
] }), v = h === "nav" ?
|
|
2908
|
+
] }), v = h === "nav" ? B(Li, d) : B("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 = {
|
|
2792
2909
|
"data-slot": "sidebar-item",
|
|
2793
2910
|
"aria-current": g,
|
|
2794
2911
|
"aria-label": m ? e : void 0,
|
|
2795
2912
|
className: v
|
|
2796
|
-
}, b = u &&
|
|
2913
|
+
}, b = u && xe(f) ? /* @__PURE__ */ r(C.Root, {
|
|
2797
2914
|
...y,
|
|
2798
2915
|
...p,
|
|
2799
|
-
children:
|
|
2916
|
+
children: Ji(f, _)
|
|
2800
2917
|
}) : /* @__PURE__ */ r("button", {
|
|
2801
2918
|
type: "button",
|
|
2802
2919
|
...y,
|
|
2803
2920
|
...p,
|
|
2804
2921
|
children: _
|
|
2805
2922
|
});
|
|
2806
|
-
return /* @__PURE__ */ r(
|
|
2923
|
+
return /* @__PURE__ */ r(Bi, {
|
|
2807
2924
|
label: e,
|
|
2808
2925
|
children: b
|
|
2809
2926
|
});
|
|
2810
2927
|
}
|
|
2811
|
-
function
|
|
2812
|
-
return
|
|
2928
|
+
function Ji(e, t) {
|
|
2929
|
+
return ye(e, void 0, t);
|
|
2813
2930
|
}
|
|
2814
2931
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2815
|
-
function
|
|
2932
|
+
function Yi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2816
2933
|
return /* @__PURE__ */ i(an, {
|
|
2817
2934
|
open: a,
|
|
2818
2935
|
onOpenChange: o,
|
|
2819
2936
|
children: [/* @__PURE__ */ r(on, {
|
|
2820
2937
|
asChild: !0,
|
|
2821
|
-
children: /* @__PURE__ */ r(
|
|
2938
|
+
children: /* @__PURE__ */ r(J, {
|
|
2822
2939
|
variant: "ghost",
|
|
2823
2940
|
size: "icon",
|
|
2824
2941
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
2825
2942
|
className: s,
|
|
2826
|
-
children: /* @__PURE__ */ r(
|
|
2943
|
+
children: /* @__PURE__ */ r(de, {})
|
|
2827
2944
|
})
|
|
2828
2945
|
}), /* @__PURE__ */ i(dn, {
|
|
2829
2946
|
"data-slot": "sidebar-sheet",
|
|
@@ -2837,15 +2954,15 @@ function Hi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2837
2954
|
});
|
|
2838
2955
|
}
|
|
2839
2956
|
// src/product/product-switcher.component.tsx
|
|
2840
|
-
function
|
|
2957
|
+
function Xi({ product: e, workspace: t, products: n = qe, onProductChange: a, className: o }) {
|
|
2841
2958
|
return /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2842
2959
|
asChild: !0,
|
|
2843
|
-
children: /* @__PURE__ */ i(
|
|
2960
|
+
children: /* @__PURE__ */ i(J, {
|
|
2844
2961
|
variant: "ghost",
|
|
2845
|
-
className:
|
|
2846
|
-
"aria-label": `${
|
|
2962
|
+
className: B("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2963
|
+
"aria-label": `${V[e].name}, switch product`,
|
|
2847
2964
|
children: [
|
|
2848
|
-
/* @__PURE__ */ r(
|
|
2965
|
+
/* @__PURE__ */ r(H, {
|
|
2849
2966
|
product: e,
|
|
2850
2967
|
alt: "",
|
|
2851
2968
|
className: "size-7"
|
|
@@ -2854,13 +2971,13 @@ function Ui({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2854
2971
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2855
2972
|
children: [/* @__PURE__ */ r("span", {
|
|
2856
2973
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2857
|
-
children:
|
|
2974
|
+
children: V[e].name
|
|
2858
2975
|
}), t && /* @__PURE__ */ r("span", {
|
|
2859
2976
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2860
2977
|
children: t
|
|
2861
2978
|
})]
|
|
2862
2979
|
}),
|
|
2863
|
-
/* @__PURE__ */ r(
|
|
2980
|
+
/* @__PURE__ */ r(oe, {
|
|
2864
2981
|
className: "ms-auto text-muted-foreground",
|
|
2865
2982
|
"aria-hidden": "true"
|
|
2866
2983
|
})
|
|
@@ -2874,21 +2991,21 @@ function Ui({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2874
2991
|
onValueChange: (e) => a?.(e),
|
|
2875
2992
|
children: n.map((e) => /* @__PURE__ */ i(Vn, {
|
|
2876
2993
|
value: e,
|
|
2877
|
-
children: [/* @__PURE__ */ r(
|
|
2994
|
+
children: [/* @__PURE__ */ r(H, {
|
|
2878
2995
|
product: e,
|
|
2879
2996
|
alt: "",
|
|
2880
2997
|
className: "size-4"
|
|
2881
|
-
}),
|
|
2998
|
+
}), V[e].name]
|
|
2882
2999
|
}, e))
|
|
2883
3000
|
})]
|
|
2884
3001
|
})] });
|
|
2885
3002
|
}
|
|
2886
3003
|
// src/product/sidebar-brand.component.tsx
|
|
2887
|
-
function
|
|
2888
|
-
let { collapsed: a, setCollapsed: o } = Z(), s =
|
|
3004
|
+
function Zi({ product: e, badge: t, className: n }) {
|
|
3005
|
+
let { collapsed: a, setCollapsed: o } = Z(), s = V[e].name;
|
|
2889
3006
|
return /* @__PURE__ */ i("div", {
|
|
2890
3007
|
"data-slot": "sidebar-brand",
|
|
2891
|
-
className:
|
|
3008
|
+
className: B("flex h-8 items-center", n),
|
|
2892
3009
|
children: [
|
|
2893
3010
|
/* @__PURE__ */ r("button", {
|
|
2894
3011
|
type: "button",
|
|
@@ -2896,26 +3013,26 @@ function Wi({ product: e, badge: t, className: n }) {
|
|
|
2896
3013
|
"aria-expanded": !a,
|
|
2897
3014
|
onClick: () => o(!a),
|
|
2898
3015
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2899
|
-
children: /* @__PURE__ */ r(
|
|
3016
|
+
children: /* @__PURE__ */ r(H, {
|
|
2900
3017
|
product: e,
|
|
2901
3018
|
alt: "",
|
|
2902
|
-
className:
|
|
3019
|
+
className: B("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
2903
3020
|
})
|
|
2904
3021
|
}),
|
|
2905
3022
|
/* @__PURE__ */ r("span", {
|
|
2906
|
-
className:
|
|
3023
|
+
className: B("ms-1 font-display text-lg font-extrabold text-brand-text italic", Q),
|
|
2907
3024
|
children: s
|
|
2908
3025
|
}),
|
|
2909
3026
|
t && /* @__PURE__ */ r("span", {
|
|
2910
|
-
className:
|
|
3027
|
+
className: B("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Q),
|
|
2911
3028
|
children: t
|
|
2912
3029
|
})
|
|
2913
3030
|
]
|
|
2914
3031
|
});
|
|
2915
3032
|
}
|
|
2916
3033
|
// src/app/command-shortcut.hook.ts
|
|
2917
|
-
function
|
|
2918
|
-
|
|
3034
|
+
function Qi(e, t = !0) {
|
|
3035
|
+
F(() => {
|
|
2919
3036
|
if (!t) return;
|
|
2920
3037
|
function n(t) {
|
|
2921
3038
|
t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
|
|
@@ -2923,42 +3040,42 @@ function Gi(e, t = !0) {
|
|
|
2923
3040
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
2924
3041
|
}, [e, t]);
|
|
2925
3042
|
}
|
|
2926
|
-
function
|
|
3043
|
+
function $i(e) {
|
|
2927
3044
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
2928
3045
|
}
|
|
2929
|
-
function
|
|
2930
|
-
function
|
|
2931
|
-
return
|
|
3046
|
+
function ea() {}
|
|
3047
|
+
function ta() {
|
|
3048
|
+
return ea;
|
|
2932
3049
|
}
|
|
2933
|
-
function
|
|
3050
|
+
function na() {
|
|
2934
3051
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
2935
3052
|
}
|
|
2936
|
-
function
|
|
3053
|
+
function ra() {
|
|
2937
3054
|
return "";
|
|
2938
3055
|
}
|
|
2939
|
-
function
|
|
2940
|
-
return
|
|
3056
|
+
function ia() {
|
|
3057
|
+
return $i(De(ta, na, ra));
|
|
2941
3058
|
}
|
|
2942
3059
|
// src/app/app-shell.component.tsx
|
|
2943
|
-
var
|
|
2944
|
-
function
|
|
3060
|
+
var aa = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=app-shell-body]]:gap-0 has-[>[data-slot=app-shell-body]]:overflow-hidden has-[>[data-slot=app-shell-body]]:p-0";
|
|
3061
|
+
function oa({ children: e, className: t }) {
|
|
2945
3062
|
return /* @__PURE__ */ r("div", {
|
|
2946
3063
|
"data-slot": "app-shell-header",
|
|
2947
|
-
className:
|
|
3064
|
+
className: B("shrink-0 border-b px-6 py-4", t),
|
|
2948
3065
|
children: e
|
|
2949
3066
|
});
|
|
2950
3067
|
}
|
|
2951
|
-
function
|
|
3068
|
+
function sa({ children: e, className: t }) {
|
|
2952
3069
|
return /* @__PURE__ */ r("div", {
|
|
2953
3070
|
"data-slot": "app-shell-body",
|
|
2954
|
-
className:
|
|
3071
|
+
className: B("flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0", t),
|
|
2955
3072
|
children: e
|
|
2956
3073
|
});
|
|
2957
3074
|
}
|
|
2958
|
-
function
|
|
2959
|
-
let [v, y] =
|
|
2960
|
-
|
|
2961
|
-
let x =
|
|
3075
|
+
function ca({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, children: g, className: _ }) {
|
|
3076
|
+
let [v, y] = L(!1), b = P(() => y(!0), []);
|
|
3077
|
+
Qi(b, !!h?.length);
|
|
3078
|
+
let x = ia(), ee = [...new Set(h?.map((e) => e.group))], S = (e) => /* @__PURE__ */ r(qi, {
|
|
2962
3079
|
asChild: !0,
|
|
2963
3080
|
title: e.label,
|
|
2964
3081
|
icon: e.icon,
|
|
@@ -2969,19 +3086,19 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2969
3086
|
children: e.label
|
|
2970
3087
|
})
|
|
2971
3088
|
}, e.href), C = /* @__PURE__ */ i(n, { children: [
|
|
2972
|
-
/* @__PURE__ */ r(
|
|
3089
|
+
/* @__PURE__ */ r(Hi, {
|
|
2973
3090
|
className: "h-12",
|
|
2974
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
3091
|
+
children: t === "logo" ? /* @__PURE__ */ r(Zi, { product: e }) : /* @__PURE__ */ r(Xi, {
|
|
2975
3092
|
product: e,
|
|
2976
3093
|
workspace: a,
|
|
2977
3094
|
onProductChange: o,
|
|
2978
3095
|
className: "px-2.5"
|
|
2979
3096
|
})
|
|
2980
3097
|
}),
|
|
2981
|
-
/* @__PURE__ */ i(
|
|
2982
|
-
h?.length ? /* @__PURE__ */ r(
|
|
3098
|
+
/* @__PURE__ */ i(Ui, { children: [
|
|
3099
|
+
h?.length ? /* @__PURE__ */ r(qi, {
|
|
2983
3100
|
title: "Search",
|
|
2984
|
-
icon: /* @__PURE__ */ r(
|
|
3101
|
+
icon: /* @__PURE__ */ r(he, {}),
|
|
2985
3102
|
badge: /* @__PURE__ */ r(wr, {
|
|
2986
3103
|
className: "border-0 bg-transparent",
|
|
2987
3104
|
children: x
|
|
@@ -2992,20 +3109,20 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2992
3109
|
className: "flex flex-col gap-0.5",
|
|
2993
3110
|
children: s.map((e) => S(e))
|
|
2994
3111
|
}),
|
|
2995
|
-
c && /* @__PURE__ */ r(
|
|
3112
|
+
c && /* @__PURE__ */ r(Ki, {
|
|
2996
3113
|
title: c.title,
|
|
2997
3114
|
children: c.items.map((e) => S(e))
|
|
2998
3115
|
})
|
|
2999
3116
|
] }),
|
|
3000
|
-
/* @__PURE__ */ i(
|
|
3117
|
+
/* @__PURE__ */ i(Gi, { children: [
|
|
3001
3118
|
l && /* @__PURE__ */ r("div", {
|
|
3002
3119
|
className: Q,
|
|
3003
3120
|
children: l
|
|
3004
3121
|
}),
|
|
3005
3122
|
d && /* @__PURE__ */ i("div", {
|
|
3006
3123
|
className: "flex items-center gap-2.5 px-1",
|
|
3007
|
-
children: [/* @__PURE__ */ r(
|
|
3008
|
-
className:
|
|
3124
|
+
children: [/* @__PURE__ */ r(et, { children: /* @__PURE__ */ r(nt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
3125
|
+
className: B("flex flex-col leading-tight", Q),
|
|
3009
3126
|
children: [/* @__PURE__ */ r("span", {
|
|
3010
3127
|
className: "text-[13px] font-semibold",
|
|
3011
3128
|
children: d.name
|
|
@@ -3015,15 +3132,15 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3015
3132
|
})]
|
|
3016
3133
|
})]
|
|
3017
3134
|
}),
|
|
3018
|
-
/* @__PURE__ */ r(
|
|
3019
|
-
u && /* @__PURE__ */ r(
|
|
3135
|
+
/* @__PURE__ */ r(Vi, {}),
|
|
3136
|
+
u && /* @__PURE__ */ r(Wi, { children: u })
|
|
3020
3137
|
] })
|
|
3021
3138
|
] });
|
|
3022
3139
|
return /* @__PURE__ */ i("div", {
|
|
3023
3140
|
"data-slot": "app-shell",
|
|
3024
|
-
className:
|
|
3141
|
+
className: B("flex h-dvh overflow-hidden bg-background", _),
|
|
3025
3142
|
children: [
|
|
3026
|
-
/* @__PURE__ */ r(
|
|
3143
|
+
/* @__PURE__ */ r(zi, {
|
|
3027
3144
|
variant: "nav",
|
|
3028
3145
|
label: "Workspace",
|
|
3029
3146
|
className: "h-dvh max-md:hidden",
|
|
@@ -3034,12 +3151,12 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3034
3151
|
children: [
|
|
3035
3152
|
/* @__PURE__ */ i("div", {
|
|
3036
3153
|
"data-slot": "app-top-bar",
|
|
3037
|
-
className:
|
|
3154
|
+
className: B("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
3038
3155
|
children: [
|
|
3039
|
-
/* @__PURE__ */ r(
|
|
3156
|
+
/* @__PURE__ */ r(Yi, {
|
|
3040
3157
|
label: "Workspace",
|
|
3041
3158
|
className: "-ms-2 md:hidden",
|
|
3042
|
-
children: /* @__PURE__ */ r(
|
|
3159
|
+
children: /* @__PURE__ */ r(zi, {
|
|
3043
3160
|
variant: "nav",
|
|
3044
3161
|
label: "Workspace",
|
|
3045
3162
|
collapsed: !1,
|
|
@@ -3056,7 +3173,7 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3056
3173
|
}),
|
|
3057
3174
|
/* @__PURE__ */ r("main", {
|
|
3058
3175
|
"data-slot": "app-shell-page",
|
|
3059
|
-
className:
|
|
3176
|
+
className: aa,
|
|
3060
3177
|
children: g
|
|
3061
3178
|
}),
|
|
3062
3179
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -3084,11 +3201,11 @@ function ta({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3084
3201
|
});
|
|
3085
3202
|
}
|
|
3086
3203
|
// src/app/filter-bar.component.tsx
|
|
3087
|
-
function
|
|
3204
|
+
function la({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
3088
3205
|
return /* @__PURE__ */ i("div", {
|
|
3089
3206
|
"data-slot": "filter-bar",
|
|
3090
3207
|
role: "search",
|
|
3091
|
-
className:
|
|
3208
|
+
className: B("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
3092
3209
|
children: [
|
|
3093
3210
|
/* @__PURE__ */ r("div", {
|
|
3094
3211
|
className: "max-w-80 flex-[1_1_220px]",
|
|
@@ -3098,7 +3215,7 @@ function na({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3098
3215
|
onChange: (e) => t(e.target.value),
|
|
3099
3216
|
placeholder: n,
|
|
3100
3217
|
"aria-label": n,
|
|
3101
|
-
startIcon: /* @__PURE__ */ r(
|
|
3218
|
+
startIcon: /* @__PURE__ */ r(he, {})
|
|
3102
3219
|
})
|
|
3103
3220
|
}),
|
|
3104
3221
|
a,
|
|
@@ -3109,16 +3226,16 @@ function na({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3109
3226
|
]
|
|
3110
3227
|
});
|
|
3111
3228
|
}
|
|
3112
|
-
function
|
|
3113
|
-
return /* @__PURE__ */ i(
|
|
3229
|
+
function ua({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3230
|
+
return /* @__PURE__ */ i(J, {
|
|
3114
3231
|
variant: "outline",
|
|
3115
3232
|
size: "sm",
|
|
3116
|
-
className:
|
|
3233
|
+
className: B("border-dashed", a),
|
|
3117
3234
|
...o,
|
|
3118
3235
|
children: [
|
|
3119
|
-
n ?? /* @__PURE__ */ r(
|
|
3236
|
+
n ?? /* @__PURE__ */ r(me, {}),
|
|
3120
3237
|
e,
|
|
3121
|
-
t > 0 && /* @__PURE__ */ r(
|
|
3238
|
+
t > 0 && /* @__PURE__ */ r(K, {
|
|
3122
3239
|
variant: "brand",
|
|
3123
3240
|
className: "h-[18px]",
|
|
3124
3241
|
"aria-label": `${t} selected`,
|
|
@@ -3128,10 +3245,10 @@ function ra({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
3128
3245
|
});
|
|
3129
3246
|
}
|
|
3130
3247
|
// src/app/form-section.component.tsx
|
|
3131
|
-
function
|
|
3248
|
+
function da({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
3132
3249
|
return /* @__PURE__ */ i("section", {
|
|
3133
3250
|
"data-slot": "form-section",
|
|
3134
|
-
className:
|
|
3251
|
+
className: B("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
3135
3252
|
children: [/* @__PURE__ */ i("div", {
|
|
3136
3253
|
className: "flex flex-col gap-1",
|
|
3137
3254
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -3154,10 +3271,10 @@ function ia({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
3154
3271
|
});
|
|
3155
3272
|
}
|
|
3156
3273
|
// src/app/page-header.component.tsx
|
|
3157
|
-
function
|
|
3274
|
+
function fa({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
3158
3275
|
return /* @__PURE__ */ i("div", {
|
|
3159
3276
|
"data-slot": "page-header",
|
|
3160
|
-
className:
|
|
3277
|
+
className: B("flex flex-col gap-4", o),
|
|
3161
3278
|
children: [/* @__PURE__ */ i("div", {
|
|
3162
3279
|
className: "flex flex-wrap items-end gap-4",
|
|
3163
3280
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3177,7 +3294,7 @@ function aa({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
3177
3294
|
});
|
|
3178
3295
|
}
|
|
3179
3296
|
// src/app/records-table.component.tsx
|
|
3180
|
-
function
|
|
3297
|
+
function pa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
3181
3298
|
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";
|
|
3182
3299
|
function m(e, t) {
|
|
3183
3300
|
let n = new Set(a);
|
|
@@ -3191,20 +3308,20 @@ function oa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3191
3308
|
return /* @__PURE__ */ i(jr, {
|
|
3192
3309
|
"data-slot": "records-table",
|
|
3193
3310
|
"aria-label": c,
|
|
3194
|
-
className:
|
|
3311
|
+
className: B("min-w-[760px]", l),
|
|
3195
3312
|
children: [/* @__PURE__ */ r(Mr, { children: /* @__PURE__ */ i(Pr, {
|
|
3196
3313
|
className: "hover:bg-transparent",
|
|
3197
3314
|
children: [
|
|
3198
3315
|
u && /* @__PURE__ */ r(Fr, {
|
|
3199
3316
|
className: "w-9",
|
|
3200
|
-
children: /* @__PURE__ */ r(
|
|
3317
|
+
children: /* @__PURE__ */ r(at, {
|
|
3201
3318
|
"aria-label": "Select all rows",
|
|
3202
3319
|
checked: p,
|
|
3203
3320
|
onCheckedChange: (e) => h(e === !0)
|
|
3204
3321
|
})
|
|
3205
3322
|
}),
|
|
3206
3323
|
t.map((e) => /* @__PURE__ */ r(Fr, {
|
|
3207
|
-
className:
|
|
3324
|
+
className: B(e.align === "end" && "text-end", e.className),
|
|
3208
3325
|
children: e.header
|
|
3209
3326
|
}, e.key)),
|
|
3210
3327
|
s && /* @__PURE__ */ r(Fr, {
|
|
@@ -3220,22 +3337,22 @@ function oa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3220
3337
|
return /* @__PURE__ */ i(Pr, {
|
|
3221
3338
|
"data-state": c ? "selected" : void 0,
|
|
3222
3339
|
children: [
|
|
3223
|
-
u && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(
|
|
3340
|
+
u && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(at, {
|
|
3224
3341
|
"aria-label": `Select ${o}`,
|
|
3225
3342
|
checked: c,
|
|
3226
3343
|
onCheckedChange: (e) => m(o, e === !0)
|
|
3227
3344
|
}) }),
|
|
3228
3345
|
t.map((t) => /* @__PURE__ */ r(Ir, {
|
|
3229
|
-
className:
|
|
3346
|
+
className: B(t.align === "end" && "text-end tabular-nums", t.className),
|
|
3230
3347
|
children: t.cell(e)
|
|
3231
3348
|
}, t.key)),
|
|
3232
3349
|
s && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
3233
3350
|
asChild: !0,
|
|
3234
|
-
children: /* @__PURE__ */ r(
|
|
3351
|
+
children: /* @__PURE__ */ r(J, {
|
|
3235
3352
|
variant: "ghost",
|
|
3236
3353
|
size: "icon-sm",
|
|
3237
3354
|
"aria-label": `Actions for ${o}`,
|
|
3238
|
-
children: /* @__PURE__ */ r(
|
|
3355
|
+
children: /* @__PURE__ */ r(ce, {})
|
|
3239
3356
|
})
|
|
3240
3357
|
}), /* @__PURE__ */ r(zn, {
|
|
3241
3358
|
align: "end",
|
|
@@ -3247,7 +3364,7 @@ function oa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3247
3364
|
});
|
|
3248
3365
|
}
|
|
3249
3366
|
// src/app/sparkline.algorithm.ts
|
|
3250
|
-
function
|
|
3367
|
+
function ma(e, t, n, r = 2) {
|
|
3251
3368
|
if (e.length < 2) return "";
|
|
3252
3369
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3253
3370
|
return e.map((e, t) => {
|
|
@@ -3256,16 +3373,16 @@ function sa(e, t, n, r = 2) {
|
|
|
3256
3373
|
}).join(" ");
|
|
3257
3374
|
}
|
|
3258
3375
|
// src/app/stat-card.component.tsx
|
|
3259
|
-
var
|
|
3376
|
+
var ha = {
|
|
3260
3377
|
positive: "text-success",
|
|
3261
3378
|
negative: "text-destructive",
|
|
3262
3379
|
neutral: "text-muted-foreground"
|
|
3263
3380
|
};
|
|
3264
|
-
function
|
|
3265
|
-
let c = o ?
|
|
3381
|
+
function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3382
|
+
let c = o ? ma(o, 100, 32) : "";
|
|
3266
3383
|
return /* @__PURE__ */ i(vr, {
|
|
3267
3384
|
"data-slot": "stat-card",
|
|
3268
|
-
className:
|
|
3385
|
+
className: B("gap-1.5 p-4", s),
|
|
3269
3386
|
children: [
|
|
3270
3387
|
/* @__PURE__ */ r("span", {
|
|
3271
3388
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -3294,14 +3411,14 @@ function la({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3294
3411
|
})]
|
|
3295
3412
|
}),
|
|
3296
3413
|
n && /* @__PURE__ */ r("span", {
|
|
3297
|
-
className:
|
|
3414
|
+
className: B("text-xs", ha[a]),
|
|
3298
3415
|
children: n
|
|
3299
3416
|
})
|
|
3300
3417
|
]
|
|
3301
3418
|
});
|
|
3302
3419
|
}
|
|
3303
3420
|
// src/status/run-status.contract.ts
|
|
3304
|
-
var
|
|
3421
|
+
var _a = [
|
|
3305
3422
|
"queued",
|
|
3306
3423
|
"waiting",
|
|
3307
3424
|
"running",
|
|
@@ -3309,7 +3426,7 @@ var ua = [
|
|
|
3309
3426
|
"no-records",
|
|
3310
3427
|
"failed",
|
|
3311
3428
|
"off"
|
|
3312
|
-
],
|
|
3429
|
+
], va = {
|
|
3313
3430
|
queued: {
|
|
3314
3431
|
label: "Queued",
|
|
3315
3432
|
variant: "secondary",
|
|
@@ -3346,13 +3463,13 @@ var ua = [
|
|
|
3346
3463
|
live: !1
|
|
3347
3464
|
}
|
|
3348
3465
|
};
|
|
3349
|
-
function
|
|
3350
|
-
return
|
|
3466
|
+
function ya(e) {
|
|
3467
|
+
return va[e];
|
|
3351
3468
|
}
|
|
3352
3469
|
// src/status/status-badge.component.tsx
|
|
3353
|
-
function
|
|
3354
|
-
let { label: n, variant: i, live: a } =
|
|
3355
|
-
return /* @__PURE__ */ r(
|
|
3470
|
+
function ba({ status: e, ...t }) {
|
|
3471
|
+
let { label: n, variant: i, live: a } = ya(e);
|
|
3472
|
+
return /* @__PURE__ */ r(K, {
|
|
3356
3473
|
variant: i,
|
|
3357
3474
|
dot: a,
|
|
3358
3475
|
"data-status": e,
|
|
@@ -3361,25 +3478,25 @@ function pa({ status: e, ...t }) {
|
|
|
3361
3478
|
});
|
|
3362
3479
|
}
|
|
3363
3480
|
// src/desktop/flow-node.component.tsx
|
|
3364
|
-
function
|
|
3481
|
+
function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3365
3482
|
return /* @__PURE__ */ i("button", {
|
|
3366
3483
|
type: "button",
|
|
3367
3484
|
"data-slot": "flow-node",
|
|
3368
3485
|
"aria-pressed": o,
|
|
3369
3486
|
onClick: s,
|
|
3370
|
-
className:
|
|
3487
|
+
className: B("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),
|
|
3371
3488
|
children: [/* @__PURE__ */ i("span", {
|
|
3372
3489
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
3373
3490
|
children: [
|
|
3374
3491
|
/* @__PURE__ */ r("span", {
|
|
3375
3492
|
"aria-hidden": "true",
|
|
3376
|
-
className:
|
|
3493
|
+
className: B("size-2 shrink-0 rounded-[2px]", a ? W[a] : "bg-muted-foreground")
|
|
3377
3494
|
}),
|
|
3378
3495
|
/* @__PURE__ */ r("span", {
|
|
3379
3496
|
className: "font-semibold",
|
|
3380
3497
|
children: e
|
|
3381
3498
|
}),
|
|
3382
|
-
/* @__PURE__ */ r(
|
|
3499
|
+
/* @__PURE__ */ r(ba, {
|
|
3383
3500
|
status: n,
|
|
3384
3501
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3385
3502
|
})
|
|
@@ -3391,18 +3508,18 @@ function ma({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3391
3508
|
});
|
|
3392
3509
|
}
|
|
3393
3510
|
// src/desktop/inspector.component.tsx
|
|
3394
|
-
function
|
|
3511
|
+
function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3395
3512
|
return /* @__PURE__ */ i("aside", {
|
|
3396
3513
|
"data-slot": "inspector",
|
|
3397
3514
|
"aria-label": "Inspector",
|
|
3398
|
-
className:
|
|
3515
|
+
className: B("flex h-full flex-col text-[13px]", s),
|
|
3399
3516
|
children: [
|
|
3400
3517
|
/* @__PURE__ */ i("div", {
|
|
3401
3518
|
className: "flex items-center gap-2 border-b p-3",
|
|
3402
3519
|
children: [
|
|
3403
3520
|
n && /* @__PURE__ */ r("span", {
|
|
3404
3521
|
"aria-hidden": "true",
|
|
3405
|
-
className:
|
|
3522
|
+
className: B("size-2.5 shrink-0 rounded-[3px]", W[n])
|
|
3406
3523
|
}),
|
|
3407
3524
|
/* @__PURE__ */ r("h2", {
|
|
3408
3525
|
className: "m-0 type-h4",
|
|
@@ -3414,18 +3531,18 @@ function ha({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3414
3531
|
})
|
|
3415
3532
|
]
|
|
3416
3533
|
}),
|
|
3417
|
-
/* @__PURE__ */ i(
|
|
3534
|
+
/* @__PURE__ */ i(di, {
|
|
3418
3535
|
defaultValue: a[0]?.value,
|
|
3419
3536
|
className: "min-h-0 flex-1 gap-0",
|
|
3420
|
-
children: [/* @__PURE__ */ r(
|
|
3537
|
+
children: [/* @__PURE__ */ r(mi, {
|
|
3421
3538
|
variant: "underline",
|
|
3422
3539
|
className: "gap-4 px-3",
|
|
3423
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3540
|
+
children: a.map((e) => /* @__PURE__ */ r(_i, {
|
|
3424
3541
|
value: e.value,
|
|
3425
3542
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3426
3543
|
children: e.label
|
|
3427
3544
|
}, e.value))
|
|
3428
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3545
|
+
}), a.map((e) => /* @__PURE__ */ r(Si, {
|
|
3429
3546
|
value: e.value,
|
|
3430
3547
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3431
3548
|
children: e.content
|
|
@@ -3439,11 +3556,11 @@ function ha({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3439
3556
|
});
|
|
3440
3557
|
}
|
|
3441
3558
|
// src/desktop/status-bar.component.tsx
|
|
3442
|
-
function
|
|
3559
|
+
function Ca({ start: e, end: t, className: n }) {
|
|
3443
3560
|
return /* @__PURE__ */ i("div", {
|
|
3444
3561
|
"data-slot": "status-bar",
|
|
3445
3562
|
role: "status",
|
|
3446
|
-
className:
|
|
3563
|
+
className: B("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
3447
3564
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
3448
3565
|
className: "ms-auto flex items-center gap-3.5",
|
|
3449
3566
|
children: t
|
|
@@ -3451,7 +3568,7 @@ function ga({ start: e, end: t, className: n }) {
|
|
|
3451
3568
|
});
|
|
3452
3569
|
}
|
|
3453
3570
|
// src/desktop/timeline.algorithm.ts
|
|
3454
|
-
function
|
|
3571
|
+
function wa(e, t, n) {
|
|
3455
3572
|
if (n <= 0) return {
|
|
3456
3573
|
left: 0,
|
|
3457
3574
|
width: 0
|
|
@@ -3462,7 +3579,7 @@ function _a(e, t, n) {
|
|
|
3462
3579
|
width: Math.max(0, r(t) - i)
|
|
3463
3580
|
};
|
|
3464
3581
|
}
|
|
3465
|
-
function
|
|
3582
|
+
function Ta(e, t) {
|
|
3466
3583
|
let n = Math.max(2, t);
|
|
3467
3584
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3468
3585
|
}
|
|
@@ -3470,27 +3587,27 @@ function va(e, t) {
|
|
|
3470
3587
|
function $(e) {
|
|
3471
3588
|
return String(e).padStart(2, "0");
|
|
3472
3589
|
}
|
|
3473
|
-
function
|
|
3590
|
+
function Ea(e, t = !1) {
|
|
3474
3591
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3475
3592
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3476
3593
|
}
|
|
3477
|
-
function
|
|
3594
|
+
function Da(e, t) {
|
|
3478
3595
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3479
3596
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3480
3597
|
}
|
|
3481
3598
|
// src/desktop/timeline-lanes.component.tsx
|
|
3482
|
-
function
|
|
3483
|
-
let c = (e) => o ?
|
|
3599
|
+
function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3600
|
+
let c = (e) => o ? Da(o, e) : Ea(e), l = n === void 0 ? void 0 : wa(0, n, e).width;
|
|
3484
3601
|
return /* @__PURE__ */ i("div", {
|
|
3485
3602
|
"data-slot": "timeline-lanes",
|
|
3486
3603
|
role: "group",
|
|
3487
3604
|
"aria-label": "Timeline",
|
|
3488
|
-
className:
|
|
3605
|
+
className: B("relative flex flex-col text-[13px]", s),
|
|
3489
3606
|
children: [
|
|
3490
3607
|
/* @__PURE__ */ r("div", {
|
|
3491
3608
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3492
3609
|
"aria-hidden": "true",
|
|
3493
|
-
children:
|
|
3610
|
+
children: Ta(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3494
3611
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3495
3612
|
children: c(e)
|
|
3496
3613
|
}, e))
|
|
@@ -3501,18 +3618,18 @@ function xa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3501
3618
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
3502
3619
|
children: [/* @__PURE__ */ r("span", {
|
|
3503
3620
|
"aria-hidden": "true",
|
|
3504
|
-
className:
|
|
3621
|
+
className: B("size-2 shrink-0 rounded-[2px]", W[t.hue])
|
|
3505
3622
|
}), t.name]
|
|
3506
3623
|
}), /* @__PURE__ */ r("div", {
|
|
3507
3624
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3508
3625
|
children: t.segments.map((n) => {
|
|
3509
|
-
let a =
|
|
3626
|
+
let a = wa(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3510
3627
|
return /* @__PURE__ */ i(pn, { children: [/* @__PURE__ */ r(mn, {
|
|
3511
3628
|
asChild: !0,
|
|
3512
3629
|
children: /* @__PURE__ */ r("button", {
|
|
3513
3630
|
type: "button",
|
|
3514
3631
|
"aria-label": o,
|
|
3515
|
-
className:
|
|
3632
|
+
className: B("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", W[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
3516
3633
|
style: {
|
|
3517
3634
|
left: `${a.left}%`,
|
|
3518
3635
|
width: `${a.width}%`
|
|
@@ -3531,30 +3648,30 @@ function xa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3531
3648
|
});
|
|
3532
3649
|
}
|
|
3533
3650
|
// src/desktop/title-bar.component.tsx
|
|
3534
|
-
function
|
|
3651
|
+
function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3535
3652
|
let l = [
|
|
3536
3653
|
{
|
|
3537
3654
|
label: "Minimise",
|
|
3538
|
-
icon: /* @__PURE__ */ r(
|
|
3655
|
+
icon: /* @__PURE__ */ r(ue, {}),
|
|
3539
3656
|
onClick: a
|
|
3540
3657
|
},
|
|
3541
3658
|
{
|
|
3542
3659
|
label: "Maximise",
|
|
3543
|
-
icon: /* @__PURE__ */ r(
|
|
3660
|
+
icon: /* @__PURE__ */ r(ge, {}),
|
|
3544
3661
|
onClick: o
|
|
3545
3662
|
},
|
|
3546
3663
|
{
|
|
3547
3664
|
label: "Close window",
|
|
3548
|
-
icon: /* @__PURE__ */ r(
|
|
3665
|
+
icon: /* @__PURE__ */ r(N, {}),
|
|
3549
3666
|
onClick: s
|
|
3550
3667
|
}
|
|
3551
3668
|
].filter((e) => e.onClick);
|
|
3552
3669
|
return /* @__PURE__ */ i("div", {
|
|
3553
3670
|
"data-slot": "title-bar",
|
|
3554
3671
|
"data-tauri-drag-region": "",
|
|
3555
|
-
className:
|
|
3672
|
+
className: B("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
3556
3673
|
children: [
|
|
3557
|
-
/* @__PURE__ */ r(
|
|
3674
|
+
/* @__PURE__ */ r(H, {
|
|
3558
3675
|
product: e,
|
|
3559
3676
|
alt: "",
|
|
3560
3677
|
className: "size-[18px]"
|
|
@@ -3567,11 +3684,11 @@ function Sa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3567
3684
|
}),
|
|
3568
3685
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
3569
3686
|
className: "flex h-full",
|
|
3570
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
3687
|
+
children: l.map((e) => /* @__PURE__ */ r(J, {
|
|
3571
3688
|
variant: "ghost",
|
|
3572
3689
|
"aria-label": e.label,
|
|
3573
3690
|
onClick: e.onClick,
|
|
3574
|
-
className:
|
|
3691
|
+
className: B("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
3575
3692
|
children: e.icon
|
|
3576
3693
|
}, e.label))
|
|
3577
3694
|
})
|
|
@@ -3579,11 +3696,11 @@ function Sa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3579
3696
|
});
|
|
3580
3697
|
}
|
|
3581
3698
|
// src/mobile/bottom-nav.component.tsx
|
|
3582
|
-
function
|
|
3699
|
+
function Aa({ items: e, className: t }) {
|
|
3583
3700
|
return /* @__PURE__ */ r("nav", {
|
|
3584
3701
|
"data-slot": "bottom-nav",
|
|
3585
3702
|
"aria-label": "Tabs",
|
|
3586
|
-
className:
|
|
3703
|
+
className: B("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
3587
3704
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
3588
3705
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
3589
3706
|
href: e.href,
|
|
@@ -3601,22 +3718,22 @@ function Ca({ items: e, className: t }) {
|
|
|
3601
3718
|
});
|
|
3602
3719
|
}
|
|
3603
3720
|
// src/mobile/capture-frame.component.tsx
|
|
3604
|
-
function
|
|
3721
|
+
function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3605
3722
|
let l = a.filter((e) => !e.passed).length;
|
|
3606
3723
|
return /* @__PURE__ */ i("div", {
|
|
3607
3724
|
"data-slot": "capture-frame",
|
|
3608
|
-
className:
|
|
3725
|
+
className: B("flex h-full flex-col bg-[#0e0d12]", c),
|
|
3609
3726
|
children: [/* @__PURE__ */ i("div", {
|
|
3610
3727
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
3611
3728
|
children: [/* @__PURE__ */ i("div", {
|
|
3612
3729
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
3613
3730
|
children: [
|
|
3614
|
-
/* @__PURE__ */ r(
|
|
3731
|
+
/* @__PURE__ */ r(J, {
|
|
3615
3732
|
size: "icon",
|
|
3616
3733
|
"aria-label": "Close camera",
|
|
3617
3734
|
onClick: o,
|
|
3618
3735
|
className: "rounded-full bg-white/14 text-white hover:bg-white/24",
|
|
3619
|
-
children: /* @__PURE__ */ r(
|
|
3736
|
+
children: /* @__PURE__ */ r(N, {})
|
|
3620
3737
|
}),
|
|
3621
3738
|
/* @__PURE__ */ r("span", {
|
|
3622
3739
|
className: "text-sm font-semibold text-white",
|
|
@@ -3637,12 +3754,12 @@ function wa({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3637
3754
|
children: [/* @__PURE__ */ r("h2", {
|
|
3638
3755
|
className: "m-0 type-h3 text-[19px]",
|
|
3639
3756
|
children: n
|
|
3640
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
3757
|
+
}), l > 0 ? /* @__PURE__ */ i(K, {
|
|
3641
3758
|
variant: "danger",
|
|
3642
3759
|
dot: !0,
|
|
3643
3760
|
className: "ms-auto",
|
|
3644
3761
|
children: [l, " failed"]
|
|
3645
|
-
}) : /* @__PURE__ */ r(
|
|
3762
|
+
}) : /* @__PURE__ */ r(K, {
|
|
3646
3763
|
variant: "success",
|
|
3647
3764
|
dot: !0,
|
|
3648
3765
|
className: "ms-auto",
|
|
@@ -3655,11 +3772,11 @@ function wa({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3655
3772
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
3656
3773
|
children: [
|
|
3657
3774
|
/* @__PURE__ */ r("span", {
|
|
3658
|
-
className:
|
|
3775
|
+
className: B("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"),
|
|
3659
3776
|
children: e.passed ? /* @__PURE__ */ r(k, {
|
|
3660
3777
|
strokeWidth: 3,
|
|
3661
3778
|
"aria-label": "Passed"
|
|
3662
|
-
}) : /* @__PURE__ */ r(
|
|
3779
|
+
}) : /* @__PURE__ */ r(N, {
|
|
3663
3780
|
strokeWidth: 3,
|
|
3664
3781
|
"aria-label": "Failed"
|
|
3665
3782
|
})
|
|
@@ -3684,43 +3801,43 @@ function wa({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3684
3801
|
});
|
|
3685
3802
|
}
|
|
3686
3803
|
// src/mobile/record-button.component.tsx
|
|
3687
|
-
function
|
|
3804
|
+
function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3688
3805
|
let u = {
|
|
3689
3806
|
idle: {
|
|
3690
3807
|
label: "Start recording",
|
|
3691
|
-
icon: /* @__PURE__ */ r(
|
|
3808
|
+
icon: /* @__PURE__ */ r(M, {}),
|
|
3692
3809
|
onClick: a
|
|
3693
3810
|
},
|
|
3694
3811
|
recording: {
|
|
3695
3812
|
label: "Pause",
|
|
3696
|
-
icon: /* @__PURE__ */ r(
|
|
3813
|
+
icon: /* @__PURE__ */ r(fe, {}),
|
|
3697
3814
|
onClick: o
|
|
3698
3815
|
},
|
|
3699
3816
|
paused: {
|
|
3700
3817
|
label: "Resume",
|
|
3701
|
-
icon: /* @__PURE__ */ r(
|
|
3818
|
+
icon: /* @__PURE__ */ r(pe, {}),
|
|
3702
3819
|
onClick: s
|
|
3703
3820
|
}
|
|
3704
3821
|
}[e];
|
|
3705
3822
|
return /* @__PURE__ */ i("div", {
|
|
3706
3823
|
"data-slot": "record-button",
|
|
3707
|
-
className:
|
|
3824
|
+
className: B("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
3708
3825
|
children: [
|
|
3709
3826
|
/* @__PURE__ */ i("div", {
|
|
3710
3827
|
className: "flex items-center gap-2",
|
|
3711
3828
|
children: [
|
|
3712
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
3829
|
+
e === "recording" && /* @__PURE__ */ r(K, {
|
|
3713
3830
|
variant: "danger",
|
|
3714
3831
|
dot: !0,
|
|
3715
3832
|
className: "bg-card",
|
|
3716
3833
|
children: "Recording"
|
|
3717
3834
|
}),
|
|
3718
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
3835
|
+
e === "paused" && /* @__PURE__ */ r(K, {
|
|
3719
3836
|
variant: "warning",
|
|
3720
3837
|
className: "bg-card",
|
|
3721
3838
|
children: "Paused"
|
|
3722
3839
|
}),
|
|
3723
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
3840
|
+
e === "idle" && /* @__PURE__ */ r(K, {
|
|
3724
3841
|
variant: "outline",
|
|
3725
3842
|
className: "bg-card",
|
|
3726
3843
|
children: "Not recording"
|
|
@@ -3728,7 +3845,7 @@ function Ta({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3728
3845
|
/* @__PURE__ */ r("span", {
|
|
3729
3846
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3730
3847
|
"aria-label": "Recorded time",
|
|
3731
|
-
children:
|
|
3848
|
+
children: Ea(t, !0)
|
|
3732
3849
|
})
|
|
3733
3850
|
]
|
|
3734
3851
|
}),
|
|
@@ -3736,17 +3853,17 @@ function Ta({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3736
3853
|
"aria-hidden": "true",
|
|
3737
3854
|
className: "flex h-10 items-center gap-[3px]",
|
|
3738
3855
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
3739
|
-
className:
|
|
3856
|
+
className: B("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
3740
3857
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
3741
3858
|
}, n))
|
|
3742
3859
|
}),
|
|
3743
3860
|
/* @__PURE__ */ i("div", {
|
|
3744
3861
|
className: "flex gap-2.5",
|
|
3745
|
-
children: [/* @__PURE__ */ i(
|
|
3862
|
+
children: [/* @__PURE__ */ i(J, {
|
|
3746
3863
|
className: "flex-1",
|
|
3747
3864
|
onClick: u.onClick,
|
|
3748
3865
|
children: [u.icon, u.label]
|
|
3749
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
3866
|
+
}), e === "recording" && c && /* @__PURE__ */ r(J, {
|
|
3750
3867
|
variant: "outline",
|
|
3751
3868
|
size: "icon",
|
|
3752
3869
|
className: "bg-card",
|
|
@@ -3759,8 +3876,8 @@ function Ta({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3759
3876
|
});
|
|
3760
3877
|
}
|
|
3761
3878
|
// src/web/cta-band.component.tsx
|
|
3762
|
-
function
|
|
3763
|
-
let c =
|
|
3879
|
+
function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3880
|
+
let c = we();
|
|
3764
3881
|
function l(e) {
|
|
3765
3882
|
e.preventDefault();
|
|
3766
3883
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3768,7 +3885,7 @@ function Ea({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3768
3885
|
}
|
|
3769
3886
|
return /* @__PURE__ */ r("section", {
|
|
3770
3887
|
"data-slot": "cta-band",
|
|
3771
|
-
className:
|
|
3888
|
+
className: B("py-22", s),
|
|
3772
3889
|
children: /* @__PURE__ */ r("div", {
|
|
3773
3890
|
className: "mx-auto max-w-[1200px] px-6",
|
|
3774
3891
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3800,7 +3917,7 @@ function Ea({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3800
3917
|
placeholder: a,
|
|
3801
3918
|
className: "flex-[1_1_220px] border-transparent"
|
|
3802
3919
|
}),
|
|
3803
|
-
/* @__PURE__ */ r(
|
|
3920
|
+
/* @__PURE__ */ r(J, {
|
|
3804
3921
|
type: "submit",
|
|
3805
3922
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3806
3923
|
children: o
|
|
@@ -3812,10 +3929,10 @@ function Ea({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3812
3929
|
});
|
|
3813
3930
|
}
|
|
3814
3931
|
// src/web/faq.component.tsx
|
|
3815
|
-
function
|
|
3932
|
+
function Pa({ title: e, items: t, className: n }) {
|
|
3816
3933
|
return /* @__PURE__ */ r("section", {
|
|
3817
3934
|
"data-slot": "faq",
|
|
3818
|
-
className:
|
|
3935
|
+
className: B("py-22", n),
|
|
3819
3936
|
children: /* @__PURE__ */ i("div", {
|
|
3820
3937
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3821
3938
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -3836,10 +3953,10 @@ function Da({ title: e, items: t, className: n }) {
|
|
|
3836
3953
|
});
|
|
3837
3954
|
}
|
|
3838
3955
|
// src/web/feature-grid.component.tsx
|
|
3839
|
-
function
|
|
3956
|
+
function Fa({ title: e, lead: t, features: n, className: a }) {
|
|
3840
3957
|
return /* @__PURE__ */ r("section", {
|
|
3841
3958
|
"data-slot": "feature-grid",
|
|
3842
|
-
className:
|
|
3959
|
+
className: B("border-y bg-canvas py-22", a),
|
|
3843
3960
|
children: /* @__PURE__ */ i("div", {
|
|
3844
3961
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
3845
3962
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -3876,14 +3993,14 @@ function Oa({ title: e, lead: t, features: n, className: a }) {
|
|
|
3876
3993
|
});
|
|
3877
3994
|
}
|
|
3878
3995
|
// src/web/hero.component.tsx
|
|
3879
|
-
function
|
|
3996
|
+
function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
3880
3997
|
return /* @__PURE__ */ r("section", {
|
|
3881
3998
|
"data-slot": "hero",
|
|
3882
|
-
className:
|
|
3999
|
+
className: B("pt-22 pb-14", o),
|
|
3883
4000
|
children: /* @__PURE__ */ i("div", {
|
|
3884
4001
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
3885
4002
|
children: [
|
|
3886
|
-
e && /* @__PURE__ */ r(
|
|
4003
|
+
e && /* @__PURE__ */ r(K, {
|
|
3887
4004
|
variant: "brand",
|
|
3888
4005
|
className: "h-7 px-3 text-[13px]",
|
|
3889
4006
|
children: e
|
|
@@ -3905,10 +4022,10 @@ function ka({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
3905
4022
|
});
|
|
3906
4023
|
}
|
|
3907
4024
|
// src/web/how-it-works.component.tsx
|
|
3908
|
-
function
|
|
4025
|
+
function La({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
3909
4026
|
return /* @__PURE__ */ r("section", {
|
|
3910
4027
|
"data-slot": "how-it-works",
|
|
3911
|
-
className:
|
|
4028
|
+
className: B("py-22", o),
|
|
3912
4029
|
children: /* @__PURE__ */ i("div", {
|
|
3913
4030
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3914
4031
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3948,14 +4065,14 @@ function Aa({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
3948
4065
|
});
|
|
3949
4066
|
}
|
|
3950
4067
|
// src/web/mobile-menu.component.tsx
|
|
3951
|
-
var
|
|
3952
|
-
function
|
|
3953
|
-
let [o, s] =
|
|
3954
|
-
|
|
4068
|
+
var Ra = 400;
|
|
4069
|
+
function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
4070
|
+
let [o, s] = L(!1), [c, l] = L(), [u, f] = L(!1), p = I(null);
|
|
4071
|
+
F(() => {
|
|
3955
4072
|
if (o) return;
|
|
3956
|
-
let e = setTimeout(() => f(!1),
|
|
4073
|
+
let e = setTimeout(() => f(!1), Ra);
|
|
3957
4074
|
return () => clearTimeout(e);
|
|
3958
|
-
}, [o]),
|
|
4075
|
+
}, [o]), F(() => {
|
|
3959
4076
|
if (!o) return;
|
|
3960
4077
|
let e = new ResizeObserver(() => m());
|
|
3961
4078
|
return e.observe(document.documentElement), () => e.disconnect();
|
|
@@ -3981,7 +4098,7 @@ function Ma({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3981
4098
|
onOpenChange: h,
|
|
3982
4099
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
3983
4100
|
asChild: !0,
|
|
3984
|
-
children: /* @__PURE__ */ r(
|
|
4101
|
+
children: /* @__PURE__ */ r(J, {
|
|
3985
4102
|
ref: p,
|
|
3986
4103
|
variant: "ghost",
|
|
3987
4104
|
size: "icon",
|
|
@@ -4005,7 +4122,7 @@ function Ma({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4005
4122
|
/* @__PURE__ */ r("div", {
|
|
4006
4123
|
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))]",
|
|
4007
4124
|
children: /* @__PURE__ */ r("div", {
|
|
4008
|
-
className:
|
|
4125
|
+
className: B("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"),
|
|
4009
4126
|
children: /* @__PURE__ */ i("div", {
|
|
4010
4127
|
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",
|
|
4011
4128
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -4027,7 +4144,7 @@ function Ma({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4027
4144
|
}),
|
|
4028
4145
|
/* @__PURE__ */ r(d.Close, {
|
|
4029
4146
|
asChild: !0,
|
|
4030
|
-
children: /* @__PURE__ */ r(
|
|
4147
|
+
children: /* @__PURE__ */ r(J, {
|
|
4031
4148
|
variant: "ghost",
|
|
4032
4149
|
size: "icon",
|
|
4033
4150
|
"aria-label": "Close menu",
|
|
@@ -4049,11 +4166,11 @@ function Ma({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4049
4166
|
});
|
|
4050
4167
|
}
|
|
4051
4168
|
// src/web/pricing-table.component.tsx
|
|
4052
|
-
function
|
|
4053
|
-
let [l, u] =
|
|
4169
|
+
function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4170
|
+
let [l, u] = L(a);
|
|
4054
4171
|
return /* @__PURE__ */ r("section", {
|
|
4055
4172
|
"data-slot": "pricing-table",
|
|
4056
|
-
className:
|
|
4173
|
+
className: B("border-y bg-canvas py-22", c),
|
|
4057
4174
|
children: /* @__PURE__ */ i("div", {
|
|
4058
4175
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
4059
4176
|
children: [
|
|
@@ -4068,15 +4185,15 @@ function Na({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4068
4185
|
className: "m-0 type-lead",
|
|
4069
4186
|
children: t
|
|
4070
4187
|
})]
|
|
4071
|
-
}), /* @__PURE__ */ i(
|
|
4188
|
+
}), /* @__PURE__ */ i(ft, {
|
|
4072
4189
|
type: "single",
|
|
4073
4190
|
value: l,
|
|
4074
4191
|
onValueChange: (e) => e && u(e),
|
|
4075
4192
|
"aria-label": "Billing",
|
|
4076
|
-
children: [/* @__PURE__ */ r(
|
|
4193
|
+
children: [/* @__PURE__ */ r(pt, {
|
|
4077
4194
|
value: "monthly",
|
|
4078
4195
|
children: "Monthly"
|
|
4079
|
-
}), /* @__PURE__ */ r(
|
|
4196
|
+
}), /* @__PURE__ */ r(pt, {
|
|
4080
4197
|
value: "yearly",
|
|
4081
4198
|
children: "Yearly"
|
|
4082
4199
|
})]
|
|
@@ -4086,14 +4203,14 @@ function Na({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4086
4203
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
4087
4204
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
4088
4205
|
"aria-label": e.name,
|
|
4089
|
-
className:
|
|
4206
|
+
className: B("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)]"),
|
|
4090
4207
|
children: [
|
|
4091
4208
|
/* @__PURE__ */ i("div", {
|
|
4092
4209
|
className: "flex items-center justify-between",
|
|
4093
4210
|
children: [/* @__PURE__ */ r("h3", {
|
|
4094
4211
|
className: "m-0 type-h3",
|
|
4095
4212
|
children: e.name
|
|
4096
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
4213
|
+
}), e.featured && /* @__PURE__ */ r(K, { children: s })]
|
|
4097
4214
|
}),
|
|
4098
4215
|
/* @__PURE__ */ r("span", {
|
|
4099
4216
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -4115,7 +4232,7 @@ function Na({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4115
4232
|
}), e]
|
|
4116
4233
|
}, e))
|
|
4117
4234
|
}),
|
|
4118
|
-
/* @__PURE__ */ r(
|
|
4235
|
+
/* @__PURE__ */ r(J, {
|
|
4119
4236
|
asChild: !0,
|
|
4120
4237
|
variant: e.featured ? "default" : "outline",
|
|
4121
4238
|
className: "mt-auto",
|
|
@@ -4136,20 +4253,20 @@ function Na({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4136
4253
|
});
|
|
4137
4254
|
}
|
|
4138
4255
|
// src/web/product-card.component.tsx
|
|
4139
|
-
function
|
|
4140
|
-
let s =
|
|
4256
|
+
function Va({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4257
|
+
let s = V[e];
|
|
4141
4258
|
return /* @__PURE__ */ i("a", {
|
|
4142
4259
|
"data-slot": "product-card",
|
|
4143
4260
|
"data-product": e,
|
|
4144
4261
|
href: t,
|
|
4145
|
-
className:
|
|
4262
|
+
className: B("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),
|
|
4146
4263
|
children: [/* @__PURE__ */ r("span", {
|
|
4147
4264
|
"aria-hidden": "true",
|
|
4148
4265
|
className: "block h-1.5 bg-brand"
|
|
4149
4266
|
}), /* @__PURE__ */ i("span", {
|
|
4150
4267
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
4151
4268
|
children: [
|
|
4152
|
-
/* @__PURE__ */ r(
|
|
4269
|
+
/* @__PURE__ */ r(H, {
|
|
4153
4270
|
product: e,
|
|
4154
4271
|
alt: "",
|
|
4155
4272
|
className: "size-11"
|
|
@@ -4164,7 +4281,7 @@ function Pa({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4164
4281
|
children: n ?? s.tagline
|
|
4165
4282
|
})]
|
|
4166
4283
|
}),
|
|
4167
|
-
/* @__PURE__ */ r(
|
|
4284
|
+
/* @__PURE__ */ r(K, {
|
|
4168
4285
|
variant: "outline",
|
|
4169
4286
|
className: "self-start",
|
|
4170
4287
|
children: a ?? s.stage
|
|
@@ -4174,17 +4291,17 @@ function Pa({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4174
4291
|
});
|
|
4175
4292
|
}
|
|
4176
4293
|
// src/web/site-footer.component.tsx
|
|
4177
|
-
function
|
|
4294
|
+
function Ha({ tagline: e, columns: t, legal: n, className: a }) {
|
|
4178
4295
|
return /* @__PURE__ */ i("footer", {
|
|
4179
4296
|
"data-slot": "site-footer",
|
|
4180
|
-
className:
|
|
4297
|
+
className: B("border-t pt-14 pb-10", a),
|
|
4181
4298
|
children: [/* @__PURE__ */ i("div", {
|
|
4182
4299
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
4183
4300
|
children: [/* @__PURE__ */ i("div", {
|
|
4184
4301
|
className: "col-span-2 flex flex-col gap-3",
|
|
4185
4302
|
children: [/* @__PURE__ */ i("span", {
|
|
4186
4303
|
className: "flex items-center gap-2",
|
|
4187
|
-
children: [/* @__PURE__ */ r(
|
|
4304
|
+
children: [/* @__PURE__ */ r(H, {
|
|
4188
4305
|
product: "talogic",
|
|
4189
4306
|
alt: "",
|
|
4190
4307
|
className: "size-7"
|
|
@@ -4215,12 +4332,12 @@ function Fa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4215
4332
|
});
|
|
4216
4333
|
}
|
|
4217
4334
|
// src/web/site-header.component.tsx
|
|
4218
|
-
function
|
|
4335
|
+
function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
4219
4336
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4220
4337
|
href: "/",
|
|
4221
4338
|
className: "flex items-center gap-2 no-underline",
|
|
4222
4339
|
"aria-label": "talogic home",
|
|
4223
|
-
children: [/* @__PURE__ */ r(
|
|
4340
|
+
children: [/* @__PURE__ */ r(H, {
|
|
4224
4341
|
product: "talogic",
|
|
4225
4342
|
alt: "",
|
|
4226
4343
|
className: "size-7"
|
|
@@ -4231,7 +4348,7 @@ function Ia({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4231
4348
|
});
|
|
4232
4349
|
return /* @__PURE__ */ r("header", {
|
|
4233
4350
|
"data-slot": "site-header",
|
|
4234
|
-
className:
|
|
4351
|
+
className: B("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
4235
4352
|
children: /* @__PURE__ */ i("div", {
|
|
4236
4353
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
4237
4354
|
children: [
|
|
@@ -4261,7 +4378,7 @@ function Ia({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4261
4378
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4262
4379
|
children: t
|
|
4263
4380
|
}),
|
|
4264
|
-
/* @__PURE__ */ r(
|
|
4381
|
+
/* @__PURE__ */ r(za, {
|
|
4265
4382
|
className: "ms-auto md:hidden",
|
|
4266
4383
|
links: e.flatMap((e) => e.links ?? [{
|
|
4267
4384
|
label: e.label,
|
|
@@ -4273,6 +4390,6 @@ function Ia({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4273
4390
|
})
|
|
4274
4391
|
});
|
|
4275
4392
|
}
|
|
4276
|
-
export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger,
|
|
4393
|
+
export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger, ca as AppShell, sa as AppShellBody, oa as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, K as Badge, Aa as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, Di as BulkActionBar, J as Button, Ze as COLOUR_SCHEMES, ja as CaptureFrame, vr as Card, Sr as CardContent, xr as CardDescription, Cr as CardFooter, yr as CardHeader, br as CardTitle, at as Checkbox, er as Combobox, bn as Command, xn as CommandDialog, wn as CommandEmpty, Tn as CommandGroup, Sn as CommandInput, En as CommandItem, Cn as CommandList, Dn as CommandSeparator, On as CommandShortcut, kn as ContextMenu, jn as ContextMenuContent, Mn as ContextMenuItem, Nn as ContextMenuSeparator, Pn as ContextMenuShortcut, An as ContextMenuTrigger, Na as CtaBand, Xe as DENSITIES, zt as Dialog, Vt as DialogClose, Ht as DialogContent, Kt as DialogDescription, Wt as DialogFooter, Ut as DialogHeader, Gt as DialogTitle, Bt as DialogTrigger, qt as Drawer, Yt as DrawerClose, Xt as DrawerContent, Qt as DrawerDescription, Zt as DrawerTitle, Jt as DrawerTrigger, Fn as DropdownMenu, zn as DropdownMenuContent, Ln as DropdownMenuGroup, Bn as DropdownMenuItem, Hn as DropdownMenuLabel, Rn as DropdownMenuRadioGroup, Vn as DropdownMenuRadioItem, Un as DropdownMenuSeparator, Wn as DropdownMenuShortcut, In as DropdownMenuTrigger, ar as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, Pa as Faq, Fa as FeatureGrid, vt as Field, fr as FileDropOverlay, la as FilterBar, ua as FilterChip, xa as FlowNode, da as FormSection, Je as HUES, W as HUE_FILL, Ia as Hero, La as HowItWorks, yt as Input, Sa as Inspector, wr as Kbd, Ne as LABEL_COLORS, G as LOGO_RULE, _t as Label, Gr as MenuIcon, Kr as Menubar, Yr as MenubarContent, Xr as MenubarItem, qr as MenubarMenu, Qr as MenubarSeparator, Zr as MenubarShortcut, Jr as MenubarTrigger, za as MobileMenu, $r as NavigationMenu, ii as NavigationMenuContent, ti as NavigationMenuItem, ai as NavigationMenuLink, ei as NavigationMenuList, ri as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, V as PRODUCT_CATALOGUE, We as PRODUCT_HUES, fa as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, Ei as Presence, Ba as PricingTable, Va as ProductCard, H as ProductLogo, Xi as ProductSwitcher, or as Progress, _a as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, Ma as RecordButton, pa as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Oi as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Mi as SelectableList, Ni as SelectableRow, ki as SelectionHeader, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, zi as Sidebar, Zi as SidebarBrand, Vi as SidebarCollapseButton, Ui as SidebarContent, Gi as SidebarFooter, Ki as SidebarGroup, Hi as SidebarHeader, qi as SidebarItem, Wi as SidebarNote, Yi as SidebarSheet, Bi as SidebarTooltip, Ha as SiteFooter, Ua as SiteHeader, sr as Skeleton, ct as Slider, cr as Spinner, ga as StatCard, ba as StatusBadge, Ca as StatusBar, wi as Stepper, lt as Switch, Gn as TAG_DELIMITERS, jr as Table, Nr as TableBody, Lr as TableCaption, Ir as TableCell, Fr as TableHead, Mr as TableHeader, Pr as TableRow, di as Tabs, Si as TabsContent, mi as TabsList, _i as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, $e as ThemeRoot, Oa as TimelineLanes, ka as TitleBar, lr as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, pn as Tooltip, hn as TooltipContent, fn as TooltipProvider, mn as TooltipTrigger, ur as acceptsFile, qn as addTags, Ie as apcaContrast, rt as badgeVariants, q as buttonVariants, B as cn, $i as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, Da as formatClockTime, Ea as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Li as navRowClassName, kt as overlayClassName, Ti as presenceClassName, Le as readableLabel, ya as runStatusDisplay, jt as sheetMotionClassName, Ii as sidebarNoteClassName, ma as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Qe as themeAttributes, wa as timelineBox, Ta as timelineTicks, Qi as useCommandShortcut, ia as useCommandShortcutLabel, Y as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Pi as useSelection, Z as useSidebar };
|
|
4277
4394
|
|
|
4278
4395
|
//# sourceMappingURL=index.js.map
|