@talogic/react 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/fonts.css +1 -1
- package/index.d.ts +1 -1
- package/index.js +656 -582
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/product/product-catalogue.content.d.ts +1 -1
- package/talogic-react.css +1 -1
- package/tokens/apca-contrast.algorithm.d.ts +2 -2
- package/tokens/logo-color.algorithm.d.ts +2 -2
- package/tokens/theme.contract.d.ts +2 -2
- package/tokens.css +21 -16
- package/ui/feedback/toaster.component.d.ts +1 -1
- package/ui/index.d.ts +1 -0
- package/ui/navigation/index.d.ts +1 -1
- package/ui/navigation/navigation-menu.component.d.ts +2 -1
- package/ui/navigation/tabs.component.d.ts +17 -7
- package/ui/presence/index.d.ts +4 -0
- package/ui/presence/presence.component.d.ts +21 -0
- package/ui/presence/presence.recipe.d.ts +8 -0
- package/web/site-header.component.d.ts +1 -1
package/index.js
CHANGED
|
@@ -3,20 +3,20 @@ 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 re, ChevronRight as ie, 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 re, ChevronRight as ie, ChevronsLeft as ae, ChevronsRight as oe, ChevronsUpDown as se, CircleCheck as ce, Ellipsis as le, Info as A, LoaderCircle as ue, Mic as j, Minus as de, PanelLeft as fe, Pause as pe, Play as me, Plus as he, Search as ge, Square as _e, TriangleAlert as ve, Upload as ye, X as M } from "lucide-react";
|
|
7
|
+
import { cloneElement as be, createContext as xe, isValidElement as Se, useCallback as Ce, useContext as we, useEffect as N, useId as Te, useLayoutEffect as Ee, useRef as P, useState as F, useSyncExternalStore as De } from "react";
|
|
8
|
+
import { Drawer as I } from "vaul";
|
|
9
|
+
import { Command as L } 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 R(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var z = {
|
|
18
18
|
talogic: {
|
|
19
|
-
name: "
|
|
19
|
+
name: "talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
21
21
|
stage: "Company",
|
|
22
22
|
logoColor: "#753edd"
|
|
@@ -54,7 +54,7 @@ var B = {
|
|
|
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 B = {
|
|
|
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 B({ product: e, alt: t = z[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = Me[e], l = R("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: R(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: R(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function V({ product: e, alt: t = B[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var V = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -106,8 +106,8 @@ var H = {
|
|
|
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) ** V.mainTrc), i = V.red * t + V.green * n + V.blue * r;
|
|
121
|
+
return i < V.blackThresh ? i + (V.blackThresh - i) ** V.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) < V.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** V.normBg - n ** V.normText) * V.scale;
|
|
128
|
+
return e < V.lowClip ? 0 : (e - V.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** V.revBg - n ** V.revText) * V.scale;
|
|
131
|
+
return i > -V.lowClip ? 0 : (i + V.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 H = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -154,7 +154,7 @@ var U = {
|
|
|
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 U = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, U = {
|
|
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 = U.lightness, r = Ve(t, U.saturation, n);
|
|
376
|
+
for (; He(r) > U.maxOklchLightness;) n -= U.lightnessStep, r = Ve(t, U.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: R(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: R("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: R("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: R("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 W({ 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: R(rt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,7 +503,7 @@ function G({ 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 G = 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
508
|
"transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
509
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -537,29 +537,29 @@ var K = O([
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
// src/ui/button/button.component.tsx
|
|
540
|
-
function
|
|
540
|
+
function K({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
541
541
|
let d = o ? C.Root : "button";
|
|
542
542
|
return /* @__PURE__ */ r(d, {
|
|
543
543
|
"data-slot": "button",
|
|
544
|
-
className:
|
|
544
|
+
className: R(G({
|
|
545
545
|
variant: t,
|
|
546
546
|
size: a
|
|
547
547
|
}), e),
|
|
548
548
|
disabled: o ? void 0 : c,
|
|
549
549
|
"aria-busy": s || void 0,
|
|
550
550
|
...u,
|
|
551
|
-
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(
|
|
551
|
+
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ue, {
|
|
552
552
|
className: "animate-spin",
|
|
553
553
|
"aria-hidden": "true"
|
|
554
554
|
}), l] }) : l
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
// src/ui/choice/checkbox.component.tsx
|
|
558
|
-
var
|
|
559
|
-
function
|
|
558
|
+
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";
|
|
559
|
+
function at({ className: e, ...t }) {
|
|
560
560
|
return /* @__PURE__ */ r(c.Root, {
|
|
561
561
|
"data-slot": "checkbox",
|
|
562
|
-
className:
|
|
562
|
+
className: R("peer group/checkbox grid size-4 shrink-0 cursor-pointer place-content-center rounded-[4px] border border-input bg-background text-primary-foreground shadow-xs outline-none", "transition-[background-color,border-color] duration-150 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", e),
|
|
563
563
|
...t,
|
|
564
564
|
children: /* @__PURE__ */ r(c.Indicator, {
|
|
565
565
|
forceMount: !0,
|
|
@@ -571,28 +571,28 @@ function it({ className: e, ...t }) {
|
|
|
571
571
|
children: [/* @__PURE__ */ r("path", {
|
|
572
572
|
d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
|
|
573
573
|
pathLength: 1,
|
|
574
|
-
className:
|
|
574
|
+
className: R(it, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
|
|
575
575
|
}), /* @__PURE__ */ r("path", {
|
|
576
576
|
d: "M4 8 L12 8",
|
|
577
577
|
pathLength: 1,
|
|
578
|
-
className:
|
|
578
|
+
className: R(it, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
|
|
579
579
|
})]
|
|
580
580
|
})
|
|
581
581
|
})
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
// src/ui/choice/radio-group.component.tsx
|
|
585
|
-
function
|
|
585
|
+
function ot({ className: e, ...t }) {
|
|
586
586
|
return /* @__PURE__ */ r(y.Root, {
|
|
587
587
|
"data-slot": "radio-group",
|
|
588
|
-
className:
|
|
588
|
+
className: R("grid gap-2.5", e),
|
|
589
589
|
...t
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function st({ className: e, ...t }) {
|
|
593
593
|
return /* @__PURE__ */ r(y.Item, {
|
|
594
594
|
"data-slot": "radio-group-item",
|
|
595
|
-
className:
|
|
595
|
+
className: R("peer group/radio grid size-4 shrink-0 cursor-pointer place-content-center rounded-full border border-input bg-background shadow-xs outline-none", "transition-[background-color,border-color] duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary", e),
|
|
596
596
|
...t,
|
|
597
597
|
children: /* @__PURE__ */ r(y.Indicator, {
|
|
598
598
|
forceMount: !0,
|
|
@@ -601,8 +601,8 @@ function ot({ className: e, ...t }) {
|
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
// src/ui/choice/slider.component.tsx
|
|
604
|
-
function
|
|
605
|
-
let [d, f] =
|
|
604
|
+
function ct({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
605
|
+
let [d, f] = F(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
606
606
|
return /* @__PURE__ */ i(S.Root, {
|
|
607
607
|
"data-slot": "slider",
|
|
608
608
|
value: t,
|
|
@@ -619,7 +619,7 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
619
619
|
onPointerUp: (e) => {
|
|
620
620
|
f(!1), l?.(e);
|
|
621
621
|
},
|
|
622
|
-
className:
|
|
622
|
+
className: R("group/slider relative flex w-full touch-none select-none items-center data-disabled:opacity-50", "not-data-dragging:[&>span:has([role=slider])]:transition-[left] not-data-dragging:[&>span:has([role=slider])]:duration-200 not-data-dragging:[&>span:has([role=slider])]:ease-emphasised", "motion-reduce:[&>span:has([role=slider])]:transition-none", e),
|
|
623
623
|
...u,
|
|
624
624
|
children: [/* @__PURE__ */ r(S.Track, {
|
|
625
625
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
@@ -631,17 +631,17 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
// src/ui/choice/switch.component.tsx
|
|
634
|
-
function
|
|
634
|
+
function lt({ className: e, ...t }) {
|
|
635
635
|
return /* @__PURE__ */ r(w.Root, {
|
|
636
636
|
"data-slot": "switch",
|
|
637
|
-
className:
|
|
637
|
+
className: R("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full bg-input p-0.5 outline-none transition-colors duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary", e),
|
|
638
638
|
...t,
|
|
639
639
|
children: /* @__PURE__ */ r(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
640
|
});
|
|
641
641
|
}
|
|
642
642
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
643
|
-
function
|
|
644
|
-
let t =
|
|
643
|
+
function ut(e) {
|
|
644
|
+
let t = P(null), n = P(void 0), r = Ce((r) => {
|
|
645
645
|
if (n.current?.(), n.current = void 0, t.current = r, !r) return;
|
|
646
646
|
function i() {
|
|
647
647
|
if (!r) return;
|
|
@@ -663,58 +663,58 @@ function lt(e) {
|
|
|
663
663
|
a.disconnect(), o.disconnect();
|
|
664
664
|
};
|
|
665
665
|
}, [e]);
|
|
666
|
-
return
|
|
666
|
+
return N(() => () => n.current?.(), []), r;
|
|
667
667
|
}
|
|
668
668
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
669
|
-
var
|
|
669
|
+
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
670
|
// src/ui/choice/toggle-group.component.tsx
|
|
671
|
-
function
|
|
672
|
-
let a =
|
|
671
|
+
function ft({ className: e, children: t, ...n }) {
|
|
672
|
+
let a = ut("[data-state=on]"), o = n.type === "single";
|
|
673
673
|
return /* @__PURE__ */ i(E.Root, {
|
|
674
674
|
ref: o ? a : void 0,
|
|
675
675
|
"data-slot": "toggle-group",
|
|
676
676
|
"data-mode": n.type,
|
|
677
|
-
className:
|
|
677
|
+
className: R("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
|
|
678
678
|
...n,
|
|
679
679
|
children: [o && /* @__PURE__ */ r("span", {
|
|
680
680
|
"aria-hidden": "true",
|
|
681
681
|
"data-slot": "toggle-group-indicator",
|
|
682
|
-
className:
|
|
682
|
+
className: R(dt, "rounded-sm bg-background shadow-xs")
|
|
683
683
|
}), t]
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function pt({ className: e, ...t }) {
|
|
687
687
|
return /* @__PURE__ */ r(E.Item, {
|
|
688
688
|
"data-slot": "toggle-group-item",
|
|
689
|
-
className:
|
|
689
|
+
className: R("inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-sm px-3 text-[13px] font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 [&_svg]:size-4", "relative transition-colors duration-150 data-[state=on]:text-foreground motion-reduce:transition-none", "in-data-[mode=multiple]:data-[state=on]:bg-background in-data-[mode=multiple]:data-[state=on]:shadow-xs", e),
|
|
690
690
|
...t
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
// src/ui/field/control.recipe.ts
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
let t =
|
|
694
|
+
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 = xe(null);
|
|
695
|
+
function q(e = {}) {
|
|
696
|
+
let t = we(ht);
|
|
697
697
|
return t ? {
|
|
698
698
|
id: e.id ?? t.id,
|
|
699
699
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
700
700
|
"aria-invalid": e["aria-invalid"] ?? (t.invalid || void 0)
|
|
701
701
|
} : e;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
703
|
+
function gt() {
|
|
704
|
+
return we(ht)?.labelId;
|
|
705
705
|
}
|
|
706
706
|
// src/ui/field/label.component.tsx
|
|
707
|
-
function
|
|
707
|
+
function _t({ className: e, ...t }) {
|
|
708
708
|
return /* @__PURE__ */ r(p.Root, {
|
|
709
709
|
"data-slot": "label",
|
|
710
|
-
className:
|
|
710
|
+
className: R("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
711
711
|
...t
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
// src/ui/field/field.component.tsx
|
|
715
|
-
function
|
|
716
|
-
let c =
|
|
717
|
-
return /* @__PURE__ */ r(
|
|
715
|
+
function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
716
|
+
let c = Te(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
717
|
+
return /* @__PURE__ */ r(ht, {
|
|
718
718
|
value: {
|
|
719
719
|
id: l,
|
|
720
720
|
describedBy: f,
|
|
@@ -723,9 +723,9 @@ function _t({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
723
723
|
},
|
|
724
724
|
children: /* @__PURE__ */ i("div", {
|
|
725
725
|
"data-slot": "field",
|
|
726
|
-
className:
|
|
726
|
+
className: R("flex flex-col gap-1.5", s),
|
|
727
727
|
children: [
|
|
728
|
-
/* @__PURE__ */ r(
|
|
728
|
+
/* @__PURE__ */ r(_t, {
|
|
729
729
|
id: `${l}-label`,
|
|
730
730
|
htmlFor: l,
|
|
731
731
|
children: e
|
|
@@ -746,11 +746,11 @@ function _t({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
// src/ui/field/input.component.tsx
|
|
749
|
-
function
|
|
750
|
-
let o =
|
|
749
|
+
function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
750
|
+
let o = q(a), s = /* @__PURE__ */ r("input", {
|
|
751
751
|
"data-slot": "input",
|
|
752
752
|
type: n,
|
|
753
|
-
className:
|
|
753
|
+
className: R(mt, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
754
754
|
...a,
|
|
755
755
|
...o
|
|
756
756
|
});
|
|
@@ -764,12 +764,12 @@ function vt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
764
764
|
}) : s;
|
|
765
765
|
}
|
|
766
766
|
// src/ui/field/select.component.tsx
|
|
767
|
-
var
|
|
768
|
-
function
|
|
769
|
-
let a =
|
|
767
|
+
var bt = x.Root, xt = x.Group, St = x.Value;
|
|
768
|
+
function Ct({ className: e, children: t, ...n }) {
|
|
769
|
+
let a = q(n);
|
|
770
770
|
return /* @__PURE__ */ i(x.Trigger, {
|
|
771
771
|
"data-slot": "select-trigger",
|
|
772
|
-
className:
|
|
772
|
+
className: R(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
773
|
...n,
|
|
774
774
|
...a,
|
|
775
775
|
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
@@ -781,11 +781,11 @@ function St({ className: e, children: t, ...n }) {
|
|
|
781
781
|
})]
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
785
785
|
return /* @__PURE__ */ r(x.Portal, { children: /* @__PURE__ */ r(x.Content, {
|
|
786
786
|
"data-slot": "select-content",
|
|
787
787
|
position: n,
|
|
788
|
-
className:
|
|
788
|
+
className: R("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
789
|
...i,
|
|
790
790
|
children: /* @__PURE__ */ r(x.Viewport, {
|
|
791
791
|
className: "p-1",
|
|
@@ -793,17 +793,17 @@ function Ct({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
793
793
|
})
|
|
794
794
|
}) });
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Tt({ className: e, ...t }) {
|
|
797
797
|
return /* @__PURE__ */ r(x.Label, {
|
|
798
798
|
"data-slot": "select-label",
|
|
799
|
-
className:
|
|
799
|
+
className: R("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
800
800
|
...t
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Et({ className: e, children: t, ...n }) {
|
|
804
804
|
return /* @__PURE__ */ i(x.Item, {
|
|
805
805
|
"data-slot": "select-item",
|
|
806
|
-
className:
|
|
806
|
+
className: R("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
807
|
...n,
|
|
808
808
|
children: [/* @__PURE__ */ r(x.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
809
809
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
@@ -814,75 +814,75 @@ function Tt({ className: e, children: t, ...n }) {
|
|
|
814
814
|
})]
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Dt({ className: e, ...t }) {
|
|
818
818
|
return /* @__PURE__ */ r(x.Separator, {
|
|
819
819
|
"data-slot": "select-separator",
|
|
820
|
-
className:
|
|
820
|
+
className: R("-mx-1 my-1 h-px bg-border", e),
|
|
821
821
|
...t
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
// src/ui/field/textarea.component.tsx
|
|
825
|
-
function
|
|
826
|
-
let n =
|
|
825
|
+
function Ot({ className: e, ...t }) {
|
|
826
|
+
let n = q(t);
|
|
827
827
|
return /* @__PURE__ */ r("textarea", {
|
|
828
828
|
"data-slot": "textarea",
|
|
829
|
-
className:
|
|
829
|
+
className: R(mt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
830
830
|
...t,
|
|
831
831
|
...n
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
834
|
// src/ui/overlay/overlay.recipe.ts
|
|
835
|
-
var
|
|
835
|
+
var J = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop-saturate-[.3] backdrop-brightness-[1.3] dark:backdrop-brightness-[.7] data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out", Y = "data-[state=open]:animate-zoom-in data-[state=delayed-open]:animate-zoom-in data-[state=instant-open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=delayed-open]:animate-fade-in motion-reduce:data-[state=instant-open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", kt = {
|
|
836
836
|
start: "data-[state=open]:animate-sheet-in-start data-[state=closed]:animate-sheet-out-start motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
837
837
|
end: "data-[state=open]:animate-sheet-in-end data-[state=closed]:animate-sheet-out-end motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
838
838
|
top: "data-[state=open]:animate-sheet-in-top data-[state=closed]:animate-sheet-out-top motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
839
839
|
bottom: "data-[state=open]:animate-sheet-in-bottom data-[state=closed]:animate-sheet-out-bottom motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
840
840
|
}, At = o.Root, jt = o.Trigger;
|
|
841
841
|
function Mt({ className: e, ...t }) {
|
|
842
|
-
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className:
|
|
842
|
+
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: J }), /* @__PURE__ */ r(o.Content, {
|
|
843
843
|
"data-slot": "alert-dialog-content",
|
|
844
|
-
className:
|
|
844
|
+
className: R("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", Y, e),
|
|
845
845
|
...t
|
|
846
846
|
})] });
|
|
847
847
|
}
|
|
848
848
|
function Nt({ className: e, ...t }) {
|
|
849
849
|
return /* @__PURE__ */ r(o.Title, {
|
|
850
850
|
"data-slot": "alert-dialog-title",
|
|
851
|
-
className:
|
|
851
|
+
className: R("m-0 font-display text-lg font-bold leading-tight", e),
|
|
852
852
|
...t
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
855
|
function Pt({ className: e, ...t }) {
|
|
856
856
|
return /* @__PURE__ */ r(o.Description, {
|
|
857
857
|
"data-slot": "alert-dialog-description",
|
|
858
|
-
className:
|
|
858
|
+
className: R("m-0 text-sm text-muted-foreground", e),
|
|
859
859
|
...t
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
862
|
function Ft({ className: e, variant: t = "default", ...n }) {
|
|
863
863
|
return /* @__PURE__ */ r(o.Action, {
|
|
864
864
|
"data-slot": "alert-dialog-action",
|
|
865
|
-
className:
|
|
865
|
+
className: R(G({ variant: t }), e),
|
|
866
866
|
...n
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
function It({ className: e, ...t }) {
|
|
870
870
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
871
871
|
"data-slot": "alert-dialog-cancel",
|
|
872
|
-
className:
|
|
872
|
+
className: R(G({ variant: "outline" }), e),
|
|
873
873
|
...t
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
876
|
// src/ui/overlay/dialog.component.tsx
|
|
877
877
|
var Lt = d.Root, Rt = d.Trigger, zt = d.Close;
|
|
878
878
|
function Bt({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
879
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
879
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: J }), /* @__PURE__ */ i(d.Content, {
|
|
880
880
|
"data-slot": "dialog-content",
|
|
881
|
-
className:
|
|
881
|
+
className: R("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", Y, e),
|
|
882
882
|
...a,
|
|
883
883
|
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
884
884
|
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(
|
|
885
|
+
children: [/* @__PURE__ */ r(M, {
|
|
886
886
|
className: "size-4",
|
|
887
887
|
"aria-hidden": "true"
|
|
888
888
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -895,37 +895,37 @@ function Bt({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
895
895
|
function Vt({ className: e, ...t }) {
|
|
896
896
|
return /* @__PURE__ */ r("div", {
|
|
897
897
|
"data-slot": "dialog-header",
|
|
898
|
-
className:
|
|
898
|
+
className: R("flex flex-col gap-1.5 text-start", e),
|
|
899
899
|
...t
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
function Ht({ className: e, ...t }) {
|
|
903
903
|
return /* @__PURE__ */ r("div", {
|
|
904
904
|
"data-slot": "dialog-footer",
|
|
905
|
-
className:
|
|
905
|
+
className: R("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
906
906
|
...t
|
|
907
907
|
});
|
|
908
908
|
}
|
|
909
909
|
function Ut({ className: e, ...t }) {
|
|
910
910
|
return /* @__PURE__ */ r(d.Title, {
|
|
911
911
|
"data-slot": "dialog-title",
|
|
912
|
-
className:
|
|
912
|
+
className: R("m-0 font-display text-lg font-bold leading-tight", e),
|
|
913
913
|
...t
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
function Wt({ className: e, ...t }) {
|
|
917
917
|
return /* @__PURE__ */ r(d.Description, {
|
|
918
918
|
"data-slot": "dialog-description",
|
|
919
|
-
className:
|
|
919
|
+
className: R("m-0 text-sm text-muted-foreground", e),
|
|
920
920
|
...t
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
// src/ui/overlay/drawer.component.tsx
|
|
924
|
-
var Gt =
|
|
924
|
+
var Gt = I.Root, Kt = I.Trigger, qt = I.Close;
|
|
925
925
|
function Jt({ className: e, children: t, ...n }) {
|
|
926
|
-
return /* @__PURE__ */ i(
|
|
926
|
+
return /* @__PURE__ */ i(I.Portal, { children: [/* @__PURE__ */ r(I.Overlay, { className: J }), /* @__PURE__ */ i(I.Content, {
|
|
927
927
|
"data-slot": "drawer-content",
|
|
928
|
-
className:
|
|
928
|
+
className: R("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
929
|
...n,
|
|
930
930
|
children: [/* @__PURE__ */ r("div", {
|
|
931
931
|
"aria-hidden": "true",
|
|
@@ -934,16 +934,16 @@ function Jt({ className: e, children: t, ...n }) {
|
|
|
934
934
|
})] });
|
|
935
935
|
}
|
|
936
936
|
function Yt({ className: e, ...t }) {
|
|
937
|
-
return /* @__PURE__ */ r(
|
|
937
|
+
return /* @__PURE__ */ r(I.Title, {
|
|
938
938
|
"data-slot": "drawer-title",
|
|
939
|
-
className:
|
|
939
|
+
className: R("m-0 text-xl font-semibold leading-tight", e),
|
|
940
940
|
...t
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
function Xt({ className: e, ...t }) {
|
|
944
|
-
return /* @__PURE__ */ r(
|
|
944
|
+
return /* @__PURE__ */ r(I.Description, {
|
|
945
945
|
"data-slot": "drawer-description",
|
|
946
|
-
className:
|
|
946
|
+
className: R("m-0 text-sm text-muted-foreground", e),
|
|
947
947
|
...t
|
|
948
948
|
});
|
|
949
949
|
}
|
|
@@ -961,7 +961,7 @@ function tn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
|
961
961
|
"data-slot": "popover-content",
|
|
962
962
|
align: t,
|
|
963
963
|
sideOffset: n,
|
|
964
|
-
className:
|
|
964
|
+
className: R("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", Y, e),
|
|
965
965
|
...i
|
|
966
966
|
}) });
|
|
967
967
|
}
|
|
@@ -973,13 +973,13 @@ var nn = d.Root, rn = d.Trigger, an = d.Close, on = d.Title, sn = d.Description,
|
|
|
973
973
|
bottom: "inset-x-0 bottom-0 border-t"
|
|
974
974
|
};
|
|
975
975
|
function ln({ className: e, children: t, side: n = "end", ...a }) {
|
|
976
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
976
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: J }), /* @__PURE__ */ i(d.Content, {
|
|
977
977
|
"data-slot": "sheet-content",
|
|
978
|
-
className:
|
|
978
|
+
className: R("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", cn[n], kt[n], e),
|
|
979
979
|
...a,
|
|
980
980
|
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
981
981
|
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(
|
|
982
|
+
children: [/* @__PURE__ */ r(M, {
|
|
983
983
|
className: "size-4",
|
|
984
984
|
"aria-hidden": "true"
|
|
985
985
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -1005,7 +1005,7 @@ function pn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1005
1005
|
return /* @__PURE__ */ r(D.Portal, { children: /* @__PURE__ */ r(D.Content, {
|
|
1006
1006
|
"data-slot": "tooltip-content",
|
|
1007
1007
|
sideOffset: t,
|
|
1008
|
-
className:
|
|
1008
|
+
className: R("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", Y, e),
|
|
1009
1009
|
...n
|
|
1010
1010
|
}) });
|
|
1011
1011
|
}
|
|
@@ -1013,17 +1013,17 @@ function pn({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1013
1013
|
var mn = "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", hn = "ms-auto text-xs tracking-wide text-muted-foreground", gn = "-mx-1 my-1 h-px bg-border", _n = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1014
1014
|
// src/ui/menu/command.component.tsx
|
|
1015
1015
|
function vn({ className: e, ...t }) {
|
|
1016
|
-
return /* @__PURE__ */ r(
|
|
1016
|
+
return /* @__PURE__ */ r(L, {
|
|
1017
1017
|
"data-slot": "command",
|
|
1018
|
-
className:
|
|
1018
|
+
className: R("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1019
1019
|
...t
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
function yn({ title: e = "Search", children: t, ...n }) {
|
|
1023
1023
|
return /* @__PURE__ */ r(d.Root, {
|
|
1024
1024
|
...n,
|
|
1025
|
-
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
1026
|
-
className:
|
|
1025
|
+
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: J }), /* @__PURE__ */ i(d.Content, {
|
|
1026
|
+
className: R("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", Y),
|
|
1027
1027
|
children: [
|
|
1028
1028
|
/* @__PURE__ */ r(d.Title, {
|
|
1029
1029
|
className: "sr-only",
|
|
@@ -1042,55 +1042,55 @@ function bn({ className: e, ...t }) {
|
|
|
1042
1042
|
return /* @__PURE__ */ i("div", {
|
|
1043
1043
|
"data-slot": "command-input-wrapper",
|
|
1044
1044
|
className: "flex h-11 items-center gap-2 border-b px-3",
|
|
1045
|
-
children: [/* @__PURE__ */ r(
|
|
1045
|
+
children: [/* @__PURE__ */ r(ge, {
|
|
1046
1046
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
1047
1047
|
"aria-hidden": "true"
|
|
1048
|
-
}), /* @__PURE__ */ r(
|
|
1048
|
+
}), /* @__PURE__ */ r(L.Input, {
|
|
1049
1049
|
"data-slot": "command-input",
|
|
1050
|
-
className:
|
|
1050
|
+
className: R("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1051
1051
|
...t
|
|
1052
1052
|
})]
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
1055
|
function xn({ className: e, ...t }) {
|
|
1056
|
-
return /* @__PURE__ */ r(
|
|
1056
|
+
return /* @__PURE__ */ r(L.List, {
|
|
1057
1057
|
"data-slot": "command-list",
|
|
1058
|
-
className:
|
|
1058
|
+
className: R("max-h-80 overflow-y-auto p-1", e),
|
|
1059
1059
|
...t
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
1062
|
function Sn({ className: e, ...t }) {
|
|
1063
|
-
return /* @__PURE__ */ r(
|
|
1063
|
+
return /* @__PURE__ */ r(L.Empty, {
|
|
1064
1064
|
"data-slot": "command-empty",
|
|
1065
|
-
className:
|
|
1065
|
+
className: R("py-6 text-center text-sm text-muted-foreground", e),
|
|
1066
1066
|
...t
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
function Cn({ className: e, ...t }) {
|
|
1070
|
-
return /* @__PURE__ */ r(
|
|
1070
|
+
return /* @__PURE__ */ r(L.Group, {
|
|
1071
1071
|
"data-slot": "command-group",
|
|
1072
|
-
className:
|
|
1072
|
+
className: R("[&_[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
1073
|
...t
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
1076
|
function wn({ className: e, ...t }) {
|
|
1077
|
-
return /* @__PURE__ */ r(
|
|
1077
|
+
return /* @__PURE__ */ r(L.Item, {
|
|
1078
1078
|
"data-slot": "command-item",
|
|
1079
|
-
className:
|
|
1079
|
+
className: R(X, "data-[selected=true]:bg-accent", e),
|
|
1080
1080
|
...t
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
function Tn({ className: e, ...t }) {
|
|
1084
|
-
return /* @__PURE__ */ r(
|
|
1084
|
+
return /* @__PURE__ */ r(L.Separator, {
|
|
1085
1085
|
"data-slot": "command-separator",
|
|
1086
|
-
className:
|
|
1086
|
+
className: R(gn, e),
|
|
1087
1087
|
...t
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
1090
|
function En({ className: e, ...t }) {
|
|
1091
1091
|
return /* @__PURE__ */ r("span", {
|
|
1092
1092
|
"data-slot": "command-shortcut",
|
|
1093
|
-
className:
|
|
1093
|
+
className: R(hn, e),
|
|
1094
1094
|
...t
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
@@ -1099,7 +1099,7 @@ var Dn = u.Root, On = u.Trigger;
|
|
|
1099
1099
|
function kn({ className: e, ...t }) {
|
|
1100
1100
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1101
1101
|
"data-slot": "context-menu-content",
|
|
1102
|
-
className:
|
|
1102
|
+
className: R(mn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1103
1103
|
...t
|
|
1104
1104
|
}) });
|
|
1105
1105
|
}
|
|
@@ -1107,21 +1107,21 @@ function An({ className: e, variant: t = "default", ...n }) {
|
|
|
1107
1107
|
return /* @__PURE__ */ r(u.Item, {
|
|
1108
1108
|
"data-slot": "context-menu-item",
|
|
1109
1109
|
"data-variant": t,
|
|
1110
|
-
className:
|
|
1110
|
+
className: R(X, e),
|
|
1111
1111
|
...n
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
function jn({ className: e, ...t }) {
|
|
1115
1115
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1116
1116
|
"data-slot": "context-menu-separator",
|
|
1117
|
-
className:
|
|
1117
|
+
className: R(gn, e),
|
|
1118
1118
|
...t
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
1121
|
function Mn({ className: e, ...t }) {
|
|
1122
1122
|
return /* @__PURE__ */ r("span", {
|
|
1123
1123
|
"data-slot": "context-menu-shortcut",
|
|
1124
|
-
className:
|
|
1124
|
+
className: R(hn, e),
|
|
1125
1125
|
...t
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
@@ -1131,7 +1131,7 @@ function Ln({ className: e, sideOffset: t = 6, ...n }) {
|
|
|
1131
1131
|
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1132
1132
|
"data-slot": "dropdown-menu-content",
|
|
1133
1133
|
sideOffset: t,
|
|
1134
|
-
className:
|
|
1134
|
+
className: R(mn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1135
1135
|
...n
|
|
1136
1136
|
}) });
|
|
1137
1137
|
}
|
|
@@ -1139,14 +1139,14 @@ function Rn({ className: e, variant: t = "default", ...n }) {
|
|
|
1139
1139
|
return /* @__PURE__ */ r(f.Item, {
|
|
1140
1140
|
"data-slot": "dropdown-menu-item",
|
|
1141
1141
|
"data-variant": t,
|
|
1142
|
-
className:
|
|
1142
|
+
className: R(X, e),
|
|
1143
1143
|
...n
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
1146
|
function zn({ className: e, children: t, ...n }) {
|
|
1147
1147
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1148
1148
|
"data-slot": "dropdown-menu-radio-item",
|
|
1149
|
-
className:
|
|
1149
|
+
className: R(X, "ps-7", e),
|
|
1150
1150
|
...n,
|
|
1151
1151
|
children: [/* @__PURE__ */ r("span", {
|
|
1152
1152
|
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
@@ -1157,21 +1157,21 @@ function zn({ className: e, children: t, ...n }) {
|
|
|
1157
1157
|
function Bn({ className: e, ...t }) {
|
|
1158
1158
|
return /* @__PURE__ */ r(f.Label, {
|
|
1159
1159
|
"data-slot": "dropdown-menu-label",
|
|
1160
|
-
className:
|
|
1160
|
+
className: R(_n, e),
|
|
1161
1161
|
...t
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
1164
|
function Vn({ className: e, ...t }) {
|
|
1165
1165
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1166
1166
|
"data-slot": "dropdown-menu-separator",
|
|
1167
|
-
className:
|
|
1167
|
+
className: R(gn, e),
|
|
1168
1168
|
...t
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
function Hn({ className: e, ...t }) {
|
|
1172
1172
|
return /* @__PURE__ */ r("span", {
|
|
1173
1173
|
"data-slot": "dropdown-menu-shortcut",
|
|
1174
|
-
className:
|
|
1174
|
+
className: R(hn, e),
|
|
1175
1175
|
...t
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
@@ -1193,7 +1193,7 @@ function Kn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1193
1193
|
return /* @__PURE__ */ i("span", {
|
|
1194
1194
|
"data-slot": "tag",
|
|
1195
1195
|
"data-highlighted": o || void 0,
|
|
1196
|
-
className:
|
|
1196
|
+
className: R("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
1197
|
...s,
|
|
1198
1198
|
children: [/* @__PURE__ */ r("span", {
|
|
1199
1199
|
className: "truncate",
|
|
@@ -1203,7 +1203,7 @@ function Kn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1203
1203
|
"aria-label": a,
|
|
1204
1204
|
onClick: n,
|
|
1205
1205
|
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(
|
|
1206
|
+
children: /* @__PURE__ */ r(M, { "aria-hidden": "true" })
|
|
1207
1207
|
}) : null]
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
@@ -1211,7 +1211,7 @@ function Kn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1211
1211
|
var qn = "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", Jn = "h-6 min-w-16 flex-1 bg-transparent px-1 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed";
|
|
1212
1212
|
// src/ui/tags-input/tags-input.component.tsx
|
|
1213
1213
|
function Yn({ 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] =
|
|
1214
|
+
let [y, b] = F(t), [x, ee] = F(""), [S, C] = F(!1), [w, T] = F(!1), E = P(null), D = e ?? y, O = q(v), te = o !== void 0 && D.length >= o;
|
|
1215
1215
|
function ne(t) {
|
|
1216
1216
|
e === void 0 && b(t), n?.(t);
|
|
1217
1217
|
}
|
|
@@ -1239,14 +1239,14 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1239
1239
|
} else x === "" && e.key === "Backspace" && D.length > 0 ? (e.preventDefault(), w ? re(D.length - 1) : T(!0)) : T(!1);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function ae(e) {
|
|
1243
1243
|
g?.(e);
|
|
1244
1244
|
let t = e.clipboardData.getData("text");
|
|
1245
1245
|
!e.defaultPrevented && Un.test(t) && (e.preventDefault(), k(Wn(`${x}${t}`)));
|
|
1246
1246
|
}
|
|
1247
1247
|
return /* @__PURE__ */ i("div", {
|
|
1248
1248
|
"data-slot": "tags-input",
|
|
1249
|
-
className:
|
|
1249
|
+
className: R(qn, d),
|
|
1250
1250
|
onClick: (e) => {
|
|
1251
1251
|
e.target === e.currentTarget && E.current?.focus();
|
|
1252
1252
|
},
|
|
@@ -1265,12 +1265,12 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1265
1265
|
disabled: p,
|
|
1266
1266
|
placeholder: D.length === 0 ? m : void 0,
|
|
1267
1267
|
readOnly: te,
|
|
1268
|
-
className:
|
|
1268
|
+
className: R(Jn, f),
|
|
1269
1269
|
onChange: (e) => {
|
|
1270
1270
|
ee(e.target.value), C(!1), T(!1);
|
|
1271
1271
|
},
|
|
1272
1272
|
onKeyDown: ie,
|
|
1273
|
-
onPaste:
|
|
1273
|
+
onPaste: ae,
|
|
1274
1274
|
onBlur: (e) => {
|
|
1275
1275
|
_?.(e), T(!1), l && !S && k(Wn(x));
|
|
1276
1276
|
},
|
|
@@ -1282,11 +1282,11 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1282
1282
|
}
|
|
1283
1283
|
// src/ui/combobox/option-search.hook.ts
|
|
1284
1284
|
function Xn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1285
|
-
let [i, a] =
|
|
1285
|
+
let [i, a] = F({
|
|
1286
1286
|
options: [],
|
|
1287
1287
|
status: "idle"
|
|
1288
|
-
}), o =
|
|
1289
|
-
return o.current = e,
|
|
1288
|
+
}), o = P(e);
|
|
1289
|
+
return o.current = e, N(() => {
|
|
1290
1290
|
let e = t.trim();
|
|
1291
1291
|
if (!o.current || e.length < r) {
|
|
1292
1292
|
a({
|
|
@@ -1329,40 +1329,40 @@ function Xn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
|
1329
1329
|
// src/ui/combobox/combobox.component.tsx
|
|
1330
1330
|
var Zn = "\0create";
|
|
1331
1331
|
function Qn(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 =
|
|
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 = q({
|
|
1333
1333
|
id: e.id,
|
|
1334
1334
|
"aria-describedby": e["aria-describedby"],
|
|
1335
1335
|
"aria-invalid": e["aria-invalid"]
|
|
1336
|
-
}), [y, b] =
|
|
1336
|
+
}), [y, b] = F(e.multiple ? null : e.defaultValue ?? null), [x, ee] = F(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] = F(!1), [E, D] = F(S?.label ?? ""), [O, te] = F(!1), ne = P(!1);
|
|
1337
1337
|
ne.current = O;
|
|
1338
|
-
let [ie,
|
|
1339
|
-
|
|
1340
|
-
let e =
|
|
1341
|
-
e && (
|
|
1342
|
-
}, [
|
|
1343
|
-
let
|
|
1338
|
+
let [ie, ae] = F(!1), oe = P(null), se = P(null), ce = gt(), le = e["aria-label"];
|
|
1339
|
+
Ee(() => {
|
|
1340
|
+
let e = oe.current;
|
|
1341
|
+
e && (ce ? e.setAttribute("aria-labelledby", ce) : le && e.removeAttribute("aria-labelledby"));
|
|
1342
|
+
}, [ce, le]);
|
|
1343
|
+
let A = O ? E : "", j = Xn(n, A, {
|
|
1344
1344
|
debounceMs: a,
|
|
1345
1345
|
minQueryLength: o
|
|
1346
|
-
}),
|
|
1347
|
-
function
|
|
1346
|
+
}), de = _ ? j.options : t ?? [], fe = s && A.trim() !== "" && de.every((e) => e.label.toLowerCase() !== A.trim().toLowerCase()) ? s(A.trim()) : null, pe = e.multiple && e.max !== void 0 && C.length >= e.max;
|
|
1347
|
+
function me(t) {
|
|
1348
1348
|
e.multiple || (e.value === void 0 && b(t), e.onValueChange?.(t));
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function ge(t) {
|
|
1351
1351
|
e.multiple && (e.value === void 0 && ee(t), e.onValueChange?.(t));
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (te(!1),
|
|
1355
|
-
|
|
1353
|
+
function _e(t) {
|
|
1354
|
+
if (te(!1), ae(!1), !e.multiple) {
|
|
1355
|
+
me(t), D(t.label), T(!1);
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
1358
|
let n = C.some((e) => e.value === t.value);
|
|
1359
|
-
(n || !
|
|
1359
|
+
(n || !pe) && (ge(n ? C.filter((e) => e.value !== t.value) : [...C, t]), D(""));
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
T(!1), te(!1),
|
|
1361
|
+
function ve() {
|
|
1362
|
+
T(!1), te(!1), ae(!1), D(e.multiple ? "" : S?.label ?? "");
|
|
1363
1363
|
}
|
|
1364
|
-
let
|
|
1365
|
-
return /* @__PURE__ */ r(
|
|
1364
|
+
let ye = (e) => C.some((t) => t.value === e.value);
|
|
1365
|
+
return /* @__PURE__ */ r(L, {
|
|
1366
1366
|
"data-slot": "combobox",
|
|
1367
1367
|
shouldFilter: !_,
|
|
1368
1368
|
filter: (e, t, n) => ne.current ? $n(t, [e, ...n ?? []]) : 1,
|
|
@@ -1371,23 +1371,23 @@ function Qn(e) {
|
|
|
1371
1371
|
children: /* @__PURE__ */ i(Qt, {
|
|
1372
1372
|
open: w,
|
|
1373
1373
|
onOpenChange: (e) => {
|
|
1374
|
-
e ||
|
|
1374
|
+
e || ve();
|
|
1375
1375
|
},
|
|
1376
1376
|
children: [/* @__PURE__ */ r(en, {
|
|
1377
1377
|
asChild: !0,
|
|
1378
1378
|
children: /* @__PURE__ */ i("div", {
|
|
1379
|
-
ref:
|
|
1379
|
+
ref: se,
|
|
1380
1380
|
"data-slot": "combobox-field",
|
|
1381
|
-
className:
|
|
1381
|
+
className: R(qn, "pe-1", h),
|
|
1382
1382
|
onClick: (e) => {
|
|
1383
|
-
e.target === e.currentTarget &&
|
|
1383
|
+
e.target === e.currentTarget && oe.current?.focus();
|
|
1384
1384
|
},
|
|
1385
1385
|
children: [
|
|
1386
1386
|
e.multiple ? C.map((e, t) => /* @__PURE__ */ r(Kn, {
|
|
1387
1387
|
highlighted: ie && t === C.length - 1,
|
|
1388
1388
|
removeLabel: `Remove ${e.label}`,
|
|
1389
1389
|
onRemove: m ? void 0 : () => {
|
|
1390
|
-
|
|
1390
|
+
_e(e);
|
|
1391
1391
|
},
|
|
1392
1392
|
children: e.label
|
|
1393
1393
|
}, e.value)) : !O && S?.icon ? /* @__PURE__ */ r("span", {
|
|
@@ -1395,28 +1395,28 @@ function Qn(e) {
|
|
|
1395
1395
|
className: "ms-1 flex text-muted-foreground [&_svg]:size-4",
|
|
1396
1396
|
children: S.icon
|
|
1397
1397
|
}) : null,
|
|
1398
|
-
/* @__PURE__ */ r(
|
|
1399
|
-
ref:
|
|
1398
|
+
/* @__PURE__ */ r(L.Input, {
|
|
1399
|
+
ref: oe,
|
|
1400
1400
|
"data-slot": "combobox-input",
|
|
1401
1401
|
value: E,
|
|
1402
1402
|
disabled: m,
|
|
1403
|
-
readOnly:
|
|
1403
|
+
readOnly: pe,
|
|
1404
1404
|
placeholder: C.length === 0 || !e.multiple ? p : void 0,
|
|
1405
1405
|
"aria-label": e["aria-label"],
|
|
1406
1406
|
className: Jn,
|
|
1407
1407
|
onValueChange: (e) => {
|
|
1408
|
-
D(e), te(!0),
|
|
1408
|
+
D(e), te(!0), ae(!1), T(!0);
|
|
1409
1409
|
},
|
|
1410
1410
|
onFocus: () => {
|
|
1411
1411
|
_ || T(!0);
|
|
1412
1412
|
},
|
|
1413
1413
|
onKeyDown: (t) => {
|
|
1414
|
-
if (t.key === "Escape") w && t.preventDefault(),
|
|
1414
|
+
if (t.key === "Escape") w && t.preventDefault(), ve();
|
|
1415
1415
|
else if (!w && t.key === "ArrowDown") T(!0);
|
|
1416
1416
|
else if (E === "" && t.key === "Backspace" && e.multiple && C.length > 0) {
|
|
1417
1417
|
t.preventDefault();
|
|
1418
1418
|
let e = C.at(-1);
|
|
1419
|
-
ie && e ?
|
|
1419
|
+
ie && e ? _e(e) : ae(!0);
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
1422
|
...v
|
|
@@ -1426,54 +1426,54 @@ function Qn(e) {
|
|
|
1426
1426
|
"aria-label": "Clear",
|
|
1427
1427
|
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
1428
|
onClick: () => {
|
|
1429
|
-
|
|
1429
|
+
me(null), D(""), oe.current?.focus();
|
|
1430
1430
|
},
|
|
1431
|
-
children: /* @__PURE__ */ r(
|
|
1431
|
+
children: /* @__PURE__ */ r(M, { "aria-hidden": "true" })
|
|
1432
1432
|
}) : null,
|
|
1433
1433
|
_ ? null : /* @__PURE__ */ r(re, {
|
|
1434
1434
|
"aria-hidden": "true",
|
|
1435
|
-
className:
|
|
1435
|
+
className: R("mx-1 size-4 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none", w && "rotate-180")
|
|
1436
1436
|
})
|
|
1437
1437
|
]
|
|
1438
1438
|
})
|
|
1439
1439
|
}), /* @__PURE__ */ r(tn, {
|
|
1440
1440
|
align: "start",
|
|
1441
1441
|
sideOffset: 4,
|
|
1442
|
-
className:
|
|
1442
|
+
className: R("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
1443
1443
|
onOpenAutoFocus: (e) => {
|
|
1444
1444
|
e.preventDefault();
|
|
1445
1445
|
},
|
|
1446
1446
|
onInteractOutside: (e) => {
|
|
1447
|
-
e.target instanceof Node &&
|
|
1447
|
+
e.target instanceof Node && se.current?.contains(e.target) && e.preventDefault();
|
|
1448
1448
|
},
|
|
1449
1449
|
onMouseDown: (e) => {
|
|
1450
1450
|
e.preventDefault();
|
|
1451
1451
|
},
|
|
1452
|
-
children: /* @__PURE__ */ i(
|
|
1452
|
+
children: /* @__PURE__ */ i(L.List, {
|
|
1453
1453
|
"data-slot": "combobox-list",
|
|
1454
1454
|
className: "max-h-72 overflow-y-auto",
|
|
1455
1455
|
children: [
|
|
1456
|
-
_ &&
|
|
1457
|
-
_ &&
|
|
1456
|
+
_ && j.status === "idle" ? /* @__PURE__ */ r(er, { children: f }) : null,
|
|
1457
|
+
_ && j.status === "loading" ? /* @__PURE__ */ i(er, { children: [/* @__PURE__ */ r(ue, {
|
|
1458
1458
|
"aria-hidden": "true",
|
|
1459
1459
|
className: "size-4 animate-spin"
|
|
1460
1460
|
}), u] }) : null,
|
|
1461
|
-
_ &&
|
|
1461
|
+
_ && j.status === "error" ? /* @__PURE__ */ r(er, {
|
|
1462
1462
|
tone: "destructive",
|
|
1463
1463
|
children: d
|
|
1464
1464
|
}) : null,
|
|
1465
|
-
!_ ||
|
|
1465
|
+
!_ || j.status === "done" ? /* @__PURE__ */ r(L.Empty, {
|
|
1466
1466
|
className: "px-2.5 py-5 text-center text-sm text-muted-foreground",
|
|
1467
|
-
children:
|
|
1467
|
+
children: fe ? null : l
|
|
1468
1468
|
}) : null,
|
|
1469
|
-
(!_ ||
|
|
1469
|
+
(!_ || j.status === "done") && de.map((e) => /* @__PURE__ */ i(L.Item, {
|
|
1470
1470
|
value: e.value,
|
|
1471
1471
|
keywords: [e.label, e.description ?? ""],
|
|
1472
1472
|
disabled: e.disabled,
|
|
1473
1473
|
onSelect: () => {
|
|
1474
|
-
|
|
1474
|
+
_e(e);
|
|
1475
1475
|
},
|
|
1476
|
-
className:
|
|
1476
|
+
className: R(X, "data-[selected=true]:bg-accent"),
|
|
1477
1477
|
children: [
|
|
1478
1478
|
e.icon ? /* @__PURE__ */ r("span", {
|
|
1479
1479
|
"aria-hidden": "true",
|
|
@@ -1492,23 +1492,23 @@ function Qn(e) {
|
|
|
1492
1492
|
}),
|
|
1493
1493
|
/* @__PURE__ */ r(k, {
|
|
1494
1494
|
"aria-hidden": "true",
|
|
1495
|
-
className:
|
|
1495
|
+
className: R("size-4 shrink-0 text-brand", ye(e) ? "opacity-100" : "opacity-0")
|
|
1496
1496
|
})
|
|
1497
1497
|
]
|
|
1498
1498
|
}, e.value)),
|
|
1499
|
-
|
|
1499
|
+
fe ? /* @__PURE__ */ i(L.Item, {
|
|
1500
1500
|
forceMount: !0,
|
|
1501
1501
|
value: Zn,
|
|
1502
1502
|
onSelect: () => {
|
|
1503
|
-
|
|
1503
|
+
_e(fe);
|
|
1504
1504
|
},
|
|
1505
|
-
className:
|
|
1506
|
-
children: [/* @__PURE__ */ r(
|
|
1505
|
+
className: R(X, "data-[selected=true]:bg-accent"),
|
|
1506
|
+
children: [/* @__PURE__ */ r(he, {
|
|
1507
1507
|
"aria-hidden": "true",
|
|
1508
1508
|
className: "size-4 shrink-0 text-brand"
|
|
1509
1509
|
}), /* @__PURE__ */ r("span", {
|
|
1510
1510
|
className: "truncate",
|
|
1511
|
-
children: c(
|
|
1511
|
+
children: c(A.trim())
|
|
1512
1512
|
})]
|
|
1513
1513
|
}) : null
|
|
1514
1514
|
]
|
|
@@ -1526,7 +1526,7 @@ function $n(e, t) {
|
|
|
1526
1526
|
function er({ children: e, tone: t }) {
|
|
1527
1527
|
return /* @__PURE__ */ r("div", {
|
|
1528
1528
|
role: "status",
|
|
1529
|
-
className:
|
|
1529
|
+
className: R("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
1530
1530
|
children: e
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
@@ -1535,22 +1535,22 @@ var tr = {
|
|
|
1535
1535
|
info: {
|
|
1536
1536
|
box: "border-border bg-card",
|
|
1537
1537
|
icon: "text-info",
|
|
1538
|
-
Icon:
|
|
1538
|
+
Icon: A
|
|
1539
1539
|
},
|
|
1540
1540
|
success: {
|
|
1541
1541
|
box: "border-border bg-card",
|
|
1542
1542
|
icon: "text-success",
|
|
1543
|
-
Icon:
|
|
1543
|
+
Icon: ce
|
|
1544
1544
|
},
|
|
1545
1545
|
warning: {
|
|
1546
1546
|
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
1547
1547
|
icon: "text-warning",
|
|
1548
|
-
Icon:
|
|
1548
|
+
Icon: ve
|
|
1549
1549
|
},
|
|
1550
1550
|
danger: {
|
|
1551
1551
|
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
1552
1552
|
icon: "text-destructive",
|
|
1553
|
-
Icon:
|
|
1553
|
+
Icon: ve
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
1556
|
function nr({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
@@ -1558,11 +1558,11 @@ function nr({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1558
1558
|
return /* @__PURE__ */ i("div", {
|
|
1559
1559
|
"data-slot": "alert",
|
|
1560
1560
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
1561
|
-
className:
|
|
1561
|
+
className: R("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
1562
1562
|
...s,
|
|
1563
1563
|
children: [/* @__PURE__ */ r("span", {
|
|
1564
1564
|
"aria-hidden": "true",
|
|
1565
|
-
className:
|
|
1565
|
+
className: R("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
1566
1566
|
children: n ?? /* @__PURE__ */ r(u, {})
|
|
1567
1567
|
}), /* @__PURE__ */ i("div", {
|
|
1568
1568
|
className: "flex flex-col gap-0.5",
|
|
@@ -1580,13 +1580,13 @@ function nr({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1580
1580
|
function rr({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1581
1581
|
return /* @__PURE__ */ i("div", {
|
|
1582
1582
|
"data-slot": "empty-state",
|
|
1583
|
-
className:
|
|
1583
|
+
className: R("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
1584
1584
|
...s,
|
|
1585
1585
|
children: [
|
|
1586
1586
|
/* @__PURE__ */ r("span", {
|
|
1587
1587
|
"aria-hidden": "true",
|
|
1588
1588
|
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
1589
|
-
children: n ?? /* @__PURE__ */ r(
|
|
1589
|
+
children: n ?? /* @__PURE__ */ r(he, {})
|
|
1590
1590
|
}),
|
|
1591
1591
|
/* @__PURE__ */ r("p", {
|
|
1592
1592
|
className: "m-0 type-h4",
|
|
@@ -1610,7 +1610,7 @@ function ir({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
1610
1610
|
"data-slot": "progress",
|
|
1611
1611
|
value: t,
|
|
1612
1612
|
max: n,
|
|
1613
|
-
className:
|
|
1613
|
+
className: R("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
1614
1614
|
...i,
|
|
1615
1615
|
children: /* @__PURE__ */ r(v.Indicator, {
|
|
1616
1616
|
className: "h-full rounded-full bg-brand transition-[width]",
|
|
@@ -1623,23 +1623,23 @@ function ar({ className: e, ...t }) {
|
|
|
1623
1623
|
return /* @__PURE__ */ r("div", {
|
|
1624
1624
|
"data-slot": "skeleton",
|
|
1625
1625
|
"aria-hidden": "true",
|
|
1626
|
-
className:
|
|
1626
|
+
className: R("animate-pulse rounded-sm bg-muted", e),
|
|
1627
1627
|
...t
|
|
1628
1628
|
});
|
|
1629
1629
|
}
|
|
1630
1630
|
// src/ui/feedback/spinner.component.tsx
|
|
1631
1631
|
function or({ className: e, label: t = "Loading", ...n }) {
|
|
1632
|
-
return /* @__PURE__ */ r(
|
|
1632
|
+
return /* @__PURE__ */ r(ue, {
|
|
1633
1633
|
"data-slot": "spinner",
|
|
1634
1634
|
role: "status",
|
|
1635
1635
|
"aria-label": t,
|
|
1636
|
-
className:
|
|
1636
|
+
className: R("size-4 animate-spin text-muted-foreground", e),
|
|
1637
1637
|
...n
|
|
1638
1638
|
});
|
|
1639
1639
|
}
|
|
1640
1640
|
// src/ui/feedback/toaster.component.tsx
|
|
1641
1641
|
function sr(e) {
|
|
1642
|
-
return /* @__PURE__ */ r(
|
|
1642
|
+
return /* @__PURE__ */ r(Oe, {
|
|
1643
1643
|
className: "toaster group",
|
|
1644
1644
|
toastOptions: { classNames: {
|
|
1645
1645
|
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 +1668,7 @@ function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1668
1668
|
return /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r("div", {
|
|
1669
1669
|
"data-slot": "file-drop-overlay",
|
|
1670
1670
|
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1671
|
-
className:
|
|
1671
|
+
className: R("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
1672
|
children: /* @__PURE__ */ r("div", {
|
|
1673
1673
|
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
1674
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -1681,7 +1681,7 @@ function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1681
1681
|
children: [/* @__PURE__ */ r("span", {
|
|
1682
1682
|
"aria-hidden": "true",
|
|
1683
1683
|
className: "absolute inset-0 rounded-full bg-current opacity-20 motion-safe:animate-ping"
|
|
1684
|
-
}), t ? c ?? /* @__PURE__ */ r(
|
|
1684
|
+
}), t ? c ?? /* @__PURE__ */ r(ye, { "aria-hidden": "true" }) : /* @__PURE__ */ r(te, { "aria-hidden": "true" })]
|
|
1685
1685
|
}),
|
|
1686
1686
|
/* @__PURE__ */ r("span", {
|
|
1687
1687
|
className: "text-2xl font-semibold text-foreground",
|
|
@@ -1698,11 +1698,11 @@ function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1698
1698
|
}
|
|
1699
1699
|
// src/ui/file-drop/page-drop.hook.ts
|
|
1700
1700
|
function dr(e) {
|
|
1701
|
-
let [t, n] =
|
|
1701
|
+
let [t, n] = F({
|
|
1702
1702
|
isOver: !1,
|
|
1703
1703
|
isAccepted: !0
|
|
1704
|
-
}), r =
|
|
1705
|
-
return r.current = e,
|
|
1704
|
+
}), r = P(e);
|
|
1705
|
+
return r.current = e, N(() => {
|
|
1706
1706
|
let e = 0, t = (e) => !r.current.disabled && !!e.dataTransfer?.types.includes("Files"), i = () => {
|
|
1707
1707
|
e = 0, n({
|
|
1708
1708
|
isOver: !1,
|
|
@@ -1739,14 +1739,14 @@ function dr(e) {
|
|
|
1739
1739
|
function fr({ className: e, ...t }) {
|
|
1740
1740
|
return /* @__PURE__ */ r(a.Root, {
|
|
1741
1741
|
"data-slot": "accordion",
|
|
1742
|
-
className:
|
|
1742
|
+
className: R("border-t", e),
|
|
1743
1743
|
...t
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
1746
|
function pr({ className: e, ...t }) {
|
|
1747
1747
|
return /* @__PURE__ */ r(a.Item, {
|
|
1748
1748
|
"data-slot": "accordion-item",
|
|
1749
|
-
className:
|
|
1749
|
+
className: R("border-b", e),
|
|
1750
1750
|
...t
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
@@ -1755,7 +1755,7 @@ function mr({ className: e, children: t, ...n }) {
|
|
|
1755
1755
|
className: "m-0 flex",
|
|
1756
1756
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
1757
1757
|
"data-slot": "accordion-trigger",
|
|
1758
|
-
className:
|
|
1758
|
+
className: R("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
1759
|
...n,
|
|
1760
1760
|
children: [t, /* @__PURE__ */ i("svg", {
|
|
1761
1761
|
viewBox: "0 0 16 16",
|
|
@@ -1787,7 +1787,7 @@ function hr({ className: e, children: t, ...n }) {
|
|
|
1787
1787
|
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
1788
|
...n,
|
|
1789
1789
|
children: /* @__PURE__ */ r("div", {
|
|
1790
|
-
className:
|
|
1790
|
+
className: R("pb-3", e),
|
|
1791
1791
|
children: t
|
|
1792
1792
|
})
|
|
1793
1793
|
});
|
|
@@ -1796,21 +1796,21 @@ function hr({ className: e, children: t, ...n }) {
|
|
|
1796
1796
|
function gr({ className: e, ...t }) {
|
|
1797
1797
|
return /* @__PURE__ */ r("div", {
|
|
1798
1798
|
"data-slot": "card",
|
|
1799
|
-
className:
|
|
1799
|
+
className: R("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1800
1800
|
...t
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
1803
|
function _r({ className: e, ...t }) {
|
|
1804
1804
|
return /* @__PURE__ */ r("div", {
|
|
1805
1805
|
"data-slot": "card-header",
|
|
1806
|
-
className:
|
|
1806
|
+
className: R("flex flex-col gap-1 px-5 pt-5", e),
|
|
1807
1807
|
...t
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
1810
|
function vr({ className: e, children: t, ...n }) {
|
|
1811
1811
|
return /* @__PURE__ */ r("h3", {
|
|
1812
1812
|
"data-slot": "card-title",
|
|
1813
|
-
className:
|
|
1813
|
+
className: R("m-0 type-h4", e),
|
|
1814
1814
|
...n,
|
|
1815
1815
|
children: t
|
|
1816
1816
|
});
|
|
@@ -1818,21 +1818,21 @@ function vr({ className: e, children: t, ...n }) {
|
|
|
1818
1818
|
function yr({ className: e, ...t }) {
|
|
1819
1819
|
return /* @__PURE__ */ r("p", {
|
|
1820
1820
|
"data-slot": "card-description",
|
|
1821
|
-
className:
|
|
1821
|
+
className: R("m-0 text-[13px] text-muted-foreground", e),
|
|
1822
1822
|
...t
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
1825
|
function br({ className: e, ...t }) {
|
|
1826
1826
|
return /* @__PURE__ */ r("div", {
|
|
1827
1827
|
"data-slot": "card-content",
|
|
1828
|
-
className:
|
|
1828
|
+
className: R("px-5 py-4", e),
|
|
1829
1829
|
...t
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
function xr({ className: e, ...t }) {
|
|
1833
1833
|
return /* @__PURE__ */ r("div", {
|
|
1834
1834
|
"data-slot": "card-footer",
|
|
1835
|
-
className:
|
|
1835
|
+
className: R("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1836
1836
|
...t
|
|
1837
1837
|
});
|
|
1838
1838
|
}
|
|
@@ -1840,28 +1840,28 @@ function xr({ className: e, ...t }) {
|
|
|
1840
1840
|
function Sr({ className: e, ...t }) {
|
|
1841
1841
|
return /* @__PURE__ */ r("kbd", {
|
|
1842
1842
|
"data-slot": "kbd",
|
|
1843
|
-
className:
|
|
1843
|
+
className: R("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
1844
|
...t
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
1847
|
// src/ui/layout/resizable.component.tsx
|
|
1848
1848
|
function Cr({ className: e, ...t }) {
|
|
1849
|
-
return /* @__PURE__ */ r(
|
|
1849
|
+
return /* @__PURE__ */ r(ke, {
|
|
1850
1850
|
"data-slot": "resizable-panel-group",
|
|
1851
|
-
className:
|
|
1851
|
+
className: R("flex size-full", e),
|
|
1852
1852
|
...t
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
1855
|
function wr(e) {
|
|
1856
|
-
return /* @__PURE__ */ r(
|
|
1856
|
+
return /* @__PURE__ */ r(Ae, {
|
|
1857
1857
|
"data-slot": "resizable-panel",
|
|
1858
1858
|
...e
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
function Tr({ className: e, ...t }) {
|
|
1862
|
-
return /* @__PURE__ */ r(
|
|
1862
|
+
return /* @__PURE__ */ r(je, {
|
|
1863
1863
|
"data-slot": "resizable-handle",
|
|
1864
|
-
className:
|
|
1864
|
+
className: R("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
1865
|
...t
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
@@ -1869,7 +1869,7 @@ function Tr({ className: e, ...t }) {
|
|
|
1869
1869
|
function Er({ className: e, children: t, ...n }) {
|
|
1870
1870
|
return /* @__PURE__ */ i(b.Root, {
|
|
1871
1871
|
"data-slot": "scroll-area",
|
|
1872
|
-
className:
|
|
1872
|
+
className: R("relative overflow-hidden", e),
|
|
1873
1873
|
...n,
|
|
1874
1874
|
children: [
|
|
1875
1875
|
/* @__PURE__ */ r(b.Viewport, {
|
|
@@ -1886,7 +1886,7 @@ function Dr({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1886
1886
|
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1887
1887
|
"data-slot": "scroll-area-scrollbar",
|
|
1888
1888
|
orientation: t,
|
|
1889
|
-
className:
|
|
1889
|
+
className: R("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1890
1890
|
...n,
|
|
1891
1891
|
children: /* @__PURE__ */ r(b.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1892
1892
|
});
|
|
@@ -1897,7 +1897,7 @@ function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1897
1897
|
"data-slot": "separator",
|
|
1898
1898
|
orientation: t,
|
|
1899
1899
|
decorative: n,
|
|
1900
|
-
className:
|
|
1900
|
+
className: R("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1901
1901
|
...i
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
@@ -1908,7 +1908,7 @@ function kr({ className: e, ...t }) {
|
|
|
1908
1908
|
className: "relative w-full overflow-x-auto",
|
|
1909
1909
|
children: /* @__PURE__ */ r("table", {
|
|
1910
1910
|
"data-slot": "table",
|
|
1911
|
-
className:
|
|
1911
|
+
className: R("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1912
1912
|
...t
|
|
1913
1913
|
})
|
|
1914
1914
|
});
|
|
@@ -1928,28 +1928,28 @@ function jr(e) {
|
|
|
1928
1928
|
function Mr({ className: e, ...t }) {
|
|
1929
1929
|
return /* @__PURE__ */ r("tr", {
|
|
1930
1930
|
"data-slot": "table-row",
|
|
1931
|
-
className:
|
|
1931
|
+
className: R("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1932
1932
|
...t
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
function Nr({ className: e, ...t }) {
|
|
1936
1936
|
return /* @__PURE__ */ r("th", {
|
|
1937
1937
|
"data-slot": "table-head",
|
|
1938
|
-
className:
|
|
1938
|
+
className: R("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1939
1939
|
...t
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
1942
|
function Pr({ className: e, ...t }) {
|
|
1943
1943
|
return /* @__PURE__ */ r("td", {
|
|
1944
1944
|
"data-slot": "table-cell",
|
|
1945
|
-
className:
|
|
1945
|
+
className: R("px-3 py-[11px] align-middle", e),
|
|
1946
1946
|
...t
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
1949
|
function Fr({ className: e, ...t }) {
|
|
1950
1950
|
return /* @__PURE__ */ r("caption", {
|
|
1951
1951
|
"data-slot": "table-caption",
|
|
1952
|
-
className:
|
|
1952
|
+
className: R("mt-3 text-xs text-muted-foreground", e),
|
|
1953
1953
|
...t
|
|
1954
1954
|
});
|
|
1955
1955
|
}
|
|
@@ -1964,14 +1964,14 @@ function Ir({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
|
1964
1964
|
function Lr({ className: e, ...t }) {
|
|
1965
1965
|
return /* @__PURE__ */ r("ol", {
|
|
1966
1966
|
"data-slot": "breadcrumb-list",
|
|
1967
|
-
className:
|
|
1967
|
+
className: R("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1968
1968
|
...t
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
1971
|
function Rr({ className: e, ...t }) {
|
|
1972
1972
|
return /* @__PURE__ */ r("li", {
|
|
1973
1973
|
"data-slot": "breadcrumb-item",
|
|
1974
|
-
className:
|
|
1974
|
+
className: R("inline-flex items-center gap-2", e),
|
|
1975
1975
|
...t
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
@@ -1979,7 +1979,7 @@ function zr({ asChild: e = !1, className: t, ...n }) {
|
|
|
1979
1979
|
let i = e ? C.Root : "a";
|
|
1980
1980
|
return /* @__PURE__ */ r(i, {
|
|
1981
1981
|
"data-slot": "breadcrumb-link",
|
|
1982
|
-
className:
|
|
1982
|
+
className: R("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1983
1983
|
...n
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
@@ -1987,7 +1987,7 @@ function Br({ className: e, ...t }) {
|
|
|
1987
1987
|
return /* @__PURE__ */ r("span", {
|
|
1988
1988
|
"data-slot": "breadcrumb-page",
|
|
1989
1989
|
"aria-current": "page",
|
|
1990
|
-
className:
|
|
1990
|
+
className: R("font-medium text-foreground", e),
|
|
1991
1991
|
...t
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
@@ -2009,7 +2009,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2009
2009
|
viewBox: "0 0 24 24",
|
|
2010
2010
|
fill: "currentColor",
|
|
2011
2011
|
"aria-hidden": "true",
|
|
2012
|
-
className:
|
|
2012
|
+
className: R("group/menu-icon size-5", t),
|
|
2013
2013
|
...n,
|
|
2014
2014
|
children: [
|
|
2015
2015
|
/* @__PURE__ */ r("rect", {
|
|
@@ -2018,7 +2018,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2018
2018
|
width: "16",
|
|
2019
2019
|
height: "2",
|
|
2020
2020
|
rx: "1",
|
|
2021
|
-
className:
|
|
2021
|
+
className: R(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
2022
2022
|
}),
|
|
2023
2023
|
/* @__PURE__ */ r("rect", {
|
|
2024
2024
|
x: "4",
|
|
@@ -2026,7 +2026,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2026
2026
|
width: "16",
|
|
2027
2027
|
height: "2",
|
|
2028
2028
|
rx: "1",
|
|
2029
|
-
className:
|
|
2029
|
+
className: R(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
2030
2030
|
}),
|
|
2031
2031
|
/* @__PURE__ */ r("rect", {
|
|
2032
2032
|
x: "4",
|
|
@@ -2034,7 +2034,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2034
2034
|
width: "16",
|
|
2035
2035
|
height: "2",
|
|
2036
2036
|
rx: "1",
|
|
2037
|
-
className:
|
|
2037
|
+
className: R(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
2038
2038
|
})
|
|
2039
2039
|
]
|
|
2040
2040
|
});
|
|
@@ -2043,7 +2043,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2043
2043
|
function Wr({ className: e, ...t }) {
|
|
2044
2044
|
return /* @__PURE__ */ r(m.Root, {
|
|
2045
2045
|
"data-slot": "menubar",
|
|
2046
|
-
className:
|
|
2046
|
+
className: R("flex items-center gap-0.5", e),
|
|
2047
2047
|
...t
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
@@ -2051,7 +2051,7 @@ var Gr = m.Menu;
|
|
|
2051
2051
|
function Kr({ className: e, ...t }) {
|
|
2052
2052
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
2053
2053
|
"data-slot": "menubar-trigger",
|
|
2054
|
-
className:
|
|
2054
|
+
className: R("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
2055
|
...t
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
@@ -2060,28 +2060,28 @@ function qr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
|
2060
2060
|
"data-slot": "menubar-content",
|
|
2061
2061
|
align: t,
|
|
2062
2062
|
sideOffset: n,
|
|
2063
|
-
className:
|
|
2063
|
+
className: R("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
2064
|
...i
|
|
2065
2065
|
}) });
|
|
2066
2066
|
}
|
|
2067
2067
|
function Jr({ className: e, ...t }) {
|
|
2068
2068
|
return /* @__PURE__ */ r(m.Item, {
|
|
2069
2069
|
"data-slot": "menubar-item",
|
|
2070
|
-
className:
|
|
2070
|
+
className: R("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
2071
|
...t
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
2074
|
function Yr({ className: e, ...t }) {
|
|
2075
2075
|
return /* @__PURE__ */ r("span", {
|
|
2076
2076
|
"data-slot": "menubar-shortcut",
|
|
2077
|
-
className:
|
|
2077
|
+
className: R("ms-auto text-xs text-muted-foreground", e),
|
|
2078
2078
|
...t
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
2081
|
function Xr({ className: e, ...t }) {
|
|
2082
2082
|
return /* @__PURE__ */ r(m.Separator, {
|
|
2083
2083
|
"data-slot": "menubar-separator",
|
|
2084
|
-
className:
|
|
2084
|
+
className: R("-mx-1 my-1 h-px bg-border", e),
|
|
2085
2085
|
...t
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
@@ -2089,18 +2089,18 @@ function Xr({ className: e, ...t }) {
|
|
|
2089
2089
|
function Zr({ className: e, children: t, ...n }) {
|
|
2090
2090
|
return /* @__PURE__ */ i(h.Root, {
|
|
2091
2091
|
"data-slot": "navigation-menu",
|
|
2092
|
-
className:
|
|
2092
|
+
className: R("relative flex items-center", e),
|
|
2093
2093
|
...n,
|
|
2094
2094
|
children: [t, /* @__PURE__ */ r("div", {
|
|
2095
2095
|
className: "absolute start-0 top-full flex justify-center",
|
|
2096
|
-
children: /* @__PURE__ */ r(h.Viewport, { className: "relative mt-2 h-(--radix-navigation-menu-viewport-height) w-full origin-top overflow-hidden rounded-xl border bg-popover text-popover-foreground transition-[width,height] duration-200 motion-reduce:transition-none shadow-lg md:w-(--radix-navigation-menu-viewport-width)" })
|
|
2096
|
+
children: /* @__PURE__ */ r(h.Viewport, { className: "relative mt-2 h-(--radix-navigation-menu-viewport-height) w-full origin-top overflow-hidden rounded-xl border bg-popover text-popover-foreground transition-[width,height] duration-200 motion-reduce:transition-none shadow-lg md:w-(--radix-navigation-menu-viewport-width) 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" })
|
|
2097
2097
|
})]
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
2100
|
function Qr({ className: e, ...t }) {
|
|
2101
2101
|
return /* @__PURE__ */ r(h.List, {
|
|
2102
2102
|
"data-slot": "navigation-menu-list",
|
|
2103
|
-
className:
|
|
2103
|
+
className: R("m-0 flex list-none items-center gap-1 p-0", e),
|
|
2104
2104
|
...t
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
@@ -2108,7 +2108,7 @@ var $r = h.Item, ei = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer
|
|
|
2108
2108
|
function ti({ className: e, children: t, ...n }) {
|
|
2109
2109
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
2110
2110
|
"data-slot": "navigation-menu-trigger",
|
|
2111
|
-
className:
|
|
2111
|
+
className: R(ei, "group", e),
|
|
2112
2112
|
...n,
|
|
2113
2113
|
children: [t, /* @__PURE__ */ r(re, {
|
|
2114
2114
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
@@ -2119,14 +2119,14 @@ function ti({ className: e, children: t, ...n }) {
|
|
|
2119
2119
|
function ni({ className: e, ...t }) {
|
|
2120
2120
|
return /* @__PURE__ */ r(h.Content, {
|
|
2121
2121
|
"data-slot": "navigation-menu-content",
|
|
2122
|
-
className:
|
|
2122
|
+
className: R("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
2123
|
...t
|
|
2124
2124
|
});
|
|
2125
2125
|
}
|
|
2126
2126
|
function ri({ className: e, ...t }) {
|
|
2127
2127
|
return /* @__PURE__ */ r(h.Link, {
|
|
2128
2128
|
"data-slot": "navigation-menu-link",
|
|
2129
|
-
className:
|
|
2129
|
+
className: R(ei, e),
|
|
2130
2130
|
...t
|
|
2131
2131
|
});
|
|
2132
2132
|
}
|
|
@@ -2136,11 +2136,11 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2136
2136
|
return /* @__PURE__ */ i("nav", {
|
|
2137
2137
|
"data-slot": "pagination",
|
|
2138
2138
|
"aria-label": "Pagination",
|
|
2139
|
-
className:
|
|
2139
|
+
className: R("flex items-center gap-1", o),
|
|
2140
2140
|
children: [
|
|
2141
2141
|
/* @__PURE__ */ r("button", {
|
|
2142
2142
|
type: "button",
|
|
2143
|
-
className:
|
|
2143
|
+
className: G({
|
|
2144
2144
|
variant: "ghost",
|
|
2145
2145
|
size: "sm"
|
|
2146
2146
|
}),
|
|
@@ -2152,7 +2152,7 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2152
2152
|
type: "button",
|
|
2153
2153
|
"aria-current": t === e ? "page" : void 0,
|
|
2154
2154
|
"aria-label": `Page ${t}`,
|
|
2155
|
-
className:
|
|
2155
|
+
className: G({
|
|
2156
2156
|
variant: t === e ? "outline" : "ghost",
|
|
2157
2157
|
size: "icon-sm"
|
|
2158
2158
|
}),
|
|
@@ -2161,7 +2161,7 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2161
2161
|
}, t)),
|
|
2162
2162
|
/* @__PURE__ */ r("button", {
|
|
2163
2163
|
type: "button",
|
|
2164
|
-
className:
|
|
2164
|
+
className: G({
|
|
2165
2165
|
variant: "ghost",
|
|
2166
2166
|
size: "sm"
|
|
2167
2167
|
}),
|
|
@@ -2173,57 +2173,74 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
2175
2175
|
// src/ui/navigation/tabs.component.tsx
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2176
|
+
var ai = xe(null), oi = 24;
|
|
2177
|
+
function si(e, t, n, r) {
|
|
2178
|
+
let i = Math.abs(e) * (t > 0 ? n / t : 1), a = Math.min(Math.max(i, oi), Math.max(n / 2, oi));
|
|
2179
|
+
return Math.round(r ? a : -a);
|
|
2180
|
+
}
|
|
2181
|
+
function ci({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2182
|
+
let l = P(null), u = P(i ?? a), [d, f] = F(), p = P(void 0), [m, h] = F(i ?? a), g = Ce((e) => {
|
|
2183
|
+
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, h(e), !t || !r || !i || r === i) return;
|
|
2185
|
+
p.current = t.querySelector("[data-slot=tabs-content][data-state=active]")?.offsetHeight;
|
|
2186
|
+
let a = s === "vertical", o = t.querySelector("[data-slot=tabs-list]"), c = a ? i.offsetTop - r.offsetTop : i.offsetLeft - r.offsetLeft, d = n.indexOf(i) > n.indexOf(r);
|
|
2187
|
+
f(si(c, (a ? o?.offsetHeight : o?.offsetWidth) ?? 0, a ? t.offsetHeight : t.offsetWidth, d));
|
|
2188
|
+
}, [s]);
|
|
2189
|
+
return N(() => {
|
|
2190
|
+
i !== void 0 && i !== u.current && g(i);
|
|
2191
|
+
}, [i, g]), /* @__PURE__ */ r(T.Root, {
|
|
2192
|
+
ref: l,
|
|
2187
2193
|
"data-slot": "tabs",
|
|
2188
|
-
"data-direction":
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2194
|
+
"data-direction": d === void 0 ? void 0 : s === "vertical" ? "y" : "x",
|
|
2195
|
+
style: d === void 0 ? t : {
|
|
2196
|
+
...t,
|
|
2197
|
+
"--tab-shift": `${String(d)}px`
|
|
2198
|
+
},
|
|
2199
|
+
value: i,
|
|
2200
|
+
defaultValue: a,
|
|
2201
|
+
orientation: s,
|
|
2192
2202
|
onValueChange: (e) => {
|
|
2193
|
-
|
|
2203
|
+
g(e), o?.(e);
|
|
2194
2204
|
},
|
|
2195
|
-
className:
|
|
2196
|
-
...
|
|
2205
|
+
className: R("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2206
|
+
...c,
|
|
2207
|
+
children: /* @__PURE__ */ r(ai, {
|
|
2208
|
+
value: {
|
|
2209
|
+
active: m,
|
|
2210
|
+
fromHeightRef: p
|
|
2211
|
+
},
|
|
2212
|
+
children: n
|
|
2213
|
+
})
|
|
2197
2214
|
});
|
|
2198
2215
|
}
|
|
2199
|
-
var
|
|
2216
|
+
var li = {
|
|
2200
2217
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2201
2218
|
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",
|
|
2202
2219
|
outline: "w-full gap-1 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e"
|
|
2203
|
-
},
|
|
2220
|
+
}, ui = {
|
|
2204
2221
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2205
2222
|
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",
|
|
2206
|
-
outline: "border bg-background
|
|
2223
|
+
outline: "border bg-background group-data-[orientation=horizontal]/tabs-list:h-[calc(var(--indicator-height)+1px)] group-data-[orientation=horizontal]/tabs-list:rounded-t-md group-data-[orientation=horizontal]/tabs-list:border-b-0 group-data-[orientation=horizontal]/tabs-list:border-t-2 group-data-[orientation=horizontal]/tabs-list:border-t-brand group-data-[orientation=vertical]/tabs-list:w-[calc(var(--indicator-width)+1px)] group-data-[orientation=vertical]/tabs-list:rounded-s-md group-data-[orientation=vertical]/tabs-list:border-e-0 group-data-[orientation=vertical]/tabs-list:border-s-2 group-data-[orientation=vertical]/tabs-list:border-s-brand"
|
|
2207
2224
|
};
|
|
2208
|
-
function
|
|
2209
|
-
let s =
|
|
2225
|
+
function di({ className: e, variant: t = "pill", fitted: n = !1, children: a, ...o }) {
|
|
2226
|
+
let s = ut("[data-slot=tabs-trigger][data-state=active]");
|
|
2210
2227
|
return /* @__PURE__ */ i(T.List, {
|
|
2211
2228
|
ref: s,
|
|
2212
2229
|
"data-slot": "tabs-list",
|
|
2213
2230
|
"data-variant": t,
|
|
2214
|
-
className:
|
|
2231
|
+
className: R("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", li[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2215
2232
|
...o,
|
|
2216
2233
|
children: [/* @__PURE__ */ r("span", {
|
|
2217
2234
|
"aria-hidden": "true",
|
|
2218
2235
|
"data-slot": "tabs-indicator",
|
|
2219
|
-
className:
|
|
2236
|
+
className: R(dt, ui[t])
|
|
2220
2237
|
}), a]
|
|
2221
2238
|
});
|
|
2222
2239
|
}
|
|
2223
|
-
function
|
|
2240
|
+
function fi(e) {
|
|
2224
2241
|
e.preventDefault(), e.stopPropagation();
|
|
2225
2242
|
}
|
|
2226
|
-
function
|
|
2243
|
+
function pi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2227
2244
|
return /* @__PURE__ */ i(T.Trigger, {
|
|
2228
2245
|
"data-slot": "tabs-trigger",
|
|
2229
2246
|
"data-value": c,
|
|
@@ -2233,7 +2250,7 @@ function ui({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2233
2250
|
onKeyDown: (e) => {
|
|
2234
2251
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2235
2252
|
},
|
|
2236
|
-
className:
|
|
2253
|
+
className: R("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 focus-visible:ring-2 focus-visible:ring-ring 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: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: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:focus-visible:ring-inset 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", e),
|
|
2237
2254
|
...l,
|
|
2238
2255
|
children: [
|
|
2239
2256
|
s,
|
|
@@ -2245,42 +2262,74 @@ function ui({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2245
2262
|
n ? /* @__PURE__ */ r("span", {
|
|
2246
2263
|
"aria-hidden": "true",
|
|
2247
2264
|
"data-slot": "tabs-close",
|
|
2248
|
-
onPointerDown:
|
|
2249
|
-
onMouseDown:
|
|
2265
|
+
onPointerDown: fi,
|
|
2266
|
+
onMouseDown: fi,
|
|
2250
2267
|
onClick: (e) => {
|
|
2251
|
-
|
|
2268
|
+
fi(e), n();
|
|
2252
2269
|
},
|
|
2253
2270
|
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",
|
|
2254
|
-
children: /* @__PURE__ */ r(
|
|
2271
|
+
children: /* @__PURE__ */ r(M, {})
|
|
2255
2272
|
}) : null
|
|
2256
2273
|
]
|
|
2257
2274
|
});
|
|
2258
2275
|
}
|
|
2259
|
-
function
|
|
2260
|
-
|
|
2276
|
+
function mi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2277
|
+
let a = we(ai), o = P(null), s = a?.active === i.value;
|
|
2278
|
+
return Ee(() => {
|
|
2279
|
+
let e = o.current, t = a?.fromHeightRef.current;
|
|
2280
|
+
if (!s || !e || !a || t === void 0 || (a.fromHeightRef.current = void 0, typeof e.animate != "function" || matchMedia("(prefers-reduced-motion: reduce)").matches)) return;
|
|
2281
|
+
function n(n) {
|
|
2282
|
+
e && Math.abs(n - (t ?? n)) >= 1 && e.animate([{
|
|
2283
|
+
minHeight: `${String(t)}px`,
|
|
2284
|
+
maxHeight: `${String(t)}px`
|
|
2285
|
+
}, {
|
|
2286
|
+
minHeight: `${String(n)}px`,
|
|
2287
|
+
maxHeight: `${String(n)}px`
|
|
2288
|
+
}], {
|
|
2289
|
+
duration: 250,
|
|
2290
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
if (e.offsetHeight > 0) {
|
|
2294
|
+
n(e.offsetHeight);
|
|
2295
|
+
return;
|
|
2296
|
+
}
|
|
2297
|
+
let r = new ResizeObserver(() => {
|
|
2298
|
+
e.offsetHeight !== 0 && (r.disconnect(), n(e.offsetHeight));
|
|
2299
|
+
});
|
|
2300
|
+
return r.observe(e), () => {
|
|
2301
|
+
r.disconnect();
|
|
2302
|
+
};
|
|
2303
|
+
}, [s, a]), /* @__PURE__ */ r(T.Content, {
|
|
2304
|
+
ref: o,
|
|
2261
2305
|
"data-slot": "tabs-content",
|
|
2262
|
-
className:
|
|
2263
|
-
...
|
|
2306
|
+
className: R("flex-1 overflow-clip outline-none", e),
|
|
2307
|
+
...i,
|
|
2308
|
+
children: /* @__PURE__ */ r("div", {
|
|
2309
|
+
"data-slot": "tabs-content-body",
|
|
2310
|
+
className: R("group-data-[direction=x]/tabs:animate-tab-in-x group-data-[direction=y]/tabs:animate-tab-in-y motion-reduce:animate-none", t),
|
|
2311
|
+
children: n
|
|
2312
|
+
})
|
|
2264
2313
|
});
|
|
2265
2314
|
}
|
|
2266
2315
|
// src/ui/navigation/stepper.component.tsx
|
|
2267
|
-
var
|
|
2316
|
+
var hi = {
|
|
2268
2317
|
done: "bg-primary text-primary-foreground",
|
|
2269
2318
|
current: "border-2 border-primary text-brand-text",
|
|
2270
2319
|
upcoming: "bg-muted text-muted-foreground"
|
|
2271
2320
|
};
|
|
2272
|
-
function
|
|
2321
|
+
function gi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2273
2322
|
let l = n === "vertical";
|
|
2274
2323
|
return /* @__PURE__ */ r("ol", {
|
|
2275
2324
|
"data-slot": "stepper",
|
|
2276
2325
|
"data-orientation": n,
|
|
2277
2326
|
"aria-label": s,
|
|
2278
|
-
className:
|
|
2327
|
+
className: R("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
2279
2328
|
...c,
|
|
2280
2329
|
children: e.map((n, o) => {
|
|
2281
2330
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2282
2331
|
"aria-hidden": "true",
|
|
2283
|
-
className:
|
|
2332
|
+
className: R("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", hi[s]),
|
|
2284
2333
|
children: s === "done" ? /* @__PURE__ */ r(k, {
|
|
2285
2334
|
className: "size-3.5",
|
|
2286
2335
|
strokeWidth: 2.5
|
|
@@ -2288,7 +2337,7 @@ function pi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2288
2337
|
}), d = /* @__PURE__ */ i("span", {
|
|
2289
2338
|
className: "flex min-w-0 flex-col",
|
|
2290
2339
|
children: [/* @__PURE__ */ i("span", {
|
|
2291
|
-
className:
|
|
2340
|
+
className: R("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
2292
2341
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
2293
2342
|
className: "sr-only",
|
|
2294
2343
|
children: ", done"
|
|
@@ -2309,24 +2358,49 @@ function pi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2309
2358
|
return /* @__PURE__ */ i("li", {
|
|
2310
2359
|
"data-state": s,
|
|
2311
2360
|
"aria-current": s === "current" ? "step" : void 0,
|
|
2312
|
-
className:
|
|
2361
|
+
className: R("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
2313
2362
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
2314
2363
|
"aria-hidden": "true",
|
|
2315
|
-
className:
|
|
2364
|
+
className: R("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")
|
|
2316
2365
|
})]
|
|
2317
2366
|
}, n.title);
|
|
2318
2367
|
})
|
|
2319
2368
|
});
|
|
2320
2369
|
}
|
|
2370
|
+
// src/ui/presence/presence.recipe.ts
|
|
2371
|
+
var _i = {
|
|
2372
|
+
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2373
|
+
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
|
+
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
|
+
};
|
|
2376
|
+
// src/ui/presence/presence.component.tsx
|
|
2377
|
+
function vi({ present: e, animation: t = "fade", unmountOnExit: n = !0, className: i, onAnimationEnd: a, ...o }) {
|
|
2378
|
+
let [s, c] = F(e), l = P(null);
|
|
2379
|
+
return e && !s && c(!0), Ee(() => {
|
|
2380
|
+
if (e || !s) return;
|
|
2381
|
+
let t = l.current;
|
|
2382
|
+
t && getComputedStyle(t).animationName !== "none" || c(!1);
|
|
2383
|
+
}, [e, s]), !s && n ? null : /* @__PURE__ */ r("div", {
|
|
2384
|
+
ref: l,
|
|
2385
|
+
"data-slot": "presence",
|
|
2386
|
+
"data-state": e ? "open" : "closed",
|
|
2387
|
+
hidden: !e && !s,
|
|
2388
|
+
className: R(_i[t], i),
|
|
2389
|
+
onAnimationEnd: (t) => {
|
|
2390
|
+
a?.(t), !e && t.target === t.currentTarget && c(!1);
|
|
2391
|
+
},
|
|
2392
|
+
...o
|
|
2393
|
+
});
|
|
2394
|
+
}
|
|
2321
2395
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2322
|
-
var
|
|
2396
|
+
var yi = xe(null);
|
|
2323
2397
|
function Z() {
|
|
2324
|
-
let e =
|
|
2398
|
+
let e = we(yi);
|
|
2325
2399
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2326
2400
|
return e;
|
|
2327
2401
|
}
|
|
2328
2402
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2329
|
-
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",
|
|
2403
|
+
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", bi = "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", xi = "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", Si = {
|
|
2330
2404
|
panel: {
|
|
2331
2405
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2332
2406
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2336,12 +2410,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2336
2410
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2337
2411
|
}
|
|
2338
2412
|
};
|
|
2339
|
-
function
|
|
2340
|
-
let [d, f] =
|
|
2413
|
+
function Ci({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2414
|
+
let [d, f] = F(o), p = a ?? d;
|
|
2341
2415
|
function m(e) {
|
|
2342
2416
|
a === void 0 && f(e), s?.(e);
|
|
2343
2417
|
}
|
|
2344
|
-
return /* @__PURE__ */ r(
|
|
2418
|
+
return /* @__PURE__ */ r(yi, {
|
|
2345
2419
|
value: {
|
|
2346
2420
|
collapsed: p,
|
|
2347
2421
|
setCollapsed: m,
|
|
@@ -2354,7 +2428,7 @@ function vi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2354
2428
|
"data-variant": t,
|
|
2355
2429
|
"data-collapsed": p || void 0,
|
|
2356
2430
|
"aria-label": e,
|
|
2357
|
-
className:
|
|
2431
|
+
className: R("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 ? Si[t].collapsed : Si[t].open, c),
|
|
2358
2432
|
...u,
|
|
2359
2433
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2360
2434
|
"aria-hidden": "true",
|
|
@@ -2364,8 +2438,8 @@ function vi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2364
2438
|
})
|
|
2365
2439
|
});
|
|
2366
2440
|
}
|
|
2367
|
-
function
|
|
2368
|
-
let { collapsed: n, side: a } = Z(), [o, s] =
|
|
2441
|
+
function wi({ label: e, children: t }) {
|
|
2442
|
+
let { collapsed: n, side: a } = Z(), [o, s] = F(!1);
|
|
2369
2443
|
return /* @__PURE__ */ i(dn, {
|
|
2370
2444
|
open: n && o,
|
|
2371
2445
|
onOpenChange: s,
|
|
@@ -2378,18 +2452,18 @@ function yi({ label: e, children: t }) {
|
|
|
2378
2452
|
})]
|
|
2379
2453
|
});
|
|
2380
2454
|
}
|
|
2381
|
-
function
|
|
2455
|
+
function Ti({ className: e, ...t }) {
|
|
2382
2456
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2383
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2457
|
+
if (c === "nav") return /* @__PURE__ */ r(wi, {
|
|
2384
2458
|
label: l,
|
|
2385
2459
|
children: /* @__PURE__ */ i("button", {
|
|
2386
2460
|
type: "button",
|
|
2387
2461
|
"aria-label": l,
|
|
2388
2462
|
"aria-expanded": !n,
|
|
2389
2463
|
onClick: () => a(!n),
|
|
2390
|
-
className:
|
|
2464
|
+
className: R(xi, e),
|
|
2391
2465
|
...t,
|
|
2392
|
-
children: [/* @__PURE__ */ r(
|
|
2466
|
+
children: [/* @__PURE__ */ r(fe, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2393
2467
|
"aria-hidden": "true",
|
|
2394
2468
|
className: Q,
|
|
2395
2469
|
children: "Collapse"
|
|
@@ -2397,45 +2471,45 @@ function bi({ className: e, ...t }) {
|
|
|
2397
2471
|
})
|
|
2398
2472
|
});
|
|
2399
2473
|
let u = s === "start" !== n;
|
|
2400
|
-
return /* @__PURE__ */ r(
|
|
2474
|
+
return /* @__PURE__ */ r(K, {
|
|
2401
2475
|
variant: "ghost",
|
|
2402
2476
|
size: "icon-sm",
|
|
2403
2477
|
"aria-label": l,
|
|
2404
2478
|
"aria-expanded": !n,
|
|
2405
2479
|
title: l,
|
|
2406
2480
|
onClick: () => a(!n),
|
|
2407
|
-
className:
|
|
2481
|
+
className: R("shrink-0 text-muted-foreground", e),
|
|
2408
2482
|
...t,
|
|
2409
|
-
children: r(u ?
|
|
2483
|
+
children: r(u ? ae : oe, {})
|
|
2410
2484
|
});
|
|
2411
2485
|
}
|
|
2412
|
-
function
|
|
2486
|
+
function Ei({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2413
2487
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2414
2488
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2415
2489
|
"data-slot": "sidebar-header",
|
|
2416
|
-
className:
|
|
2490
|
+
className: R("flex h-8 items-center", o),
|
|
2417
2491
|
children: a
|
|
2418
2492
|
});
|
|
2419
2493
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
2420
2494
|
return /* @__PURE__ */ i("div", {
|
|
2421
2495
|
"data-slot": "sidebar-header",
|
|
2422
|
-
className:
|
|
2496
|
+
className: R("flex items-center gap-1", o),
|
|
2423
2497
|
children: [/* @__PURE__ */ i("div", {
|
|
2424
2498
|
inert: s,
|
|
2425
2499
|
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",
|
|
2426
|
-
children: [t && /* @__PURE__ */ r(
|
|
2500
|
+
children: [t && /* @__PURE__ */ r(yt, {
|
|
2427
2501
|
type: "search",
|
|
2428
2502
|
value: e,
|
|
2429
2503
|
onChange: (e) => t(e.target.value),
|
|
2430
2504
|
placeholder: u,
|
|
2431
2505
|
"aria-label": u,
|
|
2432
|
-
startIcon: /* @__PURE__ */ r(
|
|
2506
|
+
startIcon: /* @__PURE__ */ r(ge, {})
|
|
2433
2507
|
}), a]
|
|
2434
|
-
}), /* @__PURE__ */ r(
|
|
2508
|
+
}), /* @__PURE__ */ r(Ti, { className: "ms-auto" })]
|
|
2435
2509
|
});
|
|
2436
2510
|
}
|
|
2437
|
-
function
|
|
2438
|
-
let { label: n, variant: i } = Z(), a =
|
|
2511
|
+
function Di({ className: e, ...t }) {
|
|
2512
|
+
let { label: n, variant: i } = Z(), a = R("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);
|
|
2439
2513
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2440
2514
|
"data-slot": "sidebar-content",
|
|
2441
2515
|
"aria-label": n,
|
|
@@ -2447,12 +2521,12 @@ function Si({ className: e, ...t }) {
|
|
|
2447
2521
|
...t
|
|
2448
2522
|
});
|
|
2449
2523
|
}
|
|
2450
|
-
function
|
|
2524
|
+
function Oi({ className: e, children: t, ...n }) {
|
|
2451
2525
|
let { collapsed: i } = Z();
|
|
2452
2526
|
return /* @__PURE__ */ r("div", {
|
|
2453
2527
|
"data-slot": "sidebar-note",
|
|
2454
2528
|
"aria-hidden": i || void 0,
|
|
2455
|
-
className:
|
|
2529
|
+
className: R(bi, e),
|
|
2456
2530
|
...n,
|
|
2457
2531
|
children: /* @__PURE__ */ r("span", {
|
|
2458
2532
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2460,26 +2534,26 @@ function Ci({ className: e, children: t, ...n }) {
|
|
|
2460
2534
|
})
|
|
2461
2535
|
});
|
|
2462
2536
|
}
|
|
2463
|
-
function
|
|
2537
|
+
function ki({ className: e, ...t }) {
|
|
2464
2538
|
let { collapsed: n, variant: i } = Z();
|
|
2465
2539
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2466
2540
|
"data-slot": "sidebar-footer",
|
|
2467
|
-
className:
|
|
2541
|
+
className: R("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
2468
2542
|
...t
|
|
2469
2543
|
});
|
|
2470
2544
|
}
|
|
2471
2545
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2472
|
-
function
|
|
2473
|
-
let { collapsed: u, variant: d } = Z(), [f, p] =
|
|
2546
|
+
function Ai({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2547
|
+
let { collapsed: u, variant: d } = Z(), [f, p] = F(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
2474
2548
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2475
2549
|
"data-slot": "sidebar-group",
|
|
2476
2550
|
open: n || u || f,
|
|
2477
2551
|
onOpenChange: p,
|
|
2478
|
-
className:
|
|
2552
|
+
className: R("flex flex-col gap-1", s),
|
|
2479
2553
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
2480
2554
|
disabled: n,
|
|
2481
2555
|
inert: u,
|
|
2482
|
-
className:
|
|
2556
|
+
className: R("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"),
|
|
2483
2557
|
children: [
|
|
2484
2558
|
/* @__PURE__ */ r(ie, {
|
|
2485
2559
|
"aria-hidden": "true",
|
|
@@ -2504,16 +2578,16 @@ function Ti({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2504
2578
|
role: "group",
|
|
2505
2579
|
"aria-label": e,
|
|
2506
2580
|
"data-slot": "sidebar-group",
|
|
2507
|
-
className:
|
|
2581
|
+
className: R("flex flex-col gap-0.5", s),
|
|
2508
2582
|
children: [/* @__PURE__ */ r("span", {
|
|
2509
2583
|
"aria-hidden": "true",
|
|
2510
|
-
className:
|
|
2584
|
+
className: R("flex h-6 items-center px-3", h, Q),
|
|
2511
2585
|
children: e
|
|
2512
2586
|
}), c]
|
|
2513
2587
|
});
|
|
2514
2588
|
}
|
|
2515
2589
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2516
|
-
function
|
|
2590
|
+
function ji({ 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 }) {
|
|
2517
2591
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2518
2592
|
/* @__PURE__ */ r("span", {
|
|
2519
2593
|
"aria-hidden": "true",
|
|
@@ -2525,7 +2599,7 @@ function Ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2525
2599
|
children: e
|
|
2526
2600
|
}),
|
|
2527
2601
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2528
|
-
className:
|
|
2602
|
+
className: R("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Q),
|
|
2529
2603
|
children: c
|
|
2530
2604
|
})
|
|
2531
2605
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2535,11 +2609,11 @@ function Ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2535
2609
|
children: a
|
|
2536
2610
|
}) : /* @__PURE__ */ r("span", {
|
|
2537
2611
|
"aria-hidden": "true",
|
|
2538
|
-
className:
|
|
2612
|
+
className: R("h-6 w-2.5 shrink-0 rounded-[3px]", o ? H[o] : ""),
|
|
2539
2613
|
style: o ? void 0 : { background: s }
|
|
2540
2614
|
}),
|
|
2541
2615
|
/* @__PURE__ */ i("span", {
|
|
2542
|
-
className:
|
|
2616
|
+
className: R("flex flex-col", Q),
|
|
2543
2617
|
children: [/* @__PURE__ */ r("span", {
|
|
2544
2618
|
className: "truncate text-[13px] font-medium",
|
|
2545
2619
|
children: e
|
|
@@ -2549,45 +2623,45 @@ function Ei({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2549
2623
|
})]
|
|
2550
2624
|
}),
|
|
2551
2625
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2552
|
-
className:
|
|
2626
|
+
className: R("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2553
2627
|
children: c
|
|
2554
2628
|
})
|
|
2555
|
-
] }), v = h === "nav" ?
|
|
2629
|
+
] }), v = h === "nav" ? R(xi, d) : R("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 = {
|
|
2556
2630
|
"data-slot": "sidebar-item",
|
|
2557
2631
|
"aria-current": g,
|
|
2558
2632
|
"aria-label": m ? e : void 0,
|
|
2559
2633
|
className: v
|
|
2560
|
-
}, b = u &&
|
|
2634
|
+
}, b = u && Se(f) ? /* @__PURE__ */ r(C.Root, {
|
|
2561
2635
|
...y,
|
|
2562
2636
|
...p,
|
|
2563
|
-
children:
|
|
2637
|
+
children: Mi(f, _)
|
|
2564
2638
|
}) : /* @__PURE__ */ r("button", {
|
|
2565
2639
|
type: "button",
|
|
2566
2640
|
...y,
|
|
2567
2641
|
...p,
|
|
2568
2642
|
children: _
|
|
2569
2643
|
});
|
|
2570
|
-
return /* @__PURE__ */ r(
|
|
2644
|
+
return /* @__PURE__ */ r(wi, {
|
|
2571
2645
|
label: e,
|
|
2572
2646
|
children: b
|
|
2573
2647
|
});
|
|
2574
2648
|
}
|
|
2575
|
-
function
|
|
2576
|
-
return
|
|
2649
|
+
function Mi(e, t) {
|
|
2650
|
+
return be(e, void 0, t);
|
|
2577
2651
|
}
|
|
2578
2652
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2579
|
-
function
|
|
2653
|
+
function Ni({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2580
2654
|
return /* @__PURE__ */ i(nn, {
|
|
2581
2655
|
open: a,
|
|
2582
2656
|
onOpenChange: o,
|
|
2583
2657
|
children: [/* @__PURE__ */ r(rn, {
|
|
2584
2658
|
asChild: !0,
|
|
2585
|
-
children: /* @__PURE__ */ r(
|
|
2659
|
+
children: /* @__PURE__ */ r(K, {
|
|
2586
2660
|
variant: "ghost",
|
|
2587
2661
|
size: "icon",
|
|
2588
2662
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
2589
2663
|
className: s,
|
|
2590
|
-
children: /* @__PURE__ */ r(
|
|
2664
|
+
children: /* @__PURE__ */ r(fe, {})
|
|
2591
2665
|
})
|
|
2592
2666
|
}), /* @__PURE__ */ i(ln, {
|
|
2593
2667
|
"data-slot": "sidebar-sheet",
|
|
@@ -2601,15 +2675,15 @@ function Oi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2601
2675
|
});
|
|
2602
2676
|
}
|
|
2603
2677
|
// src/product/product-switcher.component.tsx
|
|
2604
|
-
function
|
|
2678
|
+
function Pi({ product: e, workspace: t, products: n = qe, onProductChange: a, className: o }) {
|
|
2605
2679
|
return /* @__PURE__ */ i(Nn, { children: [/* @__PURE__ */ r(Pn, {
|
|
2606
2680
|
asChild: !0,
|
|
2607
|
-
children: /* @__PURE__ */ i(
|
|
2681
|
+
children: /* @__PURE__ */ i(K, {
|
|
2608
2682
|
variant: "ghost",
|
|
2609
|
-
className:
|
|
2610
|
-
"aria-label": `${
|
|
2683
|
+
className: R("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2684
|
+
"aria-label": `${z[e].name}, switch product`,
|
|
2611
2685
|
children: [
|
|
2612
|
-
/* @__PURE__ */ r(
|
|
2686
|
+
/* @__PURE__ */ r(B, {
|
|
2613
2687
|
product: e,
|
|
2614
2688
|
alt: "",
|
|
2615
2689
|
className: "size-7"
|
|
@@ -2618,13 +2692,13 @@ function ki({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2618
2692
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2619
2693
|
children: [/* @__PURE__ */ r("span", {
|
|
2620
2694
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2621
|
-
children:
|
|
2695
|
+
children: z[e].name
|
|
2622
2696
|
}), t && /* @__PURE__ */ r("span", {
|
|
2623
2697
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2624
2698
|
children: t
|
|
2625
2699
|
})]
|
|
2626
2700
|
}),
|
|
2627
|
-
/* @__PURE__ */ r(
|
|
2701
|
+
/* @__PURE__ */ r(se, {
|
|
2628
2702
|
className: "ms-auto text-muted-foreground",
|
|
2629
2703
|
"aria-hidden": "true"
|
|
2630
2704
|
})
|
|
@@ -2638,21 +2712,21 @@ function ki({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2638
2712
|
onValueChange: (e) => a?.(e),
|
|
2639
2713
|
children: n.map((e) => /* @__PURE__ */ i(zn, {
|
|
2640
2714
|
value: e,
|
|
2641
|
-
children: [/* @__PURE__ */ r(
|
|
2715
|
+
children: [/* @__PURE__ */ r(B, {
|
|
2642
2716
|
product: e,
|
|
2643
2717
|
alt: "",
|
|
2644
2718
|
className: "size-4"
|
|
2645
|
-
}),
|
|
2719
|
+
}), z[e].name]
|
|
2646
2720
|
}, e))
|
|
2647
2721
|
})]
|
|
2648
2722
|
})] });
|
|
2649
2723
|
}
|
|
2650
2724
|
// src/product/sidebar-brand.component.tsx
|
|
2651
|
-
function
|
|
2652
|
-
let { collapsed: a, setCollapsed: o } = Z(), s =
|
|
2725
|
+
function Fi({ product: e, badge: t, className: n }) {
|
|
2726
|
+
let { collapsed: a, setCollapsed: o } = Z(), s = z[e].name;
|
|
2653
2727
|
return /* @__PURE__ */ i("div", {
|
|
2654
2728
|
"data-slot": "sidebar-brand",
|
|
2655
|
-
className:
|
|
2729
|
+
className: R("flex h-8 items-center", n),
|
|
2656
2730
|
children: [
|
|
2657
2731
|
/* @__PURE__ */ r("button", {
|
|
2658
2732
|
type: "button",
|
|
@@ -2660,26 +2734,26 @@ function Ai({ product: e, badge: t, className: n }) {
|
|
|
2660
2734
|
"aria-expanded": !a,
|
|
2661
2735
|
onClick: () => o(!a),
|
|
2662
2736
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2663
|
-
children: /* @__PURE__ */ r(
|
|
2737
|
+
children: /* @__PURE__ */ r(B, {
|
|
2664
2738
|
product: e,
|
|
2665
2739
|
alt: "",
|
|
2666
|
-
className:
|
|
2740
|
+
className: R("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
2667
2741
|
})
|
|
2668
2742
|
}),
|
|
2669
2743
|
/* @__PURE__ */ r("span", {
|
|
2670
|
-
className:
|
|
2744
|
+
className: R("ms-1 font-display text-lg font-extrabold text-brand-text italic", Q),
|
|
2671
2745
|
children: s
|
|
2672
2746
|
}),
|
|
2673
2747
|
t && /* @__PURE__ */ r("span", {
|
|
2674
|
-
className:
|
|
2748
|
+
className: R("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Q),
|
|
2675
2749
|
children: t
|
|
2676
2750
|
})
|
|
2677
2751
|
]
|
|
2678
2752
|
});
|
|
2679
2753
|
}
|
|
2680
2754
|
// src/app/command-shortcut.hook.ts
|
|
2681
|
-
function
|
|
2682
|
-
|
|
2755
|
+
function Ii(e, t = !0) {
|
|
2756
|
+
N(() => {
|
|
2683
2757
|
if (!t) return;
|
|
2684
2758
|
function n(t) {
|
|
2685
2759
|
t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
|
|
@@ -2687,42 +2761,42 @@ function ji(e, t = !0) {
|
|
|
2687
2761
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
2688
2762
|
}, [e, t]);
|
|
2689
2763
|
}
|
|
2690
|
-
function
|
|
2764
|
+
function Li(e) {
|
|
2691
2765
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
2692
2766
|
}
|
|
2693
|
-
function
|
|
2694
|
-
function
|
|
2695
|
-
return
|
|
2767
|
+
function Ri() {}
|
|
2768
|
+
function zi() {
|
|
2769
|
+
return Ri;
|
|
2696
2770
|
}
|
|
2697
|
-
function
|
|
2771
|
+
function Bi() {
|
|
2698
2772
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
2699
2773
|
}
|
|
2700
|
-
function
|
|
2774
|
+
function Vi() {
|
|
2701
2775
|
return "";
|
|
2702
2776
|
}
|
|
2703
|
-
function
|
|
2704
|
-
return
|
|
2777
|
+
function Hi() {
|
|
2778
|
+
return Li(De(zi, Bi, Vi));
|
|
2705
2779
|
}
|
|
2706
2780
|
// src/app/app-shell.component.tsx
|
|
2707
|
-
var
|
|
2708
|
-
function
|
|
2781
|
+
var Ui = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] has-[>[data-slot=app-shell-body]]:gap-0 has-[>[data-slot=app-shell-body]]:overflow-hidden has-[>[data-slot=app-shell-body]]:p-0";
|
|
2782
|
+
function Wi({ children: e, className: t }) {
|
|
2709
2783
|
return /* @__PURE__ */ r("div", {
|
|
2710
2784
|
"data-slot": "app-shell-header",
|
|
2711
|
-
className:
|
|
2785
|
+
className: R("shrink-0 border-b px-6 py-4", t),
|
|
2712
2786
|
children: e
|
|
2713
2787
|
});
|
|
2714
2788
|
}
|
|
2715
|
-
function
|
|
2789
|
+
function Gi({ children: e, className: t }) {
|
|
2716
2790
|
return /* @__PURE__ */ r("div", {
|
|
2717
2791
|
"data-slot": "app-shell-body",
|
|
2718
|
-
className:
|
|
2792
|
+
className: R("flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable]", t),
|
|
2719
2793
|
children: e
|
|
2720
2794
|
});
|
|
2721
2795
|
}
|
|
2722
|
-
function
|
|
2723
|
-
let [v, y] =
|
|
2724
|
-
|
|
2725
|
-
let x =
|
|
2796
|
+
function Ki({ 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: _ }) {
|
|
2797
|
+
let [v, y] = F(!1), b = Ce(() => y(!0), []);
|
|
2798
|
+
Ii(b, !!h?.length);
|
|
2799
|
+
let x = Hi(), ee = [...new Set(h?.map((e) => e.group))], S = (e) => /* @__PURE__ */ r(ji, {
|
|
2726
2800
|
asChild: !0,
|
|
2727
2801
|
title: e.label,
|
|
2728
2802
|
icon: e.icon,
|
|
@@ -2733,19 +2807,19 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2733
2807
|
children: e.label
|
|
2734
2808
|
})
|
|
2735
2809
|
}, e.href), C = /* @__PURE__ */ i(n, { children: [
|
|
2736
|
-
/* @__PURE__ */ r(
|
|
2810
|
+
/* @__PURE__ */ r(Ei, {
|
|
2737
2811
|
className: "h-12",
|
|
2738
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
2812
|
+
children: t === "logo" ? /* @__PURE__ */ r(Fi, { product: e }) : /* @__PURE__ */ r(Pi, {
|
|
2739
2813
|
product: e,
|
|
2740
2814
|
workspace: a,
|
|
2741
2815
|
onProductChange: o,
|
|
2742
2816
|
className: "px-2.5"
|
|
2743
2817
|
})
|
|
2744
2818
|
}),
|
|
2745
|
-
/* @__PURE__ */ i(
|
|
2746
|
-
h?.length ? /* @__PURE__ */ r(
|
|
2819
|
+
/* @__PURE__ */ i(Di, { children: [
|
|
2820
|
+
h?.length ? /* @__PURE__ */ r(ji, {
|
|
2747
2821
|
title: "Search",
|
|
2748
|
-
icon: /* @__PURE__ */ r(
|
|
2822
|
+
icon: /* @__PURE__ */ r(ge, {}),
|
|
2749
2823
|
badge: /* @__PURE__ */ r(Sr, {
|
|
2750
2824
|
className: "border-0 bg-transparent",
|
|
2751
2825
|
children: x
|
|
@@ -2756,20 +2830,20 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2756
2830
|
className: "flex flex-col gap-0.5",
|
|
2757
2831
|
children: s.map((e) => S(e))
|
|
2758
2832
|
}),
|
|
2759
|
-
c && /* @__PURE__ */ r(
|
|
2833
|
+
c && /* @__PURE__ */ r(Ai, {
|
|
2760
2834
|
title: c.title,
|
|
2761
2835
|
children: c.items.map((e) => S(e))
|
|
2762
2836
|
})
|
|
2763
2837
|
] }),
|
|
2764
|
-
/* @__PURE__ */ i(
|
|
2838
|
+
/* @__PURE__ */ i(ki, { children: [
|
|
2765
2839
|
l && /* @__PURE__ */ r("div", {
|
|
2766
2840
|
className: Q,
|
|
2767
2841
|
children: l
|
|
2768
2842
|
}),
|
|
2769
2843
|
d && /* @__PURE__ */ i("div", {
|
|
2770
2844
|
className: "flex items-center gap-2.5 px-1",
|
|
2771
|
-
children: [/* @__PURE__ */ r(
|
|
2772
|
-
className:
|
|
2845
|
+
children: [/* @__PURE__ */ r(et, { children: /* @__PURE__ */ r(nt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
2846
|
+
className: R("flex flex-col leading-tight", Q),
|
|
2773
2847
|
children: [/* @__PURE__ */ r("span", {
|
|
2774
2848
|
className: "text-[13px] font-semibold",
|
|
2775
2849
|
children: d.name
|
|
@@ -2779,15 +2853,15 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2779
2853
|
})]
|
|
2780
2854
|
})]
|
|
2781
2855
|
}),
|
|
2782
|
-
/* @__PURE__ */ r(
|
|
2783
|
-
u && /* @__PURE__ */ r(
|
|
2856
|
+
/* @__PURE__ */ r(Ti, {}),
|
|
2857
|
+
u && /* @__PURE__ */ r(Oi, { children: u })
|
|
2784
2858
|
] })
|
|
2785
2859
|
] });
|
|
2786
2860
|
return /* @__PURE__ */ i("div", {
|
|
2787
2861
|
"data-slot": "app-shell",
|
|
2788
|
-
className:
|
|
2862
|
+
className: R("flex h-dvh overflow-hidden bg-background", _),
|
|
2789
2863
|
children: [
|
|
2790
|
-
/* @__PURE__ */ r(
|
|
2864
|
+
/* @__PURE__ */ r(Ci, {
|
|
2791
2865
|
variant: "nav",
|
|
2792
2866
|
label: "Workspace",
|
|
2793
2867
|
className: "h-dvh max-md:hidden",
|
|
@@ -2798,12 +2872,12 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2798
2872
|
children: [
|
|
2799
2873
|
/* @__PURE__ */ i("div", {
|
|
2800
2874
|
"data-slot": "app-top-bar",
|
|
2801
|
-
className:
|
|
2875
|
+
className: R("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
2802
2876
|
children: [
|
|
2803
|
-
/* @__PURE__ */ r(
|
|
2877
|
+
/* @__PURE__ */ r(Ni, {
|
|
2804
2878
|
label: "Workspace",
|
|
2805
2879
|
className: "-ms-2 md:hidden",
|
|
2806
|
-
children: /* @__PURE__ */ r(
|
|
2880
|
+
children: /* @__PURE__ */ r(Ci, {
|
|
2807
2881
|
variant: "nav",
|
|
2808
2882
|
label: "Workspace",
|
|
2809
2883
|
collapsed: !1,
|
|
@@ -2820,7 +2894,7 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2820
2894
|
}),
|
|
2821
2895
|
/* @__PURE__ */ r("main", {
|
|
2822
2896
|
"data-slot": "app-shell-page",
|
|
2823
|
-
className:
|
|
2897
|
+
className: Ui,
|
|
2824
2898
|
children: g
|
|
2825
2899
|
}),
|
|
2826
2900
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -2848,21 +2922,21 @@ function Vi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2848
2922
|
});
|
|
2849
2923
|
}
|
|
2850
2924
|
// src/app/filter-bar.component.tsx
|
|
2851
|
-
function
|
|
2925
|
+
function qi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
2852
2926
|
return /* @__PURE__ */ i("div", {
|
|
2853
2927
|
"data-slot": "filter-bar",
|
|
2854
2928
|
role: "search",
|
|
2855
|
-
className:
|
|
2929
|
+
className: R("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
2856
2930
|
children: [
|
|
2857
2931
|
/* @__PURE__ */ r("div", {
|
|
2858
2932
|
className: "max-w-80 flex-[1_1_220px]",
|
|
2859
|
-
children: /* @__PURE__ */ r(
|
|
2933
|
+
children: /* @__PURE__ */ r(yt, {
|
|
2860
2934
|
type: "search",
|
|
2861
2935
|
value: e,
|
|
2862
2936
|
onChange: (e) => t(e.target.value),
|
|
2863
2937
|
placeholder: n,
|
|
2864
2938
|
"aria-label": n,
|
|
2865
|
-
startIcon: /* @__PURE__ */ r(
|
|
2939
|
+
startIcon: /* @__PURE__ */ r(ge, {})
|
|
2866
2940
|
})
|
|
2867
2941
|
}),
|
|
2868
2942
|
a,
|
|
@@ -2873,16 +2947,16 @@ function Hi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
2873
2947
|
]
|
|
2874
2948
|
});
|
|
2875
2949
|
}
|
|
2876
|
-
function
|
|
2877
|
-
return /* @__PURE__ */ i(
|
|
2950
|
+
function Ji({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
2951
|
+
return /* @__PURE__ */ i(K, {
|
|
2878
2952
|
variant: "outline",
|
|
2879
2953
|
size: "sm",
|
|
2880
|
-
className:
|
|
2954
|
+
className: R("border-dashed", a),
|
|
2881
2955
|
...o,
|
|
2882
2956
|
children: [
|
|
2883
|
-
n ?? /* @__PURE__ */ r(
|
|
2957
|
+
n ?? /* @__PURE__ */ r(he, {}),
|
|
2884
2958
|
e,
|
|
2885
|
-
t > 0 && /* @__PURE__ */ r(
|
|
2959
|
+
t > 0 && /* @__PURE__ */ r(W, {
|
|
2886
2960
|
variant: "brand",
|
|
2887
2961
|
className: "h-[18px]",
|
|
2888
2962
|
"aria-label": `${t} selected`,
|
|
@@ -2892,10 +2966,10 @@ function Ui({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
2892
2966
|
});
|
|
2893
2967
|
}
|
|
2894
2968
|
// src/app/form-section.component.tsx
|
|
2895
|
-
function
|
|
2969
|
+
function Yi({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
2896
2970
|
return /* @__PURE__ */ i("section", {
|
|
2897
2971
|
"data-slot": "form-section",
|
|
2898
|
-
className:
|
|
2972
|
+
className: R("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
2899
2973
|
children: [/* @__PURE__ */ i("div", {
|
|
2900
2974
|
className: "flex flex-col gap-1",
|
|
2901
2975
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -2918,10 +2992,10 @@ function Wi({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
2918
2992
|
});
|
|
2919
2993
|
}
|
|
2920
2994
|
// src/app/page-header.component.tsx
|
|
2921
|
-
function
|
|
2995
|
+
function Xi({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
2922
2996
|
return /* @__PURE__ */ i("div", {
|
|
2923
2997
|
"data-slot": "page-header",
|
|
2924
|
-
className:
|
|
2998
|
+
className: R("flex flex-col gap-4", o),
|
|
2925
2999
|
children: [/* @__PURE__ */ i("div", {
|
|
2926
3000
|
className: "flex flex-wrap items-end gap-4",
|
|
2927
3001
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -2941,7 +3015,7 @@ function Gi({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
2941
3015
|
});
|
|
2942
3016
|
}
|
|
2943
3017
|
// src/app/records-table.component.tsx
|
|
2944
|
-
function
|
|
3018
|
+
function Zi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
2945
3019
|
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";
|
|
2946
3020
|
function m(e, t) {
|
|
2947
3021
|
let n = new Set(a);
|
|
@@ -2955,20 +3029,20 @@ function Ki({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2955
3029
|
return /* @__PURE__ */ i(kr, {
|
|
2956
3030
|
"data-slot": "records-table",
|
|
2957
3031
|
"aria-label": c,
|
|
2958
|
-
className:
|
|
3032
|
+
className: R("min-w-[760px]", l),
|
|
2959
3033
|
children: [/* @__PURE__ */ r(Ar, { children: /* @__PURE__ */ i(Mr, {
|
|
2960
3034
|
className: "hover:bg-transparent",
|
|
2961
3035
|
children: [
|
|
2962
3036
|
u && /* @__PURE__ */ r(Nr, {
|
|
2963
3037
|
className: "w-9",
|
|
2964
|
-
children: /* @__PURE__ */ r(
|
|
3038
|
+
children: /* @__PURE__ */ r(at, {
|
|
2965
3039
|
"aria-label": "Select all rows",
|
|
2966
3040
|
checked: p,
|
|
2967
3041
|
onCheckedChange: (e) => h(e === !0)
|
|
2968
3042
|
})
|
|
2969
3043
|
}),
|
|
2970
3044
|
t.map((e) => /* @__PURE__ */ r(Nr, {
|
|
2971
|
-
className:
|
|
3045
|
+
className: R(e.align === "end" && "text-end", e.className),
|
|
2972
3046
|
children: e.header
|
|
2973
3047
|
}, e.key)),
|
|
2974
3048
|
s && /* @__PURE__ */ r(Nr, {
|
|
@@ -2984,22 +3058,22 @@ function Ki({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2984
3058
|
return /* @__PURE__ */ i(Mr, {
|
|
2985
3059
|
"data-state": c ? "selected" : void 0,
|
|
2986
3060
|
children: [
|
|
2987
|
-
u && /* @__PURE__ */ r(Pr, { children: /* @__PURE__ */ r(
|
|
3061
|
+
u && /* @__PURE__ */ r(Pr, { children: /* @__PURE__ */ r(at, {
|
|
2988
3062
|
"aria-label": `Select ${o}`,
|
|
2989
3063
|
checked: c,
|
|
2990
3064
|
onCheckedChange: (e) => m(o, e === !0)
|
|
2991
3065
|
}) }),
|
|
2992
3066
|
t.map((t) => /* @__PURE__ */ r(Pr, {
|
|
2993
|
-
className:
|
|
3067
|
+
className: R(t.align === "end" && "text-end tabular-nums", t.className),
|
|
2994
3068
|
children: t.cell(e)
|
|
2995
3069
|
}, t.key)),
|
|
2996
3070
|
s && /* @__PURE__ */ r(Pr, { children: /* @__PURE__ */ i(Nn, { children: [/* @__PURE__ */ r(Pn, {
|
|
2997
3071
|
asChild: !0,
|
|
2998
|
-
children: /* @__PURE__ */ r(
|
|
3072
|
+
children: /* @__PURE__ */ r(K, {
|
|
2999
3073
|
variant: "ghost",
|
|
3000
3074
|
size: "icon-sm",
|
|
3001
3075
|
"aria-label": `Actions for ${o}`,
|
|
3002
|
-
children: /* @__PURE__ */ r(
|
|
3076
|
+
children: /* @__PURE__ */ r(le, {})
|
|
3003
3077
|
})
|
|
3004
3078
|
}), /* @__PURE__ */ r(Ln, {
|
|
3005
3079
|
align: "end",
|
|
@@ -3011,7 +3085,7 @@ function Ki({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3011
3085
|
});
|
|
3012
3086
|
}
|
|
3013
3087
|
// src/app/sparkline.algorithm.ts
|
|
3014
|
-
function
|
|
3088
|
+
function Qi(e, t, n, r = 2) {
|
|
3015
3089
|
if (e.length < 2) return "";
|
|
3016
3090
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3017
3091
|
return e.map((e, t) => {
|
|
@@ -3020,16 +3094,16 @@ function qi(e, t, n, r = 2) {
|
|
|
3020
3094
|
}).join(" ");
|
|
3021
3095
|
}
|
|
3022
3096
|
// src/app/stat-card.component.tsx
|
|
3023
|
-
var
|
|
3097
|
+
var $i = {
|
|
3024
3098
|
positive: "text-success",
|
|
3025
3099
|
negative: "text-destructive",
|
|
3026
3100
|
neutral: "text-muted-foreground"
|
|
3027
3101
|
};
|
|
3028
|
-
function
|
|
3029
|
-
let c = o ?
|
|
3102
|
+
function ea({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3103
|
+
let c = o ? Qi(o, 100, 32) : "";
|
|
3030
3104
|
return /* @__PURE__ */ i(gr, {
|
|
3031
3105
|
"data-slot": "stat-card",
|
|
3032
|
-
className:
|
|
3106
|
+
className: R("gap-1.5 p-4", s),
|
|
3033
3107
|
children: [
|
|
3034
3108
|
/* @__PURE__ */ r("span", {
|
|
3035
3109
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -3058,14 +3132,14 @@ function Yi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3058
3132
|
})]
|
|
3059
3133
|
}),
|
|
3060
3134
|
n && /* @__PURE__ */ r("span", {
|
|
3061
|
-
className:
|
|
3135
|
+
className: R("text-xs", $i[a]),
|
|
3062
3136
|
children: n
|
|
3063
3137
|
})
|
|
3064
3138
|
]
|
|
3065
3139
|
});
|
|
3066
3140
|
}
|
|
3067
3141
|
// src/status/run-status.contract.ts
|
|
3068
|
-
var
|
|
3142
|
+
var ta = [
|
|
3069
3143
|
"queued",
|
|
3070
3144
|
"waiting",
|
|
3071
3145
|
"running",
|
|
@@ -3073,7 +3147,7 @@ var Xi = [
|
|
|
3073
3147
|
"no-records",
|
|
3074
3148
|
"failed",
|
|
3075
3149
|
"off"
|
|
3076
|
-
],
|
|
3150
|
+
], na = {
|
|
3077
3151
|
queued: {
|
|
3078
3152
|
label: "Queued",
|
|
3079
3153
|
variant: "secondary",
|
|
@@ -3110,13 +3184,13 @@ var Xi = [
|
|
|
3110
3184
|
live: !1
|
|
3111
3185
|
}
|
|
3112
3186
|
};
|
|
3113
|
-
function
|
|
3114
|
-
return
|
|
3187
|
+
function ra(e) {
|
|
3188
|
+
return na[e];
|
|
3115
3189
|
}
|
|
3116
3190
|
// src/status/status-badge.component.tsx
|
|
3117
|
-
function
|
|
3118
|
-
let { label: n, variant: i, live: a } =
|
|
3119
|
-
return /* @__PURE__ */ r(
|
|
3191
|
+
function ia({ status: e, ...t }) {
|
|
3192
|
+
let { label: n, variant: i, live: a } = ra(e);
|
|
3193
|
+
return /* @__PURE__ */ r(W, {
|
|
3120
3194
|
variant: i,
|
|
3121
3195
|
dot: a,
|
|
3122
3196
|
"data-status": e,
|
|
@@ -3125,25 +3199,25 @@ function $i({ status: e, ...t }) {
|
|
|
3125
3199
|
});
|
|
3126
3200
|
}
|
|
3127
3201
|
// src/desktop/flow-node.component.tsx
|
|
3128
|
-
function
|
|
3202
|
+
function aa({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3129
3203
|
return /* @__PURE__ */ i("button", {
|
|
3130
3204
|
type: "button",
|
|
3131
3205
|
"data-slot": "flow-node",
|
|
3132
3206
|
"aria-pressed": o,
|
|
3133
3207
|
onClick: s,
|
|
3134
|
-
className:
|
|
3208
|
+
className: R("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),
|
|
3135
3209
|
children: [/* @__PURE__ */ i("span", {
|
|
3136
3210
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
3137
3211
|
children: [
|
|
3138
3212
|
/* @__PURE__ */ r("span", {
|
|
3139
3213
|
"aria-hidden": "true",
|
|
3140
|
-
className:
|
|
3214
|
+
className: R("size-2 shrink-0 rounded-[2px]", a ? H[a] : "bg-muted-foreground")
|
|
3141
3215
|
}),
|
|
3142
3216
|
/* @__PURE__ */ r("span", {
|
|
3143
3217
|
className: "font-semibold",
|
|
3144
3218
|
children: e
|
|
3145
3219
|
}),
|
|
3146
|
-
/* @__PURE__ */ r(
|
|
3220
|
+
/* @__PURE__ */ r(ia, {
|
|
3147
3221
|
status: n,
|
|
3148
3222
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3149
3223
|
})
|
|
@@ -3155,18 +3229,18 @@ function ea({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3155
3229
|
});
|
|
3156
3230
|
}
|
|
3157
3231
|
// src/desktop/inspector.component.tsx
|
|
3158
|
-
function
|
|
3232
|
+
function oa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3159
3233
|
return /* @__PURE__ */ i("aside", {
|
|
3160
3234
|
"data-slot": "inspector",
|
|
3161
3235
|
"aria-label": "Inspector",
|
|
3162
|
-
className:
|
|
3236
|
+
className: R("flex h-full flex-col text-[13px]", s),
|
|
3163
3237
|
children: [
|
|
3164
3238
|
/* @__PURE__ */ i("div", {
|
|
3165
3239
|
className: "flex items-center gap-2 border-b p-3",
|
|
3166
3240
|
children: [
|
|
3167
3241
|
n && /* @__PURE__ */ r("span", {
|
|
3168
3242
|
"aria-hidden": "true",
|
|
3169
|
-
className:
|
|
3243
|
+
className: R("size-2.5 shrink-0 rounded-[3px]", H[n])
|
|
3170
3244
|
}),
|
|
3171
3245
|
/* @__PURE__ */ r("h2", {
|
|
3172
3246
|
className: "m-0 type-h4",
|
|
@@ -3178,18 +3252,18 @@ function ta({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3178
3252
|
})
|
|
3179
3253
|
]
|
|
3180
3254
|
}),
|
|
3181
|
-
/* @__PURE__ */ i(
|
|
3255
|
+
/* @__PURE__ */ i(ci, {
|
|
3182
3256
|
defaultValue: a[0]?.value,
|
|
3183
3257
|
className: "min-h-0 flex-1 gap-0",
|
|
3184
|
-
children: [/* @__PURE__ */ r(
|
|
3258
|
+
children: [/* @__PURE__ */ r(di, {
|
|
3185
3259
|
variant: "underline",
|
|
3186
3260
|
className: "gap-4 px-3",
|
|
3187
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3261
|
+
children: a.map((e) => /* @__PURE__ */ r(pi, {
|
|
3188
3262
|
value: e.value,
|
|
3189
3263
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3190
3264
|
children: e.label
|
|
3191
3265
|
}, e.value))
|
|
3192
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3266
|
+
}), a.map((e) => /* @__PURE__ */ r(mi, {
|
|
3193
3267
|
value: e.value,
|
|
3194
3268
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3195
3269
|
children: e.content
|
|
@@ -3203,11 +3277,11 @@ function ta({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3203
3277
|
});
|
|
3204
3278
|
}
|
|
3205
3279
|
// src/desktop/status-bar.component.tsx
|
|
3206
|
-
function
|
|
3280
|
+
function sa({ start: e, end: t, className: n }) {
|
|
3207
3281
|
return /* @__PURE__ */ i("div", {
|
|
3208
3282
|
"data-slot": "status-bar",
|
|
3209
3283
|
role: "status",
|
|
3210
|
-
className:
|
|
3284
|
+
className: R("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
3211
3285
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
3212
3286
|
className: "ms-auto flex items-center gap-3.5",
|
|
3213
3287
|
children: t
|
|
@@ -3215,7 +3289,7 @@ function na({ start: e, end: t, className: n }) {
|
|
|
3215
3289
|
});
|
|
3216
3290
|
}
|
|
3217
3291
|
// src/desktop/timeline.algorithm.ts
|
|
3218
|
-
function
|
|
3292
|
+
function ca(e, t, n) {
|
|
3219
3293
|
if (n <= 0) return {
|
|
3220
3294
|
left: 0,
|
|
3221
3295
|
width: 0
|
|
@@ -3226,7 +3300,7 @@ function ra(e, t, n) {
|
|
|
3226
3300
|
width: Math.max(0, r(t) - i)
|
|
3227
3301
|
};
|
|
3228
3302
|
}
|
|
3229
|
-
function
|
|
3303
|
+
function la(e, t) {
|
|
3230
3304
|
let n = Math.max(2, t);
|
|
3231
3305
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3232
3306
|
}
|
|
@@ -3234,27 +3308,27 @@ function ia(e, t) {
|
|
|
3234
3308
|
function $(e) {
|
|
3235
3309
|
return String(e).padStart(2, "0");
|
|
3236
3310
|
}
|
|
3237
|
-
function
|
|
3311
|
+
function ua(e, t = !1) {
|
|
3238
3312
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3239
3313
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3240
3314
|
}
|
|
3241
|
-
function
|
|
3315
|
+
function da(e, t) {
|
|
3242
3316
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3243
3317
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3244
3318
|
}
|
|
3245
3319
|
// src/desktop/timeline-lanes.component.tsx
|
|
3246
|
-
function
|
|
3247
|
-
let c = (e) => o ?
|
|
3320
|
+
function fa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3321
|
+
let c = (e) => o ? da(o, e) : ua(e), l = n === void 0 ? void 0 : ca(0, n, e).width;
|
|
3248
3322
|
return /* @__PURE__ */ i("div", {
|
|
3249
3323
|
"data-slot": "timeline-lanes",
|
|
3250
3324
|
role: "group",
|
|
3251
3325
|
"aria-label": "Timeline",
|
|
3252
|
-
className:
|
|
3326
|
+
className: R("relative flex flex-col text-[13px]", s),
|
|
3253
3327
|
children: [
|
|
3254
3328
|
/* @__PURE__ */ r("div", {
|
|
3255
3329
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3256
3330
|
"aria-hidden": "true",
|
|
3257
|
-
children:
|
|
3331
|
+
children: la(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3258
3332
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3259
3333
|
children: c(e)
|
|
3260
3334
|
}, e))
|
|
@@ -3265,18 +3339,18 @@ function sa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3265
3339
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
3266
3340
|
children: [/* @__PURE__ */ r("span", {
|
|
3267
3341
|
"aria-hidden": "true",
|
|
3268
|
-
className:
|
|
3342
|
+
className: R("size-2 shrink-0 rounded-[2px]", H[t.hue])
|
|
3269
3343
|
}), t.name]
|
|
3270
3344
|
}), /* @__PURE__ */ r("div", {
|
|
3271
3345
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3272
3346
|
children: t.segments.map((n) => {
|
|
3273
|
-
let a =
|
|
3347
|
+
let a = ca(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3274
3348
|
return /* @__PURE__ */ i(dn, { children: [/* @__PURE__ */ r(fn, {
|
|
3275
3349
|
asChild: !0,
|
|
3276
3350
|
children: /* @__PURE__ */ r("button", {
|
|
3277
3351
|
type: "button",
|
|
3278
3352
|
"aria-label": o,
|
|
3279
|
-
className:
|
|
3353
|
+
className: R("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", H[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
3280
3354
|
style: {
|
|
3281
3355
|
left: `${a.left}%`,
|
|
3282
3356
|
width: `${a.width}%`
|
|
@@ -3295,30 +3369,30 @@ function sa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3295
3369
|
});
|
|
3296
3370
|
}
|
|
3297
3371
|
// src/desktop/title-bar.component.tsx
|
|
3298
|
-
function
|
|
3372
|
+
function pa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3299
3373
|
let l = [
|
|
3300
3374
|
{
|
|
3301
3375
|
label: "Minimise",
|
|
3302
|
-
icon: /* @__PURE__ */ r(
|
|
3376
|
+
icon: /* @__PURE__ */ r(de, {}),
|
|
3303
3377
|
onClick: a
|
|
3304
3378
|
},
|
|
3305
3379
|
{
|
|
3306
3380
|
label: "Maximise",
|
|
3307
|
-
icon: /* @__PURE__ */ r(
|
|
3381
|
+
icon: /* @__PURE__ */ r(_e, {}),
|
|
3308
3382
|
onClick: o
|
|
3309
3383
|
},
|
|
3310
3384
|
{
|
|
3311
3385
|
label: "Close window",
|
|
3312
|
-
icon: /* @__PURE__ */ r(
|
|
3386
|
+
icon: /* @__PURE__ */ r(M, {}),
|
|
3313
3387
|
onClick: s
|
|
3314
3388
|
}
|
|
3315
3389
|
].filter((e) => e.onClick);
|
|
3316
3390
|
return /* @__PURE__ */ i("div", {
|
|
3317
3391
|
"data-slot": "title-bar",
|
|
3318
3392
|
"data-tauri-drag-region": "",
|
|
3319
|
-
className:
|
|
3393
|
+
className: R("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
3320
3394
|
children: [
|
|
3321
|
-
/* @__PURE__ */ r(
|
|
3395
|
+
/* @__PURE__ */ r(B, {
|
|
3322
3396
|
product: e,
|
|
3323
3397
|
alt: "",
|
|
3324
3398
|
className: "size-[18px]"
|
|
@@ -3331,11 +3405,11 @@ function ca({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3331
3405
|
}),
|
|
3332
3406
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
3333
3407
|
className: "flex h-full",
|
|
3334
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
3408
|
+
children: l.map((e) => /* @__PURE__ */ r(K, {
|
|
3335
3409
|
variant: "ghost",
|
|
3336
3410
|
"aria-label": e.label,
|
|
3337
3411
|
onClick: e.onClick,
|
|
3338
|
-
className:
|
|
3412
|
+
className: R("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
3339
3413
|
children: e.icon
|
|
3340
3414
|
}, e.label))
|
|
3341
3415
|
})
|
|
@@ -3343,11 +3417,11 @@ function ca({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3343
3417
|
});
|
|
3344
3418
|
}
|
|
3345
3419
|
// src/mobile/bottom-nav.component.tsx
|
|
3346
|
-
function
|
|
3420
|
+
function ma({ items: e, className: t }) {
|
|
3347
3421
|
return /* @__PURE__ */ r("nav", {
|
|
3348
3422
|
"data-slot": "bottom-nav",
|
|
3349
3423
|
"aria-label": "Tabs",
|
|
3350
|
-
className:
|
|
3424
|
+
className: R("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
3351
3425
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
3352
3426
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
3353
3427
|
href: e.href,
|
|
@@ -3365,22 +3439,22 @@ function la({ items: e, className: t }) {
|
|
|
3365
3439
|
});
|
|
3366
3440
|
}
|
|
3367
3441
|
// src/mobile/capture-frame.component.tsx
|
|
3368
|
-
function
|
|
3442
|
+
function ha({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3369
3443
|
let l = a.filter((e) => !e.passed).length;
|
|
3370
3444
|
return /* @__PURE__ */ i("div", {
|
|
3371
3445
|
"data-slot": "capture-frame",
|
|
3372
|
-
className:
|
|
3446
|
+
className: R("flex h-full flex-col bg-[#0e0d12]", c),
|
|
3373
3447
|
children: [/* @__PURE__ */ i("div", {
|
|
3374
3448
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
3375
3449
|
children: [/* @__PURE__ */ i("div", {
|
|
3376
3450
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
3377
3451
|
children: [
|
|
3378
|
-
/* @__PURE__ */ r(
|
|
3452
|
+
/* @__PURE__ */ r(K, {
|
|
3379
3453
|
size: "icon",
|
|
3380
3454
|
"aria-label": "Close camera",
|
|
3381
3455
|
onClick: o,
|
|
3382
3456
|
className: "rounded-full bg-white/14 text-white hover:bg-white/24",
|
|
3383
|
-
children: /* @__PURE__ */ r(
|
|
3457
|
+
children: /* @__PURE__ */ r(M, {})
|
|
3384
3458
|
}),
|
|
3385
3459
|
/* @__PURE__ */ r("span", {
|
|
3386
3460
|
className: "text-sm font-semibold text-white",
|
|
@@ -3401,12 +3475,12 @@ function ua({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3401
3475
|
children: [/* @__PURE__ */ r("h2", {
|
|
3402
3476
|
className: "m-0 type-h3 text-[19px]",
|
|
3403
3477
|
children: n
|
|
3404
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
3478
|
+
}), l > 0 ? /* @__PURE__ */ i(W, {
|
|
3405
3479
|
variant: "danger",
|
|
3406
3480
|
dot: !0,
|
|
3407
3481
|
className: "ms-auto",
|
|
3408
3482
|
children: [l, " failed"]
|
|
3409
|
-
}) : /* @__PURE__ */ r(
|
|
3483
|
+
}) : /* @__PURE__ */ r(W, {
|
|
3410
3484
|
variant: "success",
|
|
3411
3485
|
dot: !0,
|
|
3412
3486
|
className: "ms-auto",
|
|
@@ -3419,11 +3493,11 @@ function ua({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3419
3493
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
3420
3494
|
children: [
|
|
3421
3495
|
/* @__PURE__ */ r("span", {
|
|
3422
|
-
className:
|
|
3496
|
+
className: R("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"),
|
|
3423
3497
|
children: e.passed ? /* @__PURE__ */ r(k, {
|
|
3424
3498
|
strokeWidth: 3,
|
|
3425
3499
|
"aria-label": "Passed"
|
|
3426
|
-
}) : /* @__PURE__ */ r(
|
|
3500
|
+
}) : /* @__PURE__ */ r(M, {
|
|
3427
3501
|
strokeWidth: 3,
|
|
3428
3502
|
"aria-label": "Failed"
|
|
3429
3503
|
})
|
|
@@ -3448,43 +3522,43 @@ function ua({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3448
3522
|
});
|
|
3449
3523
|
}
|
|
3450
3524
|
// src/mobile/record-button.component.tsx
|
|
3451
|
-
function
|
|
3525
|
+
function ga({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3452
3526
|
let u = {
|
|
3453
3527
|
idle: {
|
|
3454
3528
|
label: "Start recording",
|
|
3455
|
-
icon: /* @__PURE__ */ r(
|
|
3529
|
+
icon: /* @__PURE__ */ r(j, {}),
|
|
3456
3530
|
onClick: a
|
|
3457
3531
|
},
|
|
3458
3532
|
recording: {
|
|
3459
3533
|
label: "Pause",
|
|
3460
|
-
icon: /* @__PURE__ */ r(
|
|
3534
|
+
icon: /* @__PURE__ */ r(pe, {}),
|
|
3461
3535
|
onClick: o
|
|
3462
3536
|
},
|
|
3463
3537
|
paused: {
|
|
3464
3538
|
label: "Resume",
|
|
3465
|
-
icon: /* @__PURE__ */ r(
|
|
3539
|
+
icon: /* @__PURE__ */ r(me, {}),
|
|
3466
3540
|
onClick: s
|
|
3467
3541
|
}
|
|
3468
3542
|
}[e];
|
|
3469
3543
|
return /* @__PURE__ */ i("div", {
|
|
3470
3544
|
"data-slot": "record-button",
|
|
3471
|
-
className:
|
|
3545
|
+
className: R("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
3472
3546
|
children: [
|
|
3473
3547
|
/* @__PURE__ */ i("div", {
|
|
3474
3548
|
className: "flex items-center gap-2",
|
|
3475
3549
|
children: [
|
|
3476
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
3550
|
+
e === "recording" && /* @__PURE__ */ r(W, {
|
|
3477
3551
|
variant: "danger",
|
|
3478
3552
|
dot: !0,
|
|
3479
3553
|
className: "bg-card",
|
|
3480
3554
|
children: "Recording"
|
|
3481
3555
|
}),
|
|
3482
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
3556
|
+
e === "paused" && /* @__PURE__ */ r(W, {
|
|
3483
3557
|
variant: "warning",
|
|
3484
3558
|
className: "bg-card",
|
|
3485
3559
|
children: "Paused"
|
|
3486
3560
|
}),
|
|
3487
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
3561
|
+
e === "idle" && /* @__PURE__ */ r(W, {
|
|
3488
3562
|
variant: "outline",
|
|
3489
3563
|
className: "bg-card",
|
|
3490
3564
|
children: "Not recording"
|
|
@@ -3492,7 +3566,7 @@ function da({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3492
3566
|
/* @__PURE__ */ r("span", {
|
|
3493
3567
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3494
3568
|
"aria-label": "Recorded time",
|
|
3495
|
-
children:
|
|
3569
|
+
children: ua(t, !0)
|
|
3496
3570
|
})
|
|
3497
3571
|
]
|
|
3498
3572
|
}),
|
|
@@ -3500,17 +3574,17 @@ function da({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3500
3574
|
"aria-hidden": "true",
|
|
3501
3575
|
className: "flex h-10 items-center gap-[3px]",
|
|
3502
3576
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
3503
|
-
className:
|
|
3577
|
+
className: R("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
3504
3578
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
3505
3579
|
}, n))
|
|
3506
3580
|
}),
|
|
3507
3581
|
/* @__PURE__ */ i("div", {
|
|
3508
3582
|
className: "flex gap-2.5",
|
|
3509
|
-
children: [/* @__PURE__ */ i(
|
|
3583
|
+
children: [/* @__PURE__ */ i(K, {
|
|
3510
3584
|
className: "flex-1",
|
|
3511
3585
|
onClick: u.onClick,
|
|
3512
3586
|
children: [u.icon, u.label]
|
|
3513
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
3587
|
+
}), e === "recording" && c && /* @__PURE__ */ r(K, {
|
|
3514
3588
|
variant: "outline",
|
|
3515
3589
|
size: "icon",
|
|
3516
3590
|
className: "bg-card",
|
|
@@ -3523,8 +3597,8 @@ function da({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3523
3597
|
});
|
|
3524
3598
|
}
|
|
3525
3599
|
// src/web/cta-band.component.tsx
|
|
3526
|
-
function
|
|
3527
|
-
let c =
|
|
3600
|
+
function _a({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3601
|
+
let c = Te();
|
|
3528
3602
|
function l(e) {
|
|
3529
3603
|
e.preventDefault();
|
|
3530
3604
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3532,7 +3606,7 @@ function fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3532
3606
|
}
|
|
3533
3607
|
return /* @__PURE__ */ r("section", {
|
|
3534
3608
|
"data-slot": "cta-band",
|
|
3535
|
-
className:
|
|
3609
|
+
className: R("py-22", s),
|
|
3536
3610
|
children: /* @__PURE__ */ r("div", {
|
|
3537
3611
|
className: "mx-auto max-w-[1200px] px-6",
|
|
3538
3612
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3555,7 +3629,7 @@ function fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3555
3629
|
className: "sr-only",
|
|
3556
3630
|
children: a
|
|
3557
3631
|
}),
|
|
3558
|
-
/* @__PURE__ */ r(
|
|
3632
|
+
/* @__PURE__ */ r(yt, {
|
|
3559
3633
|
id: c,
|
|
3560
3634
|
name: "email",
|
|
3561
3635
|
type: "email",
|
|
@@ -3564,7 +3638,7 @@ function fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3564
3638
|
placeholder: a,
|
|
3565
3639
|
className: "flex-[1_1_220px] border-transparent"
|
|
3566
3640
|
}),
|
|
3567
|
-
/* @__PURE__ */ r(
|
|
3641
|
+
/* @__PURE__ */ r(K, {
|
|
3568
3642
|
type: "submit",
|
|
3569
3643
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3570
3644
|
children: o
|
|
@@ -3576,10 +3650,10 @@ function fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3576
3650
|
});
|
|
3577
3651
|
}
|
|
3578
3652
|
// src/web/faq.component.tsx
|
|
3579
|
-
function
|
|
3653
|
+
function va({ title: e, items: t, className: n }) {
|
|
3580
3654
|
return /* @__PURE__ */ r("section", {
|
|
3581
3655
|
"data-slot": "faq",
|
|
3582
|
-
className:
|
|
3656
|
+
className: R("py-22", n),
|
|
3583
3657
|
children: /* @__PURE__ */ i("div", {
|
|
3584
3658
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3585
3659
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -3600,10 +3674,10 @@ function pa({ title: e, items: t, className: n }) {
|
|
|
3600
3674
|
});
|
|
3601
3675
|
}
|
|
3602
3676
|
// src/web/feature-grid.component.tsx
|
|
3603
|
-
function
|
|
3677
|
+
function ya({ title: e, lead: t, features: n, className: a }) {
|
|
3604
3678
|
return /* @__PURE__ */ r("section", {
|
|
3605
3679
|
"data-slot": "feature-grid",
|
|
3606
|
-
className:
|
|
3680
|
+
className: R("border-y bg-canvas py-22", a),
|
|
3607
3681
|
children: /* @__PURE__ */ i("div", {
|
|
3608
3682
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
3609
3683
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -3640,14 +3714,14 @@ function ma({ title: e, lead: t, features: n, className: a }) {
|
|
|
3640
3714
|
});
|
|
3641
3715
|
}
|
|
3642
3716
|
// src/web/hero.component.tsx
|
|
3643
|
-
function
|
|
3717
|
+
function ba({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
3644
3718
|
return /* @__PURE__ */ r("section", {
|
|
3645
3719
|
"data-slot": "hero",
|
|
3646
|
-
className:
|
|
3720
|
+
className: R("pt-22 pb-14", o),
|
|
3647
3721
|
children: /* @__PURE__ */ i("div", {
|
|
3648
3722
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
3649
3723
|
children: [
|
|
3650
|
-
e && /* @__PURE__ */ r(
|
|
3724
|
+
e && /* @__PURE__ */ r(W, {
|
|
3651
3725
|
variant: "brand",
|
|
3652
3726
|
className: "h-7 px-3 text-[13px]",
|
|
3653
3727
|
children: e
|
|
@@ -3669,10 +3743,10 @@ function ha({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
3669
3743
|
});
|
|
3670
3744
|
}
|
|
3671
3745
|
// src/web/how-it-works.component.tsx
|
|
3672
|
-
function
|
|
3746
|
+
function xa({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
3673
3747
|
return /* @__PURE__ */ r("section", {
|
|
3674
3748
|
"data-slot": "how-it-works",
|
|
3675
|
-
className:
|
|
3749
|
+
className: R("py-22", o),
|
|
3676
3750
|
children: /* @__PURE__ */ i("div", {
|
|
3677
3751
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3678
3752
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3712,14 +3786,14 @@ function ga({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
3712
3786
|
});
|
|
3713
3787
|
}
|
|
3714
3788
|
// src/web/mobile-menu.component.tsx
|
|
3715
|
-
var
|
|
3716
|
-
function
|
|
3717
|
-
let [o, s] =
|
|
3718
|
-
|
|
3789
|
+
var Sa = 400;
|
|
3790
|
+
function Ca({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
3791
|
+
let [o, s] = F(!1), [c, l] = F(), [u, f] = F(!1), p = P(null);
|
|
3792
|
+
N(() => {
|
|
3719
3793
|
if (o) return;
|
|
3720
|
-
let e = setTimeout(() => f(!1),
|
|
3794
|
+
let e = setTimeout(() => f(!1), Sa);
|
|
3721
3795
|
return () => clearTimeout(e);
|
|
3722
|
-
}, [o]),
|
|
3796
|
+
}, [o]), N(() => {
|
|
3723
3797
|
if (!o) return;
|
|
3724
3798
|
let e = new ResizeObserver(() => m());
|
|
3725
3799
|
return e.observe(document.documentElement), () => e.disconnect();
|
|
@@ -3745,7 +3819,7 @@ function va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3745
3819
|
onOpenChange: h,
|
|
3746
3820
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
3747
3821
|
asChild: !0,
|
|
3748
|
-
children: /* @__PURE__ */ r(
|
|
3822
|
+
children: /* @__PURE__ */ r(K, {
|
|
3749
3823
|
ref: p,
|
|
3750
3824
|
variant: "ghost",
|
|
3751
3825
|
size: "icon",
|
|
@@ -3769,7 +3843,7 @@ function va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3769
3843
|
/* @__PURE__ */ r("div", {
|
|
3770
3844
|
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))]",
|
|
3771
3845
|
children: /* @__PURE__ */ r("div", {
|
|
3772
|
-
className:
|
|
3846
|
+
className: R("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"),
|
|
3773
3847
|
children: /* @__PURE__ */ i("div", {
|
|
3774
3848
|
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",
|
|
3775
3849
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -3791,7 +3865,7 @@ function va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3791
3865
|
}),
|
|
3792
3866
|
/* @__PURE__ */ r(d.Close, {
|
|
3793
3867
|
asChild: !0,
|
|
3794
|
-
children: /* @__PURE__ */ r(
|
|
3868
|
+
children: /* @__PURE__ */ r(K, {
|
|
3795
3869
|
variant: "ghost",
|
|
3796
3870
|
size: "icon",
|
|
3797
3871
|
"aria-label": "Close menu",
|
|
@@ -3813,11 +3887,11 @@ function va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3813
3887
|
});
|
|
3814
3888
|
}
|
|
3815
3889
|
// src/web/pricing-table.component.tsx
|
|
3816
|
-
function
|
|
3817
|
-
let [l, u] =
|
|
3890
|
+
function wa({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
3891
|
+
let [l, u] = F(a);
|
|
3818
3892
|
return /* @__PURE__ */ r("section", {
|
|
3819
3893
|
"data-slot": "pricing-table",
|
|
3820
|
-
className:
|
|
3894
|
+
className: R("border-y bg-canvas py-22", c),
|
|
3821
3895
|
children: /* @__PURE__ */ i("div", {
|
|
3822
3896
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
3823
3897
|
children: [
|
|
@@ -3832,15 +3906,15 @@ function ya({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3832
3906
|
className: "m-0 type-lead",
|
|
3833
3907
|
children: t
|
|
3834
3908
|
})]
|
|
3835
|
-
}), /* @__PURE__ */ i(
|
|
3909
|
+
}), /* @__PURE__ */ i(ft, {
|
|
3836
3910
|
type: "single",
|
|
3837
3911
|
value: l,
|
|
3838
3912
|
onValueChange: (e) => e && u(e),
|
|
3839
3913
|
"aria-label": "Billing",
|
|
3840
|
-
children: [/* @__PURE__ */ r(
|
|
3914
|
+
children: [/* @__PURE__ */ r(pt, {
|
|
3841
3915
|
value: "monthly",
|
|
3842
3916
|
children: "Monthly"
|
|
3843
|
-
}), /* @__PURE__ */ r(
|
|
3917
|
+
}), /* @__PURE__ */ r(pt, {
|
|
3844
3918
|
value: "yearly",
|
|
3845
3919
|
children: "Yearly"
|
|
3846
3920
|
})]
|
|
@@ -3850,14 +3924,14 @@ function ya({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3850
3924
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
3851
3925
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
3852
3926
|
"aria-label": e.name,
|
|
3853
|
-
className:
|
|
3927
|
+
className: R("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)]"),
|
|
3854
3928
|
children: [
|
|
3855
3929
|
/* @__PURE__ */ i("div", {
|
|
3856
3930
|
className: "flex items-center justify-between",
|
|
3857
3931
|
children: [/* @__PURE__ */ r("h3", {
|
|
3858
3932
|
className: "m-0 type-h3",
|
|
3859
3933
|
children: e.name
|
|
3860
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
3934
|
+
}), e.featured && /* @__PURE__ */ r(W, { children: s })]
|
|
3861
3935
|
}),
|
|
3862
3936
|
/* @__PURE__ */ r("span", {
|
|
3863
3937
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -3879,7 +3953,7 @@ function ya({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3879
3953
|
}), e]
|
|
3880
3954
|
}, e))
|
|
3881
3955
|
}),
|
|
3882
|
-
/* @__PURE__ */ r(
|
|
3956
|
+
/* @__PURE__ */ r(K, {
|
|
3883
3957
|
asChild: !0,
|
|
3884
3958
|
variant: e.featured ? "default" : "outline",
|
|
3885
3959
|
className: "mt-auto",
|
|
@@ -3900,20 +3974,20 @@ function ya({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3900
3974
|
});
|
|
3901
3975
|
}
|
|
3902
3976
|
// src/web/product-card.component.tsx
|
|
3903
|
-
function
|
|
3904
|
-
let s =
|
|
3977
|
+
function Ta({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
3978
|
+
let s = z[e];
|
|
3905
3979
|
return /* @__PURE__ */ i("a", {
|
|
3906
3980
|
"data-slot": "product-card",
|
|
3907
3981
|
"data-product": e,
|
|
3908
3982
|
href: t,
|
|
3909
|
-
className:
|
|
3983
|
+
className: R("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),
|
|
3910
3984
|
children: [/* @__PURE__ */ r("span", {
|
|
3911
3985
|
"aria-hidden": "true",
|
|
3912
3986
|
className: "block h-1.5 bg-brand"
|
|
3913
3987
|
}), /* @__PURE__ */ i("span", {
|
|
3914
3988
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
3915
3989
|
children: [
|
|
3916
|
-
/* @__PURE__ */ r(
|
|
3990
|
+
/* @__PURE__ */ r(B, {
|
|
3917
3991
|
product: e,
|
|
3918
3992
|
alt: "",
|
|
3919
3993
|
className: "size-11"
|
|
@@ -3928,7 +4002,7 @@ function ba({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3928
4002
|
children: n ?? s.tagline
|
|
3929
4003
|
})]
|
|
3930
4004
|
}),
|
|
3931
|
-
/* @__PURE__ */ r(
|
|
4005
|
+
/* @__PURE__ */ r(W, {
|
|
3932
4006
|
variant: "outline",
|
|
3933
4007
|
className: "self-start",
|
|
3934
4008
|
children: a ?? s.stage
|
|
@@ -3938,23 +4012,23 @@ function ba({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3938
4012
|
});
|
|
3939
4013
|
}
|
|
3940
4014
|
// src/web/site-footer.component.tsx
|
|
3941
|
-
function
|
|
4015
|
+
function Ea({ tagline: e, columns: t, legal: n, className: a }) {
|
|
3942
4016
|
return /* @__PURE__ */ i("footer", {
|
|
3943
4017
|
"data-slot": "site-footer",
|
|
3944
|
-
className:
|
|
4018
|
+
className: R("border-t pt-14 pb-10", a),
|
|
3945
4019
|
children: [/* @__PURE__ */ i("div", {
|
|
3946
4020
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
3947
4021
|
children: [/* @__PURE__ */ i("div", {
|
|
3948
4022
|
className: "col-span-2 flex flex-col gap-3",
|
|
3949
4023
|
children: [/* @__PURE__ */ i("span", {
|
|
3950
4024
|
className: "flex items-center gap-2",
|
|
3951
|
-
children: [/* @__PURE__ */ r(
|
|
4025
|
+
children: [/* @__PURE__ */ r(B, {
|
|
3952
4026
|
product: "talogic",
|
|
3953
4027
|
alt: "",
|
|
3954
4028
|
className: "size-7"
|
|
3955
4029
|
}), /* @__PURE__ */ r("span", {
|
|
3956
4030
|
className: "font-display text-xl font-extrabold tracking-tight",
|
|
3957
|
-
children: "
|
|
4031
|
+
children: "talogic"
|
|
3958
4032
|
})]
|
|
3959
4033
|
}), e && /* @__PURE__ */ r("p", {
|
|
3960
4034
|
className: "m-0 max-w-[300px] text-[13px] text-muted-foreground",
|
|
@@ -3979,23 +4053,23 @@ function xa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
3979
4053
|
});
|
|
3980
4054
|
}
|
|
3981
4055
|
// src/web/site-header.component.tsx
|
|
3982
|
-
function
|
|
4056
|
+
function Da({ nav: e, actions: t, brand: a, className: o }) {
|
|
3983
4057
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
3984
4058
|
href: "/",
|
|
3985
4059
|
className: "flex items-center gap-2 no-underline",
|
|
3986
|
-
"aria-label": "
|
|
3987
|
-
children: [/* @__PURE__ */ r(
|
|
4060
|
+
"aria-label": "talogic home",
|
|
4061
|
+
children: [/* @__PURE__ */ r(B, {
|
|
3988
4062
|
product: "talogic",
|
|
3989
4063
|
alt: "",
|
|
3990
4064
|
className: "size-7"
|
|
3991
4065
|
}), /* @__PURE__ */ r("span", {
|
|
3992
4066
|
className: "font-display text-xl font-extrabold tracking-tight text-foreground",
|
|
3993
|
-
children: "
|
|
4067
|
+
children: "talogic"
|
|
3994
4068
|
})]
|
|
3995
4069
|
});
|
|
3996
4070
|
return /* @__PURE__ */ r("header", {
|
|
3997
4071
|
"data-slot": "site-header",
|
|
3998
|
-
className:
|
|
4072
|
+
className: R("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
3999
4073
|
children: /* @__PURE__ */ i("div", {
|
|
4000
4074
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
4001
4075
|
children: [
|
|
@@ -4025,7 +4099,7 @@ function Sa({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4025
4099
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4026
4100
|
children: t
|
|
4027
4101
|
}),
|
|
4028
|
-
/* @__PURE__ */ r(
|
|
4102
|
+
/* @__PURE__ */ r(Ca, {
|
|
4029
4103
|
className: "ms-auto md:hidden",
|
|
4030
4104
|
links: e.flatMap((e) => e.links ?? [{
|
|
4031
4105
|
label: e.label,
|
|
@@ -4037,6 +4111,6 @@ function Sa({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4037
4111
|
})
|
|
4038
4112
|
});
|
|
4039
4113
|
}
|
|
4040
|
-
export { fr as Accordion, hr as AccordionContent, pr as AccordionItem, mr as AccordionTrigger, nr as Alert, At as AlertDialog, Ft as AlertDialogAction, It as AlertDialogCancel, Mt as AlertDialogContent, Pt as AlertDialogDescription, Nt as AlertDialogTitle, jt as AlertDialogTrigger,
|
|
4114
|
+
export { fr as Accordion, hr as AccordionContent, pr as AccordionItem, mr as AccordionTrigger, nr as Alert, At as AlertDialog, Ft as AlertDialogAction, It as AlertDialogCancel, Mt as AlertDialogContent, Pt as AlertDialogDescription, Nt as AlertDialogTitle, jt as AlertDialogTrigger, Ki as AppShell, Gi as AppShellBody, Wi as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, W as Badge, ma as BottomNav, Ir as Breadcrumb, Rr as BreadcrumbItem, zr as BreadcrumbLink, Lr as BreadcrumbList, Br as BreadcrumbPage, Vr as BreadcrumbSeparator, K as Button, Ze as COLOUR_SCHEMES, ha as CaptureFrame, gr as Card, br as CardContent, yr as CardDescription, xr as CardFooter, _r as CardHeader, vr as CardTitle, at as Checkbox, Qn as Combobox, vn as Command, yn as CommandDialog, Sn as CommandEmpty, Cn as CommandGroup, bn as CommandInput, wn as CommandItem, xn as CommandList, Tn as CommandSeparator, En as CommandShortcut, Dn as ContextMenu, kn as ContextMenuContent, An as ContextMenuItem, jn as ContextMenuSeparator, Mn as ContextMenuShortcut, On as ContextMenuTrigger, _a as CtaBand, Xe as DENSITIES, Lt as Dialog, zt as DialogClose, Bt as DialogContent, Wt as DialogDescription, Ht as DialogFooter, Vt as DialogHeader, Ut as DialogTitle, Rt as DialogTrigger, Gt as Drawer, qt as DrawerClose, Jt as DrawerContent, Xt as DrawerDescription, Yt as DrawerTitle, Kt as DrawerTrigger, Nn as DropdownMenu, Ln as DropdownMenuContent, Fn as DropdownMenuGroup, Rn as DropdownMenuItem, Bn as DropdownMenuLabel, In as DropdownMenuRadioGroup, zn as DropdownMenuRadioItem, Vn as DropdownMenuSeparator, Hn as DropdownMenuShortcut, Pn as DropdownMenuTrigger, rr as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, va as Faq, ya as FeatureGrid, vt as Field, ur as FileDropOverlay, qi as FilterBar, Ji as FilterChip, aa as FlowNode, Yi as FormSection, Je as HUES, H as HUE_FILL, ba as Hero, xa as HowItWorks, yt as Input, oa as Inspector, Sr as Kbd, Ne as LABEL_COLORS, U as LOGO_RULE, _t as Label, Ur as MenuIcon, Wr as Menubar, qr as MenubarContent, Jr as MenubarItem, Gr as MenubarMenu, Xr as MenubarSeparator, Yr as MenubarShortcut, Kr as MenubarTrigger, Ca as MobileMenu, Zr as NavigationMenu, ni as NavigationMenuContent, $r as NavigationMenuItem, ri as NavigationMenuLink, Qr as NavigationMenuList, ti as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, z as PRODUCT_CATALOGUE, We as PRODUCT_HUES, Xi as PageHeader, ii as Pagination, Qt as Popover, en as PopoverAnchor, tn as PopoverContent, $t as PopoverTrigger, Zt as Portal, vi as Presence, wa as PricingTable, Ta as ProductCard, B as ProductLogo, Pi as ProductSwitcher, ir as Progress, ta as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, ga as RecordButton, Zi as RecordsTable, Tr as ResizableHandle, wr as ResizablePanel, Cr as ResizablePanelGroup, Er as ScrollArea, Dr as ScrollBar, bt as Select, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Or as Separator, nn as Sheet, an as SheetClose, ln as SheetContent, sn as SheetDescription, on as SheetTitle, rn as SheetTrigger, Ci as Sidebar, Fi as SidebarBrand, Ti as SidebarCollapseButton, Di as SidebarContent, ki as SidebarFooter, Ai as SidebarGroup, Ei as SidebarHeader, ji as SidebarItem, Oi as SidebarNote, Ni as SidebarSheet, wi as SidebarTooltip, Ea as SiteFooter, Da as SiteHeader, ar as Skeleton, ct as Slider, or as Spinner, ea as StatCard, ia as StatusBadge, sa as StatusBar, gi as Stepper, lt as Switch, Un as TAG_DELIMITERS, kr as Table, jr as TableBody, Fr as TableCaption, Pr as TableCell, Nr as TableHead, Ar as TableHeader, Mr as TableRow, ci as Tabs, mi as TabsContent, di as TabsList, pi as TabsTrigger, Kn as Tag, Yn as TagsInput, Ot as Textarea, $e as ThemeRoot, fa as TimelineLanes, pa as TitleBar, sr as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, dn as Tooltip, pn as TooltipContent, un as TooltipProvider, fn as TooltipTrigger, cr as acceptsFile, Gn as addTags, Ie as apcaContrast, rt as badgeVariants, G as buttonVariants, R as cn, Li as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, Y as floatingMotionClassName, da as formatClockTime, ua as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, lr as mayAcceptDrag, X as menuItemClassName, gn as menuSeparatorClassName, hn as menuShortcutClassName, xi as navRowClassName, J as overlayClassName, _i as presenceClassName, Le as readableLabel, ra as runStatusDisplay, kt as sheetMotionClassName, bi as sidebarNoteClassName, Qi as sparklinePath, Wn as splitTags, qn as tagsFieldClassName, Jn as tagsFieldInputClassName, Qe as themeAttributes, ca as timelineBox, la as timelineTicks, Ii as useCommandShortcut, Hi as useCommandShortcutLabel, q as useFieldControl, gt as useFieldLabelId, Xn as useOptionSearch, dr as usePageDrop, Z as useSidebar };
|
|
4041
4115
|
|
|
4042
4116
|
//# sourceMappingURL=index.js.map
|