@talogic/react 0.6.4 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/app/app-shell.component.d.ts +31 -2
- package/app/index.d.ts +2 -2
- package/index.js +1588 -1059
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +21 -0
- package/ui/combobox/combobox-option.contract.d.ts +18 -0
- package/ui/combobox/combobox.component.d.ts +78 -0
- package/ui/combobox/index.d.ts +5 -0
- package/ui/combobox/option-search.hook.d.ts +25 -0
- package/ui/field/field-control.hook.d.ts +9 -0
- package/ui/field/index.d.ts +1 -1
- package/ui/file-drop/file-accept.policy.d.ts +25 -0
- package/ui/file-drop/file-drop-overlay.component.d.ts +31 -0
- package/ui/file-drop/index.d.ts +5 -0
- package/ui/file-drop/page-drop.hook.d.ts +29 -0
- package/ui/index.d.ts +3 -0
- package/ui/menu/index.d.ts +1 -0
- package/ui/navigation/index.d.ts +1 -1
- package/ui/navigation/tabs.component.d.ts +33 -14
- package/ui/overlay/index.d.ts +1 -0
- package/ui/overlay/portal.component.d.ts +11 -0
- package/ui/tags-input/index.d.ts +7 -0
- package/ui/tags-input/tag-entry.algorithm.d.ts +34 -0
- package/ui/tags-input/tag.component.d.ts +18 -0
- package/ui/tags-input/tags-field.recipe.d.ts +7 -0
- package/ui/tags-input/tags-input.component.d.ts +30 -0
package/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { clsx as e } from "clsx";
|
|
2
2
|
import { twMerge as t } from "tailwind-merge";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
import { Accordion as a, AlertDialog as o, Avatar as s, Checkbox as c, Collapsible as l, ContextMenu as u, Dialog as d, DropdownMenu as f, Label as p, Menubar as m, NavigationMenu as h, Popover as g,
|
|
5
|
-
import { cva as
|
|
6
|
-
import { Bookmark as
|
|
7
|
-
import { cloneElement as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
+
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 A, ChevronsRight as ae, ChevronsUpDown as oe, CircleCheck as se, Ellipsis as ce, Info as j, LoaderCircle as le, Mic as M, Minus as ue, PanelLeft as de, Pause as fe, Play as pe, Plus as me, Search as he, Square as ge, TriangleAlert as _e, Upload as ve, X as N } from "lucide-react";
|
|
7
|
+
import { cloneElement as ye, createContext as be, isValidElement as xe, useCallback as Se, useContext as Ce, useEffect as P, useId as we, useLayoutEffect as Te, useRef as F, useState as I, useSyncExternalStore as Ee } from "react";
|
|
8
|
+
import { Drawer as L } from "vaul";
|
|
9
|
+
import { Command as R } from "cmdk";
|
|
10
|
+
import { Toaster as De } from "sonner";
|
|
11
|
+
import { Group as Oe, Panel as ke, Separator as Ae } from "react-resizable-panels";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
|
-
function
|
|
13
|
+
function z(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var B = {
|
|
18
18
|
talogic: {
|
|
19
19
|
name: "Talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
@@ -54,7 +54,7 @@ var N = {
|
|
|
54
54
|
logoColor: "#3e63dd",
|
|
55
55
|
logoAccents: ["#e5484d", "#30a46c"]
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, je = {
|
|
58
58
|
talogic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3ccircle%20cx='4266.667'%20cy='4266.667'%20r='4266.667'%20fill='%23753edd'/%3e%3cpath%20d='M6239.492,7179.279c-587.992,403.439%20-1284.858,619.682%20-1998.46,619.682c-1937.781,0%20-3532.333,-1594.553%20-3532.333,-3532.333c0,-1937.781%201594.553,-3532.333%203532.333,-3532.333c1593.826,-0%202999.58,1078.727%203412.017,2618.266c53.557,199.918%20-65.269,405.709%20-265.188,459.266c-199.918,53.557%20-405.709,-65.269%20-459.266,-265.188c-324.867,-1212.657%20-1432.145,-2062.344%20-2687.563,-2062.344c-1526.343,-0%20-2782.333,1255.99%20-2782.333,2782.333c0,1526.343%201255.99,2782.333%202782.333,2782.333c559.652,0%201106.236,-168.857%201568.116,-483.988l-249.007,-355.451l1686.002,-207.645l-771.521,1513.043l-235.13,-335.642Zm-3156.366,-3334.215c39.357,-108.037%20159.021,-163.797%20267.058,-124.44c108.037,39.357%20163.797,159.021%20124.44,267.058c-32.594,89.472%20-49.269,183.965%20-49.269,279.189c0,447.461%20368.205,815.667%20815.667,815.667c447.461,0%20815.667,-368.205%20815.667,-815.667c0,-291.052%20-155.783,-560.872%20-407.844,-706.394c-99.578,-57.49%20-133.749,-185.009%20-76.26,-284.587c57.49,-99.578%20185.009,-133.749%20284.587,-76.26c380.821,219.859%20616.183,627.511%20616.183,1067.242c0,676.038%20-556.295,1232.333%20-1232.333,1232.333c-676.038,0%20-1232.333,-556.295%20-1232.333,-1232.333c0,-143.867%2025.193,-286.63%2074.437,-421.807Zm3319.934,1203.659c-55.039,151.274%20-222.539,229.404%20-373.813,174.364c-151.274,-55.039%20-229.404,-222.539%20-174.364,-373.813c68.47,-188.186%20103.497,-386.907%20103.497,-587.163c0,-942.081%20-775.215,-1717.296%20-1717.296,-1717.296c-942.081,0%20-1717.296,775.215%20-1717.296,1717.296c0,612.741%20327.944,1180.786%20858.578,1487.182c139.405,80.494%20187.233,259.024%20106.739,398.429c-80.494,139.405%20-259.024,187.233%20-398.429,106.739c-710.881,-410.472%20-1150.221,-1171.472%20-1150.221,-1992.349c0,-1262.088%201038.541,-2300.629%202300.629,-2300.629c1262.088,0%202300.629,1038.541%202300.629,2300.629c0,268.278%20-46.926,534.501%20-138.654,786.611Zm-2172.051,-1208.724c229.965,0%20416.667,186.702%20416.667,416.667c0,229.965%20-186.702,416.667%20-416.667,416.667c-229.965,0%20-416.667,-186.702%20-416.667,-416.667c0,-229.965%20186.702,-416.667%20416.667,-416.667Z'%20fill='%23fff'/%3e%3c/svg%3e" },
|
|
59
59
|
pargic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M8350.618,5542.197c-16.744,53.324%20-34,106.427%20-51.758,159.296c-44.706,128.857%20-95.419,254.916%20-151.804,377.842l-1503.884,-488.642l-256.17,788.41l-1812.022,-1974.821l2626.74,-532.622l-256.169,788.407l1504.03,488.689c-26.854,133.499%20-59.948,264.752%20-98.963,393.441Zm-8116.145,159.296c-17.758,-52.869%20-35.014,-105.971%20-51.758,-159.296c-39.015,-128.688%20-72.108,-259.939%20-98.962,-393.437l1504.031,-488.689l-256.17,-788.41l2626.728,532.584l-1812.01,1974.86l-256.169,-788.407l-1503.884,488.641c-56.385,-122.927%20-107.099,-248.988%20-151.806,-377.846Zm1936.602,-5114.117l929.208,1278.945l670.662,-487.264l305.186,2662.744l-2438.145,-1113.059l670.659,-487.262l-928.662,-1278.193c239.997,-220.72%20505.322,-414.318%20791.092,-575.911Zm4982.272,575.908l-928.662,1278.194l670.662,487.264l-2438.112,1113.082l305.153,-2662.768l670.659,487.262l929.208,-1278.945c285.77,161.593%20551.095,355.19%20791.092,575.91Zm-3375.938,7379.666l0,-1581.091l-828.984,0l1318.221,-2333.589l1318.261,2333.589l-828.98,0l0,1581.091c-160.561,18.364%20-323.818,27.801%20-489.261,27.801c-165.442,0%20-328.698,-9.437%20-489.257,-27.801Z'%20fill='%23dd773e'/%3e%3c/svg%3e" },
|
|
60
60
|
daygic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M4266.667,0c513.234,0%20929.915,416.681%20929.915,929.915l0,1969.231c0,513.234%20-416.681,929.915%20-929.915,929.915c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-1969.231c0,-513.234%20416.681,-929.915%20929.915,-929.915Zm3884.531,2899.145c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-1136.936,656.41c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l1136.936,-656.41c444.474,-256.617%201013.67,-104.101%201270.287,340.372Zm-568.468,4157.265c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-568.468,-328.205c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l568.468,328.205c444.474,256.617%20596.989,825.813%20340.372,1270.287Zm-3316.063,1476.923c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-218.803c0,-513.234%20416.681,-929.915%20929.915,-929.915c513.234,0%20929.915,416.681%20929.915,929.915l0,218.803c0,513.234%20-416.681,929.915%20-929.915,929.915Zm-3316.063,-1476.923c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l568.468,-328.205c444.474,-256.617%201013.67,-104.101%201270.287,340.372c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-568.468,328.205c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372Zm-568.468,-4157.265c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l1136.936,656.41c444.474,256.617%20596.989,825.813%20340.372,1270.287c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-1136.936,-656.41c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287Z'%20fill='%23c8902e'/%3e%3ccircle%20cx='4266.667'%20cy='5141.88'%20r='984.615'%20fill='%239a6a1c'/%3e%3c/svg%3e" },
|
|
@@ -68,19 +68,19 @@ var N = {
|
|
|
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 V({ product: e, alt: t = B[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = je[e], l = z("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: z(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: z(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function P({ product: e, alt: t = N[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var H = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -106,8 +106,8 @@ var F = {
|
|
|
106
106
|
lowOffset: .027,
|
|
107
107
|
deltaYMin: 5e-4,
|
|
108
108
|
lowClip: .1
|
|
109
|
-
},
|
|
110
|
-
function
|
|
109
|
+
}, Me = ["#14121a", "#ffffff"];
|
|
110
|
+
function Ne(e) {
|
|
111
111
|
let t = e.replace("#", "").trim(), n = t.length === 3 ? [...t].map((e) => e.repeat(2)).join("") : t;
|
|
112
112
|
if (!/^[\da-f]{6}$/i.test(n)) throw RangeError(`Not a hex colour: ${e}`);
|
|
113
113
|
return [
|
|
@@ -116,32 +116,32 @@ function Ie(e) {
|
|
|
116
116
|
4
|
|
117
117
|
].map((e) => Number.parseInt(n.slice(e, e + 2), 16));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let [t, n, r] =
|
|
121
|
-
return i <
|
|
119
|
+
function Pe(e) {
|
|
120
|
+
let [t, n, r] = Ne(e).map((e) => (e / 255) ** H.mainTrc), i = H.red * t + H.green * n + H.blue * r;
|
|
121
|
+
return i < H.blackThresh ? i + (H.blackThresh - i) ** H.blackClamp : i;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
125
|
-
if (Math.abs(r - n) <
|
|
123
|
+
function Fe(e, t) {
|
|
124
|
+
let n = Pe(e), r = Pe(t);
|
|
125
|
+
if (Math.abs(r - n) < H.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** H.normBg - n ** H.normText) * H.scale;
|
|
128
|
+
return e < H.lowClip ? 0 : (e - H.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** H.revBg - n ** H.revText) * H.scale;
|
|
131
|
+
return i > -H.lowClip ? 0 : (i + H.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ie(e, t = Me) {
|
|
134
134
|
let n = t[0];
|
|
135
135
|
if (n === void 0) throw RangeError("No label colour to choose from");
|
|
136
|
-
let r = Math.abs(
|
|
136
|
+
let r = Math.abs(Fe(n, e));
|
|
137
137
|
for (let i of t.slice(1)) {
|
|
138
|
-
let t = Math.abs(
|
|
138
|
+
let t = Math.abs(Fe(i, e));
|
|
139
139
|
t > r && (n = i, r = t);
|
|
140
140
|
}
|
|
141
141
|
return n;
|
|
142
142
|
}
|
|
143
143
|
// src/tokens/hue-fill.style.ts
|
|
144
|
-
var
|
|
144
|
+
var U = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -154,7 +154,7 @@ var I = {
|
|
|
154
154
|
violet: "bg-violet-500",
|
|
155
155
|
purple: "bg-purple-500",
|
|
156
156
|
pink: "bg-pink-500"
|
|
157
|
-
},
|
|
157
|
+
}, Le = {
|
|
158
158
|
red: {
|
|
159
159
|
50: "#fef4f3",
|
|
160
160
|
100: "#fee9e7",
|
|
@@ -311,24 +311,24 @@ var I = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, W = {
|
|
315
315
|
saturation: .7,
|
|
316
316
|
lightness: .55,
|
|
317
317
|
maxOklchLightness: .7,
|
|
318
318
|
lightnessStep: .005
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function Re(e) {
|
|
321
321
|
return [
|
|
322
322
|
1,
|
|
323
323
|
3,
|
|
324
324
|
5
|
|
325
325
|
].map((t) => Number.parseInt(e.slice(t, t + 2), 16) / 255);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
let [t, n, r] =
|
|
327
|
+
function ze(e) {
|
|
328
|
+
let [t, n, r] = Re(e), i = Math.max(t, n, r), a = i - Math.min(t, n, r);
|
|
329
329
|
return a === 0 ? 0 : ((i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4) * 60 + 360) % 360;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Be(e, t, n) {
|
|
332
332
|
let r = (1 - Math.abs(2 * n - 1)) * t, i = r * (1 - Math.abs(e / 60 % 2 - 1)), a = n - r / 2, o = Math.floor(e / 60) % 6;
|
|
333
333
|
return `#${([
|
|
334
334
|
[
|
|
@@ -367,24 +367,24 @@ function Ue(e, t, n) {
|
|
|
367
367
|
0
|
|
368
368
|
]).map((e) => Math.round((e + a) * 255).toString(16).padStart(2, "0")).join("")}`;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
let [t, n, r] =
|
|
370
|
+
function Ve(e) {
|
|
371
|
+
let [t, n, r] = Re(e).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), i = Math.cbrt(.4122214708 * t + .5363325363 * n + .0514459929 * r), a = Math.cbrt(.2119034982 * t + .6806995451 * n + .1073969566 * r), o = Math.cbrt(.0883024619 * t + .2817188376 * n + .6299787005 * r);
|
|
372
372
|
return .2104542553 * i + .793617785 * a - .0040720468 * o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let t =
|
|
376
|
-
for (;
|
|
374
|
+
function He(e) {
|
|
375
|
+
let t = ze(Le[e][500]), n = W.lightness, r = Be(t, W.saturation, n);
|
|
376
|
+
for (; Ve(r) > W.maxOklchLightness;) n -= W.lightnessStep, r = Be(t, W.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
380
|
-
var
|
|
380
|
+
var Ue = {
|
|
381
381
|
talogic: "violet",
|
|
382
382
|
pargic: "orange",
|
|
383
383
|
daygic: "amber",
|
|
384
384
|
ingic: "blue",
|
|
385
385
|
loregic: "green",
|
|
386
386
|
loomgic: "blue"
|
|
387
|
-
},
|
|
387
|
+
}, We = [
|
|
388
388
|
"lime",
|
|
389
389
|
"teal",
|
|
390
390
|
"cyan",
|
|
@@ -392,18 +392,18 @@ var Ke = {
|
|
|
392
392
|
"purple",
|
|
393
393
|
"pink"
|
|
394
394
|
];
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Ge(e) {
|
|
396
|
+
return Ue[e];
|
|
397
397
|
}
|
|
398
398
|
// src/tokens/theme.contract.ts
|
|
399
|
-
var
|
|
399
|
+
var Ke = [
|
|
400
400
|
"talogic",
|
|
401
401
|
"pargic",
|
|
402
402
|
"daygic",
|
|
403
403
|
"ingic",
|
|
404
404
|
"loregic",
|
|
405
405
|
"loomgic"
|
|
406
|
-
],
|
|
406
|
+
], qe = [
|
|
407
407
|
"red",
|
|
408
408
|
"orange",
|
|
409
409
|
"amber",
|
|
@@ -416,7 +416,7 @@ var Ye = [
|
|
|
416
416
|
"violet",
|
|
417
417
|
"purple",
|
|
418
418
|
"pink"
|
|
419
|
-
],
|
|
419
|
+
], Je = [
|
|
420
420
|
"50",
|
|
421
421
|
"100",
|
|
422
422
|
"200",
|
|
@@ -428,56 +428,56 @@ var Ye = [
|
|
|
428
428
|
"800",
|
|
429
429
|
"900",
|
|
430
430
|
"950"
|
|
431
|
-
],
|
|
431
|
+
], Ye = [
|
|
432
432
|
"web",
|
|
433
433
|
"app",
|
|
434
434
|
"desk",
|
|
435
435
|
"mob"
|
|
436
|
-
],
|
|
436
|
+
], Xe = ["light", "dark"];
|
|
437
437
|
// src/tokens/theme-attributes.mapper.ts
|
|
438
|
-
function
|
|
438
|
+
function Ze(e) {
|
|
439
439
|
let t = { className: [e.scheme === "dark" ? "dark" : "", e.density ? `d-${e.density}` : ""].filter(Boolean).join(" ") };
|
|
440
440
|
return e.product && (t["data-product"] = e.product), e.hue && (t["data-hue"] = e.hue), t;
|
|
441
441
|
}
|
|
442
442
|
// src/tokens/theme-root.component.tsx
|
|
443
|
-
function
|
|
444
|
-
let { className: c, ...l } =
|
|
443
|
+
function Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
|
|
444
|
+
let { className: c, ...l } = Ze({
|
|
445
445
|
product: e,
|
|
446
446
|
hue: t,
|
|
447
447
|
scheme: n,
|
|
448
448
|
density: i
|
|
449
|
-
}), u = a ?
|
|
449
|
+
}), u = a ? C.Root : "div";
|
|
450
450
|
return /* @__PURE__ */ r(u, {
|
|
451
451
|
"data-slot": "theme-root",
|
|
452
|
-
className:
|
|
452
|
+
className: z(c, o),
|
|
453
453
|
...l,
|
|
454
454
|
...s
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
// src/ui/avatar/avatar.component.tsx
|
|
458
|
-
function
|
|
458
|
+
function $e({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
|
-
className:
|
|
461
|
+
className: z("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function et({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
|
-
className:
|
|
468
|
+
className: z("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function tt({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
|
-
className:
|
|
475
|
+
className: z("flex size-full items-center justify-center rounded-full bg-brand-soft text-xs font-semibold text-brand-text", e),
|
|
476
476
|
...t
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
// src/ui/badge/badge.recipe.ts
|
|
480
|
-
var
|
|
480
|
+
var nt = 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 at = re("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-now
|
|
|
491
491
|
defaultVariants: { variant: "default" }
|
|
492
492
|
});
|
|
493
493
|
// src/ui/badge/badge.component.tsx
|
|
494
|
-
function
|
|
494
|
+
function G({ 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: z(nt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,7 +503,7 @@ function R({ 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 K = 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 z = re([
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
// src/ui/button/button.component.tsx
|
|
540
|
-
function
|
|
541
|
-
let d = o ?
|
|
540
|
+
function q({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
541
|
+
let d = o ? C.Root : "button";
|
|
542
542
|
return /* @__PURE__ */ r(d, {
|
|
543
543
|
"data-slot": "button",
|
|
544
|
-
className:
|
|
544
|
+
className: z(K({
|
|
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(le, {
|
|
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 rt = "fill-none stroke-current [stroke-dasharray:1] [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:2.4] transition-[stroke-dashoffset] ease-emphasised motion-reduce:transition-none";
|
|
559
|
+
function it({ className: e, ...t }) {
|
|
560
560
|
return /* @__PURE__ */ r(c.Root, {
|
|
561
561
|
"data-slot": "checkbox",
|
|
562
|
-
className:
|
|
562
|
+
className: z("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,39 +571,39 @@ function st({ 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: z(rt, "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: z(rt, "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
|
|
586
|
-
return /* @__PURE__ */ r(
|
|
585
|
+
function at({ className: e, ...t }) {
|
|
586
|
+
return /* @__PURE__ */ r(y.Root, {
|
|
587
587
|
"data-slot": "radio-group",
|
|
588
|
-
className:
|
|
588
|
+
className: z("grid gap-2.5", e),
|
|
589
589
|
...t
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
return /* @__PURE__ */ r(
|
|
592
|
+
function ot({ className: e, ...t }) {
|
|
593
|
+
return /* @__PURE__ */ r(y.Item, {
|
|
594
594
|
"data-slot": "radio-group-item",
|
|
595
|
-
className:
|
|
595
|
+
className: z("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
|
-
children: /* @__PURE__ */ r(
|
|
597
|
+
children: /* @__PURE__ */ r(y.Indicator, {
|
|
598
598
|
forceMount: !0,
|
|
599
599
|
className: "size-1.5 scale-0 rounded-full bg-primary-foreground opacity-0 transition-[opacity,scale] duration-200 ease-emphasised group-data-[state=checked]/radio:scale-100 group-data-[state=checked]/radio:opacity-100 motion-reduce:transition-none"
|
|
600
600
|
})
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
// src/ui/choice/slider.component.tsx
|
|
604
|
-
function
|
|
605
|
-
let [d, f] =
|
|
606
|
-
return /* @__PURE__ */ i(
|
|
604
|
+
function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
605
|
+
let [d, f] = I(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
606
|
+
return /* @__PURE__ */ i(S.Root, {
|
|
607
607
|
"data-slot": "slider",
|
|
608
608
|
value: t,
|
|
609
609
|
defaultValue: n,
|
|
@@ -619,29 +619,29 @@ function ut({ 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: z("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
|
-
children: [/* @__PURE__ */ r(
|
|
624
|
+
children: [/* @__PURE__ */ r(S.Track, {
|
|
625
625
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
626
|
-
children: /* @__PURE__ */ r(
|
|
627
|
-
}), Array.from({ length: p }, (e, t) => /* @__PURE__ */ r(
|
|
626
|
+
children: /* @__PURE__ */ r(S.Range, { className: "absolute h-full bg-primary transition-[left,right] duration-200 ease-emphasised group-data-dragging/slider:transition-none motion-reduce:transition-none" })
|
|
627
|
+
}), Array.from({ length: p }, (e, t) => /* @__PURE__ */ r(S.Thumb, {
|
|
628
628
|
"aria-label": m,
|
|
629
629
|
className: "block size-4 cursor-grab rounded-full border border-primary bg-background shadow-xs outline-none focus-visible:ring-3 focus-visible:ring-ring/25"
|
|
630
630
|
}, t))]
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
// src/ui/choice/switch.component.tsx
|
|
634
|
-
function
|
|
635
|
-
return /* @__PURE__ */ r(
|
|
634
|
+
function ct({ className: e, ...t }) {
|
|
635
|
+
return /* @__PURE__ */ r(w.Root, {
|
|
636
636
|
"data-slot": "switch",
|
|
637
|
-
className:
|
|
637
|
+
className: z("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
|
-
children: /* @__PURE__ */ r(
|
|
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 lt(e) {
|
|
644
|
+
let t = F(null), n = F(void 0), r = Se((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,188 +663,70 @@ function ft(e) {
|
|
|
663
663
|
a.disconnect(), o.disconnect();
|
|
664
664
|
};
|
|
665
665
|
}, [e]);
|
|
666
|
-
return
|
|
666
|
+
return P(() => () => n.current?.(), []), r;
|
|
667
667
|
}
|
|
668
668
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
669
|
-
var
|
|
669
|
+
var ut = "pointer-events-none absolute left-(--indicator-left) top-(--indicator-top) h-(--indicator-height) w-(--indicator-width) group-data-[indicator=ready]/indicator:transition-[left,top,width,height] group-data-[indicator=ready]/indicator:duration-250 group-data-[indicator=ready]/indicator:ease-emphasised group-data-[indicator=none]/indicator:opacity-0 group-not-data-indicator/indicator:opacity-0 motion-reduce:transition-none";
|
|
670
670
|
// src/ui/choice/toggle-group.component.tsx
|
|
671
|
-
function
|
|
672
|
-
let a =
|
|
673
|
-
return /* @__PURE__ */ i(
|
|
671
|
+
function dt({ className: e, children: t, ...n }) {
|
|
672
|
+
let a = lt("[data-state=on]"), o = n.type === "single";
|
|
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: z("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: z(ut, "rounded-sm bg-background shadow-xs")
|
|
683
683
|
}), t]
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return /* @__PURE__ */ r(
|
|
686
|
+
function ft({ className: e, ...t }) {
|
|
687
|
+
return /* @__PURE__ */ r(E.Item, {
|
|
688
688
|
"data-slot": "toggle-group-item",
|
|
689
|
-
className:
|
|
690
|
-
...t
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
// src/ui/feedback/alert.component.tsx
|
|
694
|
-
var gt = {
|
|
695
|
-
info: {
|
|
696
|
-
box: "border-border bg-card",
|
|
697
|
-
icon: "text-info",
|
|
698
|
-
Icon: fe
|
|
699
|
-
},
|
|
700
|
-
success: {
|
|
701
|
-
box: "border-border bg-card",
|
|
702
|
-
icon: "text-success",
|
|
703
|
-
Icon: ue
|
|
704
|
-
},
|
|
705
|
-
warning: {
|
|
706
|
-
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
707
|
-
icon: "text-warning",
|
|
708
|
-
Icon: xe
|
|
709
|
-
},
|
|
710
|
-
danger: {
|
|
711
|
-
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
712
|
-
icon: "text-destructive",
|
|
713
|
-
Icon: xe
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
function _t({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
717
|
-
let { box: c, icon: l, Icon: u } = gt[e];
|
|
718
|
-
return /* @__PURE__ */ i("div", {
|
|
719
|
-
"data-slot": "alert",
|
|
720
|
-
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
721
|
-
className: M("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
722
|
-
...s,
|
|
723
|
-
children: [/* @__PURE__ */ r("span", {
|
|
724
|
-
"aria-hidden": "true",
|
|
725
|
-
className: M("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
726
|
-
children: n ?? /* @__PURE__ */ r(u, {})
|
|
727
|
-
}), /* @__PURE__ */ i("div", {
|
|
728
|
-
className: "flex flex-col gap-0.5",
|
|
729
|
-
children: [/* @__PURE__ */ r("p", {
|
|
730
|
-
className: "m-0 type-h4",
|
|
731
|
-
children: t
|
|
732
|
-
}), a && /* @__PURE__ */ r("div", {
|
|
733
|
-
className: "text-[13px] text-muted-foreground",
|
|
734
|
-
children: a
|
|
735
|
-
})]
|
|
736
|
-
})]
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
// src/ui/feedback/empty-state.component.tsx
|
|
740
|
-
function vt({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
741
|
-
return /* @__PURE__ */ i("div", {
|
|
742
|
-
"data-slot": "empty-state",
|
|
743
|
-
className: M("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
744
|
-
...s,
|
|
745
|
-
children: [
|
|
746
|
-
/* @__PURE__ */ r("span", {
|
|
747
|
-
"aria-hidden": "true",
|
|
748
|
-
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
749
|
-
children: n ?? /* @__PURE__ */ r(ye, {})
|
|
750
|
-
}),
|
|
751
|
-
/* @__PURE__ */ r("p", {
|
|
752
|
-
className: "m-0 type-h4",
|
|
753
|
-
children: e
|
|
754
|
-
}),
|
|
755
|
-
t && /* @__PURE__ */ r("p", {
|
|
756
|
-
className: "m-0 max-w-sm text-[13px] text-muted-foreground",
|
|
757
|
-
children: t
|
|
758
|
-
}),
|
|
759
|
-
a && /* @__PURE__ */ r("div", {
|
|
760
|
-
className: "mt-1",
|
|
761
|
-
children: a
|
|
762
|
-
})
|
|
763
|
-
]
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
// src/ui/feedback/progress.component.tsx
|
|
767
|
-
function yt({ className: e, value: t, max: n = 100, ...i }) {
|
|
768
|
-
let a = t == null ? 0 : Math.min(100, Math.max(0, t / n * 100));
|
|
769
|
-
return /* @__PURE__ */ r(_.Root, {
|
|
770
|
-
"data-slot": "progress",
|
|
771
|
-
value: t,
|
|
772
|
-
max: n,
|
|
773
|
-
className: M("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
774
|
-
...i,
|
|
775
|
-
children: /* @__PURE__ */ r(_.Indicator, {
|
|
776
|
-
className: "h-full rounded-full bg-brand transition-[width]",
|
|
777
|
-
style: { width: `${a}%` }
|
|
778
|
-
})
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
// src/ui/feedback/skeleton.component.tsx
|
|
782
|
-
function bt({ className: e, ...t }) {
|
|
783
|
-
return /* @__PURE__ */ r("div", {
|
|
784
|
-
"data-slot": "skeleton",
|
|
785
|
-
"aria-hidden": "true",
|
|
786
|
-
className: M("animate-pulse rounded-sm bg-muted", e),
|
|
689
|
+
className: z("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),
|
|
787
690
|
...t
|
|
788
691
|
});
|
|
789
692
|
}
|
|
790
|
-
// src/ui/feedback/spinner.component.tsx
|
|
791
|
-
function xt({ className: e, label: t = "Loading", ...n }) {
|
|
792
|
-
return /* @__PURE__ */ r(pe, {
|
|
793
|
-
"data-slot": "spinner",
|
|
794
|
-
role: "status",
|
|
795
|
-
"aria-label": t,
|
|
796
|
-
className: M("size-4 animate-spin text-muted-foreground", e),
|
|
797
|
-
...n
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
// src/ui/feedback/toaster.component.tsx
|
|
801
|
-
function St(e) {
|
|
802
|
-
return /* @__PURE__ */ r(Ae, {
|
|
803
|
-
className: "toaster group",
|
|
804
|
-
toastOptions: { classNames: {
|
|
805
|
-
toast: "group flex w-[360px] items-start gap-3 rounded-lg border bg-popover px-4 py-3.5 font-sans text-popover-foreground shadow-lg",
|
|
806
|
-
title: "text-[15px] font-semibold",
|
|
807
|
-
description: "text-[13px] text-muted-foreground",
|
|
808
|
-
success: "[&_[data-icon]]:text-success",
|
|
809
|
-
error: "[&_[data-icon]]:text-destructive",
|
|
810
|
-
info: "[&_[data-icon]]:text-info",
|
|
811
|
-
warning: "[&_[data-icon]]:text-warning"
|
|
812
|
-
} },
|
|
813
|
-
...e
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
693
|
// src/ui/field/control.recipe.ts
|
|
817
|
-
var
|
|
818
|
-
function
|
|
819
|
-
let t =
|
|
694
|
+
var pt = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", mt = be(null);
|
|
695
|
+
function J(e = {}) {
|
|
696
|
+
let t = Ce(mt);
|
|
820
697
|
return t ? {
|
|
821
698
|
id: e.id ?? t.id,
|
|
822
699
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
823
700
|
"aria-invalid": e["aria-invalid"] ?? (t.invalid || void 0)
|
|
824
701
|
} : e;
|
|
825
702
|
}
|
|
703
|
+
function ht() {
|
|
704
|
+
return Ce(mt)?.labelId;
|
|
705
|
+
}
|
|
826
706
|
// src/ui/field/label.component.tsx
|
|
827
|
-
function
|
|
707
|
+
function gt({ className: e, ...t }) {
|
|
828
708
|
return /* @__PURE__ */ r(p.Root, {
|
|
829
709
|
"data-slot": "label",
|
|
830
|
-
className:
|
|
710
|
+
className: z("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
831
711
|
...t
|
|
832
712
|
});
|
|
833
713
|
}
|
|
834
714
|
// src/ui/field/field.component.tsx
|
|
835
|
-
function
|
|
836
|
-
let c =
|
|
837
|
-
return /* @__PURE__ */ r(
|
|
715
|
+
function _t({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
716
|
+
let c = we(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
717
|
+
return /* @__PURE__ */ r(mt, {
|
|
838
718
|
value: {
|
|
839
719
|
id: l,
|
|
840
720
|
describedBy: f,
|
|
841
|
-
invalid: !!n
|
|
721
|
+
invalid: !!n,
|
|
722
|
+
labelId: `${l}-label`
|
|
842
723
|
},
|
|
843
724
|
children: /* @__PURE__ */ i("div", {
|
|
844
725
|
"data-slot": "field",
|
|
845
|
-
className:
|
|
726
|
+
className: z("flex flex-col gap-1.5", s),
|
|
846
727
|
children: [
|
|
847
|
-
/* @__PURE__ */ r(
|
|
728
|
+
/* @__PURE__ */ r(gt, {
|
|
729
|
+
id: `${l}-label`,
|
|
848
730
|
htmlFor: l,
|
|
849
731
|
children: e
|
|
850
732
|
}),
|
|
@@ -864,11 +746,11 @@ function Tt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
864
746
|
});
|
|
865
747
|
}
|
|
866
748
|
// src/ui/field/input.component.tsx
|
|
867
|
-
function
|
|
868
|
-
let o =
|
|
749
|
+
function vt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
750
|
+
let o = J(a), s = /* @__PURE__ */ r("input", {
|
|
869
751
|
"data-slot": "input",
|
|
870
752
|
type: n,
|
|
871
|
-
className:
|
|
753
|
+
className: z(pt, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
872
754
|
...a,
|
|
873
755
|
...o
|
|
874
756
|
});
|
|
@@ -882,667 +764,1234 @@ function U({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
882
764
|
}) : s;
|
|
883
765
|
}
|
|
884
766
|
// src/ui/field/select.component.tsx
|
|
885
|
-
var
|
|
886
|
-
function
|
|
887
|
-
let a =
|
|
888
|
-
return /* @__PURE__ */ i(
|
|
767
|
+
var yt = x.Root, bt = x.Group, xt = x.Value;
|
|
768
|
+
function St({ className: e, children: t, ...n }) {
|
|
769
|
+
let a = J(n);
|
|
770
|
+
return /* @__PURE__ */ i(x.Trigger, {
|
|
889
771
|
"data-slot": "select-trigger",
|
|
890
|
-
className:
|
|
772
|
+
className: z(pt, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
891
773
|
...n,
|
|
892
774
|
...a,
|
|
893
|
-
children: [t, /* @__PURE__ */ r(
|
|
775
|
+
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
894
776
|
asChild: !0,
|
|
895
|
-
children: /* @__PURE__ */ r(
|
|
777
|
+
children: /* @__PURE__ */ r(re, {
|
|
896
778
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
897
779
|
"aria-hidden": "true"
|
|
898
780
|
})
|
|
899
781
|
})]
|
|
900
782
|
});
|
|
901
783
|
}
|
|
902
|
-
function
|
|
903
|
-
return /* @__PURE__ */ r(
|
|
784
|
+
function Ct({ className: e, children: t, position: n = "popper", ...i }) {
|
|
785
|
+
return /* @__PURE__ */ r(x.Portal, { children: /* @__PURE__ */ r(x.Content, {
|
|
904
786
|
"data-slot": "select-content",
|
|
905
787
|
position: n,
|
|
906
|
-
className:
|
|
788
|
+
className: z("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", n === "popper" && "w-full min-w-(--radix-select-trigger-width) data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", e),
|
|
907
789
|
...i,
|
|
908
|
-
children: /* @__PURE__ */ r(
|
|
790
|
+
children: /* @__PURE__ */ r(x.Viewport, {
|
|
909
791
|
className: "p-1",
|
|
910
792
|
children: t
|
|
911
793
|
})
|
|
912
794
|
}) });
|
|
913
795
|
}
|
|
914
|
-
function
|
|
915
|
-
return /* @__PURE__ */ r(
|
|
796
|
+
function wt({ className: e, ...t }) {
|
|
797
|
+
return /* @__PURE__ */ r(x.Label, {
|
|
916
798
|
"data-slot": "select-label",
|
|
917
|
-
className:
|
|
799
|
+
className: z("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
918
800
|
...t
|
|
919
801
|
});
|
|
920
802
|
}
|
|
921
|
-
function
|
|
922
|
-
return /* @__PURE__ */ i(
|
|
803
|
+
function Tt({ className: e, children: t, ...n }) {
|
|
804
|
+
return /* @__PURE__ */ i(x.Item, {
|
|
923
805
|
"data-slot": "select-item",
|
|
924
|
-
className:
|
|
806
|
+
className: z("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2.5 pe-8 text-[13.5px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
925
807
|
...n,
|
|
926
|
-
children: [/* @__PURE__ */ r(
|
|
808
|
+
children: [/* @__PURE__ */ r(x.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
927
809
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
928
|
-
children: /* @__PURE__ */ r(
|
|
810
|
+
children: /* @__PURE__ */ r(x.ItemIndicator, { children: /* @__PURE__ */ r(k, {
|
|
929
811
|
className: "size-4",
|
|
930
812
|
"aria-hidden": "true"
|
|
931
813
|
}) })
|
|
932
814
|
})]
|
|
933
815
|
});
|
|
934
816
|
}
|
|
935
|
-
function
|
|
936
|
-
return /* @__PURE__ */ r(
|
|
817
|
+
function Et({ className: e, ...t }) {
|
|
818
|
+
return /* @__PURE__ */ r(x.Separator, {
|
|
937
819
|
"data-slot": "select-separator",
|
|
938
|
-
className:
|
|
820
|
+
className: z("-mx-1 my-1 h-px bg-border", e),
|
|
939
821
|
...t
|
|
940
822
|
});
|
|
941
823
|
}
|
|
942
824
|
// src/ui/field/textarea.component.tsx
|
|
943
|
-
function
|
|
944
|
-
let n =
|
|
825
|
+
function Dt({ className: e, ...t }) {
|
|
826
|
+
let n = J(t);
|
|
945
827
|
return /* @__PURE__ */ r("textarea", {
|
|
946
828
|
"data-slot": "textarea",
|
|
947
|
-
className:
|
|
829
|
+
className: z(pt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
948
830
|
...t,
|
|
949
831
|
...n
|
|
950
832
|
});
|
|
951
833
|
}
|
|
952
|
-
// src/ui/
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
834
|
+
// src/ui/overlay/overlay.recipe.ts
|
|
835
|
+
var Y = "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", Ot = "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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
}, At = o.Root, jt = o.Trigger;
|
|
841
|
+
function Mt({ className: e, ...t }) {
|
|
842
|
+
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: Y }), /* @__PURE__ */ r(o.Content, {
|
|
843
|
+
"data-slot": "alert-dialog-content",
|
|
844
|
+
className: z("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", Ot, e),
|
|
957
845
|
...t
|
|
958
|
-
});
|
|
846
|
+
})] });
|
|
959
847
|
}
|
|
960
|
-
function
|
|
961
|
-
return /* @__PURE__ */ r(
|
|
962
|
-
"data-slot": "
|
|
963
|
-
className:
|
|
848
|
+
function Nt({ className: e, ...t }) {
|
|
849
|
+
return /* @__PURE__ */ r(o.Title, {
|
|
850
|
+
"data-slot": "alert-dialog-title",
|
|
851
|
+
className: z("m-0 font-display text-lg font-bold leading-tight", e),
|
|
964
852
|
...t
|
|
965
853
|
});
|
|
966
854
|
}
|
|
967
|
-
function
|
|
968
|
-
return /* @__PURE__ */ r(
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
className: M("group flex flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start type-h4 outline-none transition-colors duration-150 hover:text-brand-text focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", e),
|
|
973
|
-
...n,
|
|
974
|
-
children: [t, /* @__PURE__ */ i("svg", {
|
|
975
|
-
viewBox: "0 0 16 16",
|
|
976
|
-
"aria-hidden": "true",
|
|
977
|
-
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-300 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
978
|
-
children: [/* @__PURE__ */ r("rect", {
|
|
979
|
-
x: "3",
|
|
980
|
-
y: "7.25",
|
|
981
|
-
width: "10",
|
|
982
|
-
height: "1.5",
|
|
983
|
-
rx: "0.75",
|
|
984
|
-
fill: "currentColor"
|
|
985
|
-
}), /* @__PURE__ */ r("rect", {
|
|
986
|
-
x: "7.25",
|
|
987
|
-
y: "3",
|
|
988
|
-
width: "1.5",
|
|
989
|
-
height: "10",
|
|
990
|
-
rx: "0.75",
|
|
991
|
-
fill: "currentColor",
|
|
992
|
-
className: "origin-center transition-[scale] duration-300 ease-emphasised [transform-box:fill-box] group-data-[state=open]:scale-y-0 motion-reduce:transition-none"
|
|
993
|
-
})]
|
|
994
|
-
})]
|
|
995
|
-
})
|
|
855
|
+
function Pt({ className: e, ...t }) {
|
|
856
|
+
return /* @__PURE__ */ r(o.Description, {
|
|
857
|
+
"data-slot": "alert-dialog-description",
|
|
858
|
+
className: z("m-0 text-sm text-muted-foreground", e),
|
|
859
|
+
...t
|
|
996
860
|
});
|
|
997
861
|
}
|
|
998
|
-
function
|
|
999
|
-
return /* @__PURE__ */ r(
|
|
1000
|
-
"data-slot": "
|
|
1001
|
-
className:
|
|
1002
|
-
...n
|
|
1003
|
-
children: /* @__PURE__ */ r("div", {
|
|
1004
|
-
className: M("pb-3", e),
|
|
1005
|
-
children: t
|
|
1006
|
-
})
|
|
862
|
+
function Ft({ className: e, variant: t = "default", ...n }) {
|
|
863
|
+
return /* @__PURE__ */ r(o.Action, {
|
|
864
|
+
"data-slot": "alert-dialog-action",
|
|
865
|
+
className: z(K({ variant: t }), e),
|
|
866
|
+
...n
|
|
1007
867
|
});
|
|
1008
868
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
className: M("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
869
|
+
function It({ className: e, ...t }) {
|
|
870
|
+
return /* @__PURE__ */ r(o.Cancel, {
|
|
871
|
+
"data-slot": "alert-dialog-cancel",
|
|
872
|
+
className: z(K({ variant: "outline" }), e),
|
|
1014
873
|
...t
|
|
1015
874
|
});
|
|
1016
875
|
}
|
|
1017
|
-
|
|
876
|
+
// src/ui/overlay/dialog.component.tsx
|
|
877
|
+
var Lt = d.Root, Rt = d.Trigger, zt = d.Close;
|
|
878
|
+
function Bt({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
879
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: Y }), /* @__PURE__ */ i(d.Content, {
|
|
880
|
+
"data-slot": "dialog-content",
|
|
881
|
+
className: z("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", Ot, e),
|
|
882
|
+
...a,
|
|
883
|
+
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
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(N, {
|
|
886
|
+
className: "size-4",
|
|
887
|
+
"aria-hidden": "true"
|
|
888
|
+
}), /* @__PURE__ */ r("span", {
|
|
889
|
+
className: "sr-only",
|
|
890
|
+
children: "Close"
|
|
891
|
+
})]
|
|
892
|
+
})]
|
|
893
|
+
})] });
|
|
894
|
+
}
|
|
895
|
+
function Vt({ className: e, ...t }) {
|
|
1018
896
|
return /* @__PURE__ */ r("div", {
|
|
1019
|
-
"data-slot": "
|
|
1020
|
-
className:
|
|
897
|
+
"data-slot": "dialog-header",
|
|
898
|
+
className: z("flex flex-col gap-1.5 text-start", e),
|
|
1021
899
|
...t
|
|
1022
900
|
});
|
|
1023
901
|
}
|
|
1024
|
-
function Vt({ className: e, children: t, ...n }) {
|
|
1025
|
-
return /* @__PURE__ */ r("h3", {
|
|
1026
|
-
"data-slot": "card-title",
|
|
1027
|
-
className: M("m-0 type-h4", e),
|
|
1028
|
-
...n,
|
|
1029
|
-
children: t
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
902
|
function Ht({ className: e, ...t }) {
|
|
1033
|
-
return /* @__PURE__ */ r("
|
|
1034
|
-
"data-slot": "
|
|
1035
|
-
className:
|
|
903
|
+
return /* @__PURE__ */ r("div", {
|
|
904
|
+
"data-slot": "dialog-footer",
|
|
905
|
+
className: z("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
1036
906
|
...t
|
|
1037
907
|
});
|
|
1038
908
|
}
|
|
1039
909
|
function Ut({ className: e, ...t }) {
|
|
1040
|
-
return /* @__PURE__ */ r(
|
|
1041
|
-
"data-slot": "
|
|
1042
|
-
className:
|
|
910
|
+
return /* @__PURE__ */ r(d.Title, {
|
|
911
|
+
"data-slot": "dialog-title",
|
|
912
|
+
className: z("m-0 font-display text-lg font-bold leading-tight", e),
|
|
1043
913
|
...t
|
|
1044
914
|
});
|
|
1045
915
|
}
|
|
1046
916
|
function Wt({ className: e, ...t }) {
|
|
1047
|
-
return /* @__PURE__ */ r(
|
|
1048
|
-
"data-slot": "
|
|
1049
|
-
className:
|
|
917
|
+
return /* @__PURE__ */ r(d.Description, {
|
|
918
|
+
"data-slot": "dialog-description",
|
|
919
|
+
className: z("m-0 text-sm text-muted-foreground", e),
|
|
1050
920
|
...t
|
|
1051
921
|
});
|
|
1052
922
|
}
|
|
1053
|
-
// src/ui/
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
923
|
+
// src/ui/overlay/drawer.component.tsx
|
|
924
|
+
var Gt = L.Root, Kt = L.Trigger, qt = L.Close;
|
|
925
|
+
function Jt({ className: e, children: t, ...n }) {
|
|
926
|
+
return /* @__PURE__ */ i(L.Portal, { children: [/* @__PURE__ */ r(L.Overlay, { className: Y }), /* @__PURE__ */ i(L.Content, {
|
|
927
|
+
"data-slot": "drawer-content",
|
|
928
|
+
className: z("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
|
+
...n,
|
|
930
|
+
children: [/* @__PURE__ */ r("div", {
|
|
931
|
+
"aria-hidden": "true",
|
|
932
|
+
className: "mx-auto h-[5px] w-10 shrink-0 rounded-full bg-input"
|
|
933
|
+
}), t]
|
|
934
|
+
})] });
|
|
935
|
+
}
|
|
936
|
+
function Yt({ className: e, ...t }) {
|
|
937
|
+
return /* @__PURE__ */ r(L.Title, {
|
|
938
|
+
"data-slot": "drawer-title",
|
|
939
|
+
className: z("m-0 text-xl font-semibold leading-tight", e),
|
|
1058
940
|
...t
|
|
1059
941
|
});
|
|
1060
942
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
className: M("flex size-full", e),
|
|
943
|
+
function Xt({ className: e, ...t }) {
|
|
944
|
+
return /* @__PURE__ */ r(L.Description, {
|
|
945
|
+
"data-slot": "drawer-description",
|
|
946
|
+
className: z("m-0 text-sm text-muted-foreground", e),
|
|
1066
947
|
...t
|
|
1067
948
|
});
|
|
1068
949
|
}
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
950
|
+
// src/ui/overlay/portal.component.tsx
|
|
951
|
+
function Zt(e) {
|
|
952
|
+
return /* @__PURE__ */ r(_.Root, {
|
|
953
|
+
"data-slot": "portal",
|
|
1072
954
|
...e
|
|
1073
955
|
});
|
|
1074
956
|
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
"data-slot": "scroll-area",
|
|
1086
|
-
className: M("relative overflow-hidden", e),
|
|
1087
|
-
...n,
|
|
1088
|
-
children: [
|
|
1089
|
-
/* @__PURE__ */ r(y.Viewport, {
|
|
1090
|
-
className: "size-full rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1091
|
-
children: t
|
|
1092
|
-
}),
|
|
1093
|
-
/* @__PURE__ */ r(Xt, {}),
|
|
1094
|
-
/* @__PURE__ */ r(Xt, { orientation: "horizontal" }),
|
|
1095
|
-
/* @__PURE__ */ r(y.Corner, {})
|
|
1096
|
-
]
|
|
1097
|
-
});
|
|
957
|
+
// src/ui/overlay/popover.component.tsx
|
|
958
|
+
var Qt = g.Root, $t = g.Trigger, en = g.Anchor;
|
|
959
|
+
function tn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
960
|
+
return /* @__PURE__ */ r(g.Portal, { children: /* @__PURE__ */ r(g.Content, {
|
|
961
|
+
"data-slot": "popover-content",
|
|
962
|
+
align: t,
|
|
963
|
+
sideOffset: n,
|
|
964
|
+
className: z("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", Ot, e),
|
|
965
|
+
...i
|
|
966
|
+
}) });
|
|
1098
967
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
968
|
+
// src/ui/overlay/sheet.component.tsx
|
|
969
|
+
var nn = d.Root, rn = d.Trigger, an = d.Close, on = d.Title, sn = d.Description, cn = {
|
|
970
|
+
start: "inset-y-0 start-0 h-full w-3/4 max-w-sm border-e",
|
|
971
|
+
end: "inset-y-0 end-0 h-full w-3/4 max-w-sm border-s",
|
|
972
|
+
top: "inset-x-0 top-0 border-b",
|
|
973
|
+
bottom: "inset-x-0 bottom-0 border-t"
|
|
974
|
+
};
|
|
975
|
+
function ln({ className: e, children: t, side: n = "end", ...a }) {
|
|
976
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: Y }), /* @__PURE__ */ i(d.Content, {
|
|
977
|
+
"data-slot": "sheet-content",
|
|
978
|
+
className: z("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
|
+
...a,
|
|
980
|
+
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
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(N, {
|
|
983
|
+
className: "size-4",
|
|
984
|
+
"aria-hidden": "true"
|
|
985
|
+
}), /* @__PURE__ */ r("span", {
|
|
986
|
+
className: "sr-only",
|
|
987
|
+
children: "Close"
|
|
988
|
+
})]
|
|
989
|
+
})]
|
|
990
|
+
})] });
|
|
991
|
+
}
|
|
992
|
+
// src/ui/overlay/tooltip.component.tsx
|
|
993
|
+
var un = D.Provider;
|
|
994
|
+
function dn(e) {
|
|
995
|
+
return /* @__PURE__ */ r(D.Provider, {
|
|
996
|
+
delayDuration: 300,
|
|
997
|
+
children: /* @__PURE__ */ r(D.Root, {
|
|
998
|
+
"data-slot": "tooltip",
|
|
999
|
+
...e
|
|
1000
|
+
})
|
|
1106
1001
|
});
|
|
1107
1002
|
}
|
|
1108
|
-
|
|
1109
|
-
function
|
|
1110
|
-
return /* @__PURE__ */ r(
|
|
1111
|
-
"data-slot": "
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1003
|
+
var fn = D.Trigger;
|
|
1004
|
+
function pn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1005
|
+
return /* @__PURE__ */ r(D.Portal, { children: /* @__PURE__ */ r(D.Content, {
|
|
1006
|
+
"data-slot": "tooltip-content",
|
|
1007
|
+
sideOffset: t,
|
|
1008
|
+
className: z("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", Ot, e),
|
|
1009
|
+
...n
|
|
1010
|
+
}) });
|
|
1011
|
+
}
|
|
1012
|
+
// src/ui/menu/menu.recipe.ts
|
|
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
|
+
// src/ui/menu/command.component.tsx
|
|
1015
|
+
function vn({ className: e, ...t }) {
|
|
1016
|
+
return /* @__PURE__ */ r(R, {
|
|
1017
|
+
"data-slot": "command",
|
|
1018
|
+
className: z("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1019
|
+
...t
|
|
1116
1020
|
});
|
|
1117
1021
|
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1022
|
+
function yn({ title: e = "Search", children: t, ...n }) {
|
|
1023
|
+
return /* @__PURE__ */ r(d.Root, {
|
|
1024
|
+
...n,
|
|
1025
|
+
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: Y }), /* @__PURE__ */ i(d.Content, {
|
|
1026
|
+
className: z("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", Ot),
|
|
1027
|
+
children: [
|
|
1028
|
+
/* @__PURE__ */ r(d.Title, {
|
|
1029
|
+
className: "sr-only",
|
|
1030
|
+
children: e
|
|
1031
|
+
}),
|
|
1032
|
+
/* @__PURE__ */ r(d.Description, {
|
|
1033
|
+
className: "sr-only",
|
|
1034
|
+
children: "Type to filter the commands."
|
|
1035
|
+
}),
|
|
1036
|
+
/* @__PURE__ */ r(vn, { children: t })
|
|
1037
|
+
]
|
|
1038
|
+
})] })
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
function bn({ className: e, ...t }) {
|
|
1042
|
+
return /* @__PURE__ */ i("div", {
|
|
1043
|
+
"data-slot": "command-input-wrapper",
|
|
1044
|
+
className: "flex h-11 items-center gap-2 border-b px-3",
|
|
1045
|
+
children: [/* @__PURE__ */ r(he, {
|
|
1046
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
1047
|
+
"aria-hidden": "true"
|
|
1048
|
+
}), /* @__PURE__ */ r(R.Input, {
|
|
1049
|
+
"data-slot": "command-input",
|
|
1050
|
+
className: z("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1126
1051
|
...t
|
|
1127
|
-
})
|
|
1052
|
+
})]
|
|
1128
1053
|
});
|
|
1129
1054
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return /* @__PURE__ */ r(
|
|
1132
|
-
"data-slot": "
|
|
1133
|
-
|
|
1055
|
+
function xn({ className: e, ...t }) {
|
|
1056
|
+
return /* @__PURE__ */ r(R.List, {
|
|
1057
|
+
"data-slot": "command-list",
|
|
1058
|
+
className: z("max-h-80 overflow-y-auto p-1", e),
|
|
1059
|
+
...t
|
|
1134
1060
|
});
|
|
1135
1061
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return /* @__PURE__ */ r(
|
|
1138
|
-
"data-slot": "
|
|
1139
|
-
|
|
1062
|
+
function Sn({ className: e, ...t }) {
|
|
1063
|
+
return /* @__PURE__ */ r(R.Empty, {
|
|
1064
|
+
"data-slot": "command-empty",
|
|
1065
|
+
className: z("py-6 text-center text-sm text-muted-foreground", e),
|
|
1066
|
+
...t
|
|
1140
1067
|
});
|
|
1141
1068
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return /* @__PURE__ */ r(
|
|
1144
|
-
"data-slot": "
|
|
1145
|
-
className:
|
|
1069
|
+
function Cn({ className: e, ...t }) {
|
|
1070
|
+
return /* @__PURE__ */ r(R.Group, {
|
|
1071
|
+
"data-slot": "command-group",
|
|
1072
|
+
className: z("[&_[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),
|
|
1146
1073
|
...t
|
|
1147
1074
|
});
|
|
1148
1075
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return /* @__PURE__ */ r(
|
|
1151
|
-
"data-slot": "
|
|
1152
|
-
className:
|
|
1076
|
+
function wn({ className: e, ...t }) {
|
|
1077
|
+
return /* @__PURE__ */ r(R.Item, {
|
|
1078
|
+
"data-slot": "command-item",
|
|
1079
|
+
className: z(X, "data-[selected=true]:bg-accent", e),
|
|
1153
1080
|
...t
|
|
1154
1081
|
});
|
|
1155
1082
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return /* @__PURE__ */ r(
|
|
1158
|
-
"data-slot": "
|
|
1159
|
-
className:
|
|
1083
|
+
function Tn({ className: e, ...t }) {
|
|
1084
|
+
return /* @__PURE__ */ r(R.Separator, {
|
|
1085
|
+
"data-slot": "command-separator",
|
|
1086
|
+
className: z(gn, e),
|
|
1160
1087
|
...t
|
|
1161
1088
|
});
|
|
1162
1089
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return /* @__PURE__ */ r("
|
|
1165
|
-
"data-slot": "
|
|
1166
|
-
className:
|
|
1090
|
+
function En({ className: e, ...t }) {
|
|
1091
|
+
return /* @__PURE__ */ r("span", {
|
|
1092
|
+
"data-slot": "command-shortcut",
|
|
1093
|
+
className: z(hn, e),
|
|
1167
1094
|
...t
|
|
1168
1095
|
});
|
|
1169
1096
|
}
|
|
1170
|
-
// src/ui/
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}, an = o.Root, on = o.Trigger;
|
|
1177
|
-
function sn({ className: e, ...t }) {
|
|
1178
|
-
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: K }), /* @__PURE__ */ r(o.Content, {
|
|
1179
|
-
"data-slot": "alert-dialog-content",
|
|
1180
|
-
className: M("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", q, e),
|
|
1097
|
+
// src/ui/menu/context-menu.component.tsx
|
|
1098
|
+
var Dn = u.Root, On = u.Trigger;
|
|
1099
|
+
function kn({ className: e, ...t }) {
|
|
1100
|
+
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1101
|
+
"data-slot": "context-menu-content",
|
|
1102
|
+
className: z(mn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1181
1103
|
...t
|
|
1182
|
-
})
|
|
1104
|
+
}) });
|
|
1183
1105
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return /* @__PURE__ */ r(
|
|
1186
|
-
"data-slot": "
|
|
1187
|
-
|
|
1106
|
+
function An({ className: e, variant: t = "default", ...n }) {
|
|
1107
|
+
return /* @__PURE__ */ r(u.Item, {
|
|
1108
|
+
"data-slot": "context-menu-item",
|
|
1109
|
+
"data-variant": t,
|
|
1110
|
+
className: z(X, e),
|
|
1111
|
+
...n
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
function jn({ className: e, ...t }) {
|
|
1115
|
+
return /* @__PURE__ */ r(u.Separator, {
|
|
1116
|
+
"data-slot": "context-menu-separator",
|
|
1117
|
+
className: z(gn, e),
|
|
1188
1118
|
...t
|
|
1189
1119
|
});
|
|
1190
1120
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return /* @__PURE__ */ r(
|
|
1193
|
-
"data-slot": "
|
|
1194
|
-
className:
|
|
1121
|
+
function Mn({ className: e, ...t }) {
|
|
1122
|
+
return /* @__PURE__ */ r("span", {
|
|
1123
|
+
"data-slot": "context-menu-shortcut",
|
|
1124
|
+
className: z(hn, e),
|
|
1195
1125
|
...t
|
|
1196
1126
|
});
|
|
1197
1127
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1128
|
+
// src/ui/menu/dropdown-menu.component.tsx
|
|
1129
|
+
var Nn = f.Root, Pn = f.Trigger, Fn = f.Group, In = f.RadioGroup;
|
|
1130
|
+
function Ln({ className: e, sideOffset: t = 6, ...n }) {
|
|
1131
|
+
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1132
|
+
"data-slot": "dropdown-menu-content",
|
|
1133
|
+
sideOffset: t,
|
|
1134
|
+
className: z(mn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1202
1135
|
...n
|
|
1203
|
-
});
|
|
1136
|
+
}) });
|
|
1204
1137
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return /* @__PURE__ */ r(
|
|
1207
|
-
"data-slot": "
|
|
1208
|
-
|
|
1209
|
-
|
|
1138
|
+
function Rn({ className: e, variant: t = "default", ...n }) {
|
|
1139
|
+
return /* @__PURE__ */ r(f.Item, {
|
|
1140
|
+
"data-slot": "dropdown-menu-item",
|
|
1141
|
+
"data-variant": t,
|
|
1142
|
+
className: z(X, e),
|
|
1143
|
+
...n
|
|
1210
1144
|
});
|
|
1211
1145
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
className: "size-4",
|
|
1223
|
-
"aria-hidden": "true"
|
|
1224
|
-
}), /* @__PURE__ */ r("span", {
|
|
1225
|
-
className: "sr-only",
|
|
1226
|
-
children: "Close"
|
|
1227
|
-
})]
|
|
1228
|
-
})]
|
|
1229
|
-
})] });
|
|
1146
|
+
function zn({ className: e, children: t, ...n }) {
|
|
1147
|
+
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1148
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
1149
|
+
className: z(X, "ps-7", e),
|
|
1150
|
+
...n,
|
|
1151
|
+
children: [/* @__PURE__ */ r("span", {
|
|
1152
|
+
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
1153
|
+
children: /* @__PURE__ */ r(f.ItemIndicator, { children: /* @__PURE__ */ r("span", { className: "block size-2 rounded-full bg-brand" }) })
|
|
1154
|
+
}), t]
|
|
1155
|
+
});
|
|
1230
1156
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return /* @__PURE__ */ r(
|
|
1233
|
-
"data-slot": "
|
|
1234
|
-
className:
|
|
1157
|
+
function Bn({ className: e, ...t }) {
|
|
1158
|
+
return /* @__PURE__ */ r(f.Label, {
|
|
1159
|
+
"data-slot": "dropdown-menu-label",
|
|
1160
|
+
className: z(_n, e),
|
|
1235
1161
|
...t
|
|
1236
1162
|
});
|
|
1237
1163
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return /* @__PURE__ */ r(
|
|
1240
|
-
"data-slot": "
|
|
1241
|
-
className:
|
|
1164
|
+
function Vn({ className: e, ...t }) {
|
|
1165
|
+
return /* @__PURE__ */ r(f.Separator, {
|
|
1166
|
+
"data-slot": "dropdown-menu-separator",
|
|
1167
|
+
className: z(gn, e),
|
|
1242
1168
|
...t
|
|
1243
1169
|
});
|
|
1244
1170
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return /* @__PURE__ */ r(
|
|
1247
|
-
"data-slot": "
|
|
1248
|
-
className:
|
|
1171
|
+
function Hn({ className: e, ...t }) {
|
|
1172
|
+
return /* @__PURE__ */ r("span", {
|
|
1173
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
1174
|
+
className: z(hn, e),
|
|
1249
1175
|
...t
|
|
1250
1176
|
});
|
|
1251
1177
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1178
|
+
// src/ui/tags-input/tag-entry.algorithm.ts
|
|
1179
|
+
var Un = /[,;\n\t]/;
|
|
1180
|
+
function Wn(e) {
|
|
1181
|
+
return e.split(Un).map((e) => e.trim()).filter(Boolean);
|
|
1182
|
+
}
|
|
1183
|
+
function Gn(e, t, n = {}) {
|
|
1184
|
+
let r = [...e], i = [];
|
|
1185
|
+
for (let e of t) (n.allowDuplicates || !r.some((t) => t.toLowerCase() === e.toLowerCase())) && (n.validate && !n.validate(e) || n.max !== void 0 && r.length >= n.max ? i.push(e) : r.push(e));
|
|
1186
|
+
return {
|
|
1187
|
+
tags: r,
|
|
1188
|
+
rejected: i
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
// src/ui/tags-input/tag.component.tsx
|
|
1192
|
+
function Kn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove", highlighted: o = !1, ...s }) {
|
|
1193
|
+
return /* @__PURE__ */ i("span", {
|
|
1194
|
+
"data-slot": "tag",
|
|
1195
|
+
"data-highlighted": o || void 0,
|
|
1196
|
+
className: z("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
|
+
...s,
|
|
1198
|
+
children: [/* @__PURE__ */ r("span", {
|
|
1199
|
+
className: "truncate",
|
|
1200
|
+
children: t
|
|
1201
|
+
}), n ? /* @__PURE__ */ r("button", {
|
|
1202
|
+
type: "button",
|
|
1203
|
+
"aria-label": a,
|
|
1204
|
+
onClick: n,
|
|
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(N, { "aria-hidden": "true" })
|
|
1207
|
+
}) : null]
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
// src/ui/tags-input/tags-field.recipe.ts
|
|
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
|
+
// src/ui/tags-input/tags-input.component.tsx
|
|
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] = I(t), [x, ee] = I(""), [S, C] = I(!1), [w, T] = I(!1), E = F(null), D = e ?? y, O = J(v), te = o !== void 0 && D.length >= o;
|
|
1215
|
+
function ne(t) {
|
|
1216
|
+
e === void 0 && b(t), n?.(t);
|
|
1217
|
+
}
|
|
1218
|
+
function k(e) {
|
|
1219
|
+
if (e.length === 0) return;
|
|
1220
|
+
let { tags: t, rejected: n } = Gn(D, e, {
|
|
1221
|
+
max: o,
|
|
1222
|
+
validate: s,
|
|
1223
|
+
allowDuplicates: c
|
|
1224
|
+
});
|
|
1225
|
+
t.length !== D.length && ne(t), ee(n.join(", ")), C(n.length > 0), n.length > 0 && a?.(n);
|
|
1226
|
+
}
|
|
1227
|
+
function re(e) {
|
|
1228
|
+
ne(D.filter((t, n) => n !== e)), T(!1), E.current?.focus();
|
|
1229
|
+
}
|
|
1230
|
+
function ie(e) {
|
|
1231
|
+
if (h?.(e), !(e.defaultPrevented || e.nativeEvent.isComposing)) {
|
|
1232
|
+
if ([
|
|
1233
|
+
"Enter",
|
|
1234
|
+
",",
|
|
1235
|
+
";"
|
|
1236
|
+
].includes(e.key)) {
|
|
1237
|
+
if (x.trim() === "" && e.key === "Enter") return;
|
|
1238
|
+
e.preventDefault(), k(Wn(x));
|
|
1239
|
+
} else x === "" && e.key === "Backspace" && D.length > 0 ? (e.preventDefault(), w ? re(D.length - 1) : T(!0)) : T(!1);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
function A(e) {
|
|
1243
|
+
g?.(e);
|
|
1244
|
+
let t = e.clipboardData.getData("text");
|
|
1245
|
+
!e.defaultPrevented && Un.test(t) && (e.preventDefault(), k(Wn(`${x}${t}`)));
|
|
1246
|
+
}
|
|
1247
|
+
return /* @__PURE__ */ i("div", {
|
|
1248
|
+
"data-slot": "tags-input",
|
|
1249
|
+
className: z(qn, d),
|
|
1250
|
+
onClick: (e) => {
|
|
1251
|
+
e.target === e.currentTarget && E.current?.focus();
|
|
1252
|
+
},
|
|
1253
|
+
children: [D.map((e, t) => /* @__PURE__ */ r(Kn, {
|
|
1254
|
+
highlighted: w && t === D.length - 1,
|
|
1255
|
+
removeLabel: u(e),
|
|
1256
|
+
onRemove: p ? void 0 : () => {
|
|
1257
|
+
re(t);
|
|
1258
|
+
},
|
|
1259
|
+
children: e
|
|
1260
|
+
}, `${e}-${String(t)}`)), /* @__PURE__ */ r("input", {
|
|
1261
|
+
ref: E,
|
|
1262
|
+
type: "text",
|
|
1263
|
+
"data-slot": "tags-input-input",
|
|
1264
|
+
value: x,
|
|
1265
|
+
disabled: p,
|
|
1266
|
+
placeholder: D.length === 0 ? m : void 0,
|
|
1267
|
+
readOnly: te,
|
|
1268
|
+
className: z(Jn, f),
|
|
1269
|
+
onChange: (e) => {
|
|
1270
|
+
ee(e.target.value), C(!1), T(!1);
|
|
1271
|
+
},
|
|
1272
|
+
onKeyDown: ie,
|
|
1273
|
+
onPaste: A,
|
|
1274
|
+
onBlur: (e) => {
|
|
1275
|
+
_?.(e), T(!1), l && !S && k(Wn(x));
|
|
1276
|
+
},
|
|
1277
|
+
...v,
|
|
1278
|
+
...O,
|
|
1279
|
+
"aria-invalid": S || O["aria-invalid"] || void 0
|
|
1280
|
+
})]
|
|
1257
1281
|
});
|
|
1258
1282
|
}
|
|
1259
|
-
// src/ui/
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1283
|
+
// src/ui/combobox/option-search.hook.ts
|
|
1284
|
+
function Xn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1285
|
+
let [i, a] = I({
|
|
1286
|
+
options: [],
|
|
1287
|
+
status: "idle"
|
|
1288
|
+
}), o = F(e);
|
|
1289
|
+
return o.current = e, P(() => {
|
|
1290
|
+
let e = t.trim();
|
|
1291
|
+
if (!o.current || e.length < r) {
|
|
1292
|
+
a({
|
|
1293
|
+
options: [],
|
|
1294
|
+
status: "idle"
|
|
1295
|
+
});
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
let i = new AbortController();
|
|
1299
|
+
a((e) => ({
|
|
1300
|
+
...e,
|
|
1301
|
+
status: "loading"
|
|
1302
|
+
}));
|
|
1303
|
+
async function s() {
|
|
1304
|
+
try {
|
|
1305
|
+
let t = await o.current?.(e, { signal: i.signal }) ?? [];
|
|
1306
|
+
i.signal.aborted || a({
|
|
1307
|
+
options: t,
|
|
1308
|
+
status: "done"
|
|
1309
|
+
});
|
|
1310
|
+
} catch {
|
|
1311
|
+
i.signal.aborted || a({
|
|
1312
|
+
options: [],
|
|
1313
|
+
status: "error"
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
let c = setTimeout(() => {
|
|
1318
|
+
s();
|
|
1319
|
+
}, n);
|
|
1320
|
+
return () => {
|
|
1321
|
+
clearTimeout(c), i.abort();
|
|
1322
|
+
};
|
|
1323
|
+
}, [
|
|
1324
|
+
t,
|
|
1325
|
+
n,
|
|
1326
|
+
r
|
|
1327
|
+
]), i;
|
|
1328
|
+
}
|
|
1329
|
+
// src/ui/combobox/combobox.component.tsx
|
|
1330
|
+
var Zn = "\0create";
|
|
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 = J({
|
|
1333
|
+
id: e.id,
|
|
1334
|
+
"aria-describedby": e["aria-describedby"],
|
|
1335
|
+
"aria-invalid": e["aria-invalid"]
|
|
1336
|
+
}), [y, b] = I(e.multiple ? null : e.defaultValue ?? null), [x, ee] = I(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] = I(!1), [E, D] = I(S?.label ?? ""), [O, te] = I(!1), ne = F(!1);
|
|
1337
|
+
ne.current = O;
|
|
1338
|
+
let [ie, A] = I(!1), ae = F(null), oe = F(null), se = ht(), ce = e["aria-label"];
|
|
1339
|
+
Te(() => {
|
|
1340
|
+
let e = ae.current;
|
|
1341
|
+
e && (se ? e.setAttribute("aria-labelledby", se) : ce && e.removeAttribute("aria-labelledby"));
|
|
1342
|
+
}, [se, ce]);
|
|
1343
|
+
let j = O ? E : "", M = Xn(n, j, {
|
|
1344
|
+
debounceMs: a,
|
|
1345
|
+
minQueryLength: o
|
|
1346
|
+
}), ue = _ ? M.options : t ?? [], de = s && j.trim() !== "" && ue.every((e) => e.label.toLowerCase() !== j.trim().toLowerCase()) ? s(j.trim()) : null, fe = e.multiple && e.max !== void 0 && C.length >= e.max;
|
|
1347
|
+
function pe(t) {
|
|
1348
|
+
e.multiple || (e.value === void 0 && b(t), e.onValueChange?.(t));
|
|
1349
|
+
}
|
|
1350
|
+
function he(t) {
|
|
1351
|
+
e.multiple && (e.value === void 0 && ee(t), e.onValueChange?.(t));
|
|
1352
|
+
}
|
|
1353
|
+
function ge(t) {
|
|
1354
|
+
if (te(!1), A(!1), !e.multiple) {
|
|
1355
|
+
pe(t), D(t.label), T(!1);
|
|
1356
|
+
return;
|
|
1357
|
+
}
|
|
1358
|
+
let n = C.some((e) => e.value === t.value);
|
|
1359
|
+
(n || !fe) && (he(n ? C.filter((e) => e.value !== t.value) : [...C, t]), D(""));
|
|
1360
|
+
}
|
|
1361
|
+
function _e() {
|
|
1362
|
+
T(!1), te(!1), A(!1), D(e.multiple ? "" : S?.label ?? "");
|
|
1363
|
+
}
|
|
1364
|
+
let ve = (e) => C.some((t) => t.value === e.value);
|
|
1365
|
+
return /* @__PURE__ */ r(R, {
|
|
1366
|
+
"data-slot": "combobox",
|
|
1367
|
+
shouldFilter: !_,
|
|
1368
|
+
filter: (e, t, n) => ne.current ? $n(t, [e, ...n ?? []]) : 1,
|
|
1369
|
+
loop: !0,
|
|
1370
|
+
className: "w-full",
|
|
1371
|
+
children: /* @__PURE__ */ i(Qt, {
|
|
1372
|
+
open: w,
|
|
1373
|
+
onOpenChange: (e) => {
|
|
1374
|
+
e || _e();
|
|
1375
|
+
},
|
|
1376
|
+
children: [/* @__PURE__ */ r(en, {
|
|
1377
|
+
asChild: !0,
|
|
1378
|
+
children: /* @__PURE__ */ i("div", {
|
|
1379
|
+
ref: oe,
|
|
1380
|
+
"data-slot": "combobox-field",
|
|
1381
|
+
className: z(qn, "pe-1", h),
|
|
1382
|
+
onClick: (e) => {
|
|
1383
|
+
e.target === e.currentTarget && ae.current?.focus();
|
|
1384
|
+
},
|
|
1385
|
+
children: [
|
|
1386
|
+
e.multiple ? C.map((e, t) => /* @__PURE__ */ r(Kn, {
|
|
1387
|
+
highlighted: ie && t === C.length - 1,
|
|
1388
|
+
removeLabel: `Remove ${e.label}`,
|
|
1389
|
+
onRemove: m ? void 0 : () => {
|
|
1390
|
+
ge(e);
|
|
1391
|
+
},
|
|
1392
|
+
children: e.label
|
|
1393
|
+
}, e.value)) : !O && S?.icon ? /* @__PURE__ */ r("span", {
|
|
1394
|
+
"aria-hidden": "true",
|
|
1395
|
+
className: "ms-1 flex text-muted-foreground [&_svg]:size-4",
|
|
1396
|
+
children: S.icon
|
|
1397
|
+
}) : null,
|
|
1398
|
+
/* @__PURE__ */ r(R.Input, {
|
|
1399
|
+
ref: ae,
|
|
1400
|
+
"data-slot": "combobox-input",
|
|
1401
|
+
value: E,
|
|
1402
|
+
disabled: m,
|
|
1403
|
+
readOnly: fe,
|
|
1404
|
+
placeholder: C.length === 0 || !e.multiple ? p : void 0,
|
|
1405
|
+
"aria-label": e["aria-label"],
|
|
1406
|
+
className: Jn,
|
|
1407
|
+
onValueChange: (e) => {
|
|
1408
|
+
D(e), te(!0), A(!1), T(!0);
|
|
1409
|
+
},
|
|
1410
|
+
onFocus: () => {
|
|
1411
|
+
_ || T(!0);
|
|
1412
|
+
},
|
|
1413
|
+
onKeyDown: (t) => {
|
|
1414
|
+
if (t.key === "Escape") w && t.preventDefault(), _e();
|
|
1415
|
+
else if (!w && t.key === "ArrowDown") T(!0);
|
|
1416
|
+
else if (E === "" && t.key === "Backspace" && e.multiple && C.length > 0) {
|
|
1417
|
+
t.preventDefault();
|
|
1418
|
+
let e = C.at(-1);
|
|
1419
|
+
ie && e ? ge(e) : A(!0);
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
...v
|
|
1423
|
+
}),
|
|
1424
|
+
S && !m && !e.multiple ? /* @__PURE__ */ r("button", {
|
|
1425
|
+
type: "button",
|
|
1426
|
+
"aria-label": "Clear",
|
|
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
|
+
onClick: () => {
|
|
1429
|
+
pe(null), D(""), ae.current?.focus();
|
|
1430
|
+
},
|
|
1431
|
+
children: /* @__PURE__ */ r(N, { "aria-hidden": "true" })
|
|
1432
|
+
}) : null,
|
|
1433
|
+
_ ? null : /* @__PURE__ */ r(re, {
|
|
1434
|
+
"aria-hidden": "true",
|
|
1435
|
+
className: z("mx-1 size-4 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none", w && "rotate-180")
|
|
1436
|
+
})
|
|
1437
|
+
]
|
|
1438
|
+
})
|
|
1439
|
+
}), /* @__PURE__ */ r(tn, {
|
|
1440
|
+
align: "start",
|
|
1441
|
+
sideOffset: 4,
|
|
1442
|
+
className: z("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
1443
|
+
onOpenAutoFocus: (e) => {
|
|
1444
|
+
e.preventDefault();
|
|
1445
|
+
},
|
|
1446
|
+
onInteractOutside: (e) => {
|
|
1447
|
+
e.target instanceof Node && oe.current?.contains(e.target) && e.preventDefault();
|
|
1448
|
+
},
|
|
1449
|
+
onMouseDown: (e) => {
|
|
1450
|
+
e.preventDefault();
|
|
1451
|
+
},
|
|
1452
|
+
children: /* @__PURE__ */ i(R.List, {
|
|
1453
|
+
"data-slot": "combobox-list",
|
|
1454
|
+
className: "max-h-72 overflow-y-auto",
|
|
1455
|
+
children: [
|
|
1456
|
+
_ && M.status === "idle" ? /* @__PURE__ */ r(er, { children: f }) : null,
|
|
1457
|
+
_ && M.status === "loading" ? /* @__PURE__ */ i(er, { children: [/* @__PURE__ */ r(le, {
|
|
1458
|
+
"aria-hidden": "true",
|
|
1459
|
+
className: "size-4 animate-spin"
|
|
1460
|
+
}), u] }) : null,
|
|
1461
|
+
_ && M.status === "error" ? /* @__PURE__ */ r(er, {
|
|
1462
|
+
tone: "destructive",
|
|
1463
|
+
children: d
|
|
1464
|
+
}) : null,
|
|
1465
|
+
!_ || M.status === "done" ? /* @__PURE__ */ r(R.Empty, {
|
|
1466
|
+
className: "px-2.5 py-5 text-center text-sm text-muted-foreground",
|
|
1467
|
+
children: de ? null : l
|
|
1468
|
+
}) : null,
|
|
1469
|
+
(!_ || M.status === "done") && ue.map((e) => /* @__PURE__ */ i(R.Item, {
|
|
1470
|
+
value: e.value,
|
|
1471
|
+
keywords: [e.label, e.description ?? ""],
|
|
1472
|
+
disabled: e.disabled,
|
|
1473
|
+
onSelect: () => {
|
|
1474
|
+
ge(e);
|
|
1475
|
+
},
|
|
1476
|
+
className: z(X, "data-[selected=true]:bg-accent"),
|
|
1477
|
+
children: [
|
|
1478
|
+
e.icon ? /* @__PURE__ */ r("span", {
|
|
1479
|
+
"aria-hidden": "true",
|
|
1480
|
+
className: "flex shrink-0 text-muted-foreground [&_svg]:size-4",
|
|
1481
|
+
children: e.icon
|
|
1482
|
+
}) : null,
|
|
1483
|
+
/* @__PURE__ */ i("span", {
|
|
1484
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
1485
|
+
children: [/* @__PURE__ */ r("span", {
|
|
1486
|
+
className: "truncate",
|
|
1487
|
+
children: e.label
|
|
1488
|
+
}), e.description ? /* @__PURE__ */ r("span", {
|
|
1489
|
+
className: "truncate text-xs text-muted-foreground",
|
|
1490
|
+
children: e.description
|
|
1491
|
+
}) : null]
|
|
1492
|
+
}),
|
|
1493
|
+
/* @__PURE__ */ r(k, {
|
|
1494
|
+
"aria-hidden": "true",
|
|
1495
|
+
className: z("size-4 shrink-0 text-brand", ve(e) ? "opacity-100" : "opacity-0")
|
|
1496
|
+
})
|
|
1497
|
+
]
|
|
1498
|
+
}, e.value)),
|
|
1499
|
+
de ? /* @__PURE__ */ i(R.Item, {
|
|
1500
|
+
forceMount: !0,
|
|
1501
|
+
value: Zn,
|
|
1502
|
+
onSelect: () => {
|
|
1503
|
+
ge(de);
|
|
1504
|
+
},
|
|
1505
|
+
className: z(X, "data-[selected=true]:bg-accent"),
|
|
1506
|
+
children: [/* @__PURE__ */ r(me, {
|
|
1507
|
+
"aria-hidden": "true",
|
|
1508
|
+
className: "size-4 shrink-0 text-brand"
|
|
1509
|
+
}), /* @__PURE__ */ r("span", {
|
|
1510
|
+
className: "truncate",
|
|
1511
|
+
children: c(j.trim())
|
|
1512
|
+
})]
|
|
1513
|
+
}) : null
|
|
1514
|
+
]
|
|
1515
|
+
})
|
|
1516
|
+
})]
|
|
1517
|
+
})
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
function $n(e, t) {
|
|
1521
|
+
let n = e.trim().toLowerCase();
|
|
1522
|
+
if (n === "") return 1;
|
|
1523
|
+
let r = t.map((e) => e.toLowerCase());
|
|
1524
|
+
return r.some((e) => e.startsWith(n)) ? 2 : +!!r.some((e) => e.includes(n));
|
|
1525
|
+
}
|
|
1526
|
+
function er({ children: e, tone: t }) {
|
|
1527
|
+
return /* @__PURE__ */ r("div", {
|
|
1528
|
+
role: "status",
|
|
1529
|
+
className: z("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
1530
|
+
children: e
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
// src/ui/feedback/alert.component.tsx
|
|
1534
|
+
var tr = {
|
|
1535
|
+
info: {
|
|
1536
|
+
box: "border-border bg-card",
|
|
1537
|
+
icon: "text-info",
|
|
1538
|
+
Icon: j
|
|
1539
|
+
},
|
|
1540
|
+
success: {
|
|
1541
|
+
box: "border-border bg-card",
|
|
1542
|
+
icon: "text-success",
|
|
1543
|
+
Icon: se
|
|
1544
|
+
},
|
|
1545
|
+
warning: {
|
|
1546
|
+
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
1547
|
+
icon: "text-warning",
|
|
1548
|
+
Icon: _e
|
|
1549
|
+
},
|
|
1550
|
+
danger: {
|
|
1551
|
+
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
1552
|
+
icon: "text-destructive",
|
|
1553
|
+
Icon: _e
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
function nr({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
1557
|
+
let { box: c, icon: l, Icon: u } = tr[e];
|
|
1558
|
+
return /* @__PURE__ */ i("div", {
|
|
1559
|
+
"data-slot": "alert",
|
|
1560
|
+
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
1561
|
+
className: z("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
1562
|
+
...s,
|
|
1563
|
+
children: [/* @__PURE__ */ r("span", {
|
|
1267
1564
|
"aria-hidden": "true",
|
|
1268
|
-
className: "
|
|
1269
|
-
|
|
1270
|
-
|
|
1565
|
+
className: z("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
1566
|
+
children: n ?? /* @__PURE__ */ r(u, {})
|
|
1567
|
+
}), /* @__PURE__ */ i("div", {
|
|
1568
|
+
className: "flex flex-col gap-0.5",
|
|
1569
|
+
children: [/* @__PURE__ */ r("p", {
|
|
1570
|
+
className: "m-0 type-h4",
|
|
1571
|
+
children: t
|
|
1572
|
+
}), a && /* @__PURE__ */ r("div", {
|
|
1573
|
+
className: "text-[13px] text-muted-foreground",
|
|
1574
|
+
children: a
|
|
1575
|
+
})]
|
|
1576
|
+
})]
|
|
1577
|
+
});
|
|
1271
1578
|
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1579
|
+
// src/ui/feedback/empty-state.component.tsx
|
|
1580
|
+
function rr({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1581
|
+
return /* @__PURE__ */ i("div", {
|
|
1582
|
+
"data-slot": "empty-state",
|
|
1583
|
+
className: z("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
1584
|
+
...s,
|
|
1585
|
+
children: [
|
|
1586
|
+
/* @__PURE__ */ r("span", {
|
|
1587
|
+
"aria-hidden": "true",
|
|
1588
|
+
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
1589
|
+
children: n ?? /* @__PURE__ */ r(me, {})
|
|
1590
|
+
}),
|
|
1591
|
+
/* @__PURE__ */ r("p", {
|
|
1592
|
+
className: "m-0 type-h4",
|
|
1593
|
+
children: e
|
|
1594
|
+
}),
|
|
1595
|
+
t && /* @__PURE__ */ r("p", {
|
|
1596
|
+
className: "m-0 max-w-sm text-[13px] text-muted-foreground",
|
|
1597
|
+
children: t
|
|
1598
|
+
}),
|
|
1599
|
+
a && /* @__PURE__ */ r("div", {
|
|
1600
|
+
className: "mt-1",
|
|
1601
|
+
children: a
|
|
1602
|
+
})
|
|
1603
|
+
]
|
|
1277
1604
|
});
|
|
1278
1605
|
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1606
|
+
// src/ui/feedback/progress.component.tsx
|
|
1607
|
+
function ir({ className: e, value: t, max: n = 100, ...i }) {
|
|
1608
|
+
let a = t == null ? 0 : Math.min(100, Math.max(0, t / n * 100));
|
|
1609
|
+
return /* @__PURE__ */ r(v.Root, {
|
|
1610
|
+
"data-slot": "progress",
|
|
1611
|
+
value: t,
|
|
1612
|
+
max: n,
|
|
1613
|
+
className: z("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
1614
|
+
...i,
|
|
1615
|
+
children: /* @__PURE__ */ r(v.Indicator, {
|
|
1616
|
+
className: "h-full rounded-full bg-brand transition-[width]",
|
|
1617
|
+
style: { width: `${a}%` }
|
|
1618
|
+
})
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
// src/ui/feedback/skeleton.component.tsx
|
|
1622
|
+
function ar({ className: e, ...t }) {
|
|
1623
|
+
return /* @__PURE__ */ r("div", {
|
|
1624
|
+
"data-slot": "skeleton",
|
|
1625
|
+
"aria-hidden": "true",
|
|
1626
|
+
className: z("animate-pulse rounded-sm bg-muted", e),
|
|
1283
1627
|
...t
|
|
1284
1628
|
});
|
|
1285
1629
|
}
|
|
1286
|
-
// src/ui/
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1630
|
+
// src/ui/feedback/spinner.component.tsx
|
|
1631
|
+
function or({ className: e, label: t = "Loading", ...n }) {
|
|
1632
|
+
return /* @__PURE__ */ r(le, {
|
|
1633
|
+
"data-slot": "spinner",
|
|
1634
|
+
role: "status",
|
|
1635
|
+
"aria-label": t,
|
|
1636
|
+
className: z("size-4 animate-spin text-muted-foreground", e),
|
|
1637
|
+
...n
|
|
1638
|
+
});
|
|
1639
|
+
}
|
|
1640
|
+
// src/ui/feedback/toaster.component.tsx
|
|
1641
|
+
function sr(e) {
|
|
1642
|
+
return /* @__PURE__ */ r(De, {
|
|
1643
|
+
className: "toaster group",
|
|
1644
|
+
toastOptions: { classNames: {
|
|
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",
|
|
1646
|
+
title: "text-[15px] font-semibold",
|
|
1647
|
+
description: "text-[13px] text-muted-foreground",
|
|
1648
|
+
success: "[&_[data-icon]]:text-success",
|
|
1649
|
+
error: "[&_[data-icon]]:text-destructive",
|
|
1650
|
+
info: "[&_[data-icon]]:text-info",
|
|
1651
|
+
warning: "[&_[data-icon]]:text-warning"
|
|
1652
|
+
} },
|
|
1653
|
+
...e
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
// src/ui/file-drop/file-accept.policy.ts
|
|
1657
|
+
function cr(e, t = "") {
|
|
1658
|
+
let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
1659
|
+
if (n.length === 0) return !0;
|
|
1660
|
+
let r = e.name?.toLowerCase(), i = e.type.toLowerCase();
|
|
1661
|
+
return n.some((e) => e.startsWith(".") ? !!r?.endsWith(e) : e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e);
|
|
1662
|
+
}
|
|
1663
|
+
function lr(e, t = "") {
|
|
1664
|
+
return !t.split(",").some((e) => e.trim() !== "" && !e.trimStart().startsWith(".")) || e.length === 0 || e.some((e) => e === "" || cr({ type: e }, t));
|
|
1665
|
+
}
|
|
1666
|
+
// src/ui/file-drop/file-drop-overlay.component.tsx
|
|
1667
|
+
function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle: s = "These files cannot be uploaded here", icon: c, className: l }) {
|
|
1668
|
+
return /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r("div", {
|
|
1669
|
+
"data-slot": "file-drop-overlay",
|
|
1670
|
+
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1671
|
+
className: z("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
|
+
children: /* @__PURE__ */ r("div", {
|
|
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
|
+
children: /* @__PURE__ */ r("div", {
|
|
1675
|
+
role: "status",
|
|
1676
|
+
"aria-live": "polite",
|
|
1677
|
+
className: "flex scale-90 flex-col items-center gap-4 text-center transition-transform duration-300 ease-overshoot group-data-[state=accepted]/drop:scale-100 group-data-[state=rejected]/drop:scale-100 motion-reduce:scale-100 motion-reduce:transition-none",
|
|
1678
|
+
children: e ? /* @__PURE__ */ i(n, { children: [
|
|
1679
|
+
/* @__PURE__ */ i("span", {
|
|
1680
|
+
className: "relative grid size-20 place-items-center rounded-full bg-brand-soft text-brand group-data-[state=rejected]/drop:bg-destructive-soft group-data-[state=rejected]/drop:text-destructive [&_svg]:size-9",
|
|
1681
|
+
children: [/* @__PURE__ */ r("span", {
|
|
1682
|
+
"aria-hidden": "true",
|
|
1683
|
+
className: "absolute inset-0 rounded-full bg-current opacity-20 motion-safe:animate-ping"
|
|
1684
|
+
}), t ? c ?? /* @__PURE__ */ r(ve, { "aria-hidden": "true" }) : /* @__PURE__ */ r(te, { "aria-hidden": "true" })]
|
|
1685
|
+
}),
|
|
1686
|
+
/* @__PURE__ */ r("span", {
|
|
1687
|
+
className: "text-2xl font-semibold text-foreground",
|
|
1688
|
+
children: t ? a : s
|
|
1689
|
+
}),
|
|
1690
|
+
o ? /* @__PURE__ */ r("span", {
|
|
1691
|
+
className: "max-w-md text-sm text-muted-foreground",
|
|
1692
|
+
children: o
|
|
1693
|
+
}) : null
|
|
1694
|
+
] }) : null
|
|
1695
|
+
})
|
|
1696
|
+
})
|
|
1295
1697
|
}) });
|
|
1296
1698
|
}
|
|
1297
|
-
// src/ui/
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1699
|
+
// src/ui/file-drop/page-drop.hook.ts
|
|
1700
|
+
function dr(e) {
|
|
1701
|
+
let [t, n] = I({
|
|
1702
|
+
isOver: !1,
|
|
1703
|
+
isAccepted: !0
|
|
1704
|
+
}), r = F(e);
|
|
1705
|
+
return r.current = e, P(() => {
|
|
1706
|
+
let e = 0, t = (e) => !r.current.disabled && !!e.dataTransfer?.types.includes("Files"), i = () => {
|
|
1707
|
+
e = 0, n({
|
|
1708
|
+
isOver: !1,
|
|
1709
|
+
isAccepted: !0
|
|
1710
|
+
});
|
|
1711
|
+
}, a = (i) => {
|
|
1712
|
+
if (!t(i)) return;
|
|
1713
|
+
e += 1;
|
|
1714
|
+
let a = [...i.dataTransfer?.items ?? []].filter((e) => e.kind === "file").map((e) => e.type);
|
|
1715
|
+
n({
|
|
1716
|
+
isOver: !0,
|
|
1717
|
+
isAccepted: lr(a, r.current.accept)
|
|
1718
|
+
});
|
|
1719
|
+
}, o = (e) => {
|
|
1720
|
+
t(e) && e.preventDefault();
|
|
1721
|
+
}, s = (n) => {
|
|
1722
|
+
t(n) && (e = Math.max(0, e - 1), e === 0 && i());
|
|
1723
|
+
}, c = (e) => {
|
|
1724
|
+
if (!t(e)) return;
|
|
1725
|
+
e.preventDefault(), i();
|
|
1726
|
+
let n = [...e.dataTransfer?.files ?? []];
|
|
1727
|
+
if (n.length === 0) return;
|
|
1728
|
+
let a = r.current.accept;
|
|
1729
|
+
r.current.onDrop(n.filter((e) => cr(e, a)), n.filter((e) => !cr(e, a)));
|
|
1730
|
+
}, l = (e) => {
|
|
1731
|
+
t(e) && i();
|
|
1732
|
+
};
|
|
1733
|
+
return globalThis.addEventListener("dragenter", a), globalThis.addEventListener("dragover", o), globalThis.addEventListener("dragleave", s), globalThis.addEventListener("drop", l, { capture: !0 }), globalThis.addEventListener("drop", c), () => {
|
|
1734
|
+
globalThis.removeEventListener("dragenter", a), globalThis.removeEventListener("dragover", o), globalThis.removeEventListener("dragleave", s), globalThis.removeEventListener("drop", l, { capture: !0 }), globalThis.removeEventListener("drop", c);
|
|
1735
|
+
};
|
|
1736
|
+
}, []), t;
|
|
1737
|
+
}
|
|
1738
|
+
// src/ui/layout/accordion.component.tsx
|
|
1739
|
+
function fr({ className: e, ...t }) {
|
|
1740
|
+
return /* @__PURE__ */ r(a.Root, {
|
|
1741
|
+
"data-slot": "accordion",
|
|
1742
|
+
className: z("border-t", e),
|
|
1743
|
+
...t
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
function pr({ className: e, ...t }) {
|
|
1747
|
+
return /* @__PURE__ */ r(a.Item, {
|
|
1748
|
+
"data-slot": "accordion-item",
|
|
1749
|
+
className: z("border-b", e),
|
|
1750
|
+
...t
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
function mr({ className: e, children: t, ...n }) {
|
|
1754
|
+
return /* @__PURE__ */ r(a.Header, {
|
|
1755
|
+
className: "m-0 flex",
|
|
1756
|
+
children: /* @__PURE__ */ i(a.Trigger, {
|
|
1757
|
+
"data-slot": "accordion-trigger",
|
|
1758
|
+
className: z("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
|
+
...n,
|
|
1760
|
+
children: [t, /* @__PURE__ */ i("svg", {
|
|
1761
|
+
viewBox: "0 0 16 16",
|
|
1762
|
+
"aria-hidden": "true",
|
|
1763
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-300 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1764
|
+
children: [/* @__PURE__ */ r("rect", {
|
|
1765
|
+
x: "3",
|
|
1766
|
+
y: "7.25",
|
|
1767
|
+
width: "10",
|
|
1768
|
+
height: "1.5",
|
|
1769
|
+
rx: "0.75",
|
|
1770
|
+
fill: "currentColor"
|
|
1771
|
+
}), /* @__PURE__ */ r("rect", {
|
|
1772
|
+
x: "7.25",
|
|
1773
|
+
y: "3",
|
|
1774
|
+
width: "1.5",
|
|
1775
|
+
height: "10",
|
|
1776
|
+
rx: "0.75",
|
|
1777
|
+
fill: "currentColor",
|
|
1778
|
+
className: "origin-center transition-[scale] duration-300 ease-emphasised [transform-box:fill-box] group-data-[state=open]:scale-y-0 motion-reduce:transition-none"
|
|
1779
|
+
})]
|
|
1317
1780
|
})]
|
|
1318
|
-
})
|
|
1319
|
-
})
|
|
1781
|
+
})
|
|
1782
|
+
});
|
|
1320
1783
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
children: /* @__PURE__ */ r(
|
|
1327
|
-
|
|
1328
|
-
|
|
1784
|
+
function hr({ className: e, children: t, ...n }) {
|
|
1785
|
+
return /* @__PURE__ */ r(a.Content, {
|
|
1786
|
+
"data-slot": "accordion-content",
|
|
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
|
+
...n,
|
|
1789
|
+
children: /* @__PURE__ */ r("div", {
|
|
1790
|
+
className: z("pb-3", e),
|
|
1791
|
+
children: t
|
|
1329
1792
|
})
|
|
1330
1793
|
});
|
|
1331
1794
|
}
|
|
1332
|
-
|
|
1333
|
-
function
|
|
1334
|
-
return /* @__PURE__ */ r(
|
|
1335
|
-
"data-slot": "
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
}) });
|
|
1795
|
+
// src/ui/layout/card.component.tsx
|
|
1796
|
+
function gr({ className: e, ...t }) {
|
|
1797
|
+
return /* @__PURE__ */ r("div", {
|
|
1798
|
+
"data-slot": "card",
|
|
1799
|
+
className: z("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1800
|
+
...t
|
|
1801
|
+
});
|
|
1340
1802
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
return /* @__PURE__ */ r(j, {
|
|
1346
|
-
"data-slot": "command",
|
|
1347
|
-
className: M("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1803
|
+
function _r({ className: e, ...t }) {
|
|
1804
|
+
return /* @__PURE__ */ r("div", {
|
|
1805
|
+
"data-slot": "card-header",
|
|
1806
|
+
className: z("flex flex-col gap-1 px-5 pt-5", e),
|
|
1348
1807
|
...t
|
|
1349
1808
|
});
|
|
1350
1809
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return /* @__PURE__ */ r(
|
|
1810
|
+
function vr({ className: e, children: t, ...n }) {
|
|
1811
|
+
return /* @__PURE__ */ r("h3", {
|
|
1812
|
+
"data-slot": "card-title",
|
|
1813
|
+
className: z("m-0 type-h4", e),
|
|
1353
1814
|
...n,
|
|
1354
|
-
children:
|
|
1355
|
-
className: M("fixed start-1/2 top-[18%] z-50 w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 overflow-hidden rounded-xl border bg-popover shadow-lg outline-none rtl:translate-x-1/2", q),
|
|
1356
|
-
children: [
|
|
1357
|
-
/* @__PURE__ */ r(d.Title, {
|
|
1358
|
-
className: "sr-only",
|
|
1359
|
-
children: e
|
|
1360
|
-
}),
|
|
1361
|
-
/* @__PURE__ */ r(d.Description, {
|
|
1362
|
-
className: "sr-only",
|
|
1363
|
-
children: "Type to filter the commands."
|
|
1364
|
-
}),
|
|
1365
|
-
/* @__PURE__ */ r(Wn, { children: t })
|
|
1366
|
-
]
|
|
1367
|
-
})] })
|
|
1815
|
+
children: t
|
|
1368
1816
|
});
|
|
1369
1817
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return /* @__PURE__ */
|
|
1372
|
-
"data-slot": "
|
|
1373
|
-
className: "
|
|
1374
|
-
|
|
1375
|
-
className: "size-4 shrink-0 text-muted-foreground",
|
|
1376
|
-
"aria-hidden": "true"
|
|
1377
|
-
}), /* @__PURE__ */ r(j.Input, {
|
|
1378
|
-
"data-slot": "command-input",
|
|
1379
|
-
className: M("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1380
|
-
...t
|
|
1381
|
-
})]
|
|
1818
|
+
function yr({ className: e, ...t }) {
|
|
1819
|
+
return /* @__PURE__ */ r("p", {
|
|
1820
|
+
"data-slot": "card-description",
|
|
1821
|
+
className: z("m-0 text-[13px] text-muted-foreground", e),
|
|
1822
|
+
...t
|
|
1382
1823
|
});
|
|
1383
1824
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return /* @__PURE__ */ r(
|
|
1386
|
-
"data-slot": "
|
|
1387
|
-
className:
|
|
1825
|
+
function br({ className: e, ...t }) {
|
|
1826
|
+
return /* @__PURE__ */ r("div", {
|
|
1827
|
+
"data-slot": "card-content",
|
|
1828
|
+
className: z("px-5 py-4", e),
|
|
1388
1829
|
...t
|
|
1389
1830
|
});
|
|
1390
1831
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return /* @__PURE__ */ r(
|
|
1393
|
-
"data-slot": "
|
|
1394
|
-
className:
|
|
1832
|
+
function xr({ className: e, ...t }) {
|
|
1833
|
+
return /* @__PURE__ */ r("div", {
|
|
1834
|
+
"data-slot": "card-footer",
|
|
1835
|
+
className: z("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1395
1836
|
...t
|
|
1396
1837
|
});
|
|
1397
1838
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1839
|
+
// src/ui/layout/kbd.component.tsx
|
|
1840
|
+
function Sr({ className: e, ...t }) {
|
|
1841
|
+
return /* @__PURE__ */ r("kbd", {
|
|
1842
|
+
"data-slot": "kbd",
|
|
1843
|
+
className: z("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),
|
|
1402
1844
|
...t
|
|
1403
1845
|
});
|
|
1404
1846
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1847
|
+
// src/ui/layout/resizable.component.tsx
|
|
1848
|
+
function Cr({ className: e, ...t }) {
|
|
1849
|
+
return /* @__PURE__ */ r(Oe, {
|
|
1850
|
+
"data-slot": "resizable-panel-group",
|
|
1851
|
+
className: z("flex size-full", e),
|
|
1409
1852
|
...t
|
|
1410
1853
|
});
|
|
1411
1854
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return /* @__PURE__ */ r(
|
|
1414
|
-
"data-slot": "
|
|
1415
|
-
|
|
1416
|
-
...t
|
|
1855
|
+
function wr(e) {
|
|
1856
|
+
return /* @__PURE__ */ r(ke, {
|
|
1857
|
+
"data-slot": "resizable-panel",
|
|
1858
|
+
...e
|
|
1417
1859
|
});
|
|
1418
1860
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return /* @__PURE__ */ r(
|
|
1421
|
-
"data-slot": "
|
|
1422
|
-
className:
|
|
1861
|
+
function Tr({ className: e, ...t }) {
|
|
1862
|
+
return /* @__PURE__ */ r(Ae, {
|
|
1863
|
+
"data-slot": "resizable-handle",
|
|
1864
|
+
className: z("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),
|
|
1423
1865
|
...t
|
|
1424
1866
|
});
|
|
1425
1867
|
}
|
|
1426
|
-
// src/ui/
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1868
|
+
// src/ui/layout/scroll-area.component.tsx
|
|
1869
|
+
function Er({ className: e, children: t, ...n }) {
|
|
1870
|
+
return /* @__PURE__ */ i(b.Root, {
|
|
1871
|
+
"data-slot": "scroll-area",
|
|
1872
|
+
className: z("relative overflow-hidden", e),
|
|
1873
|
+
...n,
|
|
1874
|
+
children: [
|
|
1875
|
+
/* @__PURE__ */ r(b.Viewport, {
|
|
1876
|
+
className: "size-full rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1877
|
+
children: t
|
|
1878
|
+
}),
|
|
1879
|
+
/* @__PURE__ */ r(Dr, {}),
|
|
1880
|
+
/* @__PURE__ */ r(Dr, { orientation: "horizontal" }),
|
|
1881
|
+
/* @__PURE__ */ r(b.Corner, {})
|
|
1882
|
+
]
|
|
1883
|
+
});
|
|
1434
1884
|
}
|
|
1435
|
-
function
|
|
1436
|
-
return /* @__PURE__ */ r(
|
|
1437
|
-
"data-slot": "
|
|
1438
|
-
|
|
1439
|
-
className:
|
|
1440
|
-
...n
|
|
1885
|
+
function Dr({ className: e, orientation: t = "vertical", ...n }) {
|
|
1886
|
+
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1887
|
+
"data-slot": "scroll-area-scrollbar",
|
|
1888
|
+
orientation: t,
|
|
1889
|
+
className: z("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1890
|
+
...n,
|
|
1891
|
+
children: /* @__PURE__ */ r(b.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1441
1892
|
});
|
|
1442
1893
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1894
|
+
// src/ui/layout/separator.component.tsx
|
|
1895
|
+
function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
|
|
1896
|
+
return /* @__PURE__ */ r(ee.Root, {
|
|
1897
|
+
"data-slot": "separator",
|
|
1898
|
+
orientation: t,
|
|
1899
|
+
decorative: n,
|
|
1900
|
+
className: z("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1901
|
+
...i
|
|
1448
1902
|
});
|
|
1449
1903
|
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1904
|
+
// src/ui/layout/table.component.tsx
|
|
1905
|
+
function kr({ className: e, ...t }) {
|
|
1906
|
+
return /* @__PURE__ */ r("div", {
|
|
1907
|
+
"data-slot": "table-container",
|
|
1908
|
+
className: "relative w-full overflow-x-auto",
|
|
1909
|
+
children: /* @__PURE__ */ r("table", {
|
|
1910
|
+
"data-slot": "table",
|
|
1911
|
+
className: z("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1912
|
+
...t
|
|
1913
|
+
})
|
|
1455
1914
|
});
|
|
1456
1915
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
sideOffset: t,
|
|
1463
|
-
className: M(Bn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1464
|
-
...n
|
|
1465
|
-
}) });
|
|
1916
|
+
function Ar(e) {
|
|
1917
|
+
return /* @__PURE__ */ r("thead", {
|
|
1918
|
+
"data-slot": "table-header",
|
|
1919
|
+
...e
|
|
1920
|
+
});
|
|
1466
1921
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return /* @__PURE__ */ r(
|
|
1469
|
-
"data-slot": "
|
|
1470
|
-
|
|
1471
|
-
className: M(Y, e),
|
|
1472
|
-
...n
|
|
1922
|
+
function jr(e) {
|
|
1923
|
+
return /* @__PURE__ */ r("tbody", {
|
|
1924
|
+
"data-slot": "table-body",
|
|
1925
|
+
...e
|
|
1473
1926
|
});
|
|
1474
1927
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return /* @__PURE__ */
|
|
1477
|
-
"data-slot": "
|
|
1478
|
-
className:
|
|
1479
|
-
...
|
|
1480
|
-
children: [/* @__PURE__ */ r("span", {
|
|
1481
|
-
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
1482
|
-
children: /* @__PURE__ */ r(f.ItemIndicator, { children: /* @__PURE__ */ r("span", { className: "block size-2 rounded-full bg-brand" }) })
|
|
1483
|
-
}), t]
|
|
1928
|
+
function Mr({ className: e, ...t }) {
|
|
1929
|
+
return /* @__PURE__ */ r("tr", {
|
|
1930
|
+
"data-slot": "table-row",
|
|
1931
|
+
className: z("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1932
|
+
...t
|
|
1484
1933
|
});
|
|
1485
1934
|
}
|
|
1486
|
-
function
|
|
1487
|
-
return /* @__PURE__ */ r(
|
|
1488
|
-
"data-slot": "
|
|
1489
|
-
className:
|
|
1935
|
+
function Nr({ className: e, ...t }) {
|
|
1936
|
+
return /* @__PURE__ */ r("th", {
|
|
1937
|
+
"data-slot": "table-head",
|
|
1938
|
+
className: z("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1490
1939
|
...t
|
|
1491
1940
|
});
|
|
1492
1941
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return /* @__PURE__ */ r(
|
|
1495
|
-
"data-slot": "
|
|
1496
|
-
className:
|
|
1942
|
+
function Pr({ className: e, ...t }) {
|
|
1943
|
+
return /* @__PURE__ */ r("td", {
|
|
1944
|
+
"data-slot": "table-cell",
|
|
1945
|
+
className: z("px-3 py-[11px] align-middle", e),
|
|
1497
1946
|
...t
|
|
1498
1947
|
});
|
|
1499
1948
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return /* @__PURE__ */ r("
|
|
1502
|
-
"data-slot": "
|
|
1503
|
-
className:
|
|
1949
|
+
function Fr({ className: e, ...t }) {
|
|
1950
|
+
return /* @__PURE__ */ r("caption", {
|
|
1951
|
+
"data-slot": "table-caption",
|
|
1952
|
+
className: z("mt-3 text-xs text-muted-foreground", e),
|
|
1504
1953
|
...t
|
|
1505
1954
|
});
|
|
1506
1955
|
}
|
|
1507
1956
|
// src/ui/navigation/breadcrumb.component.tsx
|
|
1508
|
-
function
|
|
1957
|
+
function Ir({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
1509
1958
|
return /* @__PURE__ */ r("nav", {
|
|
1510
1959
|
"data-slot": "breadcrumb",
|
|
1511
1960
|
"aria-label": e,
|
|
1512
1961
|
...t
|
|
1513
1962
|
});
|
|
1514
1963
|
}
|
|
1515
|
-
function
|
|
1964
|
+
function Lr({ className: e, ...t }) {
|
|
1516
1965
|
return /* @__PURE__ */ r("ol", {
|
|
1517
1966
|
"data-slot": "breadcrumb-list",
|
|
1518
|
-
className:
|
|
1967
|
+
className: z("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1519
1968
|
...t
|
|
1520
1969
|
});
|
|
1521
1970
|
}
|
|
1522
|
-
function
|
|
1971
|
+
function Rr({ className: e, ...t }) {
|
|
1523
1972
|
return /* @__PURE__ */ r("li", {
|
|
1524
1973
|
"data-slot": "breadcrumb-item",
|
|
1525
|
-
className:
|
|
1974
|
+
className: z("inline-flex items-center gap-2", e),
|
|
1526
1975
|
...t
|
|
1527
1976
|
});
|
|
1528
1977
|
}
|
|
1529
|
-
function
|
|
1530
|
-
let i = e ?
|
|
1978
|
+
function zr({ asChild: e = !1, className: t, ...n }) {
|
|
1979
|
+
let i = e ? C.Root : "a";
|
|
1531
1980
|
return /* @__PURE__ */ r(i, {
|
|
1532
1981
|
"data-slot": "breadcrumb-link",
|
|
1533
|
-
className:
|
|
1982
|
+
className: z("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1534
1983
|
...n
|
|
1535
1984
|
});
|
|
1536
1985
|
}
|
|
1537
|
-
function
|
|
1986
|
+
function Br({ className: e, ...t }) {
|
|
1538
1987
|
return /* @__PURE__ */ r("span", {
|
|
1539
1988
|
"data-slot": "breadcrumb-page",
|
|
1540
1989
|
"aria-current": "page",
|
|
1541
|
-
className:
|
|
1990
|
+
className: z("font-medium text-foreground", e),
|
|
1542
1991
|
...t
|
|
1543
1992
|
});
|
|
1544
1993
|
}
|
|
1545
|
-
function
|
|
1994
|
+
function Vr({ children: e = "/", ...t }) {
|
|
1546
1995
|
return /* @__PURE__ */ r("li", {
|
|
1547
1996
|
"data-slot": "breadcrumb-separator",
|
|
1548
1997
|
role: "presentation",
|
|
@@ -1552,15 +2001,15 @@ function br({ children: e = "/", ...t }) {
|
|
|
1552
2001
|
});
|
|
1553
2002
|
}
|
|
1554
2003
|
// src/ui/navigation/menu-icon.component.tsx
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
2004
|
+
var Hr = "origin-center [transform-box:fill-box] motion-reduce:[animation-duration:1ms]";
|
|
2005
|
+
function Ur({ open: e, className: t, ...n }) {
|
|
1557
2006
|
return /* @__PURE__ */ i("svg", {
|
|
1558
2007
|
"data-slot": "menu-icon",
|
|
1559
2008
|
"data-state": e === void 0 ? void 0 : e ? "open" : "closed",
|
|
1560
2009
|
viewBox: "0 0 24 24",
|
|
1561
2010
|
fill: "currentColor",
|
|
1562
2011
|
"aria-hidden": "true",
|
|
1563
|
-
className:
|
|
2012
|
+
className: z("group/menu-icon size-5", t),
|
|
1564
2013
|
...n,
|
|
1565
2014
|
children: [
|
|
1566
2015
|
/* @__PURE__ */ r("rect", {
|
|
@@ -1569,7 +2018,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1569
2018
|
width: "16",
|
|
1570
2019
|
height: "2",
|
|
1571
2020
|
rx: "1",
|
|
1572
|
-
className:
|
|
2021
|
+
className: z(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
1573
2022
|
}),
|
|
1574
2023
|
/* @__PURE__ */ r("rect", {
|
|
1575
2024
|
x: "4",
|
|
@@ -1577,7 +2026,7 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1577
2026
|
width: "16",
|
|
1578
2027
|
height: "2",
|
|
1579
2028
|
rx: "1",
|
|
1580
|
-
className:
|
|
2029
|
+
className: z(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
1581
2030
|
}),
|
|
1582
2031
|
/* @__PURE__ */ r("rect", {
|
|
1583
2032
|
x: "4",
|
|
@@ -1585,62 +2034,62 @@ function Sr({ open: e, className: t, ...n }) {
|
|
|
1585
2034
|
width: "16",
|
|
1586
2035
|
height: "2",
|
|
1587
2036
|
rx: "1",
|
|
1588
|
-
className:
|
|
2037
|
+
className: z(Hr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
1589
2038
|
})
|
|
1590
2039
|
]
|
|
1591
2040
|
});
|
|
1592
2041
|
}
|
|
1593
2042
|
// src/ui/navigation/menubar.component.tsx
|
|
1594
|
-
function
|
|
2043
|
+
function Wr({ className: e, ...t }) {
|
|
1595
2044
|
return /* @__PURE__ */ r(m.Root, {
|
|
1596
2045
|
"data-slot": "menubar",
|
|
1597
|
-
className:
|
|
2046
|
+
className: z("flex items-center gap-0.5", e),
|
|
1598
2047
|
...t
|
|
1599
2048
|
});
|
|
1600
2049
|
}
|
|
1601
|
-
var
|
|
1602
|
-
function
|
|
2050
|
+
var Gr = m.Menu;
|
|
2051
|
+
function Kr({ className: e, ...t }) {
|
|
1603
2052
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
1604
2053
|
"data-slot": "menubar-trigger",
|
|
1605
|
-
className:
|
|
2054
|
+
className: z("flex h-[26px] cursor-default select-none items-center rounded-sm px-2 text-[13px] outline-none hover:bg-accent focus:bg-accent data-[state=open]:bg-accent", e),
|
|
1606
2055
|
...t
|
|
1607
2056
|
});
|
|
1608
2057
|
}
|
|
1609
|
-
function
|
|
2058
|
+
function qr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
1610
2059
|
return /* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(m.Content, {
|
|
1611
2060
|
"data-slot": "menubar-content",
|
|
1612
2061
|
align: t,
|
|
1613
2062
|
sideOffset: n,
|
|
1614
|
-
className:
|
|
2063
|
+
className: z("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
1615
2064
|
...i
|
|
1616
2065
|
}) });
|
|
1617
2066
|
}
|
|
1618
|
-
function
|
|
2067
|
+
function Jr({ className: e, ...t }) {
|
|
1619
2068
|
return /* @__PURE__ */ r(m.Item, {
|
|
1620
2069
|
"data-slot": "menubar-item",
|
|
1621
|
-
className:
|
|
2070
|
+
className: z("relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-1.5 text-[13px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1622
2071
|
...t
|
|
1623
2072
|
});
|
|
1624
2073
|
}
|
|
1625
|
-
function
|
|
2074
|
+
function Yr({ className: e, ...t }) {
|
|
1626
2075
|
return /* @__PURE__ */ r("span", {
|
|
1627
2076
|
"data-slot": "menubar-shortcut",
|
|
1628
|
-
className:
|
|
2077
|
+
className: z("ms-auto text-xs text-muted-foreground", e),
|
|
1629
2078
|
...t
|
|
1630
2079
|
});
|
|
1631
2080
|
}
|
|
1632
|
-
function
|
|
2081
|
+
function Xr({ className: e, ...t }) {
|
|
1633
2082
|
return /* @__PURE__ */ r(m.Separator, {
|
|
1634
2083
|
"data-slot": "menubar-separator",
|
|
1635
|
-
className:
|
|
2084
|
+
className: z("-mx-1 my-1 h-px bg-border", e),
|
|
1636
2085
|
...t
|
|
1637
2086
|
});
|
|
1638
2087
|
}
|
|
1639
2088
|
// src/ui/navigation/navigation-menu.component.tsx
|
|
1640
|
-
function
|
|
2089
|
+
function Zr({ className: e, children: t, ...n }) {
|
|
1641
2090
|
return /* @__PURE__ */ i(h.Root, {
|
|
1642
2091
|
"data-slot": "navigation-menu",
|
|
1643
|
-
className:
|
|
2092
|
+
className: z("relative flex items-center", e),
|
|
1644
2093
|
...n,
|
|
1645
2094
|
children: [t, /* @__PURE__ */ r("div", {
|
|
1646
2095
|
className: "absolute start-0 top-full flex justify-center",
|
|
@@ -1648,50 +2097,50 @@ function Ar({ className: e, children: t, ...n }) {
|
|
|
1648
2097
|
})]
|
|
1649
2098
|
});
|
|
1650
2099
|
}
|
|
1651
|
-
function
|
|
2100
|
+
function Qr({ className: e, ...t }) {
|
|
1652
2101
|
return /* @__PURE__ */ r(h.List, {
|
|
1653
2102
|
"data-slot": "navigation-menu-list",
|
|
1654
|
-
className:
|
|
2103
|
+
className: z("m-0 flex list-none items-center gap-1 p-0", e),
|
|
1655
2104
|
...t
|
|
1656
2105
|
});
|
|
1657
2106
|
}
|
|
1658
|
-
var
|
|
1659
|
-
function
|
|
2107
|
+
var $r = h.Item, ei = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center gap-1 rounded-md bg-transparent px-3 text-[15px] font-medium text-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent";
|
|
2108
|
+
function ti({ className: e, children: t, ...n }) {
|
|
1660
2109
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
1661
2110
|
"data-slot": "navigation-menu-trigger",
|
|
1662
|
-
className:
|
|
2111
|
+
className: z(ei, "group", e),
|
|
1663
2112
|
...n,
|
|
1664
|
-
children: [t, /* @__PURE__ */ r(
|
|
2113
|
+
children: [t, /* @__PURE__ */ r(re, {
|
|
1665
2114
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1666
2115
|
"aria-hidden": "true"
|
|
1667
2116
|
})]
|
|
1668
2117
|
});
|
|
1669
2118
|
}
|
|
1670
|
-
function
|
|
2119
|
+
function ni({ className: e, ...t }) {
|
|
1671
2120
|
return /* @__PURE__ */ r(h.Content, {
|
|
1672
2121
|
"data-slot": "navigation-menu-content",
|
|
1673
|
-
className:
|
|
2122
|
+
className: z("top-0 start-0 w-full origin-top p-2 md:absolute md:w-auto", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
1674
2123
|
...t
|
|
1675
2124
|
});
|
|
1676
2125
|
}
|
|
1677
|
-
function
|
|
2126
|
+
function ri({ className: e, ...t }) {
|
|
1678
2127
|
return /* @__PURE__ */ r(h.Link, {
|
|
1679
2128
|
"data-slot": "navigation-menu-link",
|
|
1680
|
-
className:
|
|
2129
|
+
className: z(ei, e),
|
|
1681
2130
|
...t
|
|
1682
2131
|
});
|
|
1683
2132
|
}
|
|
1684
2133
|
// src/ui/navigation/pagination.component.tsx
|
|
1685
|
-
function
|
|
2134
|
+
function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className: o }) {
|
|
1686
2135
|
let s = Math.max(1, Math.min(e - Math.floor(a / 2), t - a + 1)), c = Array.from({ length: Math.min(a, t) }, (e, t) => s + t);
|
|
1687
2136
|
return /* @__PURE__ */ i("nav", {
|
|
1688
2137
|
"data-slot": "pagination",
|
|
1689
2138
|
"aria-label": "Pagination",
|
|
1690
|
-
className:
|
|
2139
|
+
className: z("flex items-center gap-1", o),
|
|
1691
2140
|
children: [
|
|
1692
2141
|
/* @__PURE__ */ r("button", {
|
|
1693
2142
|
type: "button",
|
|
1694
|
-
className:
|
|
2143
|
+
className: K({
|
|
1695
2144
|
variant: "ghost",
|
|
1696
2145
|
size: "sm"
|
|
1697
2146
|
}),
|
|
@@ -1703,7 +2152,7 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1703
2152
|
type: "button",
|
|
1704
2153
|
"aria-current": t === e ? "page" : void 0,
|
|
1705
2154
|
"aria-label": `Page ${t}`,
|
|
1706
|
-
className:
|
|
2155
|
+
className: K({
|
|
1707
2156
|
variant: t === e ? "outline" : "ghost",
|
|
1708
2157
|
size: "icon-sm"
|
|
1709
2158
|
}),
|
|
@@ -1712,7 +2161,7 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1712
2161
|
}, t)),
|
|
1713
2162
|
/* @__PURE__ */ r("button", {
|
|
1714
2163
|
type: "button",
|
|
1715
|
-
className:
|
|
2164
|
+
className: K({
|
|
1716
2165
|
variant: "ghost",
|
|
1717
2166
|
size: "sm"
|
|
1718
2167
|
}),
|
|
@@ -1724,68 +2173,122 @@ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
1724
2173
|
});
|
|
1725
2174
|
}
|
|
1726
2175
|
// src/ui/navigation/tabs.component.tsx
|
|
1727
|
-
function
|
|
1728
|
-
|
|
2176
|
+
function ai({ className: e, value: t, defaultValue: n, onValueChange: i, orientation: a = "horizontal", ...o }) {
|
|
2177
|
+
let s = F(null), c = F(t ?? n), [l, u] = I(), d = Se((e) => {
|
|
2178
|
+
let t = [...s.current?.querySelectorAll("[data-slot=tabs-trigger]") ?? []].map((e) => e.dataset.value), n = t.indexOf(c.current), r = t.indexOf(e);
|
|
2179
|
+
if (c.current = e, n === -1 || r === -1 || n === r) return;
|
|
2180
|
+
let i = r > n;
|
|
2181
|
+
u(a === "vertical" ? i ? "below" : "above" : i ? "next" : "previous");
|
|
2182
|
+
}, [a]);
|
|
2183
|
+
return P(() => {
|
|
2184
|
+
t !== void 0 && t !== c.current && d(t);
|
|
2185
|
+
}, [t, d]), /* @__PURE__ */ r(T.Root, {
|
|
2186
|
+
ref: s,
|
|
1729
2187
|
"data-slot": "tabs",
|
|
1730
|
-
|
|
1731
|
-
|
|
2188
|
+
"data-direction": l,
|
|
2189
|
+
value: t,
|
|
2190
|
+
defaultValue: n,
|
|
2191
|
+
orientation: a,
|
|
2192
|
+
onValueChange: (e) => {
|
|
2193
|
+
d(e), i?.(e);
|
|
2194
|
+
},
|
|
2195
|
+
className: z("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col", e),
|
|
2196
|
+
...o
|
|
1732
2197
|
});
|
|
1733
2198
|
}
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
2199
|
+
var oi = {
|
|
2200
|
+
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2201
|
+
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
|
+
outline: "w-full gap-1 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e"
|
|
2203
|
+
}, si = {
|
|
2204
|
+
pill: "rounded-sm bg-background shadow-xs",
|
|
2205
|
+
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 before:absolute before:bg-brand 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:before:inset-x-[-1px] group-data-[orientation=horizontal]/tabs-list:before:-top-px group-data-[orientation=horizontal]/tabs-list:before:h-0.5 group-data-[orientation=horizontal]/tabs-list:before:rounded-t-md 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:before:inset-y-[-1px] group-data-[orientation=vertical]/tabs-list:before:-start-px group-data-[orientation=vertical]/tabs-list:before:w-0.5 group-data-[orientation=vertical]/tabs-list:before:rounded-s-md"
|
|
2207
|
+
};
|
|
2208
|
+
function ci({ className: e, variant: t = "pill", fitted: n = !1, children: a, ...o }) {
|
|
2209
|
+
let s = lt("[data-slot=tabs-trigger][data-state=active]");
|
|
2210
|
+
return /* @__PURE__ */ i(T.List, {
|
|
2211
|
+
ref: s,
|
|
1738
2212
|
"data-slot": "tabs-list",
|
|
1739
2213
|
"data-variant": t,
|
|
1740
|
-
className:
|
|
1741
|
-
...
|
|
2214
|
+
className: z("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", oi[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2215
|
+
...o,
|
|
1742
2216
|
children: [/* @__PURE__ */ r("span", {
|
|
1743
2217
|
"aria-hidden": "true",
|
|
1744
2218
|
"data-slot": "tabs-indicator",
|
|
1745
|
-
className:
|
|
1746
|
-
}),
|
|
2219
|
+
className: z(ut, si[t])
|
|
2220
|
+
}), a]
|
|
1747
2221
|
});
|
|
1748
2222
|
}
|
|
1749
|
-
function
|
|
1750
|
-
|
|
2223
|
+
function li(e) {
|
|
2224
|
+
e.preventDefault(), e.stopPropagation();
|
|
2225
|
+
}
|
|
2226
|
+
function ui({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2227
|
+
return /* @__PURE__ */ i(T.Trigger, {
|
|
1751
2228
|
"data-slot": "tabs-trigger",
|
|
1752
|
-
|
|
1753
|
-
|
|
2229
|
+
"data-value": c,
|
|
2230
|
+
value: c,
|
|
2231
|
+
"aria-keyshortcuts": n ? "Delete" : void 0,
|
|
2232
|
+
"aria-description": n ? `${a}: Delete` : void 0,
|
|
2233
|
+
onKeyDown: (e) => {
|
|
2234
|
+
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2235
|
+
},
|
|
2236
|
+
className: z("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:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", e),
|
|
2237
|
+
...l,
|
|
2238
|
+
children: [
|
|
2239
|
+
s,
|
|
2240
|
+
t === void 0 ? null : /* @__PURE__ */ r("span", {
|
|
2241
|
+
"data-slot": "tabs-count",
|
|
2242
|
+
className: "min-w-5 rounded-full bg-muted px-1.5 text-center text-[11px] leading-5 tabular-nums text-muted-foreground transition-colors group-data-[state=active]/tab:bg-brand-soft group-data-[state=active]/tab:text-brand-text",
|
|
2243
|
+
children: t
|
|
2244
|
+
}),
|
|
2245
|
+
n ? /* @__PURE__ */ r("span", {
|
|
2246
|
+
"aria-hidden": "true",
|
|
2247
|
+
"data-slot": "tabs-close",
|
|
2248
|
+
onPointerDown: li,
|
|
2249
|
+
onMouseDown: li,
|
|
2250
|
+
onClick: (e) => {
|
|
2251
|
+
li(e), n();
|
|
2252
|
+
},
|
|
2253
|
+
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(N, {})
|
|
2255
|
+
}) : null
|
|
2256
|
+
]
|
|
1754
2257
|
});
|
|
1755
2258
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return /* @__PURE__ */ r(
|
|
2259
|
+
function di({ className: e, ...t }) {
|
|
2260
|
+
return /* @__PURE__ */ r(T.Content, {
|
|
1758
2261
|
"data-slot": "tabs-content",
|
|
1759
|
-
className:
|
|
2262
|
+
className: z("flex-1 outline-none", "group-data-[direction=next]/tabs:animate-tab-in-next group-data-[direction=previous]/tabs:animate-tab-in-previous", "group-data-[direction=below]/tabs:animate-tab-in-below group-data-[direction=above]/tabs:animate-tab-in-above motion-reduce:animate-none", e),
|
|
1760
2263
|
...t
|
|
1761
2264
|
});
|
|
1762
2265
|
}
|
|
1763
2266
|
// src/ui/navigation/stepper.component.tsx
|
|
1764
|
-
var
|
|
2267
|
+
var fi = {
|
|
1765
2268
|
done: "bg-primary text-primary-foreground",
|
|
1766
2269
|
current: "border-2 border-primary text-brand-text",
|
|
1767
2270
|
upcoming: "bg-muted text-muted-foreground"
|
|
1768
2271
|
};
|
|
1769
|
-
function
|
|
2272
|
+
function pi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
1770
2273
|
let l = n === "vertical";
|
|
1771
2274
|
return /* @__PURE__ */ r("ol", {
|
|
1772
2275
|
"data-slot": "stepper",
|
|
1773
2276
|
"data-orientation": n,
|
|
1774
2277
|
"aria-label": s,
|
|
1775
|
-
className:
|
|
2278
|
+
className: z("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
1776
2279
|
...c,
|
|
1777
2280
|
children: e.map((n, o) => {
|
|
1778
2281
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
1779
2282
|
"aria-hidden": "true",
|
|
1780
|
-
className:
|
|
1781
|
-
children: s === "done" ? /* @__PURE__ */ r(
|
|
2283
|
+
className: z("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", fi[s]),
|
|
2284
|
+
children: s === "done" ? /* @__PURE__ */ r(k, {
|
|
1782
2285
|
className: "size-3.5",
|
|
1783
2286
|
strokeWidth: 2.5
|
|
1784
2287
|
}) : o + 1
|
|
1785
2288
|
}), d = /* @__PURE__ */ i("span", {
|
|
1786
2289
|
className: "flex min-w-0 flex-col",
|
|
1787
2290
|
children: [/* @__PURE__ */ i("span", {
|
|
1788
|
-
className:
|
|
2291
|
+
className: z("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
1789
2292
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
1790
2293
|
className: "sr-only",
|
|
1791
2294
|
children: ", done"
|
|
@@ -1806,24 +2309,24 @@ function Ur({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
1806
2309
|
return /* @__PURE__ */ i("li", {
|
|
1807
2310
|
"data-state": s,
|
|
1808
2311
|
"aria-current": s === "current" ? "step" : void 0,
|
|
1809
|
-
className:
|
|
2312
|
+
className: z("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
1810
2313
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
1811
2314
|
"aria-hidden": "true",
|
|
1812
|
-
className:
|
|
2315
|
+
className: z("shrink-0 bg-border transition-colors duration-200 motion-reduce:transition-none", l ? "my-1 ms-[13px] h-5 w-0.5" : "h-0.5 min-w-4 flex-1", s === "done" && "bg-primary")
|
|
1813
2316
|
})]
|
|
1814
2317
|
}, n.title);
|
|
1815
2318
|
})
|
|
1816
2319
|
});
|
|
1817
2320
|
}
|
|
1818
2321
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
1819
|
-
var
|
|
1820
|
-
function
|
|
1821
|
-
let e =
|
|
2322
|
+
var mi = be(null);
|
|
2323
|
+
function Z() {
|
|
2324
|
+
let e = Ce(mi);
|
|
1822
2325
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
1823
2326
|
return e;
|
|
1824
2327
|
}
|
|
1825
2328
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
1826
|
-
var
|
|
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", hi = "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", gi = "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", _i = {
|
|
1827
2330
|
panel: {
|
|
1828
2331
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
1829
2332
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -1833,12 +2336,12 @@ var Z = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
1833
2336
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
1834
2337
|
}
|
|
1835
2338
|
};
|
|
1836
|
-
function
|
|
1837
|
-
let [d, f] =
|
|
2339
|
+
function vi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2340
|
+
let [d, f] = I(o), p = a ?? d;
|
|
1838
2341
|
function m(e) {
|
|
1839
2342
|
a === void 0 && f(e), s?.(e);
|
|
1840
2343
|
}
|
|
1841
|
-
return /* @__PURE__ */ r(
|
|
2344
|
+
return /* @__PURE__ */ r(mi, {
|
|
1842
2345
|
value: {
|
|
1843
2346
|
collapsed: p,
|
|
1844
2347
|
setCollapsed: m,
|
|
@@ -1851,7 +2354,7 @@ function qr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
1851
2354
|
"data-variant": t,
|
|
1852
2355
|
"data-collapsed": p || void 0,
|
|
1853
2356
|
"aria-label": e,
|
|
1854
|
-
className:
|
|
2357
|
+
className: z("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 ? _i[t].collapsed : _i[t].open, c),
|
|
1855
2358
|
...u,
|
|
1856
2359
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
1857
2360
|
"aria-hidden": "true",
|
|
@@ -1861,78 +2364,78 @@ function qr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
1861
2364
|
})
|
|
1862
2365
|
});
|
|
1863
2366
|
}
|
|
1864
|
-
function
|
|
1865
|
-
let { collapsed: n, side: a } =
|
|
1866
|
-
return /* @__PURE__ */ i(
|
|
2367
|
+
function yi({ label: e, children: t }) {
|
|
2368
|
+
let { collapsed: n, side: a } = Z(), [o, s] = I(!1);
|
|
2369
|
+
return /* @__PURE__ */ i(dn, {
|
|
1867
2370
|
open: n && o,
|
|
1868
2371
|
onOpenChange: s,
|
|
1869
|
-
children: [/* @__PURE__ */ r(
|
|
2372
|
+
children: [/* @__PURE__ */ r(fn, {
|
|
1870
2373
|
asChild: !0,
|
|
1871
2374
|
children: t
|
|
1872
|
-
}), /* @__PURE__ */ r(
|
|
2375
|
+
}), /* @__PURE__ */ r(pn, {
|
|
1873
2376
|
side: a === "start" ? "right" : "left",
|
|
1874
2377
|
children: e
|
|
1875
2378
|
})]
|
|
1876
2379
|
});
|
|
1877
2380
|
}
|
|
1878
|
-
function
|
|
1879
|
-
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } =
|
|
1880
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2381
|
+
function bi({ className: e, ...t }) {
|
|
2382
|
+
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(yi, {
|
|
1881
2384
|
label: l,
|
|
1882
2385
|
children: /* @__PURE__ */ i("button", {
|
|
1883
2386
|
type: "button",
|
|
1884
2387
|
"aria-label": l,
|
|
1885
2388
|
"aria-expanded": !n,
|
|
1886
2389
|
onClick: () => a(!n),
|
|
1887
|
-
className:
|
|
2390
|
+
className: z(gi, e),
|
|
1888
2391
|
...t,
|
|
1889
|
-
children: [/* @__PURE__ */ r(
|
|
2392
|
+
children: [/* @__PURE__ */ r(de, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
1890
2393
|
"aria-hidden": "true",
|
|
1891
|
-
className:
|
|
2394
|
+
className: Q,
|
|
1892
2395
|
children: "Collapse"
|
|
1893
2396
|
})]
|
|
1894
2397
|
})
|
|
1895
2398
|
});
|
|
1896
2399
|
let u = s === "start" !== n;
|
|
1897
|
-
return /* @__PURE__ */ r(
|
|
2400
|
+
return /* @__PURE__ */ r(q, {
|
|
1898
2401
|
variant: "ghost",
|
|
1899
2402
|
size: "icon-sm",
|
|
1900
2403
|
"aria-label": l,
|
|
1901
2404
|
"aria-expanded": !n,
|
|
1902
2405
|
title: l,
|
|
1903
2406
|
onClick: () => a(!n),
|
|
1904
|
-
className:
|
|
2407
|
+
className: z("shrink-0 text-muted-foreground", e),
|
|
1905
2408
|
...t,
|
|
1906
|
-
children: r(u ?
|
|
2409
|
+
children: r(u ? A : ae, {})
|
|
1907
2410
|
});
|
|
1908
2411
|
}
|
|
1909
|
-
function
|
|
1910
|
-
let { collapsed: s, label: c, variant: l } =
|
|
2412
|
+
function xi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2413
|
+
let { collapsed: s, label: c, variant: l } = Z();
|
|
1911
2414
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
1912
2415
|
"data-slot": "sidebar-header",
|
|
1913
|
-
className:
|
|
2416
|
+
className: z("flex h-8 items-center", o),
|
|
1914
2417
|
children: a
|
|
1915
2418
|
});
|
|
1916
2419
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
1917
2420
|
return /* @__PURE__ */ i("div", {
|
|
1918
2421
|
"data-slot": "sidebar-header",
|
|
1919
|
-
className:
|
|
2422
|
+
className: z("flex items-center gap-1", o),
|
|
1920
2423
|
children: [/* @__PURE__ */ i("div", {
|
|
1921
2424
|
inert: s,
|
|
1922
2425
|
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",
|
|
1923
|
-
children: [t && /* @__PURE__ */ r(
|
|
2426
|
+
children: [t && /* @__PURE__ */ r(vt, {
|
|
1924
2427
|
type: "search",
|
|
1925
2428
|
value: e,
|
|
1926
2429
|
onChange: (e) => t(e.target.value),
|
|
1927
2430
|
placeholder: u,
|
|
1928
2431
|
"aria-label": u,
|
|
1929
|
-
startIcon: /* @__PURE__ */ r(
|
|
2432
|
+
startIcon: /* @__PURE__ */ r(he, {})
|
|
1930
2433
|
}), a]
|
|
1931
|
-
}), /* @__PURE__ */ r(
|
|
2434
|
+
}), /* @__PURE__ */ r(bi, { className: "ms-auto" })]
|
|
1932
2435
|
});
|
|
1933
2436
|
}
|
|
1934
|
-
function
|
|
1935
|
-
let { label: n, variant: i } =
|
|
2437
|
+
function Si({ className: e, ...t }) {
|
|
2438
|
+
let { label: n, variant: i } = Z(), a = z("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);
|
|
1936
2439
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
1937
2440
|
"data-slot": "sidebar-content",
|
|
1938
2441
|
"aria-label": n,
|
|
@@ -1944,12 +2447,12 @@ function Zr({ className: e, ...t }) {
|
|
|
1944
2447
|
...t
|
|
1945
2448
|
});
|
|
1946
2449
|
}
|
|
1947
|
-
function
|
|
1948
|
-
let { collapsed: i } =
|
|
2450
|
+
function Ci({ className: e, children: t, ...n }) {
|
|
2451
|
+
let { collapsed: i } = Z();
|
|
1949
2452
|
return /* @__PURE__ */ r("div", {
|
|
1950
2453
|
"data-slot": "sidebar-note",
|
|
1951
2454
|
"aria-hidden": i || void 0,
|
|
1952
|
-
className:
|
|
2455
|
+
className: z(hi, e),
|
|
1953
2456
|
...n,
|
|
1954
2457
|
children: /* @__PURE__ */ r("span", {
|
|
1955
2458
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -1957,28 +2460,28 @@ function Qr({ className: e, children: t, ...n }) {
|
|
|
1957
2460
|
})
|
|
1958
2461
|
});
|
|
1959
2462
|
}
|
|
1960
|
-
function
|
|
1961
|
-
let { collapsed: n, variant: i } =
|
|
2463
|
+
function wi({ className: e, ...t }) {
|
|
2464
|
+
let { collapsed: n, variant: i } = Z();
|
|
1962
2465
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
1963
2466
|
"data-slot": "sidebar-footer",
|
|
1964
|
-
className:
|
|
2467
|
+
className: z("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
1965
2468
|
...t
|
|
1966
2469
|
});
|
|
1967
2470
|
}
|
|
1968
2471
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
1969
|
-
function
|
|
1970
|
-
let { collapsed: u, variant: d } =
|
|
2472
|
+
function Ti({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2473
|
+
let { collapsed: u, variant: d } = Z(), [f, p] = I(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
1971
2474
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
1972
2475
|
"data-slot": "sidebar-group",
|
|
1973
2476
|
open: n || u || f,
|
|
1974
2477
|
onOpenChange: p,
|
|
1975
|
-
className:
|
|
2478
|
+
className: z("flex flex-col gap-1", s),
|
|
1976
2479
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
1977
2480
|
disabled: n,
|
|
1978
2481
|
inert: u,
|
|
1979
|
-
className:
|
|
2482
|
+
className: z("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"),
|
|
1980
2483
|
children: [
|
|
1981
|
-
/* @__PURE__ */ r(
|
|
2484
|
+
/* @__PURE__ */ r(ie, {
|
|
1982
2485
|
"aria-hidden": "true",
|
|
1983
2486
|
className: "size-3.5 shrink-0 text-muted-foreground transition-transform duration-150 group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
|
|
1984
2487
|
}),
|
|
@@ -2001,28 +2504,28 @@ function ei({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2001
2504
|
role: "group",
|
|
2002
2505
|
"aria-label": e,
|
|
2003
2506
|
"data-slot": "sidebar-group",
|
|
2004
|
-
className:
|
|
2507
|
+
className: z("flex flex-col gap-0.5", s),
|
|
2005
2508
|
children: [/* @__PURE__ */ r("span", {
|
|
2006
2509
|
"aria-hidden": "true",
|
|
2007
|
-
className:
|
|
2510
|
+
className: z("flex h-6 items-center px-3", h, Q),
|
|
2008
2511
|
children: e
|
|
2009
2512
|
}), c]
|
|
2010
2513
|
});
|
|
2011
2514
|
}
|
|
2012
2515
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2013
|
-
function
|
|
2014
|
-
let { collapsed: m, variant: h } =
|
|
2516
|
+
function Ei({ 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
|
+
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2015
2518
|
/* @__PURE__ */ r("span", {
|
|
2016
2519
|
"aria-hidden": "true",
|
|
2017
2520
|
className: "flex",
|
|
2018
2521
|
children: a
|
|
2019
2522
|
}),
|
|
2020
2523
|
/* @__PURE__ */ r("span", {
|
|
2021
|
-
className:
|
|
2524
|
+
className: Q,
|
|
2022
2525
|
children: e
|
|
2023
2526
|
}),
|
|
2024
2527
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2025
|
-
className:
|
|
2528
|
+
className: z("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Q),
|
|
2026
2529
|
children: c
|
|
2027
2530
|
})
|
|
2028
2531
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2032,11 +2535,11 @@ function ti({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2032
2535
|
children: a
|
|
2033
2536
|
}) : /* @__PURE__ */ r("span", {
|
|
2034
2537
|
"aria-hidden": "true",
|
|
2035
|
-
className:
|
|
2538
|
+
className: z("h-6 w-2.5 shrink-0 rounded-[3px]", o ? U[o] : ""),
|
|
2036
2539
|
style: o ? void 0 : { background: s }
|
|
2037
2540
|
}),
|
|
2038
2541
|
/* @__PURE__ */ i("span", {
|
|
2039
|
-
className:
|
|
2542
|
+
className: z("flex flex-col", Q),
|
|
2040
2543
|
children: [/* @__PURE__ */ r("span", {
|
|
2041
2544
|
className: "truncate text-[13px] font-medium",
|
|
2042
2545
|
children: e
|
|
@@ -2046,51 +2549,51 @@ function ti({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2046
2549
|
})]
|
|
2047
2550
|
}),
|
|
2048
2551
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2049
|
-
className:
|
|
2552
|
+
className: z("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2050
2553
|
children: c
|
|
2051
2554
|
})
|
|
2052
|
-
] }), v = h === "nav" ?
|
|
2555
|
+
] }), v = h === "nav" ? z(gi, d) : z("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 = {
|
|
2053
2556
|
"data-slot": "sidebar-item",
|
|
2054
2557
|
"aria-current": g,
|
|
2055
2558
|
"aria-label": m ? e : void 0,
|
|
2056
2559
|
className: v
|
|
2057
|
-
}, b = u &&
|
|
2560
|
+
}, b = u && xe(f) ? /* @__PURE__ */ r(C.Root, {
|
|
2058
2561
|
...y,
|
|
2059
2562
|
...p,
|
|
2060
|
-
children:
|
|
2563
|
+
children: Di(f, _)
|
|
2061
2564
|
}) : /* @__PURE__ */ r("button", {
|
|
2062
2565
|
type: "button",
|
|
2063
2566
|
...y,
|
|
2064
2567
|
...p,
|
|
2065
2568
|
children: _
|
|
2066
2569
|
});
|
|
2067
|
-
return /* @__PURE__ */ r(
|
|
2570
|
+
return /* @__PURE__ */ r(yi, {
|
|
2068
2571
|
label: e,
|
|
2069
2572
|
children: b
|
|
2070
2573
|
});
|
|
2071
2574
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return
|
|
2575
|
+
function Di(e, t) {
|
|
2576
|
+
return ye(e, void 0, t);
|
|
2074
2577
|
}
|
|
2075
2578
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2076
|
-
function
|
|
2077
|
-
return /* @__PURE__ */ i(
|
|
2579
|
+
function Oi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2580
|
+
return /* @__PURE__ */ i(nn, {
|
|
2078
2581
|
open: a,
|
|
2079
2582
|
onOpenChange: o,
|
|
2080
|
-
children: [/* @__PURE__ */ r(
|
|
2583
|
+
children: [/* @__PURE__ */ r(rn, {
|
|
2081
2584
|
asChild: !0,
|
|
2082
|
-
children: /* @__PURE__ */ r(
|
|
2585
|
+
children: /* @__PURE__ */ r(q, {
|
|
2083
2586
|
variant: "ghost",
|
|
2084
2587
|
size: "icon",
|
|
2085
2588
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
2086
2589
|
className: s,
|
|
2087
|
-
children: /* @__PURE__ */ r(
|
|
2590
|
+
children: /* @__PURE__ */ r(de, {})
|
|
2088
2591
|
})
|
|
2089
|
-
}), /* @__PURE__ */ i(
|
|
2592
|
+
}), /* @__PURE__ */ i(ln, {
|
|
2090
2593
|
"data-slot": "sidebar-sheet",
|
|
2091
2594
|
side: n,
|
|
2092
2595
|
className: "d-mob w-[min(320px,86vw)] gap-0 p-0 [&>[data-slot=sidebar]]:border-0",
|
|
2093
|
-
children: [/* @__PURE__ */ r(
|
|
2596
|
+
children: [/* @__PURE__ */ r(on, {
|
|
2094
2597
|
className: "sr-only",
|
|
2095
2598
|
children: e
|
|
2096
2599
|
}), t]
|
|
@@ -2098,15 +2601,15 @@ function ri({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2098
2601
|
});
|
|
2099
2602
|
}
|
|
2100
2603
|
// src/product/product-switcher.component.tsx
|
|
2101
|
-
function
|
|
2102
|
-
return /* @__PURE__ */ i(
|
|
2604
|
+
function ki({ product: e, workspace: t, products: n = Ke, onProductChange: a, className: o }) {
|
|
2605
|
+
return /* @__PURE__ */ i(Nn, { children: [/* @__PURE__ */ r(Pn, {
|
|
2103
2606
|
asChild: !0,
|
|
2104
|
-
children: /* @__PURE__ */ i(
|
|
2607
|
+
children: /* @__PURE__ */ i(q, {
|
|
2105
2608
|
variant: "ghost",
|
|
2106
|
-
className:
|
|
2107
|
-
"aria-label": `${
|
|
2609
|
+
className: z("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2610
|
+
"aria-label": `${B[e].name}, switch product`,
|
|
2108
2611
|
children: [
|
|
2109
|
-
/* @__PURE__ */ r(
|
|
2612
|
+
/* @__PURE__ */ r(V, {
|
|
2110
2613
|
product: e,
|
|
2111
2614
|
alt: "",
|
|
2112
2615
|
className: "size-7"
|
|
@@ -2115,41 +2618,41 @@ function ii({ product: e, workspace: t, products: n = Ye, onProductChange: a, cl
|
|
|
2115
2618
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2116
2619
|
children: [/* @__PURE__ */ r("span", {
|
|
2117
2620
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2118
|
-
children:
|
|
2621
|
+
children: B[e].name
|
|
2119
2622
|
}), t && /* @__PURE__ */ r("span", {
|
|
2120
2623
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2121
2624
|
children: t
|
|
2122
2625
|
})]
|
|
2123
2626
|
}),
|
|
2124
|
-
/* @__PURE__ */ r(
|
|
2627
|
+
/* @__PURE__ */ r(oe, {
|
|
2125
2628
|
className: "ms-auto text-muted-foreground",
|
|
2126
2629
|
"aria-hidden": "true"
|
|
2127
2630
|
})
|
|
2128
2631
|
]
|
|
2129
2632
|
})
|
|
2130
|
-
}), /* @__PURE__ */ i(
|
|
2633
|
+
}), /* @__PURE__ */ i(Ln, {
|
|
2131
2634
|
align: "start",
|
|
2132
2635
|
className: "w-60",
|
|
2133
|
-
children: [/* @__PURE__ */ r(
|
|
2636
|
+
children: [/* @__PURE__ */ r(Bn, { children: "Products" }), /* @__PURE__ */ r(In, {
|
|
2134
2637
|
value: e,
|
|
2135
2638
|
onValueChange: (e) => a?.(e),
|
|
2136
|
-
children: n.map((e) => /* @__PURE__ */ i(
|
|
2639
|
+
children: n.map((e) => /* @__PURE__ */ i(zn, {
|
|
2137
2640
|
value: e,
|
|
2138
|
-
children: [/* @__PURE__ */ r(
|
|
2641
|
+
children: [/* @__PURE__ */ r(V, {
|
|
2139
2642
|
product: e,
|
|
2140
2643
|
alt: "",
|
|
2141
2644
|
className: "size-4"
|
|
2142
|
-
}),
|
|
2645
|
+
}), B[e].name]
|
|
2143
2646
|
}, e))
|
|
2144
2647
|
})]
|
|
2145
2648
|
})] });
|
|
2146
2649
|
}
|
|
2147
2650
|
// src/product/sidebar-brand.component.tsx
|
|
2148
|
-
function
|
|
2149
|
-
let { collapsed: a, setCollapsed: o } =
|
|
2651
|
+
function Ai({ product: e, badge: t, className: n }) {
|
|
2652
|
+
let { collapsed: a, setCollapsed: o } = Z(), s = B[e].name;
|
|
2150
2653
|
return /* @__PURE__ */ i("div", {
|
|
2151
2654
|
"data-slot": "sidebar-brand",
|
|
2152
|
-
className:
|
|
2655
|
+
className: z("flex h-8 items-center", n),
|
|
2153
2656
|
children: [
|
|
2154
2657
|
/* @__PURE__ */ r("button", {
|
|
2155
2658
|
type: "button",
|
|
@@ -2157,26 +2660,26 @@ function ai({ product: e, badge: t, className: n }) {
|
|
|
2157
2660
|
"aria-expanded": !a,
|
|
2158
2661
|
onClick: () => o(!a),
|
|
2159
2662
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2160
|
-
children: /* @__PURE__ */ r(
|
|
2663
|
+
children: /* @__PURE__ */ r(V, {
|
|
2161
2664
|
product: e,
|
|
2162
2665
|
alt: "",
|
|
2163
|
-
className:
|
|
2666
|
+
className: z("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
2164
2667
|
})
|
|
2165
2668
|
}),
|
|
2166
2669
|
/* @__PURE__ */ r("span", {
|
|
2167
|
-
className:
|
|
2670
|
+
className: z("ms-1 font-display text-lg font-extrabold text-brand-text italic", Q),
|
|
2168
2671
|
children: s
|
|
2169
2672
|
}),
|
|
2170
2673
|
t && /* @__PURE__ */ r("span", {
|
|
2171
|
-
className:
|
|
2674
|
+
className: z("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Q),
|
|
2172
2675
|
children: t
|
|
2173
2676
|
})
|
|
2174
2677
|
]
|
|
2175
2678
|
});
|
|
2176
2679
|
}
|
|
2177
2680
|
// src/app/command-shortcut.hook.ts
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2681
|
+
function ji(e, t = !0) {
|
|
2682
|
+
P(() => {
|
|
2180
2683
|
if (!t) return;
|
|
2181
2684
|
function n(t) {
|
|
2182
2685
|
t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
|
|
@@ -2184,27 +2687,42 @@ function oi(e, t = !0) {
|
|
|
2184
2687
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
2185
2688
|
}, [e, t]);
|
|
2186
2689
|
}
|
|
2187
|
-
function
|
|
2690
|
+
function Mi(e) {
|
|
2188
2691
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
2189
2692
|
}
|
|
2190
|
-
function
|
|
2191
|
-
function
|
|
2192
|
-
return
|
|
2693
|
+
function Ni() {}
|
|
2694
|
+
function Pi() {
|
|
2695
|
+
return Ni;
|
|
2193
2696
|
}
|
|
2194
|
-
function
|
|
2697
|
+
function Fi() {
|
|
2195
2698
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
2196
2699
|
}
|
|
2197
|
-
function
|
|
2700
|
+
function Ii() {
|
|
2198
2701
|
return "";
|
|
2199
2702
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2703
|
+
function Li() {
|
|
2704
|
+
return Mi(Ee(Pi, Fi, Ii));
|
|
2202
2705
|
}
|
|
2203
2706
|
// src/app/app-shell.component.tsx
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2707
|
+
var Ri = "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";
|
|
2708
|
+
function zi({ children: e, className: t }) {
|
|
2709
|
+
return /* @__PURE__ */ r("div", {
|
|
2710
|
+
"data-slot": "app-shell-header",
|
|
2711
|
+
className: z("shrink-0 border-b px-6 py-4", t),
|
|
2712
|
+
children: e
|
|
2713
|
+
});
|
|
2714
|
+
}
|
|
2715
|
+
function Bi({ children: e, className: t }) {
|
|
2716
|
+
return /* @__PURE__ */ r("div", {
|
|
2717
|
+
"data-slot": "app-shell-body",
|
|
2718
|
+
className: z("flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable]", t),
|
|
2719
|
+
children: e
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
function Vi({ 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: _ }) {
|
|
2723
|
+
let [v, y] = I(!1), b = Se(() => y(!0), []);
|
|
2724
|
+
ji(b, !!h?.length);
|
|
2725
|
+
let x = Li(), ee = [...new Set(h?.map((e) => e.group))], S = (e) => /* @__PURE__ */ r(Ei, {
|
|
2208
2726
|
asChild: !0,
|
|
2209
2727
|
title: e.label,
|
|
2210
2728
|
icon: e.icon,
|
|
@@ -2214,44 +2732,44 @@ function pi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2214
2732
|
href: e.href,
|
|
2215
2733
|
children: e.label
|
|
2216
2734
|
})
|
|
2217
|
-
}, e.href),
|
|
2218
|
-
/* @__PURE__ */ r(
|
|
2735
|
+
}, e.href), C = /* @__PURE__ */ i(n, { children: [
|
|
2736
|
+
/* @__PURE__ */ r(xi, {
|
|
2219
2737
|
className: "h-12",
|
|
2220
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
2738
|
+
children: t === "logo" ? /* @__PURE__ */ r(Ai, { product: e }) : /* @__PURE__ */ r(ki, {
|
|
2221
2739
|
product: e,
|
|
2222
2740
|
workspace: a,
|
|
2223
2741
|
onProductChange: o,
|
|
2224
2742
|
className: "px-2.5"
|
|
2225
2743
|
})
|
|
2226
2744
|
}),
|
|
2227
|
-
/* @__PURE__ */ i(
|
|
2228
|
-
|
|
2745
|
+
/* @__PURE__ */ i(Si, { children: [
|
|
2746
|
+
h?.length ? /* @__PURE__ */ r(Ei, {
|
|
2229
2747
|
title: "Search",
|
|
2230
|
-
icon: /* @__PURE__ */ r(
|
|
2231
|
-
badge: /* @__PURE__ */ r(
|
|
2748
|
+
icon: /* @__PURE__ */ r(he, {}),
|
|
2749
|
+
badge: /* @__PURE__ */ r(Sr, {
|
|
2232
2750
|
className: "border-0 bg-transparent",
|
|
2233
|
-
children:
|
|
2751
|
+
children: x
|
|
2234
2752
|
}),
|
|
2235
|
-
onClick:
|
|
2753
|
+
onClick: b
|
|
2236
2754
|
}) : null,
|
|
2237
2755
|
/* @__PURE__ */ r("div", {
|
|
2238
2756
|
className: "flex flex-col gap-0.5",
|
|
2239
|
-
children: s.map((e) =>
|
|
2757
|
+
children: s.map((e) => S(e))
|
|
2240
2758
|
}),
|
|
2241
|
-
c && /* @__PURE__ */ r(
|
|
2759
|
+
c && /* @__PURE__ */ r(Ti, {
|
|
2242
2760
|
title: c.title,
|
|
2243
|
-
children: c.items.map((e) =>
|
|
2761
|
+
children: c.items.map((e) => S(e))
|
|
2244
2762
|
})
|
|
2245
2763
|
] }),
|
|
2246
|
-
/* @__PURE__ */ i(
|
|
2764
|
+
/* @__PURE__ */ i(wi, { children: [
|
|
2247
2765
|
l && /* @__PURE__ */ r("div", {
|
|
2248
|
-
className:
|
|
2766
|
+
className: Q,
|
|
2249
2767
|
children: l
|
|
2250
2768
|
}),
|
|
2251
2769
|
d && /* @__PURE__ */ i("div", {
|
|
2252
2770
|
className: "flex items-center gap-2.5 px-1",
|
|
2253
|
-
children: [/* @__PURE__ */ r(
|
|
2254
|
-
className:
|
|
2771
|
+
children: [/* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(tt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
2772
|
+
className: z("flex flex-col leading-tight", Q),
|
|
2255
2773
|
children: [/* @__PURE__ */ r("span", {
|
|
2256
2774
|
className: "text-[13px] font-semibold",
|
|
2257
2775
|
children: d.name
|
|
@@ -2261,55 +2779,66 @@ function pi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2261
2779
|
})]
|
|
2262
2780
|
})]
|
|
2263
2781
|
}),
|
|
2264
|
-
/* @__PURE__ */ r(
|
|
2265
|
-
u && /* @__PURE__ */ r(
|
|
2782
|
+
/* @__PURE__ */ r(bi, {}),
|
|
2783
|
+
u && /* @__PURE__ */ r(Ci, { children: u })
|
|
2266
2784
|
] })
|
|
2267
2785
|
] });
|
|
2268
2786
|
return /* @__PURE__ */ i("div", {
|
|
2269
2787
|
"data-slot": "app-shell",
|
|
2270
|
-
className:
|
|
2788
|
+
className: z("flex h-dvh overflow-hidden bg-background", _),
|
|
2271
2789
|
children: [
|
|
2272
|
-
/* @__PURE__ */ r(
|
|
2790
|
+
/* @__PURE__ */ r(vi, {
|
|
2273
2791
|
variant: "nav",
|
|
2274
2792
|
label: "Workspace",
|
|
2275
|
-
className: "
|
|
2276
|
-
children:
|
|
2793
|
+
className: "h-dvh max-md:hidden",
|
|
2794
|
+
children: C
|
|
2277
2795
|
}),
|
|
2278
2796
|
/* @__PURE__ */ i("div", {
|
|
2279
|
-
className: "relative flex min-w-0 flex-
|
|
2280
|
-
children: [
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
children: /* @__PURE__ */ r(qr, {
|
|
2287
|
-
variant: "nav",
|
|
2797
|
+
className: "relative flex min-h-0 min-w-0 flex-1 flex-col",
|
|
2798
|
+
children: [
|
|
2799
|
+
/* @__PURE__ */ i("div", {
|
|
2800
|
+
"data-slot": "app-top-bar",
|
|
2801
|
+
className: z("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
2802
|
+
children: [
|
|
2803
|
+
/* @__PURE__ */ r(Oi, {
|
|
2288
2804
|
label: "Workspace",
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2805
|
+
className: "-ms-2 md:hidden",
|
|
2806
|
+
children: /* @__PURE__ */ r(vi, {
|
|
2807
|
+
variant: "nav",
|
|
2808
|
+
label: "Workspace",
|
|
2809
|
+
collapsed: !1,
|
|
2810
|
+
className: "w-full",
|
|
2811
|
+
children: C
|
|
2812
|
+
})
|
|
2813
|
+
}),
|
|
2814
|
+
f,
|
|
2815
|
+
p && /* @__PURE__ */ r("div", {
|
|
2816
|
+
className: "ms-auto flex items-center gap-1.5",
|
|
2817
|
+
children: p
|
|
2292
2818
|
})
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2819
|
+
]
|
|
2820
|
+
}),
|
|
2821
|
+
/* @__PURE__ */ r("main", {
|
|
2822
|
+
"data-slot": "app-shell-page",
|
|
2823
|
+
className: Ri,
|
|
2824
|
+
children: g
|
|
2825
|
+
}),
|
|
2826
|
+
m && /* @__PURE__ */ r("footer", {
|
|
2827
|
+
"data-slot": "app-status-bar",
|
|
2828
|
+
"aria-label": "Status",
|
|
2829
|
+
className: "flex h-10 shrink-0 items-center gap-3 border-t bg-background px-6 text-xs text-muted-foreground",
|
|
2830
|
+
children: m
|
|
2831
|
+
})
|
|
2832
|
+
]
|
|
2304
2833
|
}),
|
|
2305
|
-
|
|
2306
|
-
open:
|
|
2307
|
-
onOpenChange:
|
|
2308
|
-
children: [/* @__PURE__ */ r(
|
|
2834
|
+
h?.length ? /* @__PURE__ */ i(yn, {
|
|
2835
|
+
open: v,
|
|
2836
|
+
onOpenChange: y,
|
|
2837
|
+
children: [/* @__PURE__ */ r(bn, { placeholder: "Search recipes, runs and settings" }), /* @__PURE__ */ i(xn, { children: [/* @__PURE__ */ r(Sn, { children: "No results." }), ee.map((e) => /* @__PURE__ */ r(Cn, {
|
|
2309
2838
|
heading: e,
|
|
2310
|
-
children:
|
|
2839
|
+
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(wn, {
|
|
2311
2840
|
onSelect: () => {
|
|
2312
|
-
|
|
2841
|
+
y(!1), e.onSelect();
|
|
2313
2842
|
},
|
|
2314
2843
|
children: e.label
|
|
2315
2844
|
}, e.label))
|
|
@@ -2319,21 +2848,21 @@ function pi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2319
2848
|
});
|
|
2320
2849
|
}
|
|
2321
2850
|
// src/app/filter-bar.component.tsx
|
|
2322
|
-
function
|
|
2851
|
+
function Hi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
2323
2852
|
return /* @__PURE__ */ i("div", {
|
|
2324
2853
|
"data-slot": "filter-bar",
|
|
2325
2854
|
role: "search",
|
|
2326
|
-
className:
|
|
2855
|
+
className: z("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
2327
2856
|
children: [
|
|
2328
2857
|
/* @__PURE__ */ r("div", {
|
|
2329
2858
|
className: "max-w-80 flex-[1_1_220px]",
|
|
2330
|
-
children: /* @__PURE__ */ r(
|
|
2859
|
+
children: /* @__PURE__ */ r(vt, {
|
|
2331
2860
|
type: "search",
|
|
2332
2861
|
value: e,
|
|
2333
2862
|
onChange: (e) => t(e.target.value),
|
|
2334
2863
|
placeholder: n,
|
|
2335
2864
|
"aria-label": n,
|
|
2336
|
-
startIcon: /* @__PURE__ */ r(
|
|
2865
|
+
startIcon: /* @__PURE__ */ r(he, {})
|
|
2337
2866
|
})
|
|
2338
2867
|
}),
|
|
2339
2868
|
a,
|
|
@@ -2344,16 +2873,16 @@ function mi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
2344
2873
|
]
|
|
2345
2874
|
});
|
|
2346
2875
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return /* @__PURE__ */ i(
|
|
2876
|
+
function Ui({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
2877
|
+
return /* @__PURE__ */ i(q, {
|
|
2349
2878
|
variant: "outline",
|
|
2350
2879
|
size: "sm",
|
|
2351
|
-
className:
|
|
2880
|
+
className: z("border-dashed", a),
|
|
2352
2881
|
...o,
|
|
2353
2882
|
children: [
|
|
2354
|
-
n ?? /* @__PURE__ */ r(
|
|
2883
|
+
n ?? /* @__PURE__ */ r(me, {}),
|
|
2355
2884
|
e,
|
|
2356
|
-
t > 0 && /* @__PURE__ */ r(
|
|
2885
|
+
t > 0 && /* @__PURE__ */ r(G, {
|
|
2357
2886
|
variant: "brand",
|
|
2358
2887
|
className: "h-[18px]",
|
|
2359
2888
|
"aria-label": `${t} selected`,
|
|
@@ -2363,10 +2892,10 @@ function hi({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
2363
2892
|
});
|
|
2364
2893
|
}
|
|
2365
2894
|
// src/app/form-section.component.tsx
|
|
2366
|
-
function
|
|
2895
|
+
function Wi({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
2367
2896
|
return /* @__PURE__ */ i("section", {
|
|
2368
2897
|
"data-slot": "form-section",
|
|
2369
|
-
className:
|
|
2898
|
+
className: z("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
2370
2899
|
children: [/* @__PURE__ */ i("div", {
|
|
2371
2900
|
className: "flex flex-col gap-1",
|
|
2372
2901
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -2389,10 +2918,10 @@ function gi({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
2389
2918
|
});
|
|
2390
2919
|
}
|
|
2391
2920
|
// src/app/page-header.component.tsx
|
|
2392
|
-
function
|
|
2921
|
+
function Gi({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
2393
2922
|
return /* @__PURE__ */ i("div", {
|
|
2394
2923
|
"data-slot": "page-header",
|
|
2395
|
-
className:
|
|
2924
|
+
className: z("flex flex-col gap-4", o),
|
|
2396
2925
|
children: [/* @__PURE__ */ i("div", {
|
|
2397
2926
|
className: "flex flex-wrap items-end gap-4",
|
|
2398
2927
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -2412,7 +2941,7 @@ function _i({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
2412
2941
|
});
|
|
2413
2942
|
}
|
|
2414
2943
|
// src/app/records-table.component.tsx
|
|
2415
|
-
function
|
|
2944
|
+
function Ki({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
2416
2945
|
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";
|
|
2417
2946
|
function m(e, t) {
|
|
2418
2947
|
let n = new Set(a);
|
|
@@ -2423,26 +2952,26 @@ function vi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2423
2952
|
for (let n of d) e ? t.add(n) : t.delete(n);
|
|
2424
2953
|
o?.(t);
|
|
2425
2954
|
}
|
|
2426
|
-
return /* @__PURE__ */ i(
|
|
2955
|
+
return /* @__PURE__ */ i(kr, {
|
|
2427
2956
|
"data-slot": "records-table",
|
|
2428
2957
|
"aria-label": c,
|
|
2429
|
-
className:
|
|
2430
|
-
children: [/* @__PURE__ */ r(
|
|
2958
|
+
className: z("min-w-[760px]", l),
|
|
2959
|
+
children: [/* @__PURE__ */ r(Ar, { children: /* @__PURE__ */ i(Mr, {
|
|
2431
2960
|
className: "hover:bg-transparent",
|
|
2432
2961
|
children: [
|
|
2433
|
-
u && /* @__PURE__ */ r(
|
|
2962
|
+
u && /* @__PURE__ */ r(Nr, {
|
|
2434
2963
|
className: "w-9",
|
|
2435
|
-
children: /* @__PURE__ */ r(
|
|
2964
|
+
children: /* @__PURE__ */ r(it, {
|
|
2436
2965
|
"aria-label": "Select all rows",
|
|
2437
2966
|
checked: p,
|
|
2438
2967
|
onCheckedChange: (e) => h(e === !0)
|
|
2439
2968
|
})
|
|
2440
2969
|
}),
|
|
2441
|
-
t.map((e) => /* @__PURE__ */ r(
|
|
2442
|
-
className:
|
|
2970
|
+
t.map((e) => /* @__PURE__ */ r(Nr, {
|
|
2971
|
+
className: z(e.align === "end" && "text-end", e.className),
|
|
2443
2972
|
children: e.header
|
|
2444
2973
|
}, e.key)),
|
|
2445
|
-
s && /* @__PURE__ */ r(
|
|
2974
|
+
s && /* @__PURE__ */ r(Nr, {
|
|
2446
2975
|
className: "w-11",
|
|
2447
2976
|
children: /* @__PURE__ */ r("span", {
|
|
2448
2977
|
className: "sr-only",
|
|
@@ -2450,29 +2979,29 @@ function vi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2450
2979
|
})
|
|
2451
2980
|
})
|
|
2452
2981
|
]
|
|
2453
|
-
}) }), /* @__PURE__ */ r(
|
|
2982
|
+
}) }), /* @__PURE__ */ r(jr, { children: e.map((e) => {
|
|
2454
2983
|
let o = n(e), c = a?.has(o) ?? !1;
|
|
2455
|
-
return /* @__PURE__ */ i(
|
|
2984
|
+
return /* @__PURE__ */ i(Mr, {
|
|
2456
2985
|
"data-state": c ? "selected" : void 0,
|
|
2457
2986
|
children: [
|
|
2458
|
-
u && /* @__PURE__ */ r(
|
|
2987
|
+
u && /* @__PURE__ */ r(Pr, { children: /* @__PURE__ */ r(it, {
|
|
2459
2988
|
"aria-label": `Select ${o}`,
|
|
2460
2989
|
checked: c,
|
|
2461
2990
|
onCheckedChange: (e) => m(o, e === !0)
|
|
2462
2991
|
}) }),
|
|
2463
|
-
t.map((t) => /* @__PURE__ */ r(
|
|
2464
|
-
className:
|
|
2992
|
+
t.map((t) => /* @__PURE__ */ r(Pr, {
|
|
2993
|
+
className: z(t.align === "end" && "text-end tabular-nums", t.className),
|
|
2465
2994
|
children: t.cell(e)
|
|
2466
2995
|
}, t.key)),
|
|
2467
|
-
s && /* @__PURE__ */ r(
|
|
2996
|
+
s && /* @__PURE__ */ r(Pr, { children: /* @__PURE__ */ i(Nn, { children: [/* @__PURE__ */ r(Pn, {
|
|
2468
2997
|
asChild: !0,
|
|
2469
|
-
children: /* @__PURE__ */ r(
|
|
2998
|
+
children: /* @__PURE__ */ r(q, {
|
|
2470
2999
|
variant: "ghost",
|
|
2471
3000
|
size: "icon-sm",
|
|
2472
3001
|
"aria-label": `Actions for ${o}`,
|
|
2473
|
-
children: /* @__PURE__ */ r(
|
|
3002
|
+
children: /* @__PURE__ */ r(ce, {})
|
|
2474
3003
|
})
|
|
2475
|
-
}), /* @__PURE__ */ r(
|
|
3004
|
+
}), /* @__PURE__ */ r(Ln, {
|
|
2476
3005
|
align: "end",
|
|
2477
3006
|
children: s(e)
|
|
2478
3007
|
})] }) })
|
|
@@ -2482,7 +3011,7 @@ function vi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2482
3011
|
});
|
|
2483
3012
|
}
|
|
2484
3013
|
// src/app/sparkline.algorithm.ts
|
|
2485
|
-
function
|
|
3014
|
+
function qi(e, t, n, r = 2) {
|
|
2486
3015
|
if (e.length < 2) return "";
|
|
2487
3016
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
2488
3017
|
return e.map((e, t) => {
|
|
@@ -2491,16 +3020,16 @@ function yi(e, t, n, r = 2) {
|
|
|
2491
3020
|
}).join(" ");
|
|
2492
3021
|
}
|
|
2493
3022
|
// src/app/stat-card.component.tsx
|
|
2494
|
-
var
|
|
3023
|
+
var Ji = {
|
|
2495
3024
|
positive: "text-success",
|
|
2496
3025
|
negative: "text-destructive",
|
|
2497
3026
|
neutral: "text-muted-foreground"
|
|
2498
3027
|
};
|
|
2499
|
-
function
|
|
2500
|
-
let c = o ?
|
|
2501
|
-
return /* @__PURE__ */ i(
|
|
3028
|
+
function Yi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3029
|
+
let c = o ? qi(o, 100, 32) : "";
|
|
3030
|
+
return /* @__PURE__ */ i(gr, {
|
|
2502
3031
|
"data-slot": "stat-card",
|
|
2503
|
-
className:
|
|
3032
|
+
className: z("gap-1.5 p-4", s),
|
|
2504
3033
|
children: [
|
|
2505
3034
|
/* @__PURE__ */ r("span", {
|
|
2506
3035
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -2529,14 +3058,14 @@ function xi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
2529
3058
|
})]
|
|
2530
3059
|
}),
|
|
2531
3060
|
n && /* @__PURE__ */ r("span", {
|
|
2532
|
-
className:
|
|
3061
|
+
className: z("text-xs", Ji[a]),
|
|
2533
3062
|
children: n
|
|
2534
3063
|
})
|
|
2535
3064
|
]
|
|
2536
3065
|
});
|
|
2537
3066
|
}
|
|
2538
3067
|
// src/status/run-status.contract.ts
|
|
2539
|
-
var
|
|
3068
|
+
var Xi = [
|
|
2540
3069
|
"queued",
|
|
2541
3070
|
"waiting",
|
|
2542
3071
|
"running",
|
|
@@ -2544,7 +3073,7 @@ var Si = [
|
|
|
2544
3073
|
"no-records",
|
|
2545
3074
|
"failed",
|
|
2546
3075
|
"off"
|
|
2547
|
-
],
|
|
3076
|
+
], Zi = {
|
|
2548
3077
|
queued: {
|
|
2549
3078
|
label: "Queued",
|
|
2550
3079
|
variant: "secondary",
|
|
@@ -2581,13 +3110,13 @@ var Si = [
|
|
|
2581
3110
|
live: !1
|
|
2582
3111
|
}
|
|
2583
3112
|
};
|
|
2584
|
-
function
|
|
2585
|
-
return
|
|
3113
|
+
function Qi(e) {
|
|
3114
|
+
return Zi[e];
|
|
2586
3115
|
}
|
|
2587
3116
|
// src/status/status-badge.component.tsx
|
|
2588
|
-
function
|
|
2589
|
-
let { label: n, variant: i, live: a } =
|
|
2590
|
-
return /* @__PURE__ */ r(
|
|
3117
|
+
function $i({ status: e, ...t }) {
|
|
3118
|
+
let { label: n, variant: i, live: a } = Qi(e);
|
|
3119
|
+
return /* @__PURE__ */ r(G, {
|
|
2591
3120
|
variant: i,
|
|
2592
3121
|
dot: a,
|
|
2593
3122
|
"data-status": e,
|
|
@@ -2596,25 +3125,25 @@ function Ti({ status: e, ...t }) {
|
|
|
2596
3125
|
});
|
|
2597
3126
|
}
|
|
2598
3127
|
// src/desktop/flow-node.component.tsx
|
|
2599
|
-
function
|
|
3128
|
+
function ea({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
2600
3129
|
return /* @__PURE__ */ i("button", {
|
|
2601
3130
|
type: "button",
|
|
2602
3131
|
"data-slot": "flow-node",
|
|
2603
3132
|
"aria-pressed": o,
|
|
2604
3133
|
onClick: s,
|
|
2605
|
-
className:
|
|
3134
|
+
className: z("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),
|
|
2606
3135
|
children: [/* @__PURE__ */ i("span", {
|
|
2607
3136
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
2608
3137
|
children: [
|
|
2609
3138
|
/* @__PURE__ */ r("span", {
|
|
2610
3139
|
"aria-hidden": "true",
|
|
2611
|
-
className:
|
|
3140
|
+
className: z("size-2 shrink-0 rounded-[2px]", a ? U[a] : "bg-muted-foreground")
|
|
2612
3141
|
}),
|
|
2613
3142
|
/* @__PURE__ */ r("span", {
|
|
2614
3143
|
className: "font-semibold",
|
|
2615
3144
|
children: e
|
|
2616
3145
|
}),
|
|
2617
|
-
/* @__PURE__ */ r(
|
|
3146
|
+
/* @__PURE__ */ r($i, {
|
|
2618
3147
|
status: n,
|
|
2619
3148
|
className: "ms-auto h-[18px] text-[11px]"
|
|
2620
3149
|
})
|
|
@@ -2626,18 +3155,18 @@ function Ei({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
2626
3155
|
});
|
|
2627
3156
|
}
|
|
2628
3157
|
// src/desktop/inspector.component.tsx
|
|
2629
|
-
function
|
|
3158
|
+
function ta({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
2630
3159
|
return /* @__PURE__ */ i("aside", {
|
|
2631
3160
|
"data-slot": "inspector",
|
|
2632
3161
|
"aria-label": "Inspector",
|
|
2633
|
-
className:
|
|
3162
|
+
className: z("flex h-full flex-col text-[13px]", s),
|
|
2634
3163
|
children: [
|
|
2635
3164
|
/* @__PURE__ */ i("div", {
|
|
2636
3165
|
className: "flex items-center gap-2 border-b p-3",
|
|
2637
3166
|
children: [
|
|
2638
3167
|
n && /* @__PURE__ */ r("span", {
|
|
2639
3168
|
"aria-hidden": "true",
|
|
2640
|
-
className:
|
|
3169
|
+
className: z("size-2.5 shrink-0 rounded-[3px]", U[n])
|
|
2641
3170
|
}),
|
|
2642
3171
|
/* @__PURE__ */ r("h2", {
|
|
2643
3172
|
className: "m-0 type-h4",
|
|
@@ -2649,18 +3178,18 @@ function Di({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
2649
3178
|
})
|
|
2650
3179
|
]
|
|
2651
3180
|
}),
|
|
2652
|
-
/* @__PURE__ */ i(
|
|
3181
|
+
/* @__PURE__ */ i(ai, {
|
|
2653
3182
|
defaultValue: a[0]?.value,
|
|
2654
3183
|
className: "min-h-0 flex-1 gap-0",
|
|
2655
|
-
children: [/* @__PURE__ */ r(
|
|
3184
|
+
children: [/* @__PURE__ */ r(ci, {
|
|
2656
3185
|
variant: "underline",
|
|
2657
3186
|
className: "gap-4 px-3",
|
|
2658
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3187
|
+
children: a.map((e) => /* @__PURE__ */ r(ui, {
|
|
2659
3188
|
value: e.value,
|
|
2660
3189
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
2661
3190
|
children: e.label
|
|
2662
3191
|
}, e.value))
|
|
2663
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3192
|
+
}), a.map((e) => /* @__PURE__ */ r(di, {
|
|
2664
3193
|
value: e.value,
|
|
2665
3194
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
2666
3195
|
children: e.content
|
|
@@ -2674,11 +3203,11 @@ function Di({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
2674
3203
|
});
|
|
2675
3204
|
}
|
|
2676
3205
|
// src/desktop/status-bar.component.tsx
|
|
2677
|
-
function
|
|
3206
|
+
function na({ start: e, end: t, className: n }) {
|
|
2678
3207
|
return /* @__PURE__ */ i("div", {
|
|
2679
3208
|
"data-slot": "status-bar",
|
|
2680
3209
|
role: "status",
|
|
2681
|
-
className:
|
|
3210
|
+
className: z("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
2682
3211
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
2683
3212
|
className: "ms-auto flex items-center gap-3.5",
|
|
2684
3213
|
children: t
|
|
@@ -2686,7 +3215,7 @@ function Oi({ start: e, end: t, className: n }) {
|
|
|
2686
3215
|
});
|
|
2687
3216
|
}
|
|
2688
3217
|
// src/desktop/timeline.algorithm.ts
|
|
2689
|
-
function
|
|
3218
|
+
function ra(e, t, n) {
|
|
2690
3219
|
if (n <= 0) return {
|
|
2691
3220
|
left: 0,
|
|
2692
3221
|
width: 0
|
|
@@ -2697,7 +3226,7 @@ function ki(e, t, n) {
|
|
|
2697
3226
|
width: Math.max(0, r(t) - i)
|
|
2698
3227
|
};
|
|
2699
3228
|
}
|
|
2700
|
-
function
|
|
3229
|
+
function ia(e, t) {
|
|
2701
3230
|
let n = Math.max(2, t);
|
|
2702
3231
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
2703
3232
|
}
|
|
@@ -2705,27 +3234,27 @@ function Ai(e, t) {
|
|
|
2705
3234
|
function $(e) {
|
|
2706
3235
|
return String(e).padStart(2, "0");
|
|
2707
3236
|
}
|
|
2708
|
-
function
|
|
3237
|
+
function aa(e, t = !1) {
|
|
2709
3238
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
2710
3239
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
2711
3240
|
}
|
|
2712
|
-
function
|
|
3241
|
+
function oa(e, t) {
|
|
2713
3242
|
let n = new Date(e.getTime() + t * 1e3);
|
|
2714
3243
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
2715
3244
|
}
|
|
2716
3245
|
// src/desktop/timeline-lanes.component.tsx
|
|
2717
|
-
function
|
|
2718
|
-
let c = (e) => o ?
|
|
3246
|
+
function sa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3247
|
+
let c = (e) => o ? oa(o, e) : aa(e), l = n === void 0 ? void 0 : ra(0, n, e).width;
|
|
2719
3248
|
return /* @__PURE__ */ i("div", {
|
|
2720
3249
|
"data-slot": "timeline-lanes",
|
|
2721
3250
|
role: "group",
|
|
2722
3251
|
"aria-label": "Timeline",
|
|
2723
|
-
className:
|
|
3252
|
+
className: z("relative flex flex-col text-[13px]", s),
|
|
2724
3253
|
children: [
|
|
2725
3254
|
/* @__PURE__ */ r("div", {
|
|
2726
3255
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
2727
3256
|
"aria-hidden": "true",
|
|
2728
|
-
children:
|
|
3257
|
+
children: ia(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
2729
3258
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
2730
3259
|
children: c(e)
|
|
2731
3260
|
}, e))
|
|
@@ -2736,24 +3265,24 @@ function Ni({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
2736
3265
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
2737
3266
|
children: [/* @__PURE__ */ r("span", {
|
|
2738
3267
|
"aria-hidden": "true",
|
|
2739
|
-
className:
|
|
3268
|
+
className: z("size-2 shrink-0 rounded-[2px]", U[t.hue])
|
|
2740
3269
|
}), t.name]
|
|
2741
3270
|
}), /* @__PURE__ */ r("div", {
|
|
2742
3271
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
2743
3272
|
children: t.segments.map((n) => {
|
|
2744
|
-
let a =
|
|
2745
|
-
return /* @__PURE__ */ i(
|
|
3273
|
+
let a = ra(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3274
|
+
return /* @__PURE__ */ i(dn, { children: [/* @__PURE__ */ r(fn, {
|
|
2746
3275
|
asChild: !0,
|
|
2747
3276
|
children: /* @__PURE__ */ r("button", {
|
|
2748
3277
|
type: "button",
|
|
2749
3278
|
"aria-label": o,
|
|
2750
|
-
className:
|
|
3279
|
+
className: z("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", U[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
2751
3280
|
style: {
|
|
2752
3281
|
left: `${a.left}%`,
|
|
2753
3282
|
width: `${a.width}%`
|
|
2754
3283
|
}
|
|
2755
3284
|
})
|
|
2756
|
-
}), /* @__PURE__ */ r(
|
|
3285
|
+
}), /* @__PURE__ */ r(pn, { children: o })] }, `${n.start}-${n.end}`);
|
|
2757
3286
|
})
|
|
2758
3287
|
})]
|
|
2759
3288
|
}, t.name)),
|
|
@@ -2766,35 +3295,35 @@ function Ni({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
2766
3295
|
});
|
|
2767
3296
|
}
|
|
2768
3297
|
// src/desktop/title-bar.component.tsx
|
|
2769
|
-
function
|
|
3298
|
+
function ca({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
2770
3299
|
let l = [
|
|
2771
3300
|
{
|
|
2772
3301
|
label: "Minimise",
|
|
2773
|
-
icon: /* @__PURE__ */ r(
|
|
3302
|
+
icon: /* @__PURE__ */ r(ue, {}),
|
|
2774
3303
|
onClick: a
|
|
2775
3304
|
},
|
|
2776
3305
|
{
|
|
2777
3306
|
label: "Maximise",
|
|
2778
|
-
icon: /* @__PURE__ */ r(
|
|
3307
|
+
icon: /* @__PURE__ */ r(ge, {}),
|
|
2779
3308
|
onClick: o
|
|
2780
3309
|
},
|
|
2781
3310
|
{
|
|
2782
3311
|
label: "Close window",
|
|
2783
|
-
icon: /* @__PURE__ */ r(
|
|
3312
|
+
icon: /* @__PURE__ */ r(N, {}),
|
|
2784
3313
|
onClick: s
|
|
2785
3314
|
}
|
|
2786
3315
|
].filter((e) => e.onClick);
|
|
2787
3316
|
return /* @__PURE__ */ i("div", {
|
|
2788
3317
|
"data-slot": "title-bar",
|
|
2789
3318
|
"data-tauri-drag-region": "",
|
|
2790
|
-
className:
|
|
3319
|
+
className: z("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
2791
3320
|
children: [
|
|
2792
|
-
/* @__PURE__ */ r(
|
|
3321
|
+
/* @__PURE__ */ r(V, {
|
|
2793
3322
|
product: e,
|
|
2794
3323
|
alt: "",
|
|
2795
3324
|
className: "size-[18px]"
|
|
2796
3325
|
}),
|
|
2797
|
-
t && /* @__PURE__ */ r(
|
|
3326
|
+
t && /* @__PURE__ */ r(Wr, { children: t }),
|
|
2798
3327
|
/* @__PURE__ */ r("span", {
|
|
2799
3328
|
"data-tauri-drag-region": "",
|
|
2800
3329
|
className: "flex-1 truncate text-center text-[12.5px] text-muted-foreground",
|
|
@@ -2802,11 +3331,11 @@ function Pi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
2802
3331
|
}),
|
|
2803
3332
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
2804
3333
|
className: "flex h-full",
|
|
2805
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
3334
|
+
children: l.map((e) => /* @__PURE__ */ r(q, {
|
|
2806
3335
|
variant: "ghost",
|
|
2807
3336
|
"aria-label": e.label,
|
|
2808
3337
|
onClick: e.onClick,
|
|
2809
|
-
className:
|
|
3338
|
+
className: z("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
2810
3339
|
children: e.icon
|
|
2811
3340
|
}, e.label))
|
|
2812
3341
|
})
|
|
@@ -2814,11 +3343,11 @@ function Pi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
2814
3343
|
});
|
|
2815
3344
|
}
|
|
2816
3345
|
// src/mobile/bottom-nav.component.tsx
|
|
2817
|
-
function
|
|
3346
|
+
function la({ items: e, className: t }) {
|
|
2818
3347
|
return /* @__PURE__ */ r("nav", {
|
|
2819
3348
|
"data-slot": "bottom-nav",
|
|
2820
3349
|
"aria-label": "Tabs",
|
|
2821
|
-
className:
|
|
3350
|
+
className: z("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
2822
3351
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
2823
3352
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
2824
3353
|
href: e.href,
|
|
@@ -2836,22 +3365,22 @@ function Fi({ items: e, className: t }) {
|
|
|
2836
3365
|
});
|
|
2837
3366
|
}
|
|
2838
3367
|
// src/mobile/capture-frame.component.tsx
|
|
2839
|
-
function
|
|
3368
|
+
function ua({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
2840
3369
|
let l = a.filter((e) => !e.passed).length;
|
|
2841
3370
|
return /* @__PURE__ */ i("div", {
|
|
2842
3371
|
"data-slot": "capture-frame",
|
|
2843
|
-
className:
|
|
3372
|
+
className: z("flex h-full flex-col bg-[#0e0d12]", c),
|
|
2844
3373
|
children: [/* @__PURE__ */ i("div", {
|
|
2845
3374
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
2846
3375
|
children: [/* @__PURE__ */ i("div", {
|
|
2847
3376
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
2848
3377
|
children: [
|
|
2849
|
-
/* @__PURE__ */ r(
|
|
3378
|
+
/* @__PURE__ */ r(q, {
|
|
2850
3379
|
size: "icon",
|
|
2851
3380
|
"aria-label": "Close camera",
|
|
2852
3381
|
onClick: o,
|
|
2853
3382
|
className: "rounded-full bg-white/14 text-white hover:bg-white/24",
|
|
2854
|
-
children: /* @__PURE__ */ r(
|
|
3383
|
+
children: /* @__PURE__ */ r(N, {})
|
|
2855
3384
|
}),
|
|
2856
3385
|
/* @__PURE__ */ r("span", {
|
|
2857
3386
|
className: "text-sm font-semibold text-white",
|
|
@@ -2872,12 +3401,12 @@ function Ii({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2872
3401
|
children: [/* @__PURE__ */ r("h2", {
|
|
2873
3402
|
className: "m-0 type-h3 text-[19px]",
|
|
2874
3403
|
children: n
|
|
2875
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
3404
|
+
}), l > 0 ? /* @__PURE__ */ i(G, {
|
|
2876
3405
|
variant: "danger",
|
|
2877
3406
|
dot: !0,
|
|
2878
3407
|
className: "ms-auto",
|
|
2879
3408
|
children: [l, " failed"]
|
|
2880
|
-
}) : /* @__PURE__ */ r(
|
|
3409
|
+
}) : /* @__PURE__ */ r(G, {
|
|
2881
3410
|
variant: "success",
|
|
2882
3411
|
dot: !0,
|
|
2883
3412
|
className: "ms-auto",
|
|
@@ -2890,11 +3419,11 @@ function Ii({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2890
3419
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
2891
3420
|
children: [
|
|
2892
3421
|
/* @__PURE__ */ r("span", {
|
|
2893
|
-
className:
|
|
2894
|
-
children: e.passed ? /* @__PURE__ */ r(
|
|
3422
|
+
className: z("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
|
+
children: e.passed ? /* @__PURE__ */ r(k, {
|
|
2895
3424
|
strokeWidth: 3,
|
|
2896
3425
|
"aria-label": "Passed"
|
|
2897
|
-
}) : /* @__PURE__ */ r(
|
|
3426
|
+
}) : /* @__PURE__ */ r(N, {
|
|
2898
3427
|
strokeWidth: 3,
|
|
2899
3428
|
"aria-label": "Failed"
|
|
2900
3429
|
})
|
|
@@ -2919,43 +3448,43 @@ function Ii({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
2919
3448
|
});
|
|
2920
3449
|
}
|
|
2921
3450
|
// src/mobile/record-button.component.tsx
|
|
2922
|
-
function
|
|
3451
|
+
function da({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
2923
3452
|
let u = {
|
|
2924
3453
|
idle: {
|
|
2925
3454
|
label: "Start recording",
|
|
2926
|
-
icon: /* @__PURE__ */ r(
|
|
3455
|
+
icon: /* @__PURE__ */ r(M, {}),
|
|
2927
3456
|
onClick: a
|
|
2928
3457
|
},
|
|
2929
3458
|
recording: {
|
|
2930
3459
|
label: "Pause",
|
|
2931
|
-
icon: /* @__PURE__ */ r(
|
|
3460
|
+
icon: /* @__PURE__ */ r(fe, {}),
|
|
2932
3461
|
onClick: o
|
|
2933
3462
|
},
|
|
2934
3463
|
paused: {
|
|
2935
3464
|
label: "Resume",
|
|
2936
|
-
icon: /* @__PURE__ */ r(
|
|
3465
|
+
icon: /* @__PURE__ */ r(pe, {}),
|
|
2937
3466
|
onClick: s
|
|
2938
3467
|
}
|
|
2939
3468
|
}[e];
|
|
2940
3469
|
return /* @__PURE__ */ i("div", {
|
|
2941
3470
|
"data-slot": "record-button",
|
|
2942
|
-
className:
|
|
3471
|
+
className: z("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
2943
3472
|
children: [
|
|
2944
3473
|
/* @__PURE__ */ i("div", {
|
|
2945
3474
|
className: "flex items-center gap-2",
|
|
2946
3475
|
children: [
|
|
2947
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
3476
|
+
e === "recording" && /* @__PURE__ */ r(G, {
|
|
2948
3477
|
variant: "danger",
|
|
2949
3478
|
dot: !0,
|
|
2950
3479
|
className: "bg-card",
|
|
2951
3480
|
children: "Recording"
|
|
2952
3481
|
}),
|
|
2953
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
3482
|
+
e === "paused" && /* @__PURE__ */ r(G, {
|
|
2954
3483
|
variant: "warning",
|
|
2955
3484
|
className: "bg-card",
|
|
2956
3485
|
children: "Paused"
|
|
2957
3486
|
}),
|
|
2958
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
3487
|
+
e === "idle" && /* @__PURE__ */ r(G, {
|
|
2959
3488
|
variant: "outline",
|
|
2960
3489
|
className: "bg-card",
|
|
2961
3490
|
children: "Not recording"
|
|
@@ -2963,7 +3492,7 @@ function Li({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2963
3492
|
/* @__PURE__ */ r("span", {
|
|
2964
3493
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
2965
3494
|
"aria-label": "Recorded time",
|
|
2966
|
-
children:
|
|
3495
|
+
children: aa(t, !0)
|
|
2967
3496
|
})
|
|
2968
3497
|
]
|
|
2969
3498
|
}),
|
|
@@ -2971,31 +3500,31 @@ function Li({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
2971
3500
|
"aria-hidden": "true",
|
|
2972
3501
|
className: "flex h-10 items-center gap-[3px]",
|
|
2973
3502
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
2974
|
-
className:
|
|
3503
|
+
className: z("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
2975
3504
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
2976
3505
|
}, n))
|
|
2977
3506
|
}),
|
|
2978
3507
|
/* @__PURE__ */ i("div", {
|
|
2979
3508
|
className: "flex gap-2.5",
|
|
2980
|
-
children: [/* @__PURE__ */ i(
|
|
3509
|
+
children: [/* @__PURE__ */ i(q, {
|
|
2981
3510
|
className: "flex-1",
|
|
2982
3511
|
onClick: u.onClick,
|
|
2983
3512
|
children: [u.icon, u.label]
|
|
2984
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
3513
|
+
}), e === "recording" && c && /* @__PURE__ */ r(q, {
|
|
2985
3514
|
variant: "outline",
|
|
2986
3515
|
size: "icon",
|
|
2987
3516
|
className: "bg-card",
|
|
2988
3517
|
"aria-label": "Add a marker",
|
|
2989
3518
|
onClick: c,
|
|
2990
|
-
children: /* @__PURE__ */ r(
|
|
3519
|
+
children: /* @__PURE__ */ r(ne, {})
|
|
2991
3520
|
})]
|
|
2992
3521
|
})
|
|
2993
3522
|
]
|
|
2994
3523
|
});
|
|
2995
3524
|
}
|
|
2996
3525
|
// src/web/cta-band.component.tsx
|
|
2997
|
-
function
|
|
2998
|
-
let c =
|
|
3526
|
+
function fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3527
|
+
let c = we();
|
|
2999
3528
|
function l(e) {
|
|
3000
3529
|
e.preventDefault();
|
|
3001
3530
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3003,7 +3532,7 @@ function Ri({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3003
3532
|
}
|
|
3004
3533
|
return /* @__PURE__ */ r("section", {
|
|
3005
3534
|
"data-slot": "cta-band",
|
|
3006
|
-
className:
|
|
3535
|
+
className: z("py-22", s),
|
|
3007
3536
|
children: /* @__PURE__ */ r("div", {
|
|
3008
3537
|
className: "mx-auto max-w-[1200px] px-6",
|
|
3009
3538
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3026,7 +3555,7 @@ function Ri({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3026
3555
|
className: "sr-only",
|
|
3027
3556
|
children: a
|
|
3028
3557
|
}),
|
|
3029
|
-
/* @__PURE__ */ r(
|
|
3558
|
+
/* @__PURE__ */ r(vt, {
|
|
3030
3559
|
id: c,
|
|
3031
3560
|
name: "email",
|
|
3032
3561
|
type: "email",
|
|
@@ -3035,7 +3564,7 @@ function Ri({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3035
3564
|
placeholder: a,
|
|
3036
3565
|
className: "flex-[1_1_220px] border-transparent"
|
|
3037
3566
|
}),
|
|
3038
|
-
/* @__PURE__ */ r(
|
|
3567
|
+
/* @__PURE__ */ r(q, {
|
|
3039
3568
|
type: "submit",
|
|
3040
3569
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3041
3570
|
children: o
|
|
@@ -3047,21 +3576,21 @@ function Ri({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3047
3576
|
});
|
|
3048
3577
|
}
|
|
3049
3578
|
// src/web/faq.component.tsx
|
|
3050
|
-
function
|
|
3579
|
+
function pa({ title: e, items: t, className: n }) {
|
|
3051
3580
|
return /* @__PURE__ */ r("section", {
|
|
3052
3581
|
"data-slot": "faq",
|
|
3053
|
-
className:
|
|
3582
|
+
className: z("py-22", n),
|
|
3054
3583
|
children: /* @__PURE__ */ i("div", {
|
|
3055
3584
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3056
3585
|
children: [/* @__PURE__ */ r("h2", {
|
|
3057
3586
|
className: "m-0 type-h2 text-4xl",
|
|
3058
3587
|
children: e
|
|
3059
|
-
}), /* @__PURE__ */ r(
|
|
3588
|
+
}), /* @__PURE__ */ r(fr, {
|
|
3060
3589
|
type: "single",
|
|
3061
3590
|
collapsible: !0,
|
|
3062
|
-
children: t.map((e) => /* @__PURE__ */ i(
|
|
3591
|
+
children: t.map((e) => /* @__PURE__ */ i(pr, {
|
|
3063
3592
|
value: e.question,
|
|
3064
|
-
children: [/* @__PURE__ */ r(
|
|
3593
|
+
children: [/* @__PURE__ */ r(mr, { children: e.question }), /* @__PURE__ */ r(hr, {
|
|
3065
3594
|
className: "text-[15px]",
|
|
3066
3595
|
children: e.answer
|
|
3067
3596
|
})]
|
|
@@ -3071,10 +3600,10 @@ function zi({ title: e, items: t, className: n }) {
|
|
|
3071
3600
|
});
|
|
3072
3601
|
}
|
|
3073
3602
|
// src/web/feature-grid.component.tsx
|
|
3074
|
-
function
|
|
3603
|
+
function ma({ title: e, lead: t, features: n, className: a }) {
|
|
3075
3604
|
return /* @__PURE__ */ r("section", {
|
|
3076
3605
|
"data-slot": "feature-grid",
|
|
3077
|
-
className:
|
|
3606
|
+
className: z("border-y bg-canvas py-22", a),
|
|
3078
3607
|
children: /* @__PURE__ */ i("div", {
|
|
3079
3608
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
3080
3609
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -3111,14 +3640,14 @@ function Bi({ title: e, lead: t, features: n, className: a }) {
|
|
|
3111
3640
|
});
|
|
3112
3641
|
}
|
|
3113
3642
|
// src/web/hero.component.tsx
|
|
3114
|
-
function
|
|
3643
|
+
function ha({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
3115
3644
|
return /* @__PURE__ */ r("section", {
|
|
3116
3645
|
"data-slot": "hero",
|
|
3117
|
-
className:
|
|
3646
|
+
className: z("pt-22 pb-14", o),
|
|
3118
3647
|
children: /* @__PURE__ */ i("div", {
|
|
3119
3648
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
3120
3649
|
children: [
|
|
3121
|
-
e && /* @__PURE__ */ r(
|
|
3650
|
+
e && /* @__PURE__ */ r(G, {
|
|
3122
3651
|
variant: "brand",
|
|
3123
3652
|
className: "h-7 px-3 text-[13px]",
|
|
3124
3653
|
children: e
|
|
@@ -3140,10 +3669,10 @@ function Vi({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
3140
3669
|
});
|
|
3141
3670
|
}
|
|
3142
3671
|
// src/web/how-it-works.component.tsx
|
|
3143
|
-
function
|
|
3672
|
+
function ga({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
3144
3673
|
return /* @__PURE__ */ r("section", {
|
|
3145
3674
|
"data-slot": "how-it-works",
|
|
3146
|
-
className:
|
|
3675
|
+
className: z("py-22", o),
|
|
3147
3676
|
children: /* @__PURE__ */ i("div", {
|
|
3148
3677
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3149
3678
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3183,14 +3712,14 @@ function Hi({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
3183
3712
|
});
|
|
3184
3713
|
}
|
|
3185
3714
|
// src/web/mobile-menu.component.tsx
|
|
3186
|
-
var
|
|
3187
|
-
function
|
|
3188
|
-
let [o, s] =
|
|
3189
|
-
|
|
3715
|
+
var _a = 400;
|
|
3716
|
+
function va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
3717
|
+
let [o, s] = I(!1), [c, l] = I(), [u, f] = I(!1), p = F(null);
|
|
3718
|
+
P(() => {
|
|
3190
3719
|
if (o) return;
|
|
3191
|
-
let e = setTimeout(() => f(!1),
|
|
3720
|
+
let e = setTimeout(() => f(!1), _a);
|
|
3192
3721
|
return () => clearTimeout(e);
|
|
3193
|
-
}, [o]),
|
|
3722
|
+
}, [o]), P(() => {
|
|
3194
3723
|
if (!o) return;
|
|
3195
3724
|
let e = new ResizeObserver(() => m());
|
|
3196
3725
|
return e.observe(document.documentElement), () => e.disconnect();
|
|
@@ -3216,13 +3745,13 @@ function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3216
3745
|
onOpenChange: h,
|
|
3217
3746
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
3218
3747
|
asChild: !0,
|
|
3219
|
-
children: /* @__PURE__ */ r(
|
|
3748
|
+
children: /* @__PURE__ */ r(q, {
|
|
3220
3749
|
ref: p,
|
|
3221
3750
|
variant: "ghost",
|
|
3222
3751
|
size: "icon",
|
|
3223
3752
|
"aria-label": "Open menu",
|
|
3224
3753
|
className: a,
|
|
3225
|
-
children: /* @__PURE__ */ r(
|
|
3754
|
+
children: /* @__PURE__ */ r(Ur, { className: u ? "invisible" : void 0 })
|
|
3226
3755
|
})
|
|
3227
3756
|
}), /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, {
|
|
3228
3757
|
"data-slot": "mobile-menu-backdrop",
|
|
@@ -3240,7 +3769,7 @@ function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3240
3769
|
/* @__PURE__ */ r("div", {
|
|
3241
3770
|
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))]",
|
|
3242
3771
|
children: /* @__PURE__ */ r("div", {
|
|
3243
|
-
className:
|
|
3772
|
+
className: z("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"),
|
|
3244
3773
|
children: /* @__PURE__ */ i("div", {
|
|
3245
3774
|
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",
|
|
3246
3775
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -3262,7 +3791,7 @@ function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3262
3791
|
}),
|
|
3263
3792
|
/* @__PURE__ */ r(d.Close, {
|
|
3264
3793
|
asChild: !0,
|
|
3265
|
-
children: /* @__PURE__ */ r(
|
|
3794
|
+
children: /* @__PURE__ */ r(q, {
|
|
3266
3795
|
variant: "ghost",
|
|
3267
3796
|
size: "icon",
|
|
3268
3797
|
"aria-label": "Close menu",
|
|
@@ -3276,7 +3805,7 @@ function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3276
3805
|
right: 24,
|
|
3277
3806
|
top: 12
|
|
3278
3807
|
},
|
|
3279
|
-
children: /* @__PURE__ */ r(
|
|
3808
|
+
children: /* @__PURE__ */ r(Ur, { open: o })
|
|
3280
3809
|
})
|
|
3281
3810
|
})
|
|
3282
3811
|
]
|
|
@@ -3284,11 +3813,11 @@ function Wi({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3284
3813
|
});
|
|
3285
3814
|
}
|
|
3286
3815
|
// src/web/pricing-table.component.tsx
|
|
3287
|
-
function
|
|
3288
|
-
let [l, u] =
|
|
3816
|
+
function ya({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
3817
|
+
let [l, u] = I(a);
|
|
3289
3818
|
return /* @__PURE__ */ r("section", {
|
|
3290
3819
|
"data-slot": "pricing-table",
|
|
3291
|
-
className:
|
|
3820
|
+
className: z("border-y bg-canvas py-22", c),
|
|
3292
3821
|
children: /* @__PURE__ */ i("div", {
|
|
3293
3822
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
3294
3823
|
children: [
|
|
@@ -3303,15 +3832,15 @@ function Gi({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3303
3832
|
className: "m-0 type-lead",
|
|
3304
3833
|
children: t
|
|
3305
3834
|
})]
|
|
3306
|
-
}), /* @__PURE__ */ i(
|
|
3835
|
+
}), /* @__PURE__ */ i(dt, {
|
|
3307
3836
|
type: "single",
|
|
3308
3837
|
value: l,
|
|
3309
3838
|
onValueChange: (e) => e && u(e),
|
|
3310
3839
|
"aria-label": "Billing",
|
|
3311
|
-
children: [/* @__PURE__ */ r(
|
|
3840
|
+
children: [/* @__PURE__ */ r(ft, {
|
|
3312
3841
|
value: "monthly",
|
|
3313
3842
|
children: "Monthly"
|
|
3314
|
-
}), /* @__PURE__ */ r(
|
|
3843
|
+
}), /* @__PURE__ */ r(ft, {
|
|
3315
3844
|
value: "yearly",
|
|
3316
3845
|
children: "Yearly"
|
|
3317
3846
|
})]
|
|
@@ -3321,14 +3850,14 @@ function Gi({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3321
3850
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
3322
3851
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
3323
3852
|
"aria-label": e.name,
|
|
3324
|
-
className:
|
|
3853
|
+
className: z("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)]"),
|
|
3325
3854
|
children: [
|
|
3326
3855
|
/* @__PURE__ */ i("div", {
|
|
3327
3856
|
className: "flex items-center justify-between",
|
|
3328
3857
|
children: [/* @__PURE__ */ r("h3", {
|
|
3329
3858
|
className: "m-0 type-h3",
|
|
3330
3859
|
children: e.name
|
|
3331
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
3860
|
+
}), e.featured && /* @__PURE__ */ r(G, { children: s })]
|
|
3332
3861
|
}),
|
|
3333
3862
|
/* @__PURE__ */ r("span", {
|
|
3334
3863
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -3343,14 +3872,14 @@ function Gi({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3343
3872
|
className: "m-0 flex list-none flex-col gap-2.5 p-0 text-[15px]",
|
|
3344
3873
|
children: e.features.map((e) => /* @__PURE__ */ i("li", {
|
|
3345
3874
|
className: "flex gap-2.5",
|
|
3346
|
-
children: [/* @__PURE__ */ r(
|
|
3875
|
+
children: [/* @__PURE__ */ r(k, {
|
|
3347
3876
|
className: "mt-0.5 size-4.5 shrink-0 text-brand-text",
|
|
3348
3877
|
strokeWidth: 2,
|
|
3349
3878
|
"aria-hidden": "true"
|
|
3350
3879
|
}), e]
|
|
3351
3880
|
}, e))
|
|
3352
3881
|
}),
|
|
3353
|
-
/* @__PURE__ */ r(
|
|
3882
|
+
/* @__PURE__ */ r(q, {
|
|
3354
3883
|
asChild: !0,
|
|
3355
3884
|
variant: e.featured ? "default" : "outline",
|
|
3356
3885
|
className: "mt-auto",
|
|
@@ -3371,20 +3900,20 @@ function Gi({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3371
3900
|
});
|
|
3372
3901
|
}
|
|
3373
3902
|
// src/web/product-card.component.tsx
|
|
3374
|
-
function
|
|
3375
|
-
let s =
|
|
3903
|
+
function ba({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
3904
|
+
let s = B[e];
|
|
3376
3905
|
return /* @__PURE__ */ i("a", {
|
|
3377
3906
|
"data-slot": "product-card",
|
|
3378
3907
|
"data-product": e,
|
|
3379
3908
|
href: t,
|
|
3380
|
-
className:
|
|
3909
|
+
className: z("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),
|
|
3381
3910
|
children: [/* @__PURE__ */ r("span", {
|
|
3382
3911
|
"aria-hidden": "true",
|
|
3383
3912
|
className: "block h-1.5 bg-brand"
|
|
3384
3913
|
}), /* @__PURE__ */ i("span", {
|
|
3385
3914
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
3386
3915
|
children: [
|
|
3387
|
-
/* @__PURE__ */ r(
|
|
3916
|
+
/* @__PURE__ */ r(V, {
|
|
3388
3917
|
product: e,
|
|
3389
3918
|
alt: "",
|
|
3390
3919
|
className: "size-11"
|
|
@@ -3399,7 +3928,7 @@ function Ki({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3399
3928
|
children: n ?? s.tagline
|
|
3400
3929
|
})]
|
|
3401
3930
|
}),
|
|
3402
|
-
/* @__PURE__ */ r(
|
|
3931
|
+
/* @__PURE__ */ r(G, {
|
|
3403
3932
|
variant: "outline",
|
|
3404
3933
|
className: "self-start",
|
|
3405
3934
|
children: a ?? s.stage
|
|
@@ -3409,17 +3938,17 @@ function Ki({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3409
3938
|
});
|
|
3410
3939
|
}
|
|
3411
3940
|
// src/web/site-footer.component.tsx
|
|
3412
|
-
function
|
|
3941
|
+
function xa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
3413
3942
|
return /* @__PURE__ */ i("footer", {
|
|
3414
3943
|
"data-slot": "site-footer",
|
|
3415
|
-
className:
|
|
3944
|
+
className: z("border-t pt-14 pb-10", a),
|
|
3416
3945
|
children: [/* @__PURE__ */ i("div", {
|
|
3417
3946
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
3418
3947
|
children: [/* @__PURE__ */ i("div", {
|
|
3419
3948
|
className: "col-span-2 flex flex-col gap-3",
|
|
3420
3949
|
children: [/* @__PURE__ */ i("span", {
|
|
3421
3950
|
className: "flex items-center gap-2",
|
|
3422
|
-
children: [/* @__PURE__ */ r(
|
|
3951
|
+
children: [/* @__PURE__ */ r(V, {
|
|
3423
3952
|
product: "talogic",
|
|
3424
3953
|
alt: "",
|
|
3425
3954
|
className: "size-7"
|
|
@@ -3450,12 +3979,12 @@ function qi({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
3450
3979
|
});
|
|
3451
3980
|
}
|
|
3452
3981
|
// src/web/site-header.component.tsx
|
|
3453
|
-
function
|
|
3982
|
+
function Sa({ nav: e, actions: t, brand: a, className: o }) {
|
|
3454
3983
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
3455
3984
|
href: "/",
|
|
3456
3985
|
className: "flex items-center gap-2 no-underline",
|
|
3457
3986
|
"aria-label": "Talogic home",
|
|
3458
|
-
children: [/* @__PURE__ */ r(
|
|
3987
|
+
children: [/* @__PURE__ */ r(V, {
|
|
3459
3988
|
product: "talogic",
|
|
3460
3989
|
alt: "",
|
|
3461
3990
|
className: "size-7"
|
|
@@ -3466,17 +3995,17 @@ function Ji({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3466
3995
|
});
|
|
3467
3996
|
return /* @__PURE__ */ r("header", {
|
|
3468
3997
|
"data-slot": "site-header",
|
|
3469
|
-
className:
|
|
3998
|
+
className: z("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
3470
3999
|
children: /* @__PURE__ */ i("div", {
|
|
3471
4000
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
3472
4001
|
children: [
|
|
3473
4002
|
s,
|
|
3474
|
-
/* @__PURE__ */ r(
|
|
4003
|
+
/* @__PURE__ */ r(Zr, {
|
|
3475
4004
|
className: "hidden md:flex",
|
|
3476
4005
|
"aria-label": "Main",
|
|
3477
|
-
children: /* @__PURE__ */ r(
|
|
4006
|
+
children: /* @__PURE__ */ r(Qr, { children: e.map((e) => /* @__PURE__ */ r($r, { children: e.links ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ti, { children: e.label }), /* @__PURE__ */ r(ni, { children: /* @__PURE__ */ r("ul", {
|
|
3478
4007
|
className: "m-0 grid w-[420px] list-none gap-1 p-0",
|
|
3479
|
-
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(
|
|
4008
|
+
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(ri, {
|
|
3480
4009
|
href: e.href,
|
|
3481
4010
|
className: "flex h-auto flex-col items-start gap-0.5 py-2",
|
|
3482
4011
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -3487,7 +4016,7 @@ function Ji({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3487
4016
|
children: e.description
|
|
3488
4017
|
})]
|
|
3489
4018
|
}) }, e.href))
|
|
3490
|
-
}) })] }) : /* @__PURE__ */ r(
|
|
4019
|
+
}) })] }) : /* @__PURE__ */ r(ri, {
|
|
3491
4020
|
href: e.href,
|
|
3492
4021
|
children: e.label
|
|
3493
4022
|
}) }, e.label)) })
|
|
@@ -3496,7 +4025,7 @@ function Ji({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3496
4025
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
3497
4026
|
children: t
|
|
3498
4027
|
}),
|
|
3499
|
-
/* @__PURE__ */ r(
|
|
4028
|
+
/* @__PURE__ */ r(va, {
|
|
3500
4029
|
className: "ms-auto md:hidden",
|
|
3501
4030
|
links: e.flatMap((e) => e.links ?? [{
|
|
3502
4031
|
label: e.label,
|
|
@@ -3508,6 +4037,6 @@ function Ji({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
3508
4037
|
})
|
|
3509
4038
|
});
|
|
3510
4039
|
}
|
|
3511
|
-
export {
|
|
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, Vi as AppShell, Bi as AppShellBody, zi as AppShellHeader, $e as Avatar, tt as AvatarFallback, et as AvatarImage, G as Badge, la as BottomNav, Ir as Breadcrumb, Rr as BreadcrumbItem, zr as BreadcrumbLink, Lr as BreadcrumbList, Br as BreadcrumbPage, Vr as BreadcrumbSeparator, q as Button, Xe as COLOUR_SCHEMES, ua as CaptureFrame, gr as Card, br as CardContent, yr as CardDescription, xr as CardFooter, _r as CardHeader, vr as CardTitle, it 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, fa as CtaBand, Ye 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, Le as FAMILY_PALETTE, We as FREE_HUES, pa as Faq, ma as FeatureGrid, _t as Field, ur as FileDropOverlay, Hi as FilterBar, Ui as FilterChip, ea as FlowNode, Wi as FormSection, qe as HUES, U as HUE_FILL, ha as Hero, ga as HowItWorks, vt as Input, ta as Inspector, Sr as Kbd, Me as LABEL_COLORS, W as LOGO_RULE, gt 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, va as MobileMenu, Zr as NavigationMenu, ni as NavigationMenuContent, $r as NavigationMenuItem, ri as NavigationMenuLink, Qr as NavigationMenuList, ti as NavigationMenuTrigger, Je as PALETTE_STEPS, Ke as PRODUCTS, B as PRODUCT_CATALOGUE, Ue as PRODUCT_HUES, Gi as PageHeader, ii as Pagination, Qt as Popover, en as PopoverAnchor, tn as PopoverContent, $t as PopoverTrigger, Zt as Portal, ya as PricingTable, ba as ProductCard, V as ProductLogo, ki as ProductSwitcher, ir as Progress, Xi as RUN_STATUSES, at as RadioGroup, ot as RadioGroupItem, da as RecordButton, Ki as RecordsTable, Tr as ResizableHandle, wr as ResizablePanel, Cr as ResizablePanelGroup, Er as ScrollArea, Dr as ScrollBar, yt as Select, Ct as SelectContent, bt as SelectGroup, Tt as SelectItem, wt as SelectLabel, Et as SelectSeparator, St as SelectTrigger, xt as SelectValue, Or as Separator, nn as Sheet, an as SheetClose, ln as SheetContent, sn as SheetDescription, on as SheetTitle, rn as SheetTrigger, vi as Sidebar, Ai as SidebarBrand, bi as SidebarCollapseButton, Si as SidebarContent, wi as SidebarFooter, Ti as SidebarGroup, xi as SidebarHeader, Ei as SidebarItem, Ci as SidebarNote, Oi as SidebarSheet, yi as SidebarTooltip, xa as SiteFooter, Sa as SiteHeader, ar as Skeleton, st as Slider, or as Spinner, Yi as StatCard, $i as StatusBadge, na as StatusBar, pi as Stepper, ct 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, ai as Tabs, di as TabsContent, ci as TabsList, ui as TabsTrigger, Kn as Tag, Yn as TagsInput, Dt as Textarea, Qe as ThemeRoot, sa as TimelineLanes, ca as TitleBar, sr as Toaster, dt as ToggleGroup, ft as ToggleGroupItem, dn as Tooltip, pn as TooltipContent, un as TooltipProvider, fn as TooltipTrigger, cr as acceptsFile, Gn as addTags, Fe as apcaContrast, nt as badgeVariants, K as buttonVariants, z as cn, Mi as commandShortcutLabel, pt as controlClassName, Q as fadingLabelClassName, Ot as floatingMotionClassName, oa as formatClockTime, aa as formatTimecode, Ge as hueForProduct, He as logoColorForHue, lr as mayAcceptDrag, X as menuItemClassName, gn as menuSeparatorClassName, hn as menuShortcutClassName, gi as navRowClassName, Y as overlayClassName, Ie as readableLabel, Qi as runStatusDisplay, kt as sheetMotionClassName, hi as sidebarNoteClassName, qi as sparklinePath, Wn as splitTags, qn as tagsFieldClassName, Jn as tagsFieldInputClassName, Ze as themeAttributes, ra as timelineBox, ia as timelineTicks, ji as useCommandShortcut, Li as useCommandShortcutLabel, J as useFieldControl, ht as useFieldLabelId, Xn as useOptionSearch, dr as usePageDrop, Z as useSidebar };
|
|
3512
4041
|
|
|
3513
4042
|
//# sourceMappingURL=index.js.map
|