@overvis/hmi-workspace-ui 0.1.0 → 0.1.2
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/dist/alarm-list-DKFio0hg.js +414 -0
- package/dist/alarm-rule-dialog-mb4_nHRW.js +417 -0
- package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-CfZXTWkK.js} +123 -125
- package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-DBLSkrrG.js} +15 -18
- package/dist/alert-dialog-D_iDv2lQ.js +891 -0
- package/dist/{base-revision-YCO27zR4.js → base-revision-DLF9EnGV.js} +26 -29
- package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D5R6Fz74.js} +6 -7
- package/dist/{catalog-list-DjZojYLJ.js → catalog-list-BkWosvh1.js} +2 -4
- package/dist/{code-editor-BVimvjDV.js → code-editor-DCM0KdMJ.js} +9 -6
- package/dist/dashboard-bindings.js +1 -2
- package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-DLc11Vzu.js} +335 -359
- package/dist/{de-14WdmJxZ.js → de-Z2er-E5v.js} +4 -2
- package/dist/diagnostic-text-CYZFPiND.js +116 -0
- package/dist/{dialogs-D_v1LeH4.js → dialogs-BX023zml.js} +2523 -2590
- package/dist/{dialogs-B6BRnf3Q.js → dialogs-DEOg9lxy.js} +219 -227
- package/dist/{display-DmOo23mi.js → display-VYGzneE0.js} +4 -6
- package/dist/{editor-language-To9MxloY.js → editor-language-CGENZxbI.js} +3 -5
- package/dist/editor-page-CaN52OQh.js +1337 -0
- package/dist/{en-BgercpT0.js → en-CKPPL6bQ.js} +4 -2
- package/dist/entity-controls-DJT47yeV.js +71 -0
- package/dist/errors-BAWoH_5w.js +25 -0
- package/dist/{footer-DC-Q0052.js → footer-CbPMP8aq.js} +2404 -2515
- package/dist/host.js +8254 -675
- package/dist/{i18n-BgzakKoC.js → i18n-ChjEbYEg.js} +77 -90
- package/dist/i18n.js +1 -2
- package/dist/index.js +5168 -5353
- package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
- package/dist/{list-page-CvsdZb86.js → list-page-Fa29SkaJ.js} +116 -123
- package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-DvXIYc1Z.js} +6 -6
- package/dist/{location-picker-renderer-CjCxg6ai.js → location-picker-renderer-B1_-n8lf.js} +3 -4
- package/dist/{model-B8gGi4OK.js → model-tpg_xpFB.js} +1 -2
- package/dist/{notice-card-DyGywFsW.js → notice-card-V_0K0lO0.js} +54 -58
- package/dist/page-B5te_1Lc.js +449 -0
- package/dist/{page-v6LCwswN.js → page-BorlLnMX.js} +92 -100
- package/dist/page-DxF7FOve.js +507 -0
- package/dist/panel-DuZD-cBP.js +949 -0
- package/dist/parameter-values.js +3 -16
- package/dist/{pl-lQ9HXV9k.js → pl-DVABrn5G.js} +4 -2
- package/dist/presence-code-DsabLTZs.js +73 -0
- package/dist/{query-gate-DVhNIkge.js → query-gate-BbIo1Xrj.js} +6 -6
- package/dist/{provider-DoEpKcQ-.js → quick-report-BcZsfkCZ.js} +9423 -5102
- package/dist/{retention-BYXNpYmR.js → retention-C7EZsq8u.js} +4 -6
- package/dist/retention-note-CmMeHV_u.js +40 -0
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{ru-qTKINoUj.js → ru-CBRLC_xM.js} +8 -6
- package/dist/run-text-CDdfbKbg.js +112 -0
- package/dist/{search-D4rDnE9T.js → search-C6xQ_Hvo.js} +26 -29
- package/dist/{sections-kCOyc4NR.js → sections-D_SBfVzV.js} +2 -3
- package/dist/{select-BKiOWdSr.js → select-nNLG-AMz.js} +17 -23
- package/dist/{spinner-C-HPNxOc.js → spinner-B-KLtBjp.js} +182 -201
- package/dist/src/code-editor/code-editor.d.ts +3 -0
- package/dist/src/code-editor/taskfile-language.d.ts +22 -2
- package/dist/src/i18n/catalogs/de/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/de.d.ts +3 -0
- package/dist/src/i18n/catalogs/en/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/en.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl.d.ts +3 -0
- package/dist/src/i18n/catalogs/ru/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/ru/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/ru.d.ts +7 -4
- package/dist/src/i18n/catalogs/uk/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/uk/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/uk.d.ts +7 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/workspace/graphics/inspector/item.d.ts +6 -6
- package/dist/src/workspace/local-workspace-app.d.ts +1 -1
- package/dist/src/workspace/routes.d.ts +1 -1
- package/dist/{starter-fields-BRLX0z-v.js → starter-fields-7S3LmtGa.js} +154 -157
- package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
- package/dist/styles.css +1 -1
- package/dist/ui.js +334 -374
- package/dist/{uk-CwpJAxmx.js → uk-17pbVYZa.js} +8 -6
- package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-Clb-7xRY.js} +14 -17
- package/package.json +15 -9
- package/dist/alarm-list-BL3xQ5Lf.js +0 -423
- package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
- package/dist/alert-B8MAoIO8.js +0 -45
- package/dist/alert-dialog-CYkuMg5D.js +0 -129
- package/dist/api-error-9rQmUN5L.js +0 -93
- package/dist/breadcrumb-DzVL1yHa.js +0 -74
- package/dist/button-6SxPBYMz.js +0 -44
- package/dist/context-u9KJQmdB.js +0 -102
- package/dist/copyable-id-DYGiAcnq.js +0 -40
- package/dist/dashboard-context-CBfG6DoT.js +0 -191
- package/dist/date-time-picker-C3FhMXk6.js +0 -266
- package/dist/diagnostic-text-BAkzW0SE.js +0 -111
- package/dist/diagnostic-text-DiKd2i1w.js +0 -76
- package/dist/dialog-BIhQXcZC.js +0 -237
- package/dist/dialog-BqyIxMD-.js +0 -54
- package/dist/dropdown-menu-DSzbBq3v.js +0 -136
- package/dist/editor-page-BiSZJz5b.js +0 -1353
- package/dist/empty-B-QJ-06w.js +0 -59
- package/dist/entity-controls-D1K4Ot3O.js +0 -76
- package/dist/errors-CcsvDHu8.js +0 -26
- package/dist/history-page-sAAhG54V.js +0 -1400
- package/dist/icon-D-pR9htW.js +0 -57
- package/dist/index-page-DMH82fZe.js +0 -214
- package/dist/item-B5SaTFQU.js +0 -120
- package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
- package/dist/mutations-THtGG6Ai.js +0 -240
- package/dist/page-2KPemaAj.js +0 -328
- package/dist/page-6rIoTg2L.js +0 -459
- package/dist/page-C6giEoEd.js +0 -1935
- package/dist/page-DCbTxKsi.js +0 -313
- package/dist/page-DWO427hT.js +0 -208
- package/dist/page-LXu_2zm3.js +0 -137
- package/dist/page-aaUiVOnk.js +0 -513
- package/dist/page-header-RB2YFWlE.js +0 -55
- package/dist/page-title-CdCbiLt8.js +0 -14
- package/dist/panel-DDy8tUNR.js +0 -338
- package/dist/presence-code-BfSXr50g.js +0 -83
- package/dist/progress-C7cxNJA1.js +0 -83
- package/dist/provider-BOeYHi0n.js +0 -134
- package/dist/quick-report-CUVJnbKP.js +0 -416
- package/dist/radio-group-CZGqVbkJ.js +0 -26
- package/dist/retention-note-CHhA6gjY.js +0 -42
- package/dist/run-text-DvaO8LDF.js +0 -113
- package/dist/select-eNgZdZ30.js +0 -521
- package/dist/skeleton-6yk8Tdh5.js +0 -19
- package/dist/slider-DorDsoF8.js +0 -37
- package/dist/status-page-DAHiKM9P.js +0 -3286
- package/dist/switch-BqD0RH_G.js +0 -18
- package/dist/table-Q2-voLuw.js +0 -65
- package/dist/tabs-CSIucYFP.js +0 -57
- package/dist/theme-provider-BkRohQFU.js +0 -61
- package/dist/toggle-group-9Bs0Mm3r.js +0 -82
- package/dist/trpc-CvJUuUXp.js +0 -153
- package/dist/utils-CX-Pz5p6.js +0 -8
- package/dist/writability-BuH-spxv.js +0 -57
package/dist/ui.js
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
import { c as e, f as t, i as n, m as r, n as i, r as a, s as o } from "./i18n-
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { a as Ye, c as T, i as Xe, n as Ze, o as Qe, r as $e, s as et, t as tt } from "./table-Q2-voLuw.js";
|
|
8
|
-
import { C as nt, E as rt, S as it, T as at, _ as ot, a as st, c as ct, d as lt, f as ut, g as dt, h as ft, i as pt, l as mt, m as ht, n as gt, o as _t, p as vt, r as yt, s as bt, t as xt, u as St, v as Ct, w as wt, x as Tt, y as Et } from "./select-BKiOWdSr.js";
|
|
9
|
-
import { a as Dt, i as Ot, n as kt, o as At, r as jt, t as Mt } from "./empty-B-QJ-06w.js";
|
|
10
|
-
import { a as Nt, c as Pt, d as Ft, i as It, l as Lt, n as Rt, o as zt, r as Bt, s as Vt, t as Ht, u as Ut } from "./notice-card-DyGywFsW.js";
|
|
11
|
-
import { i as Wt, n as Gt, r as Kt, t as qt } from "./alert-B8MAoIO8.js";
|
|
12
|
-
import { t as Jt } from "./slider-DorDsoF8.js";
|
|
13
|
-
import { t as Yt } from "./switch-BqD0RH_G.js";
|
|
14
|
-
import { i as Xt, n as Zt, r as Qt, t as $t } from "./toggle-group-9Bs0Mm3r.js";
|
|
15
|
-
import { a as en, c as tn, i as nn, l as rn, n as an, o as on, r as sn, s as cn, t as ln } from "./progress-C7cxNJA1.js";
|
|
16
|
-
import { t as un } from "./page-title-CdCbiLt8.js";
|
|
17
|
-
import { a as dn, c as fn, d as pn, f as mn, h as E, i as D, l as hn, m as gn, n as _n, o as O, p as vn, r as k, s as yn, t as bn, u as xn } from "./dropdown-menu-DSzbBq3v.js";
|
|
18
|
-
import { a as Sn, c as Cn, d as wn, f as Tn, i as En, l as Dn, n as On, o as kn, r as An, s as jn, t as Mn, u as Nn } from "./alert-dialog-CYkuMg5D.js";
|
|
19
|
-
import { a as Pn, i as Fn, n as In, o as Ln, r as Rn, s as zn, t as Bn } from "./breadcrumb-DzVL1yHa.js";
|
|
20
|
-
import { i as Vn, n as Hn, r as Un, t as Wn } from "./date-time-picker-C3FhMXk6.js";
|
|
21
|
-
import { a as Gn, c as Kn, i as qn, l as Jn, n as Yn, o as Xn, r as Zn, s as Qn, t as $n, u as er } from "./item-B5SaTFQU.js";
|
|
22
|
-
import { t as tr } from "./page-header-RB2YFWlE.js";
|
|
23
|
-
import { n as nr, t as rr } from "./radio-group-CZGqVbkJ.js";
|
|
24
|
-
import { a as ir, c as ar, i as or, l as sr, n as cr, o as lr, r as ur, s as dr, t as fr, u as pr } from "./panel-DDy8tUNR.js";
|
|
25
|
-
import { a as mr, i as hr, n as gr, r as _r, t as vr } from "./tabs-CSIucYFP.js";
|
|
1
|
+
import { c as e, f as t, i as n, m as r, n as i, r as a, s as o } from "./i18n-ChjEbYEg.js";
|
|
2
|
+
import { $ as s, A as c, B as l, C as u, D as d, Dt as f, E as p, Et as m, F as h, G as ee, H as g, I as _, K as v, L as te, M as y, Mt as b, N as ne, Nt as x, O as re, P as ie, Q as ae, R as oe, S as se, T as ce, Tt as le, U as ue, V as de, W as fe, X as pe, Y as me, Z as he, _ as ge, _t as _e, a as ve, at as ye, b as be, bt as xe, c as Se, ct as Ce, d as we, dt as Te, et as Ee, f as De, ft as Oe, g as ke, gt as Ae, h as je, ht as Me, i as Ne, it as Pe, j as Fe, jt as S, k as Ie, l as Le, lt as Re, m as ze, mt as C, n as Be, nt as Ve, o as He, ot as Ue, p as We, pt as Ge, q as Ke, r as qe, rt as Je, s as Ye, st as Xe, t as Ze, tt as Qe, u as $e, ut as et, v as tt, vt as w, w as nt, x as T, xt as E, y as rt, yt as it, z as at } from "./alert-dialog-D_iDv2lQ.js";
|
|
3
|
+
import { A as ot, B as st, C as ct, D as lt, E as ut, F as dt, G as ft, H as pt, I as mt, J as ht, K as gt, L as _t, M as vt, N as yt, O as bt, P as xt, R as St, S as Ct, T as wt, U as Tt, V as Et, W as Dt, Y as Ot, _ as kt, a as At, b as jt, c as Mt, d as Nt, f as Pt, g as Ft, h as It, i as D, j as Lt, l as Rt, m as zt, n as O, o as Bt, p as Vt, q as Ht, r as k, s as Ut, t as Wt, u as Gt, v as Kt, w as qt, x as Jt, y as Yt, z as Xt } from "./spinner-B-KLtBjp.js";
|
|
4
|
+
import { C as Zt, E as Qt, S as $t, T as en, _ as tn, a as nn, c as rn, d as an, f as on, g as sn, h as cn, i as ln, l as un, m as dn, n as fn, o as pn, p as mn, r as hn, s as gn, t as _n, u as vn, v as yn, w as bn, x as xn, y as Sn } from "./select-nNLG-AMz.js";
|
|
5
|
+
import { a as Cn, c as wn, d as Tn, i as En, l as Dn, n as On, o as kn, r as An, s as jn, t as Mn, u as Nn } from "./notice-card-V_0K0lO0.js";
|
|
6
|
+
import { A as Pn, B as Fn, C as In, D as Ln, E as Rn, F as zn, I as Bn, L as Vn, M as Hn, N as Un, O as Wn, P as Gn, R as Kn, S as qn, T as Jn, V as Yn, _ as Xn, a as Zn, b as Qn, d as $n, f as er, g as tr, h as nr, i as rr, j as ir, k as ar, m as or, n as sr, o as cr, p as lr, r as ur, s as dr, t as fr, u as pr, v as mr, w as hr, x as gr, y as _r, z as vr } from "./panel-DuZD-cBP.js";
|
|
26
7
|
import * as A from "react";
|
|
27
8
|
import { useEffect as j, useId as yr, useRef as br, useState as xr } from "react";
|
|
28
9
|
import { Fragment as Sr, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
@@ -46,18 +27,18 @@ import { MessageScroller as q, useMessageScroller as ai, useMessageScrollerScrol
|
|
|
46
27
|
import { NavigationMenu as J } from "@base-ui/react/navigation-menu";
|
|
47
28
|
import { Questionnaire as Y } from "@shadcn/react/questionnaire";
|
|
48
29
|
import { ScrollArea as X } from "@base-ui/react/scroll-area";
|
|
49
|
-
|
|
30
|
+
// src/ui/accordion.tsx
|
|
50
31
|
function ci({ className: e, ...t }) {
|
|
51
32
|
return /* @__PURE__ */ M(V.Root, {
|
|
52
33
|
"data-slot": "accordion",
|
|
53
|
-
className:
|
|
34
|
+
className: x("flex w-full flex-col", e),
|
|
54
35
|
...t
|
|
55
36
|
});
|
|
56
37
|
}
|
|
57
38
|
function li({ className: e, ...t }) {
|
|
58
39
|
return /* @__PURE__ */ M(V.Item, {
|
|
59
40
|
"data-slot": "accordion-item",
|
|
60
|
-
className:
|
|
41
|
+
className: x("not-last:border-b", e),
|
|
61
42
|
...t
|
|
62
43
|
});
|
|
63
44
|
}
|
|
@@ -66,7 +47,7 @@ function ui({ className: e, children: t, ...n }) {
|
|
|
66
47
|
className: "flex",
|
|
67
48
|
children: /* @__PURE__ */ N(V.Trigger, {
|
|
68
49
|
"data-slot": "accordion-trigger",
|
|
69
|
-
className:
|
|
50
|
+
className: x("\n group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg\n border border-transparent py-2.5 text-left text-sm font-medium transition-all\n outline-none\n hover:underline\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n focus-visible:after:border-ring\n aria-disabled:pointer-events-none aria-disabled:opacity-50\n **:data-[slot=accordion-trigger-icon]:ml-auto\n **:data-[slot=accordion-trigger-icon]:size-4\n **:data-[slot=accordion-trigger-icon]:text-muted-foreground\n ", e),
|
|
70
51
|
...n,
|
|
71
52
|
children: [
|
|
72
53
|
t,
|
|
@@ -88,13 +69,12 @@ function di({ className: e, children: t, ...n }) {
|
|
|
88
69
|
className: "\n overflow-hidden text-sm\n data-open:animate-accordion-down\n data-closed:animate-accordion-up\n ",
|
|
89
70
|
...n,
|
|
90
71
|
children: /* @__PURE__ */ M("div", {
|
|
91
|
-
className:
|
|
72
|
+
className: x("\n h-(--accordion-panel-height) pt-0 pb-2.5\n data-ending-style:h-0\n data-starting-style:h-0\n [&_a]:underline [&_a]:underline-offset-3\n [&_a]:hover:text-foreground\n [&_p:not(:last-child)]:mb-4\n ", e),
|
|
92
73
|
children: t
|
|
93
74
|
})
|
|
94
75
|
});
|
|
95
76
|
}
|
|
96
|
-
|
|
97
|
-
//#region src/ui/aspect-ratio.tsx
|
|
77
|
+
// src/ui/aspect-ratio.tsx
|
|
98
78
|
var fi = L("relative", {
|
|
99
79
|
variants: { ratio: {
|
|
100
80
|
square: "aspect-square",
|
|
@@ -108,12 +88,11 @@ function pi({ ratio: e = "video", className: t, ...n }) {
|
|
|
108
88
|
return /* @__PURE__ */ M("div", {
|
|
109
89
|
"data-slot": "aspect-ratio",
|
|
110
90
|
"data-ratio": e,
|
|
111
|
-
className:
|
|
91
|
+
className: x(fi({ ratio: e }), t),
|
|
112
92
|
...n
|
|
113
93
|
});
|
|
114
94
|
}
|
|
115
|
-
|
|
116
|
-
//#region src/ui/attachment.tsx
|
|
95
|
+
// src/ui/attachment.tsx
|
|
117
96
|
var mi = L("\n group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border\n bg-card text-card-foreground transition-colors\n focus-within:ring-1 focus-within:ring-ring/50\n has-[>a,>button]:hover:bg-muted/50\n data-[state=error]:border-destructive/30\n data-[state=idle]:border-dashed\n ", { variants: {
|
|
118
97
|
size: {
|
|
119
98
|
default: "\n gap-2 text-sm\n has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2\n has-data-[slot=attachment-media]:p-2\n ",
|
|
@@ -131,7 +110,7 @@ function hi({ className: e, state: t = "done", size: n = "default", orientation:
|
|
|
131
110
|
"data-state": t,
|
|
132
111
|
"data-size": n,
|
|
133
112
|
"data-orientation": r,
|
|
134
|
-
className:
|
|
113
|
+
className: x(mi({
|
|
135
114
|
size: n,
|
|
136
115
|
orientation: r
|
|
137
116
|
}), e),
|
|
@@ -149,44 +128,44 @@ function _i({ className: e, variant: t = "icon", ...n }) {
|
|
|
149
128
|
return /* @__PURE__ */ M("div", {
|
|
150
129
|
"data-slot": "attachment-media",
|
|
151
130
|
"data-variant": t,
|
|
152
|
-
className:
|
|
131
|
+
className: x(gi({ variant: t }), e),
|
|
153
132
|
...n
|
|
154
133
|
});
|
|
155
134
|
}
|
|
156
135
|
function vi({ className: e, ...t }) {
|
|
157
136
|
return /* @__PURE__ */ M("div", {
|
|
158
137
|
"data-slot": "attachment-content",
|
|
159
|
-
className:
|
|
138
|
+
className: x("\n max-w-full min-w-0 flex-1 leading-tight\n group-data-[orientation=vertical]/attachment:px-1\n ", e),
|
|
160
139
|
...t
|
|
161
140
|
});
|
|
162
141
|
}
|
|
163
142
|
function yi({ className: e, ...t }) {
|
|
164
143
|
return /* @__PURE__ */ M("span", {
|
|
165
144
|
"data-slot": "attachment-title",
|
|
166
|
-
className:
|
|
145
|
+
className: x("\n block max-w-full min-w-0 truncate font-medium\n group-data-[state=processing]/attachment:shimmer\n group-data-[state=uploading]/attachment:shimmer\n ", e),
|
|
167
146
|
...t
|
|
168
147
|
});
|
|
169
148
|
}
|
|
170
149
|
function bi({ className: e, ...t }) {
|
|
171
150
|
return /* @__PURE__ */ M("span", {
|
|
172
151
|
"data-slot": "attachment-description",
|
|
173
|
-
className:
|
|
152
|
+
className: x("\n mt-0.5 block min-w-0 truncate text-xs text-muted-foreground\n group-data-[state=error]/attachment:text-destructive/80\n ", "max-w-full", e),
|
|
174
153
|
...t
|
|
175
154
|
});
|
|
176
155
|
}
|
|
177
156
|
function xi({ className: e, ...t }) {
|
|
178
157
|
return /* @__PURE__ */ M("div", {
|
|
179
158
|
"data-slot": "attachment-actions",
|
|
180
|
-
className:
|
|
159
|
+
className: x("\n relative z-20 flex shrink-0 items-center\n group-data-[orientation=vertical]/attachment:absolute\n group-data-[orientation=vertical]/attachment:top-3\n group-data-[orientation=vertical]/attachment:right-3\n group-data-[orientation=vertical]/attachment:gap-1\n ", e),
|
|
181
160
|
...t
|
|
182
161
|
});
|
|
183
162
|
}
|
|
184
163
|
function Si({ className: e, variant: t, size: n = "icon-xs", ...r }) {
|
|
185
|
-
return /* @__PURE__ */ M(
|
|
164
|
+
return /* @__PURE__ */ M(S, {
|
|
186
165
|
"data-slot": "attachment-action",
|
|
187
166
|
variant: t ?? "ghost",
|
|
188
167
|
size: n,
|
|
189
|
-
className:
|
|
168
|
+
className: x(e),
|
|
190
169
|
...r
|
|
191
170
|
});
|
|
192
171
|
}
|
|
@@ -195,7 +174,7 @@ function Ci({ className: e, render: t, type: n, ...r }) {
|
|
|
195
174
|
defaultTagName: "button",
|
|
196
175
|
props: z({
|
|
197
176
|
type: t ? n : n ?? "button",
|
|
198
|
-
className:
|
|
177
|
+
className: x("absolute inset-0 z-10 outline-none", e)
|
|
199
178
|
}, r),
|
|
200
179
|
render: t,
|
|
201
180
|
state: { slot: "attachment-trigger" }
|
|
@@ -204,61 +183,59 @@ function Ci({ className: e, render: t, type: n, ...r }) {
|
|
|
204
183
|
function wi({ className: e, ...t }) {
|
|
205
184
|
return /* @__PURE__ */ M("div", {
|
|
206
185
|
"data-slot": "attachment-group",
|
|
207
|
-
className:
|
|
186
|
+
className: x("\n flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3\n overflow-x-auto overscroll-x-contain py-1\n *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start\n ", e),
|
|
208
187
|
...t
|
|
209
188
|
});
|
|
210
189
|
}
|
|
211
|
-
|
|
212
|
-
//#region src/ui/avatar.tsx
|
|
190
|
+
// src/ui/avatar.tsx
|
|
213
191
|
function Ti({ className: e, size: t = "default", ...n }) {
|
|
214
192
|
return /* @__PURE__ */ M(H.Root, {
|
|
215
193
|
"data-slot": "avatar",
|
|
216
194
|
"data-size": t,
|
|
217
|
-
className:
|
|
195
|
+
className: x("\n group/avatar relative flex size-8 shrink-0 rounded-full select-none\n after:absolute after:inset-0 after:rounded-full after:border after:border-border\n after:mix-blend-darken\n data-[size=lg]:size-10\n data-[size=sm]:size-6\n dark:after:mix-blend-lighten\n ", e),
|
|
218
196
|
...n
|
|
219
197
|
});
|
|
220
198
|
}
|
|
221
199
|
function Ei({ className: e, ...t }) {
|
|
222
200
|
return /* @__PURE__ */ M(H.Image, {
|
|
223
201
|
"data-slot": "avatar-image",
|
|
224
|
-
className:
|
|
202
|
+
className: x("aspect-square size-full rounded-full object-cover", e),
|
|
225
203
|
...t
|
|
226
204
|
});
|
|
227
205
|
}
|
|
228
206
|
function Di({ className: e, ...t }) {
|
|
229
207
|
return /* @__PURE__ */ M(H.Fallback, {
|
|
230
208
|
"data-slot": "avatar-fallback",
|
|
231
|
-
className:
|
|
209
|
+
className: x("\n flex size-full items-center justify-center rounded-full bg-muted text-sm\n text-muted-foreground\n group-data-[size=sm]/avatar:text-xs\n ", e),
|
|
232
210
|
...t
|
|
233
211
|
});
|
|
234
212
|
}
|
|
235
213
|
function Oi({ className: e, ...t }) {
|
|
236
214
|
return /* @__PURE__ */ M("span", {
|
|
237
215
|
"data-slot": "avatar-badge",
|
|
238
|
-
className:
|
|
216
|
+
className: x("\n absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full\n bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none\n ", "\n group-data-[size=sm]/avatar:size-2\n group-data-[size=sm]/avatar:[&>svg]:hidden\n ", "\n group-data-[size=default]/avatar:size-2.5\n group-data-[size=default]/avatar:[&>svg]:size-2\n ", "\n group-data-[size=lg]/avatar:size-3\n group-data-[size=lg]/avatar:[&>svg]:size-2\n ", e),
|
|
239
217
|
...t
|
|
240
218
|
});
|
|
241
219
|
}
|
|
242
220
|
function ki({ className: e, ...t }) {
|
|
243
221
|
return /* @__PURE__ */ M("div", {
|
|
244
222
|
"data-slot": "avatar-group",
|
|
245
|
-
className:
|
|
223
|
+
className: x("\n group/avatar-group flex -space-x-2\n *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background\n ", e),
|
|
246
224
|
...t
|
|
247
225
|
});
|
|
248
226
|
}
|
|
249
227
|
function Ai({ className: e, ...t }) {
|
|
250
228
|
return /* @__PURE__ */ M("div", {
|
|
251
229
|
"data-slot": "avatar-group-count",
|
|
252
|
-
className:
|
|
230
|
+
className: x("\n relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm\n text-muted-foreground ring-2 ring-background\n group-has-data-[size=lg]/avatar-group:size-10\n group-has-data-[size=sm]/avatar-group:size-6\n [&>svg]:size-4\n group-has-data-[size=lg]/avatar-group:[&>svg]:size-5\n group-has-data-[size=sm]/avatar-group:[&>svg]:size-3\n ", e),
|
|
253
231
|
...t
|
|
254
232
|
});
|
|
255
233
|
}
|
|
256
|
-
|
|
257
|
-
//#region src/ui/bubble.tsx
|
|
234
|
+
// src/ui/bubble.tsx
|
|
258
235
|
function ji({ className: e, ...t }) {
|
|
259
236
|
return /* @__PURE__ */ M("div", {
|
|
260
237
|
"data-slot": "bubble-group",
|
|
261
|
-
className:
|
|
238
|
+
className: x("flex min-w-0 flex-col gap-2", e),
|
|
262
239
|
...t
|
|
263
240
|
});
|
|
264
241
|
}
|
|
@@ -279,14 +256,14 @@ function Ni({ variant: e = "default", align: t = "start", className: n, ...r })
|
|
|
279
256
|
"data-slot": "bubble",
|
|
280
257
|
"data-variant": e,
|
|
281
258
|
"data-align": t,
|
|
282
|
-
className:
|
|
259
|
+
className: x(Mi({ variant: e }), n),
|
|
283
260
|
...r
|
|
284
261
|
});
|
|
285
262
|
}
|
|
286
263
|
function Pi({ className: e, render: t, ...n }) {
|
|
287
264
|
return B({
|
|
288
265
|
defaultTagName: "div",
|
|
289
|
-
props: z({ className:
|
|
266
|
+
props: z({ className: x("\n w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2\n text-sm/relaxed wrap-break-word\n group-data-[align=end]/bubble:self-end\n [button]:text-left\n [button,a]:transition-colors [button,a]:outline-none\n [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3\n [button,a]:focus-visible:ring-ring/50\n ", e) }, n),
|
|
290
267
|
render: t,
|
|
291
268
|
state: { slot: "bubble-content" }
|
|
292
269
|
});
|
|
@@ -312,60 +289,59 @@ function Ii({ side: e = "bottom", align: t = "end", className: n, ...r }) {
|
|
|
312
289
|
"data-slot": "bubble-reactions",
|
|
313
290
|
"data-align": t,
|
|
314
291
|
"data-side": e,
|
|
315
|
-
className:
|
|
292
|
+
className: x(Fi({
|
|
316
293
|
side: e,
|
|
317
294
|
align: t
|
|
318
295
|
}), n),
|
|
319
296
|
...r
|
|
320
297
|
});
|
|
321
298
|
}
|
|
322
|
-
|
|
323
|
-
//#region src/ui/carousel.tsx
|
|
299
|
+
// src/ui/carousel.tsx
|
|
324
300
|
var Li = A.createContext(null);
|
|
325
301
|
function Z() {
|
|
326
302
|
let e = A.useContext(Li);
|
|
327
303
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
328
304
|
return e;
|
|
329
305
|
}
|
|
330
|
-
function Ri({ orientation: e = "horizontal", opts: t, setApi: n, plugins: i, className: a, children: o, onKeyDownCapture:
|
|
331
|
-
let
|
|
306
|
+
function Ri({ orientation: e = "horizontal", opts: t, setApi: n, plugins: i, className: a, children: o, onKeyDownCapture: s, ...c }) {
|
|
307
|
+
let l = r(), [u, d] = Gr({
|
|
332
308
|
...t,
|
|
333
309
|
axis: e === "horizontal" ? "x" : "y"
|
|
334
|
-
}, i),
|
|
335
|
-
|
|
336
|
-
}), [
|
|
337
|
-
|
|
338
|
-
}, [
|
|
339
|
-
|
|
340
|
-
}, [
|
|
341
|
-
if (
|
|
310
|
+
}, i), f = A.useCallback((e) => d == null ? () => void 0 : (d.on("reInit", e), d.on("select", e), () => {
|
|
311
|
+
d.off("reInit", e), d.off("select", e);
|
|
312
|
+
}), [d]), p = A.useCallback(() => `${String(d?.canScrollPrev() ?? !1)}:${String(d?.canScrollNext() ?? !1)}:${String(d?.selectedScrollSnap() ?? 0)}`, [d]), m = A.useSyncExternalStore(f, p, () => "false:false:0"), h = m.startsWith("true:"), ee = m.includes(":true:"), g = A.useCallback(() => {
|
|
313
|
+
d?.scrollPrev();
|
|
314
|
+
}, [d]), _ = A.useCallback(() => {
|
|
315
|
+
d?.scrollNext();
|
|
316
|
+
}, [d]), v = A.useCallback((t) => {
|
|
317
|
+
if (s?.(t), t.defaultPrevented) return;
|
|
342
318
|
let n = e === "horizontal" ? "ArrowLeft" : "ArrowUp", r = e === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
343
|
-
t.key === n ? (t.preventDefault(),
|
|
319
|
+
t.key === n ? (t.preventDefault(), g()) : t.key === r && (t.preventDefault(), _());
|
|
344
320
|
}, [
|
|
345
|
-
|
|
321
|
+
s,
|
|
346
322
|
e,
|
|
347
|
-
|
|
348
|
-
|
|
323
|
+
g,
|
|
324
|
+
_
|
|
349
325
|
]);
|
|
350
326
|
return A.useEffect(() => {
|
|
351
|
-
|
|
352
|
-
}, [
|
|
327
|
+
d && n && n(d);
|
|
328
|
+
}, [d, n]), /* @__PURE__ */ M(Li.Provider, {
|
|
353
329
|
value: {
|
|
354
|
-
carouselRef:
|
|
355
|
-
api:
|
|
330
|
+
carouselRef: u,
|
|
331
|
+
api: d,
|
|
356
332
|
opts: t,
|
|
357
333
|
orientation: e,
|
|
358
|
-
scrollPrev:
|
|
359
|
-
scrollNext:
|
|
360
|
-
canScrollPrev:
|
|
334
|
+
scrollPrev: g,
|
|
335
|
+
scrollNext: _,
|
|
336
|
+
canScrollPrev: h,
|
|
361
337
|
canScrollNext: ee
|
|
362
338
|
},
|
|
363
339
|
children: /* @__PURE__ */ M("div", {
|
|
364
|
-
...
|
|
365
|
-
onKeyDownCapture:
|
|
366
|
-
className:
|
|
340
|
+
...c,
|
|
341
|
+
onKeyDownCapture: v,
|
|
342
|
+
className: x("relative", a),
|
|
367
343
|
role: "region",
|
|
368
|
-
"aria-roledescription":
|
|
344
|
+
"aria-roledescription": l("ui_carousel"),
|
|
369
345
|
"data-slot": "carousel",
|
|
370
346
|
children: o
|
|
371
347
|
})
|
|
@@ -378,7 +354,7 @@ function zi({ className: e, ...t }) {
|
|
|
378
354
|
className: "overflow-hidden",
|
|
379
355
|
"data-slot": "carousel-content",
|
|
380
356
|
children: /* @__PURE__ */ M("div", {
|
|
381
|
-
className:
|
|
357
|
+
className: x("flex", r === "horizontal" ? "-ml-4" : "-mt-4 flex-col", e),
|
|
382
358
|
...t
|
|
383
359
|
})
|
|
384
360
|
});
|
|
@@ -389,48 +365,47 @@ function Bi({ className: e, ...t }) {
|
|
|
389
365
|
role: "group",
|
|
390
366
|
"aria-roledescription": n("ui_slide"),
|
|
391
367
|
"data-slot": "carousel-item",
|
|
392
|
-
className:
|
|
368
|
+
className: x("min-w-0 shrink-0 grow-0 basis-full", i === "horizontal" ? "pl-4" : "pt-4", e),
|
|
393
369
|
...t
|
|
394
370
|
});
|
|
395
371
|
}
|
|
396
372
|
function Vi({ className: e, variant: t = "outline", size: n = "icon-sm", disabled: i, onClick: a, ...o }) {
|
|
397
|
-
let
|
|
398
|
-
return /* @__PURE__ */ N(
|
|
373
|
+
let s = r(), { orientation: c, scrollPrev: l, canScrollPrev: u } = Z();
|
|
374
|
+
return /* @__PURE__ */ N(S, {
|
|
399
375
|
...o,
|
|
400
376
|
"data-slot": "carousel-previous",
|
|
401
377
|
variant: t,
|
|
402
378
|
size: n,
|
|
403
|
-
className:
|
|
404
|
-
disabled: i === !0 || !
|
|
379
|
+
className: x("absolute touch-manipulation rounded-full", c === "horizontal" ? "inset-y-0 -left-12 my-auto" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
380
|
+
disabled: i === !0 || !u,
|
|
405
381
|
onClick: (e) => {
|
|
406
|
-
a?.(e), e.defaultPrevented ||
|
|
382
|
+
a?.(e), e.defaultPrevented || l();
|
|
407
383
|
},
|
|
408
384
|
children: [/* @__PURE__ */ M(Er, {}), /* @__PURE__ */ M("span", {
|
|
409
385
|
className: "sr-only",
|
|
410
|
-
children:
|
|
386
|
+
children: s("ui_previous_slide")
|
|
411
387
|
})]
|
|
412
388
|
});
|
|
413
389
|
}
|
|
414
390
|
function Hi({ className: e, variant: t = "outline", size: n = "icon-sm", disabled: i, onClick: a, ...o }) {
|
|
415
|
-
let
|
|
416
|
-
return /* @__PURE__ */ N(
|
|
391
|
+
let s = r(), { orientation: c, scrollNext: l, canScrollNext: u } = Z();
|
|
392
|
+
return /* @__PURE__ */ N(S, {
|
|
417
393
|
...o,
|
|
418
394
|
"data-slot": "carousel-next",
|
|
419
395
|
variant: t,
|
|
420
396
|
size: n,
|
|
421
|
-
className:
|
|
422
|
-
disabled: i === !0 || !
|
|
397
|
+
className: x("absolute touch-manipulation rounded-full", c === "horizontal" ? "inset-y-0 -right-12 my-auto" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
398
|
+
disabled: i === !0 || !u,
|
|
423
399
|
onClick: (e) => {
|
|
424
|
-
a?.(e), e.defaultPrevented ||
|
|
400
|
+
a?.(e), e.defaultPrevented || l();
|
|
425
401
|
},
|
|
426
402
|
children: [/* @__PURE__ */ M(I, {}), /* @__PURE__ */ M("span", {
|
|
427
403
|
className: "sr-only",
|
|
428
|
-
children:
|
|
404
|
+
children: s("ui_next_slide")
|
|
429
405
|
})]
|
|
430
406
|
});
|
|
431
407
|
}
|
|
432
|
-
|
|
433
|
-
//#region src/ui/combobox.tsx
|
|
408
|
+
// src/ui/combobox.tsx
|
|
434
409
|
var Ui = U.Root;
|
|
435
410
|
function Wi({ ...e }) {
|
|
436
411
|
return /* @__PURE__ */ M(U.Value, {
|
|
@@ -443,7 +418,7 @@ function Gi({ className: e, children: t, ...n }) {
|
|
|
443
418
|
return /* @__PURE__ */ N(U.Trigger, {
|
|
444
419
|
"data-slot": "combobox-trigger",
|
|
445
420
|
"aria-label": i("ui_open_options"),
|
|
446
|
-
className:
|
|
421
|
+
className: x("[&_svg:not([class*='size-'])]:size-4", e),
|
|
447
422
|
...n,
|
|
448
423
|
children: [t, /* @__PURE__ */ M(F, { className: "pointer-events-none size-4 text-muted-foreground" })]
|
|
449
424
|
});
|
|
@@ -453,30 +428,30 @@ function Ki({ className: e, ...t }) {
|
|
|
453
428
|
return /* @__PURE__ */ M(U.Clear, {
|
|
454
429
|
"data-slot": "combobox-clear",
|
|
455
430
|
"aria-label": n("ui_clear_selection"),
|
|
456
|
-
render: /* @__PURE__ */ M(
|
|
431
|
+
render: /* @__PURE__ */ M(D, {
|
|
457
432
|
variant: "ghost",
|
|
458
433
|
size: "icon-xs"
|
|
459
434
|
}),
|
|
460
|
-
className:
|
|
435
|
+
className: x(e),
|
|
461
436
|
...t,
|
|
462
437
|
children: /* @__PURE__ */ M(Mr, { className: "pointer-events-none" })
|
|
463
438
|
});
|
|
464
439
|
}
|
|
465
440
|
function qi({ className: e, children: t, disabled: n = !1, showTrigger: i = !0, showClear: a = !1, ...o }) {
|
|
466
|
-
let
|
|
467
|
-
return /* @__PURE__ */ N(
|
|
468
|
-
className:
|
|
441
|
+
let s = r();
|
|
442
|
+
return /* @__PURE__ */ N(O, {
|
|
443
|
+
className: x("w-auto", e),
|
|
469
444
|
children: [
|
|
470
445
|
/* @__PURE__ */ M(U.Input, {
|
|
471
|
-
render: /* @__PURE__ */ M(
|
|
446
|
+
render: /* @__PURE__ */ M(At, { disabled: n }),
|
|
472
447
|
...o
|
|
473
448
|
}),
|
|
474
|
-
/* @__PURE__ */ N(
|
|
449
|
+
/* @__PURE__ */ N(k, {
|
|
475
450
|
align: "inline-end",
|
|
476
|
-
children: [i && /* @__PURE__ */ M(
|
|
451
|
+
children: [i && /* @__PURE__ */ M(D, {
|
|
477
452
|
size: "icon-xs",
|
|
478
453
|
variant: "ghost",
|
|
479
|
-
render: /* @__PURE__ */ M(Gi, { "aria-label":
|
|
454
|
+
render: /* @__PURE__ */ M(Gi, { "aria-label": s("ui_open_options") }),
|
|
480
455
|
"data-slot": "input-group-button",
|
|
481
456
|
className: "\n group-has-data-[slot=combobox-clear]/input-group:hidden\n data-pressed:bg-transparent\n ",
|
|
482
457
|
disabled: n
|
|
@@ -497,7 +472,7 @@ function Ji({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "s
|
|
|
497
472
|
children: /* @__PURE__ */ M(U.Popup, {
|
|
498
473
|
"data-slot": "combobox-content",
|
|
499
474
|
"data-chips": !!a,
|
|
500
|
-
className:
|
|
475
|
+
className: x("\n group/combobox-content relative max-h-(--available-height) w-(--anchor-width)\n max-w-(--available-width) min-w-[calc(var(--anchor-width)+(--spacing(7)))]\n origin-(--transform-origin) overflow-hidden rounded-lg border bg-popover\n text-popover-foreground shadow-lg duration-100\n data-[chips=true]:min-w-(--anchor-width)\n data-[side=bottom]:slide-in-from-top-2\n data-[side=inline-end]:slide-in-from-left-2\n data-[side=inline-start]:slide-in-from-right-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0\n *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30\n *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\n ", e),
|
|
501
476
|
...o
|
|
502
477
|
})
|
|
503
478
|
}) });
|
|
@@ -507,14 +482,14 @@ function Yi({ className: e, ...t }) {
|
|
|
507
482
|
return /* @__PURE__ */ M(U.List, {
|
|
508
483
|
"data-slot": "combobox-list",
|
|
509
484
|
"aria-label": n("ui_options"),
|
|
510
|
-
className:
|
|
485
|
+
className: x("\n no-scrollbar\n max-h-[min(calc(--spacing(72)-(--spacing(9))),calc(var(--available-height)-(--spacing(9))))]\n scroll-py-1 overflow-y-auto overscroll-contain p-1\n data-empty:p-0\n ", e),
|
|
511
486
|
...t
|
|
512
487
|
});
|
|
513
488
|
}
|
|
514
489
|
function Xi({ className: e, children: t, ...n }) {
|
|
515
490
|
return /* @__PURE__ */ N(U.Item, {
|
|
516
491
|
"data-slot": "combobox-item",
|
|
517
|
-
className:
|
|
492
|
+
className: x("\n relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5\n text-sm outline-hidden select-none\n data-highlighted:bg-accent data-highlighted:text-accent-foreground\n not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
518
493
|
...n,
|
|
519
494
|
children: [t, /* @__PURE__ */ M(U.ItemIndicator, {
|
|
520
495
|
render: /* @__PURE__ */ M("span", { className: "\n pointer-events-none absolute right-2 flex size-4 items-center justify-center\n " }),
|
|
@@ -525,14 +500,14 @@ function Xi({ className: e, children: t, ...n }) {
|
|
|
525
500
|
function Zi({ className: e, ...t }) {
|
|
526
501
|
return /* @__PURE__ */ M(U.Group, {
|
|
527
502
|
"data-slot": "combobox-group",
|
|
528
|
-
className:
|
|
503
|
+
className: x(e),
|
|
529
504
|
...t
|
|
530
505
|
});
|
|
531
506
|
}
|
|
532
507
|
function Qi({ className: e, ...t }) {
|
|
533
508
|
return /* @__PURE__ */ M(U.GroupLabel, {
|
|
534
509
|
"data-slot": "combobox-label",
|
|
535
|
-
className:
|
|
510
|
+
className: x("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
536
511
|
...t
|
|
537
512
|
});
|
|
538
513
|
}
|
|
@@ -545,21 +520,21 @@ function $i({ ...e }) {
|
|
|
545
520
|
function ea({ className: e, ...t }) {
|
|
546
521
|
return /* @__PURE__ */ M(U.Empty, {
|
|
547
522
|
"data-slot": "combobox-empty",
|
|
548
|
-
className:
|
|
523
|
+
className: x("\n hidden w-full justify-center py-2 text-center text-sm text-muted-foreground\n group-data-empty/combobox-content:flex\n ", e),
|
|
549
524
|
...t
|
|
550
525
|
});
|
|
551
526
|
}
|
|
552
527
|
function ta({ className: e, ...t }) {
|
|
553
528
|
return /* @__PURE__ */ M(U.Separator, {
|
|
554
529
|
"data-slot": "combobox-separator",
|
|
555
|
-
className:
|
|
530
|
+
className: x("-mx-1 my-1 h-px bg-border", e),
|
|
556
531
|
...t
|
|
557
532
|
});
|
|
558
533
|
}
|
|
559
534
|
function na({ className: e, ...t }) {
|
|
560
535
|
return /* @__PURE__ */ M(U.Chips, {
|
|
561
536
|
"data-slot": "combobox-chips",
|
|
562
|
-
className:
|
|
537
|
+
className: x("\n flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent\n bg-clip-padding px-2.5 py-1 text-sm transition-colors\n focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50\n has-aria-invalid:border-destructive has-aria-invalid:ring-3\n has-aria-invalid:ring-destructive/20\n has-data-[slot=combobox-chip]:px-1\n dark:bg-input/30\n dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40\n ", e),
|
|
563
538
|
...t
|
|
564
539
|
});
|
|
565
540
|
}
|
|
@@ -567,11 +542,11 @@ function ra({ className: e, children: t, showRemove: n = !0, ...i }) {
|
|
|
567
542
|
let a = r();
|
|
568
543
|
return /* @__PURE__ */ N(U.Chip, {
|
|
569
544
|
"data-slot": "combobox-chip",
|
|
570
|
-
className:
|
|
545
|
+
className: x("\n flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm\n bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground\n has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50\n has-data-[slot=combobox-chip-remove]:pr-0\n ", e),
|
|
571
546
|
...i,
|
|
572
547
|
children: [t, n && /* @__PURE__ */ M(U.ChipRemove, {
|
|
573
548
|
"aria-label": a("ui_remove_item"),
|
|
574
|
-
render: /* @__PURE__ */ M(
|
|
549
|
+
render: /* @__PURE__ */ M(S, {
|
|
575
550
|
variant: "ghost",
|
|
576
551
|
size: "icon-xs"
|
|
577
552
|
}),
|
|
@@ -584,32 +559,31 @@ function ra({ className: e, children: t, showRemove: n = !0, ...i }) {
|
|
|
584
559
|
function ia({ className: e, ...t }) {
|
|
585
560
|
return /* @__PURE__ */ M(U.Input, {
|
|
586
561
|
"data-slot": "combobox-chip-input",
|
|
587
|
-
className:
|
|
562
|
+
className: x("min-w-16 flex-1 outline-none", e),
|
|
588
563
|
...t
|
|
589
564
|
});
|
|
590
565
|
}
|
|
591
566
|
function aa() {
|
|
592
567
|
return A.useRef(null);
|
|
593
568
|
}
|
|
594
|
-
|
|
595
|
-
//#region src/ui/command.tsx
|
|
569
|
+
// src/ui/command.tsx
|
|
596
570
|
function oa({ className: e, ...t }) {
|
|
597
571
|
return /* @__PURE__ */ M(W, {
|
|
598
572
|
"data-slot": "command",
|
|
599
|
-
className:
|
|
573
|
+
className: x("\n flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1\n text-popover-foreground\n ", e),
|
|
600
574
|
...t
|
|
601
575
|
});
|
|
602
576
|
}
|
|
603
577
|
function sa({ title: e, description: t, children: n, className: i, showCloseButton: a = !1, ...o }) {
|
|
604
|
-
let
|
|
605
|
-
return /* @__PURE__ */ M(
|
|
578
|
+
let s = r();
|
|
579
|
+
return /* @__PURE__ */ M(oe, {
|
|
606
580
|
...o,
|
|
607
|
-
children: /* @__PURE__ */ N(
|
|
608
|
-
className:
|
|
581
|
+
children: /* @__PURE__ */ N(l, {
|
|
582
|
+
className: x("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", i),
|
|
609
583
|
showCloseButton: a,
|
|
610
|
-
children: [/* @__PURE__ */ N(
|
|
584
|
+
children: [/* @__PURE__ */ N(ue, {
|
|
611
585
|
className: "sr-only",
|
|
612
|
-
children: [/* @__PURE__ */ M(
|
|
586
|
+
children: [/* @__PURE__ */ M(v, { children: e ?? s("ui_command_palette") }), /* @__PURE__ */ M(de, { children: t ?? s("ui_command_palette_description") })]
|
|
613
587
|
}), n]
|
|
614
588
|
})
|
|
615
589
|
});
|
|
@@ -618,48 +592,48 @@ function ca({ className: e, ...t }) {
|
|
|
618
592
|
return /* @__PURE__ */ M("div", {
|
|
619
593
|
"data-slot": "command-input-wrapper",
|
|
620
594
|
className: "p-1 pb-0",
|
|
621
|
-
children: /* @__PURE__ */ N(
|
|
595
|
+
children: /* @__PURE__ */ N(O, {
|
|
622
596
|
className: "\n h-8! rounded-lg! border-input/30 bg-input/30 shadow-none!\n *:data-[slot=input-group-addon]:pl-2!\n ",
|
|
623
597
|
children: [/* @__PURE__ */ M(W.Input, {
|
|
624
598
|
"data-slot": "command-input",
|
|
625
|
-
className:
|
|
599
|
+
className: x("\n w-full text-sm outline-hidden\n disabled:cursor-not-allowed disabled:opacity-50\n ", e),
|
|
626
600
|
...t
|
|
627
|
-
}), /* @__PURE__ */ M(
|
|
601
|
+
}), /* @__PURE__ */ M(k, { children: /* @__PURE__ */ M(jr, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
628
602
|
})
|
|
629
603
|
});
|
|
630
604
|
}
|
|
631
605
|
function la({ className: e, ...t }) {
|
|
632
606
|
return /* @__PURE__ */ M(W.List, {
|
|
633
607
|
"data-slot": "command-list",
|
|
634
|
-
className:
|
|
608
|
+
className: x("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", e),
|
|
635
609
|
...t
|
|
636
610
|
});
|
|
637
611
|
}
|
|
638
612
|
function ua({ className: e, ...t }) {
|
|
639
613
|
return /* @__PURE__ */ M(W.Empty, {
|
|
640
614
|
"data-slot": "command-empty",
|
|
641
|
-
className:
|
|
615
|
+
className: x("py-6 text-center text-sm", e),
|
|
642
616
|
...t
|
|
643
617
|
});
|
|
644
618
|
}
|
|
645
619
|
function da({ className: e, ...t }) {
|
|
646
620
|
return /* @__PURE__ */ M(W.Group, {
|
|
647
621
|
"data-slot": "command-group",
|
|
648
|
-
className:
|
|
622
|
+
className: x("\n overflow-hidden p-1 text-foreground\n **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5\n **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium\n **:[[cmdk-group-heading]]:text-muted-foreground\n ", e),
|
|
649
623
|
...t
|
|
650
624
|
});
|
|
651
625
|
}
|
|
652
626
|
function fa({ className: e, ...t }) {
|
|
653
627
|
return /* @__PURE__ */ M(W.Separator, {
|
|
654
628
|
"data-slot": "command-separator",
|
|
655
|
-
className:
|
|
629
|
+
className: x("-mx-1 h-px bg-border", e),
|
|
656
630
|
...t
|
|
657
631
|
});
|
|
658
632
|
}
|
|
659
633
|
function pa({ className: e, children: t, ...n }) {
|
|
660
634
|
return /* @__PURE__ */ N(W.Item, {
|
|
661
635
|
"data-slot": "command-item",
|
|
662
|
-
className:
|
|
636
|
+
className: x("\n group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5\n text-sm outline-hidden select-none\n in-data-[slot=dialog-content]:rounded-lg!\n data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50\n data-selected:bg-muted data-selected:text-foreground\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n data-selected:*:[svg]:text-foreground\n ", e),
|
|
663
637
|
...n,
|
|
664
638
|
children: [t, /* @__PURE__ */ M(P, { className: "\n ml-auto opacity-0\n group-has-data-[slot=command-shortcut]/command-item:hidden\n group-data-[checked=true]/command-item:opacity-100\n " })]
|
|
665
639
|
});
|
|
@@ -667,12 +641,11 @@ function pa({ className: e, children: t, ...n }) {
|
|
|
667
641
|
function ma({ className: e, ...t }) {
|
|
668
642
|
return /* @__PURE__ */ M("span", {
|
|
669
643
|
"data-slot": "command-shortcut",
|
|
670
|
-
className:
|
|
644
|
+
className: x("\n ml-auto text-xs tracking-widest text-muted-foreground\n group-data-selected/command-item:text-foreground\n ", e),
|
|
671
645
|
...t
|
|
672
646
|
});
|
|
673
647
|
}
|
|
674
|
-
|
|
675
|
-
//#region src/ui/context-menu.tsx
|
|
648
|
+
// src/ui/context-menu.tsx
|
|
676
649
|
function ha({ ...e }) {
|
|
677
650
|
return /* @__PURE__ */ M(G.Root, {
|
|
678
651
|
"data-slot": "context-menu",
|
|
@@ -682,7 +655,7 @@ function ha({ ...e }) {
|
|
|
682
655
|
function ga({ className: e, ...t }) {
|
|
683
656
|
return /* @__PURE__ */ M(G.Trigger, {
|
|
684
657
|
"data-slot": "context-menu-trigger",
|
|
685
|
-
className:
|
|
658
|
+
className: x("select-none", e),
|
|
686
659
|
...t
|
|
687
660
|
});
|
|
688
661
|
}
|
|
@@ -695,7 +668,7 @@ function _a({ className: e, align: t = "start", alignOffset: n = 4, side: r = "r
|
|
|
695
668
|
sideOffset: i,
|
|
696
669
|
children: /* @__PURE__ */ M(G.Popup, {
|
|
697
670
|
"data-slot": "context-menu-content",
|
|
698
|
-
className:
|
|
671
|
+
className: x("\n z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin)\n overflow-x-hidden overflow-y-auto rounded-lg border bg-popover p-1\n text-popover-foreground shadow-lg duration-100 outline-none\n data-[side=bottom]:slide-in-from-top-2\n data-[side=inline-end]:slide-in-from-left-2\n data-[side=inline-start]:slide-in-from-right-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\n ", e),
|
|
699
672
|
...a
|
|
700
673
|
})
|
|
701
674
|
}) });
|
|
@@ -710,7 +683,7 @@ function ya({ className: e, inset: t, ...n }) {
|
|
|
710
683
|
return /* @__PURE__ */ M(G.GroupLabel, {
|
|
711
684
|
"data-slot": "context-menu-label",
|
|
712
685
|
"data-inset": t,
|
|
713
|
-
className:
|
|
686
|
+
className: x("\n px-1.5 py-1 text-xs font-medium text-muted-foreground\n data-inset:pl-7\n ", e),
|
|
714
687
|
...n
|
|
715
688
|
});
|
|
716
689
|
}
|
|
@@ -719,7 +692,7 @@ function ba({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
719
692
|
"data-slot": "context-menu-item",
|
|
720
693
|
"data-inset": t,
|
|
721
694
|
"data-variant": n,
|
|
722
|
-
className:
|
|
695
|
+
className: x("\n group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md\n px-1.5 py-1 text-sm outline-hidden select-none\n focus:bg-accent focus:text-accent-foreground\n data-inset:pl-7\n data-[variant=destructive]:text-destructive\n data-[variant=destructive]:focus:bg-destructive/10\n data-[variant=destructive]:focus:text-destructive\n dark:data-[variant=destructive]:focus:bg-destructive/20\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n focus:*:[svg]:text-accent-foreground\n data-[variant=destructive]:*:[svg]:text-destructive\n ", e),
|
|
723
696
|
...r
|
|
724
697
|
});
|
|
725
698
|
}
|
|
@@ -733,7 +706,7 @@ function Sa({ className: e, inset: t, children: n, ...r }) {
|
|
|
733
706
|
return /* @__PURE__ */ N(G.SubmenuTrigger, {
|
|
734
707
|
"data-slot": "context-menu-sub-trigger",
|
|
735
708
|
"data-inset": t,
|
|
736
|
-
className:
|
|
709
|
+
className: x("\n flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden\n select-none\n focus:bg-accent focus:text-accent-foreground\n data-inset:pl-7\n data-open:bg-accent data-open:text-accent-foreground\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
737
710
|
...r,
|
|
738
711
|
children: [n, /* @__PURE__ */ M(I, { className: "ml-auto" })]
|
|
739
712
|
});
|
|
@@ -750,7 +723,7 @@ function wa({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
750
723
|
return /* @__PURE__ */ N(G.CheckboxItem, {
|
|
751
724
|
"data-slot": "context-menu-checkbox-item",
|
|
752
725
|
"data-inset": r,
|
|
753
|
-
className:
|
|
726
|
+
className: x("\n relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm\n outline-hidden select-none\n focus:bg-accent focus:text-accent-foreground\n data-inset:pl-7\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
754
727
|
checked: n,
|
|
755
728
|
...i,
|
|
756
729
|
children: [/* @__PURE__ */ M("span", {
|
|
@@ -769,7 +742,7 @@ function Ea({ className: e, children: t, inset: n, ...r }) {
|
|
|
769
742
|
return /* @__PURE__ */ N(G.RadioItem, {
|
|
770
743
|
"data-slot": "context-menu-radio-item",
|
|
771
744
|
"data-inset": n,
|
|
772
|
-
className:
|
|
745
|
+
className: x("\n relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm\n outline-hidden select-none\n focus:bg-accent focus:text-accent-foreground\n data-inset:pl-7\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
773
746
|
...r,
|
|
774
747
|
children: [/* @__PURE__ */ M("span", {
|
|
775
748
|
className: "pointer-events-none absolute right-2",
|
|
@@ -780,19 +753,18 @@ function Ea({ className: e, children: t, inset: n, ...r }) {
|
|
|
780
753
|
function Da({ className: e, ...t }) {
|
|
781
754
|
return /* @__PURE__ */ M(G.Separator, {
|
|
782
755
|
"data-slot": "context-menu-separator",
|
|
783
|
-
className:
|
|
756
|
+
className: x("-mx-1 my-1 h-px bg-border", e),
|
|
784
757
|
...t
|
|
785
758
|
});
|
|
786
759
|
}
|
|
787
760
|
function Oa({ className: e, ...t }) {
|
|
788
761
|
return /* @__PURE__ */ M("span", {
|
|
789
762
|
"data-slot": "context-menu-shortcut",
|
|
790
|
-
className:
|
|
763
|
+
className: x("\n ml-auto text-xs tracking-widest text-muted-foreground\n group-focus/context-menu-item:text-accent-foreground\n ", e),
|
|
791
764
|
...t
|
|
792
765
|
});
|
|
793
766
|
}
|
|
794
|
-
|
|
795
|
-
//#region src/ui/data-table.tsx
|
|
767
|
+
// src/ui/data-table.tsx
|
|
796
768
|
var ka = ei({
|
|
797
769
|
columnFilteringFeature: Kr,
|
|
798
770
|
columnVisibilityFeature: qr,
|
|
@@ -815,17 +787,17 @@ function Aa({ columns: e, data: t, empty: n, toolbar: i, ...a }) {
|
|
|
815
787
|
className: "space-y-3",
|
|
816
788
|
children: [typeof i == "function" ? i(s) : i, /* @__PURE__ */ M("div", {
|
|
817
789
|
className: "overflow-hidden rounded-md border",
|
|
818
|
-
children: /* @__PURE__ */ N(
|
|
790
|
+
children: /* @__PURE__ */ N(Te, { children: [/* @__PURE__ */ M(_e, { children: s.getHeaderGroups().map((e) => /* @__PURE__ */ M(w, { children: e.headers.map((e) => /* @__PURE__ */ M(Ae, {
|
|
819
791
|
colSpan: e.colSpan,
|
|
820
792
|
"aria-sort": Fa(e.column.getIsSorted()),
|
|
821
793
|
children: e.isPlaceholder ? null : /* @__PURE__ */ M(s.FlexRender, { header: e })
|
|
822
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */ M(
|
|
794
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ M(Oe, { children: c.length === 0 ? /* @__PURE__ */ M(w, { children: /* @__PURE__ */ M(C, {
|
|
823
795
|
colSpan: l,
|
|
824
796
|
className: "h-24 text-center",
|
|
825
797
|
children: n === void 0 ? o("ui_data_table_empty") : n
|
|
826
|
-
}) }) : c.map((e) => /* @__PURE__ */ M(
|
|
798
|
+
}) }) : c.map((e) => /* @__PURE__ */ M(w, {
|
|
827
799
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
828
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */ M(
|
|
800
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ M(C, { children: /* @__PURE__ */ M(s.FlexRender, { cell: e }) }, e.id))
|
|
829
801
|
}, e.id)) })] })
|
|
830
802
|
})]
|
|
831
803
|
});
|
|
@@ -833,7 +805,7 @@ function Aa({ columns: e, data: t, empty: n, toolbar: i, ...a }) {
|
|
|
833
805
|
function ja({ column: e, children: t }) {
|
|
834
806
|
if (!e.getCanSort()) return t;
|
|
835
807
|
let n = e.getIsSorted();
|
|
836
|
-
return /* @__PURE__ */ N(
|
|
808
|
+
return /* @__PURE__ */ N(S, {
|
|
837
809
|
type: "button",
|
|
838
810
|
variant: "ghost",
|
|
839
811
|
size: "sm",
|
|
@@ -846,16 +818,16 @@ function ja({ column: e, children: t }) {
|
|
|
846
818
|
}
|
|
847
819
|
function Ma({ table: e }) {
|
|
848
820
|
let t = r(), n = e.getAllLeafColumns().filter((e) => e.getCanHide());
|
|
849
|
-
return /* @__PURE__ */ N(
|
|
850
|
-
render: /* @__PURE__ */ M(
|
|
821
|
+
return /* @__PURE__ */ N(tt, { children: [/* @__PURE__ */ N(y, {
|
|
822
|
+
render: /* @__PURE__ */ M(S, {
|
|
851
823
|
type: "button",
|
|
852
824
|
variant: "outline",
|
|
853
825
|
size: "sm"
|
|
854
826
|
}),
|
|
855
827
|
children: [/* @__PURE__ */ M(Or, {}), t("ui_data_table_columns")]
|
|
856
|
-
}), /* @__PURE__ */ M(
|
|
828
|
+
}), /* @__PURE__ */ M(be, {
|
|
857
829
|
align: "end",
|
|
858
|
-
children: /* @__PURE__ */ N(
|
|
830
|
+
children: /* @__PURE__ */ N(T, { children: [/* @__PURE__ */ M(u, { children: t("ui_data_table_columns") }), n.map((e) => /* @__PURE__ */ M(rt, {
|
|
859
831
|
checked: e.getIsVisible(),
|
|
860
832
|
onCheckedChange: (t) => {
|
|
861
833
|
e.toggleVisibility(t);
|
|
@@ -872,16 +844,16 @@ function Na({ children: e }) {
|
|
|
872
844
|
});
|
|
873
845
|
}
|
|
874
846
|
function Pa({ table: e }) {
|
|
875
|
-
let t = r();
|
|
847
|
+
let t = r(), n = e.state.pagination.pageIndex + 1, i = e.getPageCount();
|
|
876
848
|
return /* @__PURE__ */ N("div", {
|
|
877
849
|
"data-slot": "data-table-pagination",
|
|
878
850
|
className: "flex items-center justify-end gap-2",
|
|
879
851
|
children: [
|
|
880
852
|
/* @__PURE__ */ M("span", {
|
|
881
853
|
className: "text-sm text-muted-foreground",
|
|
882
|
-
children: Ia(
|
|
854
|
+
children: Ia(n, i)
|
|
883
855
|
}),
|
|
884
|
-
/* @__PURE__ */ M(
|
|
856
|
+
/* @__PURE__ */ M(S, {
|
|
885
857
|
type: "button",
|
|
886
858
|
variant: "outline",
|
|
887
859
|
size: "sm",
|
|
@@ -891,7 +863,7 @@ function Pa({ table: e }) {
|
|
|
891
863
|
},
|
|
892
864
|
children: t("action_previous")
|
|
893
865
|
}),
|
|
894
|
-
/* @__PURE__ */ M(
|
|
866
|
+
/* @__PURE__ */ M(S, {
|
|
895
867
|
type: "button",
|
|
896
868
|
variant: "outline",
|
|
897
869
|
size: "sm",
|
|
@@ -914,14 +886,12 @@ function Ia(e, n) {
|
|
|
914
886
|
pages: Math.max(n, 1)
|
|
915
887
|
});
|
|
916
888
|
}
|
|
917
|
-
|
|
918
|
-
//#region src/ui/direction.tsx
|
|
889
|
+
// src/ui/direction.tsx
|
|
919
890
|
var La = ni;
|
|
920
891
|
function Ra() {
|
|
921
892
|
return ri();
|
|
922
893
|
}
|
|
923
|
-
|
|
924
|
-
//#region src/ui/gauge.tsx
|
|
894
|
+
// src/ui/gauge.tsx
|
|
925
895
|
function za(e) {
|
|
926
896
|
if (!(e > 0) || !Number.isFinite(e)) return 1;
|
|
927
897
|
let t = 10 ** Math.floor(Math.log10(e));
|
|
@@ -945,21 +915,21 @@ function Ha(e, t) {
|
|
|
945
915
|
y: 100 - t * Math.sin(n)
|
|
946
916
|
};
|
|
947
917
|
}
|
|
948
|
-
function Ua({ value: e, max: t, marker: n, valueText: r, unitText: i, minLabel: a = "0", maxLabel: o, tone:
|
|
949
|
-
let
|
|
950
|
-
inner: Ha(
|
|
951
|
-
outer: Ha(
|
|
918
|
+
function Ua({ value: e, max: t, marker: n, valueText: r, unitText: i, minLabel: a = "0", maxLabel: o, tone: s = "default", ariaLabel: c, className: l }) {
|
|
919
|
+
let u = yr(), d = t > 0 && Number.isFinite(t) ? t : 1, f = (e) => Math.min(1, Math.max(0, e / d)), p = n == null || !Number.isFinite(n) ? null : {
|
|
920
|
+
inner: Ha(f(n), 66),
|
|
921
|
+
outer: Ha(f(n), 94)
|
|
952
922
|
};
|
|
953
923
|
return /* @__PURE__ */ N("svg", {
|
|
954
924
|
viewBox: "0 0 200 122",
|
|
955
925
|
role: "img",
|
|
956
|
-
"aria-labelledby":
|
|
957
|
-
className:
|
|
926
|
+
"aria-labelledby": u,
|
|
927
|
+
className: x("w-full max-w-44", l),
|
|
958
928
|
"data-slot": "gauge",
|
|
959
929
|
children: [
|
|
960
930
|
/* @__PURE__ */ M("title", {
|
|
961
|
-
id:
|
|
962
|
-
children:
|
|
931
|
+
id: u,
|
|
932
|
+
children: c
|
|
963
933
|
}),
|
|
964
934
|
/* @__PURE__ */ M("path", {
|
|
965
935
|
d: Va,
|
|
@@ -975,15 +945,15 @@ function Ua({ value: e, max: t, marker: n, valueText: r, unitText: i, minLabel:
|
|
|
975
945
|
fill: "none",
|
|
976
946
|
strokeWidth: 14,
|
|
977
947
|
strokeLinecap: "round",
|
|
978
|
-
strokeDasharray: `${String(Math.max(.5,
|
|
979
|
-
className:
|
|
948
|
+
strokeDasharray: `${String(Math.max(.5, f(e) * 100))} 100`,
|
|
949
|
+
className: x("transition-[stroke-dasharray] duration-700", Ba[s]),
|
|
980
950
|
"data-slot": "gauge-value"
|
|
981
951
|
}),
|
|
982
|
-
|
|
983
|
-
x1:
|
|
984
|
-
y1:
|
|
985
|
-
x2:
|
|
986
|
-
y2:
|
|
952
|
+
p == null ? null : /* @__PURE__ */ M("line", {
|
|
953
|
+
x1: p.inner.x,
|
|
954
|
+
y1: p.inner.y,
|
|
955
|
+
x2: p.outer.x,
|
|
956
|
+
y2: p.outer.y,
|
|
987
957
|
strokeWidth: 3,
|
|
988
958
|
strokeLinecap: "round",
|
|
989
959
|
className: "stroke-foreground/70",
|
|
@@ -1001,13 +971,13 @@ function Ua({ value: e, max: t, marker: n, valueText: r, unitText: i, minLabel:
|
|
|
1001
971
|
y: "120",
|
|
1002
972
|
textAnchor: "middle",
|
|
1003
973
|
className: "fill-muted-foreground text-[12px] tabular-nums",
|
|
1004
|
-
children: o ?? String(
|
|
974
|
+
children: o ?? String(d)
|
|
1005
975
|
}),
|
|
1006
976
|
/* @__PURE__ */ M("text", {
|
|
1007
977
|
x: "100",
|
|
1008
978
|
y: "86",
|
|
1009
979
|
textAnchor: "middle",
|
|
1010
|
-
className:
|
|
980
|
+
className: x("text-[30px] font-semibold tabular-nums", s === "muted" ? "fill-muted-foreground" : "fill-foreground"),
|
|
1011
981
|
children: r
|
|
1012
982
|
}),
|
|
1013
983
|
i == null ? null : /* @__PURE__ */ M("text", {
|
|
@@ -1020,8 +990,7 @@ function Ua({ value: e, max: t, marker: n, valueText: r, unitText: i, minLabel:
|
|
|
1020
990
|
]
|
|
1021
991
|
});
|
|
1022
992
|
}
|
|
1023
|
-
|
|
1024
|
-
//#region src/ui/hover-card.tsx
|
|
993
|
+
// src/ui/hover-card.tsx
|
|
1025
994
|
function Wa({ ...e }) {
|
|
1026
995
|
return /* @__PURE__ */ M(K.Root, {
|
|
1027
996
|
"data-slot": "hover-card",
|
|
@@ -1045,14 +1014,13 @@ function Ka({ className: e, side: t = "bottom", sideOffset: n = 4, align: r = "c
|
|
|
1045
1014
|
className: "isolate z-50",
|
|
1046
1015
|
children: /* @__PURE__ */ M(K.Popup, {
|
|
1047
1016
|
"data-slot": "hover-card-content",
|
|
1048
|
-
className:
|
|
1017
|
+
className: x("\n z-50 w-64 origin-(--transform-origin) rounded-lg border bg-popover p-2.5 text-sm\n text-popover-foreground shadow-lg outline-hidden duration-100\n data-[side=bottom]:slide-in-from-top-2\n data-[side=inline-end]:slide-in-from-left-2\n data-[side=inline-start]:slide-in-from-right-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\n ", e),
|
|
1049
1018
|
...a
|
|
1050
1019
|
})
|
|
1051
1020
|
})
|
|
1052
1021
|
});
|
|
1053
1022
|
}
|
|
1054
|
-
|
|
1055
|
-
//#region src/ui/marker.tsx
|
|
1023
|
+
// src/ui/marker.tsx
|
|
1056
1024
|
var qa = L("\n group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-sm\n text-muted-foreground\n [&_svg:not([class*='size-'])]:size-4\n [a]:underline [a]:underline-offset-3\n [a]:hover:text-foreground\n ", { variants: { variant: {
|
|
1057
1025
|
default: "",
|
|
1058
1026
|
separator: "\n before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border\n after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border\n ",
|
|
@@ -1061,7 +1029,7 @@ var qa = L("\n group/marker relative flex min-h-4 w-full items-center gap-2 t
|
|
|
1061
1029
|
function Ja({ className: e, variant: t = "default", render: n, ...r }) {
|
|
1062
1030
|
return B({
|
|
1063
1031
|
defaultTagName: "div",
|
|
1064
|
-
props: z({ className:
|
|
1032
|
+
props: z({ className: x(qa({
|
|
1065
1033
|
variant: t,
|
|
1066
1034
|
className: e
|
|
1067
1035
|
})) }, r),
|
|
@@ -1076,61 +1044,60 @@ function Ya({ className: e, ...t }) {
|
|
|
1076
1044
|
return /* @__PURE__ */ M("span", {
|
|
1077
1045
|
"data-slot": "marker-icon",
|
|
1078
1046
|
"aria-hidden": "true",
|
|
1079
|
-
className:
|
|
1047
|
+
className: x("\n size-4 shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
1080
1048
|
...t
|
|
1081
1049
|
});
|
|
1082
1050
|
}
|
|
1083
1051
|
function Xa({ className: e, ...t }) {
|
|
1084
1052
|
return /* @__PURE__ */ M("span", {
|
|
1085
1053
|
"data-slot": "marker-content",
|
|
1086
|
-
className:
|
|
1054
|
+
className: x("\n min-w-0 wrap-break-word\n group-data-[variant=separator]/marker:flex-none\n group-data-[variant=separator]/marker:text-center\n *:[a]:underline *:[a]:underline-offset-3\n *:[a]:hover:text-foreground\n ", e),
|
|
1087
1055
|
...t
|
|
1088
1056
|
});
|
|
1089
1057
|
}
|
|
1090
|
-
|
|
1091
|
-
//#region src/ui/menubar.tsx
|
|
1058
|
+
// src/ui/menubar.tsx
|
|
1092
1059
|
function Za({ className: e, ...t }) {
|
|
1093
1060
|
return /* @__PURE__ */ M(ii, {
|
|
1094
1061
|
"data-slot": "menubar",
|
|
1095
|
-
className:
|
|
1062
|
+
className: x("flex h-8 items-center gap-0.5 rounded-lg border p-[3px]", e),
|
|
1096
1063
|
...t
|
|
1097
1064
|
});
|
|
1098
1065
|
}
|
|
1099
1066
|
function Qa({ ...e }) {
|
|
1100
|
-
return /* @__PURE__ */ M(
|
|
1067
|
+
return /* @__PURE__ */ M(tt, {
|
|
1101
1068
|
"data-slot": "menubar-menu",
|
|
1102
1069
|
...e
|
|
1103
1070
|
});
|
|
1104
1071
|
}
|
|
1105
1072
|
function $a({ ...e }) {
|
|
1106
|
-
return /* @__PURE__ */ M(
|
|
1073
|
+
return /* @__PURE__ */ M(T, {
|
|
1107
1074
|
"data-slot": "menubar-group",
|
|
1108
1075
|
...e
|
|
1109
1076
|
});
|
|
1110
1077
|
}
|
|
1111
1078
|
function eo({ className: e, ...t }) {
|
|
1112
|
-
return /* @__PURE__ */ M(
|
|
1079
|
+
return /* @__PURE__ */ M(y, {
|
|
1113
1080
|
"data-slot": "menubar-trigger",
|
|
1114
|
-
className:
|
|
1081
|
+
className: x("\n flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden\n select-none\n hover:bg-muted\n aria-expanded:bg-muted\n ", e),
|
|
1115
1082
|
...t
|
|
1116
1083
|
});
|
|
1117
1084
|
}
|
|
1118
1085
|
function to({ className: e, align: t = "start", alignOffset: n = -4, sideOffset: r = 8, ...i }) {
|
|
1119
|
-
return /* @__PURE__ */ M(
|
|
1086
|
+
return /* @__PURE__ */ M(be, {
|
|
1120
1087
|
"data-slot": "menubar-content",
|
|
1121
1088
|
align: t,
|
|
1122
1089
|
alignOffset: n,
|
|
1123
1090
|
sideOffset: r,
|
|
1124
|
-
className:
|
|
1091
|
+
className: x("\n min-w-36 rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg duration-100\n data-[side=bottom]:slide-in-from-top-2\n data-[side=inline-end]:slide-in-from-left-2\n data-[side=inline-start]:slide-in-from-right-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n ", e),
|
|
1125
1092
|
...i
|
|
1126
1093
|
});
|
|
1127
1094
|
}
|
|
1128
1095
|
function no({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
1129
|
-
return /* @__PURE__ */ M(
|
|
1096
|
+
return /* @__PURE__ */ M(se, {
|
|
1130
1097
|
"data-slot": "menubar-item",
|
|
1131
1098
|
"data-inset": t,
|
|
1132
1099
|
"data-variant": n,
|
|
1133
|
-
className:
|
|
1100
|
+
className: x("\n group/menubar-item gap-1.5 rounded-md px-1.5 py-1 text-sm\n focus:bg-accent focus:text-accent-foreground\n not-data-[variant=destructive]:focus:**:text-accent-foreground\n data-inset:pl-7\n data-[variant=destructive]:text-destructive\n data-[variant=destructive]:focus:bg-destructive/10\n data-[variant=destructive]:focus:text-destructive\n dark:data-[variant=destructive]:focus:bg-destructive/20\n data-disabled:opacity-50\n [&_svg:not([class*='size-'])]:size-4\n data-[variant=destructive]:*:[svg]:text-destructive!\n ", e),
|
|
1134
1101
|
...r
|
|
1135
1102
|
});
|
|
1136
1103
|
}
|
|
@@ -1138,7 +1105,7 @@ function ro({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
1138
1105
|
return /* @__PURE__ */ N(R.CheckboxItem, {
|
|
1139
1106
|
"data-slot": "menubar-checkbox-item",
|
|
1140
1107
|
"data-inset": r,
|
|
1141
|
-
className:
|
|
1108
|
+
className: x("\n relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm\n outline-hidden select-none\n focus:bg-accent focus:text-accent-foreground\n focus:**:text-accent-foreground\n data-inset:pl-7\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n ", e),
|
|
1142
1109
|
checked: n,
|
|
1143
1110
|
...i,
|
|
1144
1111
|
children: [/* @__PURE__ */ M("span", {
|
|
@@ -1148,7 +1115,7 @@ function ro({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
1148
1115
|
});
|
|
1149
1116
|
}
|
|
1150
1117
|
function io({ ...e }) {
|
|
1151
|
-
return /* @__PURE__ */ M(
|
|
1118
|
+
return /* @__PURE__ */ M(ce, {
|
|
1152
1119
|
"data-slot": "menubar-radio-group",
|
|
1153
1120
|
...e
|
|
1154
1121
|
});
|
|
@@ -1157,7 +1124,7 @@ function ao({ className: e, children: t, inset: n, ...r }) {
|
|
|
1157
1124
|
return /* @__PURE__ */ N(R.RadioItem, {
|
|
1158
1125
|
"data-slot": "menubar-radio-item",
|
|
1159
1126
|
"data-inset": n,
|
|
1160
|
-
className:
|
|
1127
|
+
className: x("\n relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm\n outline-hidden select-none\n focus:bg-accent focus:text-accent-foreground\n focus:**:text-accent-foreground\n data-inset:pl-7\n data-disabled:pointer-events-none data-disabled:opacity-50\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
1161
1128
|
...r,
|
|
1162
1129
|
children: [/* @__PURE__ */ M("span", {
|
|
1163
1130
|
className: "\n pointer-events-none absolute left-1.5 flex size-4 items-center justify-center\n [&_svg:not([class*='size-'])]:size-4\n ",
|
|
@@ -1166,54 +1133,53 @@ function ao({ className: e, children: t, inset: n, ...r }) {
|
|
|
1166
1133
|
});
|
|
1167
1134
|
}
|
|
1168
1135
|
function oo({ className: e, inset: t, ...n }) {
|
|
1169
|
-
return /* @__PURE__ */ M(
|
|
1136
|
+
return /* @__PURE__ */ M(u, {
|
|
1170
1137
|
"data-slot": "menubar-label",
|
|
1171
1138
|
"data-inset": t,
|
|
1172
|
-
className:
|
|
1139
|
+
className: x("\n px-1.5 py-1 text-sm font-medium\n data-inset:pl-7\n ", e),
|
|
1173
1140
|
...n
|
|
1174
1141
|
});
|
|
1175
1142
|
}
|
|
1176
1143
|
function so({ className: e, ...t }) {
|
|
1177
|
-
return /* @__PURE__ */ M(
|
|
1144
|
+
return /* @__PURE__ */ M(d, {
|
|
1178
1145
|
"data-slot": "menubar-separator",
|
|
1179
|
-
className:
|
|
1146
|
+
className: x("-mx-1 my-1 h-px bg-border", e),
|
|
1180
1147
|
...t
|
|
1181
1148
|
});
|
|
1182
1149
|
}
|
|
1183
1150
|
function co({ className: e, ...t }) {
|
|
1184
|
-
return /* @__PURE__ */ M(
|
|
1151
|
+
return /* @__PURE__ */ M(re, {
|
|
1185
1152
|
"data-slot": "menubar-shortcut",
|
|
1186
|
-
className:
|
|
1153
|
+
className: x("\n ml-auto text-xs tracking-widest text-muted-foreground\n group-focus/menubar-item:text-accent-foreground\n ", e),
|
|
1187
1154
|
...t
|
|
1188
1155
|
});
|
|
1189
1156
|
}
|
|
1190
1157
|
function lo({ ...e }) {
|
|
1191
|
-
return /* @__PURE__ */ M(
|
|
1158
|
+
return /* @__PURE__ */ M(Ie, {
|
|
1192
1159
|
"data-slot": "menubar-sub",
|
|
1193
1160
|
...e
|
|
1194
1161
|
});
|
|
1195
1162
|
}
|
|
1196
1163
|
function uo({ className: e, inset: t, ...n }) {
|
|
1197
|
-
return /* @__PURE__ */ M(
|
|
1164
|
+
return /* @__PURE__ */ M(Fe, {
|
|
1198
1165
|
"data-slot": "menubar-sub-trigger",
|
|
1199
1166
|
"data-inset": t,
|
|
1200
|
-
className:
|
|
1167
|
+
className: x("\n gap-1.5 rounded-md px-1.5 py-1 text-sm\n focus:bg-accent focus:text-accent-foreground\n data-inset:pl-7\n data-open:bg-accent data-open:text-accent-foreground\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
1201
1168
|
...n
|
|
1202
1169
|
});
|
|
1203
1170
|
}
|
|
1204
1171
|
function fo({ className: e, ...t }) {
|
|
1205
|
-
return /* @__PURE__ */ M(
|
|
1172
|
+
return /* @__PURE__ */ M(c, {
|
|
1206
1173
|
"data-slot": "menubar-sub-content",
|
|
1207
|
-
className:
|
|
1174
|
+
className: x("\n min-w-32 rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg duration-100\n data-[side=bottom]:slide-in-from-top-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\n ", e),
|
|
1208
1175
|
...t
|
|
1209
1176
|
});
|
|
1210
1177
|
}
|
|
1211
|
-
|
|
1212
|
-
//#region src/ui/message.tsx
|
|
1178
|
+
// src/ui/message.tsx
|
|
1213
1179
|
function po({ className: e, ...t }) {
|
|
1214
1180
|
return /* @__PURE__ */ M("div", {
|
|
1215
1181
|
"data-slot": "message-group",
|
|
1216
|
-
className:
|
|
1182
|
+
className: x("flex min-w-0 flex-col gap-2", e),
|
|
1217
1183
|
...t
|
|
1218
1184
|
});
|
|
1219
1185
|
}
|
|
@@ -1221,59 +1187,58 @@ function mo({ className: e, align: t = "start", ...n }) {
|
|
|
1221
1187
|
return /* @__PURE__ */ M("div", {
|
|
1222
1188
|
"data-slot": "message",
|
|
1223
1189
|
"data-align": t,
|
|
1224
|
-
className:
|
|
1190
|
+
className: x("\n group/message relative flex w-full min-w-0 gap-2 text-sm\n data-[align=end]:flex-row-reverse\n ", e),
|
|
1225
1191
|
...n
|
|
1226
1192
|
});
|
|
1227
1193
|
}
|
|
1228
1194
|
function ho({ className: e, ...t }) {
|
|
1229
1195
|
return /* @__PURE__ */ M("div", {
|
|
1230
1196
|
"data-slot": "message-avatar",
|
|
1231
|
-
className:
|
|
1197
|
+
className: x("\n flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden\n rounded-full bg-muted\n group-has-data-[slot=message-footer]/message:-translate-y-8\n ", e),
|
|
1232
1198
|
...t
|
|
1233
1199
|
});
|
|
1234
1200
|
}
|
|
1235
1201
|
function go({ className: e, ...t }) {
|
|
1236
1202
|
return /* @__PURE__ */ M("div", {
|
|
1237
1203
|
"data-slot": "message-content",
|
|
1238
|
-
className:
|
|
1204
|
+
className: x("\n flex w-full min-w-0 flex-col gap-2.5 wrap-break-word\n group-data-[align=end]/message:*:data-slot:self-end\n ", e),
|
|
1239
1205
|
...t
|
|
1240
1206
|
});
|
|
1241
1207
|
}
|
|
1242
1208
|
function _o({ className: e, ...t }) {
|
|
1243
1209
|
return /* @__PURE__ */ M("div", {
|
|
1244
1210
|
"data-slot": "message-header",
|
|
1245
|
-
className:
|
|
1211
|
+
className: x("\n flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground\n group-has-data-[variant=ghost]/message:px-0\n ", e),
|
|
1246
1212
|
...t
|
|
1247
1213
|
});
|
|
1248
1214
|
}
|
|
1249
1215
|
function vo({ className: e, ...t }) {
|
|
1250
1216
|
return /* @__PURE__ */ M("div", {
|
|
1251
1217
|
"data-slot": "message-footer",
|
|
1252
|
-
className:
|
|
1218
|
+
className: x("\n flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground\n group-has-data-[variant=ghost]/message:px-0\n group-data-[align=end]/message:justify-end\n ", e),
|
|
1253
1219
|
...t
|
|
1254
1220
|
});
|
|
1255
1221
|
}
|
|
1256
|
-
|
|
1257
|
-
//#region src/ui/message-scroller.tsx
|
|
1222
|
+
// src/ui/message-scroller.tsx
|
|
1258
1223
|
var yo = q.Provider, bo = ai, xo = oi, So = si;
|
|
1259
1224
|
function Co({ className: e, ...t }) {
|
|
1260
1225
|
return /* @__PURE__ */ M(q.Root, {
|
|
1261
1226
|
"data-slot": "message-scroller",
|
|
1262
|
-
className:
|
|
1227
|
+
className: x("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", e),
|
|
1263
1228
|
...t
|
|
1264
1229
|
});
|
|
1265
1230
|
}
|
|
1266
1231
|
function wo({ className: e, ...t }) {
|
|
1267
1232
|
return /* @__PURE__ */ M(q.Viewport, {
|
|
1268
1233
|
"data-slot": "message-scroller-viewport",
|
|
1269
|
-
className:
|
|
1234
|
+
className: x("\n size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable\n overflow-y-auto overscroll-contain contain-content\n data-autoscrolling:scrollbar-thumb-transparent\n data-autoscrolling:scrollbar-track-transparent\n data-pending-scroll:invisible\n ", e),
|
|
1270
1235
|
...t
|
|
1271
1236
|
});
|
|
1272
1237
|
}
|
|
1273
1238
|
function To({ className: e, ...t }) {
|
|
1274
1239
|
return /* @__PURE__ */ M(q.Content, {
|
|
1275
1240
|
"data-slot": "message-scroller-content",
|
|
1276
|
-
className:
|
|
1241
|
+
className: x("flex h-max min-h-full flex-col gap-6", e),
|
|
1277
1242
|
...t
|
|
1278
1243
|
});
|
|
1279
1244
|
}
|
|
@@ -1281,36 +1246,35 @@ function Eo({ className: e, scrollAnchor: t = !1, ...n }) {
|
|
|
1281
1246
|
return /* @__PURE__ */ M(q.Item, {
|
|
1282
1247
|
"data-slot": "message-scroller-item",
|
|
1283
1248
|
scrollAnchor: t,
|
|
1284
|
-
className:
|
|
1249
|
+
className: x("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", e),
|
|
1285
1250
|
...n
|
|
1286
1251
|
});
|
|
1287
1252
|
}
|
|
1288
|
-
function Do({ direction: e = "end", className: t, children: n, render: i, variant: a = "secondary", size: o = "icon-sm", ...
|
|
1289
|
-
let
|
|
1253
|
+
function Do({ direction: e = "end", className: t, children: n, render: i, variant: a = "secondary", size: o = "icon-sm", ...s }) {
|
|
1254
|
+
let c = r();
|
|
1290
1255
|
return /* @__PURE__ */ M(q.Button, {
|
|
1291
1256
|
"data-slot": "message-scroller-button",
|
|
1292
1257
|
"data-direction": e,
|
|
1293
1258
|
"data-variant": a,
|
|
1294
1259
|
"data-size": o,
|
|
1295
1260
|
direction: e,
|
|
1296
|
-
className:
|
|
1297
|
-
render: i ?? /* @__PURE__ */ M(
|
|
1261
|
+
className: x("\n absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground\n transition-[translate,scale,opacity] duration-200\n hover:bg-muted hover:text-foreground\n data-[active=false]:pointer-events-none data-[active=false]:scale-95\n data-[active=false]:opacity-0 data-[active=false]:duration-400\n data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)]\n data-[active=true]:translate-y-0 data-[active=true]:scale-100\n data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)]\n data-[direction=end]:bottom-4\n data-[direction=end]:data-[active=false]:translate-y-full\n data-[direction=start]:top-4\n data-[direction=start]:data-[active=false]:-translate-y-full\n rtl:translate-x-1/2\n data-[direction=start]:[&_svg]:rotate-180\n ", t),
|
|
1262
|
+
render: i ?? /* @__PURE__ */ M(S, {
|
|
1298
1263
|
variant: a,
|
|
1299
1264
|
size: o
|
|
1300
1265
|
}),
|
|
1301
|
-
...
|
|
1266
|
+
...s,
|
|
1302
1267
|
children: n ?? /* @__PURE__ */ N(Sr, { children: [/* @__PURE__ */ M(Cr, {}), /* @__PURE__ */ M("span", {
|
|
1303
1268
|
className: "sr-only",
|
|
1304
|
-
children:
|
|
1269
|
+
children: c(e === "end" ? "ui_scroll_to_end" : "ui_scroll_to_start")
|
|
1305
1270
|
})] })
|
|
1306
1271
|
});
|
|
1307
1272
|
}
|
|
1308
|
-
|
|
1309
|
-
//#region src/ui/navigation-menu.tsx
|
|
1273
|
+
// src/ui/navigation-menu.tsx
|
|
1310
1274
|
function Oo({ align: e = "start", className: t, children: n, ...r }) {
|
|
1311
1275
|
return /* @__PURE__ */ N(J.Root, {
|
|
1312
1276
|
"data-slot": "navigation-menu",
|
|
1313
|
-
className:
|
|
1277
|
+
className: x("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
|
|
1314
1278
|
...r,
|
|
1315
1279
|
children: [n, /* @__PURE__ */ M(Po, { align: e })]
|
|
1316
1280
|
});
|
|
@@ -1318,14 +1282,14 @@ function Oo({ align: e = "start", className: t, children: n, ...r }) {
|
|
|
1318
1282
|
function ko({ className: e, ...t }) {
|
|
1319
1283
|
return /* @__PURE__ */ M(J.List, {
|
|
1320
1284
|
"data-slot": "navigation-menu-list",
|
|
1321
|
-
className:
|
|
1285
|
+
className: x("group flex flex-1 list-none items-center justify-center gap-0", e),
|
|
1322
1286
|
...t
|
|
1323
1287
|
});
|
|
1324
1288
|
}
|
|
1325
1289
|
function Ao({ className: e, ...t }) {
|
|
1326
1290
|
return /* @__PURE__ */ M(J.Item, {
|
|
1327
1291
|
"data-slot": "navigation-menu-item",
|
|
1328
|
-
className:
|
|
1292
|
+
className: x("relative", e),
|
|
1329
1293
|
...t
|
|
1330
1294
|
});
|
|
1331
1295
|
}
|
|
@@ -1333,7 +1297,7 @@ var jo = L("\n group/navigation-menu-trigger inline-flex h-9 w-max items-cent
|
|
|
1333
1297
|
function Mo({ className: e, children: t, ...n }) {
|
|
1334
1298
|
return /* @__PURE__ */ N(J.Trigger, {
|
|
1335
1299
|
"data-slot": "navigation-menu-trigger",
|
|
1336
|
-
className:
|
|
1300
|
+
className: x(jo(), "group", e),
|
|
1337
1301
|
...n,
|
|
1338
1302
|
children: [
|
|
1339
1303
|
t,
|
|
@@ -1348,7 +1312,7 @@ function Mo({ className: e, children: t, ...n }) {
|
|
|
1348
1312
|
function No({ className: e, ...t }) {
|
|
1349
1313
|
return /* @__PURE__ */ M(J.Content, {
|
|
1350
1314
|
"data-slot": "navigation-menu-content",
|
|
1351
|
-
className:
|
|
1315
|
+
className: x("\n h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s]\n ease-[cubic-bezier(0.22,1,0.36,1)]\n group-data-[viewport=false]/navigation-menu:rounded-lg\n group-data-[viewport=false]/navigation-menu:border\n group-data-[viewport=false]/navigation-menu:bg-popover\n group-data-[viewport=false]/navigation-menu:text-popover-foreground\n group-data-[viewport=false]/navigation-menu:shadow-sm\n group-data-[viewport=false]/navigation-menu:duration-300\n data-ending-style:opacity-0\n data-starting-style:opacity-0\n data-[motion=from-end]:slide-in-from-right-52\n data-[motion=from-start]:slide-in-from-left-52\n data-[motion=to-end]:slide-out-to-right-52\n data-[motion=to-start]:slide-out-to-left-52\n data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in\n data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out\n **:data-[slot=navigation-menu-link]:focus:ring-0\n **:data-[slot=navigation-menu-link]:focus:outline-none\n group-data-[viewport=false]/navigation-menu:data-open:animate-in\n group-data-[viewport=false]/navigation-menu:data-open:fade-in-0\n group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95\n group-data-[viewport=false]/navigation-menu:data-closed:animate-out\n group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0\n group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95\n ", e),
|
|
1352
1316
|
...t
|
|
1353
1317
|
});
|
|
1354
1318
|
}
|
|
@@ -1358,7 +1322,7 @@ function Po({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "s
|
|
|
1358
1322
|
sideOffset: n,
|
|
1359
1323
|
align: r,
|
|
1360
1324
|
alignOffset: i,
|
|
1361
|
-
className:
|
|
1325
|
+
className: x("\n isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width)\n transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]\n data-instant:transition-none\n data-[side=bottom]:before:inset-x-0 data-[side=bottom]:before:top-[-10px]\n ", e),
|
|
1362
1326
|
...a,
|
|
1363
1327
|
children: /* @__PURE__ */ M(J.Popup, {
|
|
1364
1328
|
className: "\n relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg\n border bg-popover text-popover-foreground shadow-lg\n transition-[opacity,transform,width,height,scale,translate] duration-[0.35s]\n ease-[cubic-bezier(0.22,1,0.36,1)] outline-none\n data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150\n data-starting-style:scale-90 data-starting-style:opacity-0\n ",
|
|
@@ -1369,33 +1333,33 @@ function Po({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "s
|
|
|
1369
1333
|
function Fo({ className: e, ...t }) {
|
|
1370
1334
|
return /* @__PURE__ */ M(J.Link, {
|
|
1371
1335
|
"data-slot": "navigation-menu-link",
|
|
1372
|
-
className:
|
|
1336
|
+
className: x("\n flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none\n hover:bg-muted\n focus:bg-muted\n focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1\n in-data-[slot=navigation-menu-content]:rounded-md\n data-active:bg-muted/50\n data-active:hover:bg-muted\n data-active:focus:bg-muted\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
1373
1337
|
...t
|
|
1374
1338
|
});
|
|
1375
1339
|
}
|
|
1376
1340
|
function Io({ className: e, ...t }) {
|
|
1377
1341
|
return /* @__PURE__ */ M(J.Icon, {
|
|
1378
1342
|
"data-slot": "navigation-menu-indicator",
|
|
1379
|
-
className:
|
|
1343
|
+
className: x("\n top-full z-1 flex h-1.5 items-end justify-center overflow-hidden\n data-[state=hidden]:animate-out data-[state=hidden]:fade-out\n data-[state=visible]:animate-in data-[state=visible]:fade-in\n ", e),
|
|
1380
1344
|
...t,
|
|
1381
1345
|
children: /* @__PURE__ */ M("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1382
1346
|
});
|
|
1383
1347
|
}
|
|
1384
|
-
|
|
1385
|
-
//#region src/ui/pagination.tsx
|
|
1348
|
+
// src/ui/pagination.tsx
|
|
1386
1349
|
function Lo({ className: e, ...t }) {
|
|
1350
|
+
let n = r();
|
|
1387
1351
|
return /* @__PURE__ */ M("nav", {
|
|
1388
1352
|
role: "navigation",
|
|
1389
|
-
"aria-label":
|
|
1353
|
+
"aria-label": n("ui_more_pages"),
|
|
1390
1354
|
"data-slot": "pagination",
|
|
1391
|
-
className:
|
|
1355
|
+
className: x("mx-auto flex w-full justify-center", e),
|
|
1392
1356
|
...t
|
|
1393
1357
|
});
|
|
1394
1358
|
}
|
|
1395
1359
|
function Ro({ className: e, ...t }) {
|
|
1396
1360
|
return /* @__PURE__ */ M("ul", {
|
|
1397
1361
|
"data-slot": "pagination-content",
|
|
1398
|
-
className:
|
|
1362
|
+
className: x("flex items-center gap-0.5", e),
|
|
1399
1363
|
...t
|
|
1400
1364
|
});
|
|
1401
1365
|
}
|
|
@@ -1406,10 +1370,10 @@ function zo({ ...e }) {
|
|
|
1406
1370
|
});
|
|
1407
1371
|
}
|
|
1408
1372
|
function Bo({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
1409
|
-
return /* @__PURE__ */ M(
|
|
1373
|
+
return /* @__PURE__ */ M(S, {
|
|
1410
1374
|
variant: t ? "outline" : "ghost",
|
|
1411
1375
|
size: n,
|
|
1412
|
-
className:
|
|
1376
|
+
className: x(e),
|
|
1413
1377
|
nativeButton: !1,
|
|
1414
1378
|
render: /* @__PURE__ */ M("a", {
|
|
1415
1379
|
"aria-current": t ? "page" : void 0,
|
|
@@ -1420,10 +1384,11 @@ function Bo({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
1420
1384
|
});
|
|
1421
1385
|
}
|
|
1422
1386
|
function Vo({ className: e, text: n = t("action_previous"), ...i }) {
|
|
1387
|
+
let a = r();
|
|
1423
1388
|
return /* @__PURE__ */ N(Bo, {
|
|
1424
|
-
"aria-label":
|
|
1389
|
+
"aria-label": a("ui_go_to_previous_page"),
|
|
1425
1390
|
size: "default",
|
|
1426
|
-
className:
|
|
1391
|
+
className: x("pl-1.5!", e),
|
|
1427
1392
|
...i,
|
|
1428
1393
|
children: [/* @__PURE__ */ M(Er, { "data-icon": "inline-start" }), /* @__PURE__ */ M("span", {
|
|
1429
1394
|
className: "\n hidden\n sm:block\n ",
|
|
@@ -1432,10 +1397,11 @@ function Vo({ className: e, text: n = t("action_previous"), ...i }) {
|
|
|
1432
1397
|
});
|
|
1433
1398
|
}
|
|
1434
1399
|
function Ho({ className: e, text: n = t("action_next"), ...i }) {
|
|
1400
|
+
let a = r();
|
|
1435
1401
|
return /* @__PURE__ */ N(Bo, {
|
|
1436
|
-
"aria-label":
|
|
1402
|
+
"aria-label": a("ui_go_to_next_page"),
|
|
1437
1403
|
size: "default",
|
|
1438
|
-
className:
|
|
1404
|
+
className: x("pr-1.5!", e),
|
|
1439
1405
|
...i,
|
|
1440
1406
|
children: [/* @__PURE__ */ M("span", {
|
|
1441
1407
|
className: "\n hidden\n sm:block\n ",
|
|
@@ -1448,7 +1414,7 @@ function Uo({ className: e, ...t }) {
|
|
|
1448
1414
|
return /* @__PURE__ */ N("span", {
|
|
1449
1415
|
"aria-hidden": !0,
|
|
1450
1416
|
"data-slot": "pagination-ellipsis",
|
|
1451
|
-
className:
|
|
1417
|
+
className: x("\n flex size-8 items-center justify-center\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
1452
1418
|
...t,
|
|
1453
1419
|
children: [/* @__PURE__ */ M(kr, {}), /* @__PURE__ */ M("span", {
|
|
1454
1420
|
className: "sr-only",
|
|
@@ -1456,54 +1422,53 @@ function Uo({ className: e, ...t }) {
|
|
|
1456
1422
|
})]
|
|
1457
1423
|
});
|
|
1458
1424
|
}
|
|
1459
|
-
|
|
1460
|
-
//#region src/ui/questionnaire.tsx
|
|
1425
|
+
// src/ui/questionnaire.tsx
|
|
1461
1426
|
function Wo({ className: e, ...t }) {
|
|
1462
1427
|
return /* @__PURE__ */ M(Y.Root, {
|
|
1463
1428
|
"data-slot": "questionnaire",
|
|
1464
|
-
className:
|
|
1429
|
+
className: x("flex w-full min-w-0 flex-col gap-4", e),
|
|
1465
1430
|
...t
|
|
1466
1431
|
});
|
|
1467
1432
|
}
|
|
1468
1433
|
function Go({ className: e, ...t }) {
|
|
1469
1434
|
return /* @__PURE__ */ M(Y.Progress, {
|
|
1470
1435
|
"data-slot": "questionnaire-progress",
|
|
1471
|
-
className:
|
|
1436
|
+
className: x("min-h-lh w-fit min-w-[14ch] text-xs font-medium text-muted-foreground tabular-nums", e),
|
|
1472
1437
|
...t
|
|
1473
1438
|
});
|
|
1474
1439
|
}
|
|
1475
1440
|
function Ko({ className: e, ...t }) {
|
|
1476
1441
|
return /* @__PURE__ */ M(Y.Item, {
|
|
1477
1442
|
"data-slot": "questionnaire-item",
|
|
1478
|
-
className:
|
|
1443
|
+
className: x("flex min-w-0 flex-col gap-4 border-0 p-0 outline-none", e),
|
|
1479
1444
|
...t
|
|
1480
1445
|
});
|
|
1481
1446
|
}
|
|
1482
1447
|
function qo({ className: e, ...t }) {
|
|
1483
1448
|
return /* @__PURE__ */ M(Y.Title, {
|
|
1484
1449
|
"data-slot": "questionnaire-title",
|
|
1485
|
-
className:
|
|
1450
|
+
className: x("\n text-base/snug font-medium text-pretty\n [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4\n ", e),
|
|
1486
1451
|
...t
|
|
1487
1452
|
});
|
|
1488
1453
|
}
|
|
1489
1454
|
function Jo({ className: e, ...t }) {
|
|
1490
1455
|
return /* @__PURE__ */ M(Y.Description, {
|
|
1491
1456
|
"data-slot": "questionnaire-description",
|
|
1492
|
-
className:
|
|
1457
|
+
className: x("text-sm text-pretty text-muted-foreground", e),
|
|
1493
1458
|
...t
|
|
1494
1459
|
});
|
|
1495
1460
|
}
|
|
1496
1461
|
function Yo({ className: e, ...t }) {
|
|
1497
1462
|
return /* @__PURE__ */ M(Y.Choices, {
|
|
1498
1463
|
"data-slot": "questionnaire-choices",
|
|
1499
|
-
className:
|
|
1464
|
+
className: x("group/questionnaire-choices grid min-w-0 gap-2", e),
|
|
1500
1465
|
...t
|
|
1501
1466
|
});
|
|
1502
1467
|
}
|
|
1503
1468
|
function Xo({ children: e, className: t, ...n }) {
|
|
1504
1469
|
return /* @__PURE__ */ N(Y.Choice, {
|
|
1505
1470
|
"data-slot": "questionnaire-choice",
|
|
1506
|
-
className:
|
|
1471
|
+
className: x("\n group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5\n rounded-lg border border-input bg-transparent px-3 py-2.5 text-start text-sm\n transition-colors outline-none select-none\n hover:bg-muted/50\n has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3\n has-[>input:focus-visible]:ring-ring/50\n data-invalid:border-destructive\n dark:bg-input/20\n data-checked:border-primary/40 data-checked:bg-muted\n dark:data-checked:bg-muted\n ", "\n data-disabled:pointer-events-none data-disabled:cursor-not-allowed\n data-disabled:opacity-50\n ", t),
|
|
1507
1472
|
...n,
|
|
1508
1473
|
children: [
|
|
1509
1474
|
/* @__PURE__ */ M(Y.ChoiceInput, {
|
|
@@ -1537,7 +1502,7 @@ function Xo({ children: e, className: t, ...n }) {
|
|
|
1537
1502
|
function Zo({ className: e, ...t }) {
|
|
1538
1503
|
return /* @__PURE__ */ M("span", {
|
|
1539
1504
|
"data-slot": "questionnaire-choice-description",
|
|
1540
|
-
className:
|
|
1505
|
+
className: x("text-muted-foreground", e),
|
|
1541
1506
|
...t
|
|
1542
1507
|
});
|
|
1543
1508
|
}
|
|
@@ -1547,7 +1512,7 @@ function Qo({ className: e, ...t }) {
|
|
|
1547
1512
|
className: "group/questionnaire-input relative w-full min-w-0",
|
|
1548
1513
|
children: /* @__PURE__ */ M(Y.Input, {
|
|
1549
1514
|
"data-slot": "questionnaire-input",
|
|
1550
|
-
className:
|
|
1515
|
+
className: x("\n h-8 min-h-11 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1\n text-sm transition-[color,box-shadow,background-color] outline-none\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50\n disabled:opacity-50\n aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20\n sm:min-h-0\n dark:bg-input/30\n dark:disabled:bg-input/80\n dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\n ", "\n selection:bg-primary selection:text-primary-foreground\n placeholder:text-muted-foreground\n ", e),
|
|
1551
1516
|
...t
|
|
1552
1517
|
})
|
|
1553
1518
|
});
|
|
@@ -1555,14 +1520,14 @@ function Qo({ className: e, ...t }) {
|
|
|
1555
1520
|
function $o({ className: e, ...t }) {
|
|
1556
1521
|
return /* @__PURE__ */ M(Y.Error, {
|
|
1557
1522
|
"data-slot": "questionnaire-error",
|
|
1558
|
-
className:
|
|
1523
|
+
className: x("mt-2 text-sm text-destructive", e),
|
|
1559
1524
|
...t
|
|
1560
1525
|
});
|
|
1561
1526
|
}
|
|
1562
1527
|
function es({ className: e, ...t }) {
|
|
1563
1528
|
return /* @__PURE__ */ M("div", {
|
|
1564
1529
|
"data-slot": "questionnaire-actions",
|
|
1565
|
-
className:
|
|
1530
|
+
className: x("\n grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2\n sm:min-h-8\n ", e),
|
|
1566
1531
|
...t
|
|
1567
1532
|
});
|
|
1568
1533
|
}
|
|
@@ -1572,7 +1537,7 @@ function ts({ children: e, className: t, size: n = "default", variant: i = "outl
|
|
|
1572
1537
|
"data-slot": "questionnaire-previous",
|
|
1573
1538
|
"data-size": n,
|
|
1574
1539
|
"data-variant": i,
|
|
1575
|
-
className:
|
|
1540
|
+
className: x(b({
|
|
1576
1541
|
size: n,
|
|
1577
1542
|
variant: i
|
|
1578
1543
|
}), "\n col-start-1 row-start-1 min-h-11 justify-self-start\n sm:min-h-0\n ", t),
|
|
@@ -1586,7 +1551,7 @@ function ns({ children: e, className: t, size: n = "default", variant: i = "outl
|
|
|
1586
1551
|
"data-slot": "questionnaire-skip",
|
|
1587
1552
|
"data-size": n,
|
|
1588
1553
|
"data-variant": i,
|
|
1589
|
-
className:
|
|
1554
|
+
className: x(b({
|
|
1590
1555
|
size: n,
|
|
1591
1556
|
variant: i
|
|
1592
1557
|
}), "\n col-start-2 row-start-1 min-h-11 justify-self-end\n sm:min-h-0\n ", t),
|
|
@@ -1600,7 +1565,7 @@ function rs({ children: e, className: t, size: n = "default", variant: i = "defa
|
|
|
1600
1565
|
"data-slot": "questionnaire-next",
|
|
1601
1566
|
"data-size": n,
|
|
1602
1567
|
"data-variant": i,
|
|
1603
|
-
className:
|
|
1568
|
+
className: x(b({
|
|
1604
1569
|
size: n,
|
|
1605
1570
|
variant: i
|
|
1606
1571
|
}), "\n col-start-3 row-start-1 min-h-11 justify-self-end\n sm:min-h-0\n ", t),
|
|
@@ -1614,7 +1579,7 @@ function is({ children: e, className: t, size: n = "default", variant: i = "defa
|
|
|
1614
1579
|
"data-slot": "questionnaire-submit",
|
|
1615
1580
|
"data-size": n,
|
|
1616
1581
|
"data-variant": i,
|
|
1617
|
-
className:
|
|
1582
|
+
className: x(b({
|
|
1618
1583
|
size: n,
|
|
1619
1584
|
variant: i
|
|
1620
1585
|
}), "\n col-start-3 row-start-1 min-h-11 justify-self-end\n sm:min-h-0\n ", t),
|
|
@@ -1622,12 +1587,11 @@ function is({ children: e, className: t, size: n = "default", variant: i = "defa
|
|
|
1622
1587
|
children: e ?? o("action_submit")
|
|
1623
1588
|
});
|
|
1624
1589
|
}
|
|
1625
|
-
|
|
1626
|
-
//#region src/ui/scroll-area.tsx
|
|
1590
|
+
// src/ui/scroll-area.tsx
|
|
1627
1591
|
function as({ className: e, children: t, ...n }) {
|
|
1628
1592
|
return /* @__PURE__ */ N(X.Root, {
|
|
1629
1593
|
"data-slot": "scroll-area",
|
|
1630
|
-
className:
|
|
1594
|
+
className: x("relative", e),
|
|
1631
1595
|
...n,
|
|
1632
1596
|
children: [
|
|
1633
1597
|
/* @__PURE__ */ M(X.Viewport, {
|
|
@@ -1645,7 +1609,7 @@ function os({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1645
1609
|
"data-slot": "scroll-area-scrollbar",
|
|
1646
1610
|
"data-orientation": t,
|
|
1647
1611
|
orientation: t,
|
|
1648
|
-
className:
|
|
1612
|
+
className: x("\n flex touch-none p-px transition-colors select-none\n data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t\n data-horizontal:border-t-transparent\n data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l\n data-vertical:border-l-transparent\n ", e),
|
|
1649
1613
|
...n,
|
|
1650
1614
|
children: /* @__PURE__ */ M(X.Thumb, {
|
|
1651
1615
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1653,8 +1617,7 @@ function os({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1653
1617
|
})
|
|
1654
1618
|
});
|
|
1655
1619
|
}
|
|
1656
|
-
|
|
1657
|
-
//#region src/ui/sidebar.tsx
|
|
1620
|
+
// src/ui/sidebar.tsx
|
|
1658
1621
|
var ss = A.createContext(null);
|
|
1659
1622
|
function Q() {
|
|
1660
1623
|
let e = A.useContext(ss);
|
|
@@ -1662,63 +1625,63 @@ function Q() {
|
|
|
1662
1625
|
return e;
|
|
1663
1626
|
}
|
|
1664
1627
|
function cs({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, children: i, ...a }) {
|
|
1665
|
-
let o =
|
|
1666
|
-
let t = typeof e == "function" ? e(
|
|
1667
|
-
n ? n(t) :
|
|
1668
|
-
}, [n,
|
|
1669
|
-
o ?
|
|
1628
|
+
let o = bt(), [s, c] = A.useState(!1), [l, u] = A.useState(e), d = t ?? l, f = A.useCallback((e) => {
|
|
1629
|
+
let t = typeof e == "function" ? e(d) : e;
|
|
1630
|
+
n ? n(t) : u(t);
|
|
1631
|
+
}, [n, d]), p = A.useCallback(() => {
|
|
1632
|
+
o ? c((e) => !e) : f((e) => !e);
|
|
1670
1633
|
}, [
|
|
1671
1634
|
o,
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
]),
|
|
1675
|
-
state:
|
|
1676
|
-
open:
|
|
1677
|
-
setOpen:
|
|
1635
|
+
f,
|
|
1636
|
+
c
|
|
1637
|
+
]), m = d ? "expanded" : "collapsed", h = A.useMemo(() => ({
|
|
1638
|
+
state: m,
|
|
1639
|
+
open: d,
|
|
1640
|
+
setOpen: f,
|
|
1678
1641
|
isMobile: o,
|
|
1679
|
-
openMobile:
|
|
1680
|
-
setOpenMobile:
|
|
1681
|
-
toggleSidebar:
|
|
1642
|
+
openMobile: s,
|
|
1643
|
+
setOpenMobile: c,
|
|
1644
|
+
toggleSidebar: p
|
|
1682
1645
|
}), [
|
|
1683
|
-
|
|
1646
|
+
m,
|
|
1647
|
+
d,
|
|
1684
1648
|
f,
|
|
1685
|
-
p,
|
|
1686
1649
|
o,
|
|
1650
|
+
s,
|
|
1687
1651
|
c,
|
|
1688
|
-
|
|
1689
|
-
m
|
|
1652
|
+
p
|
|
1690
1653
|
]);
|
|
1691
1654
|
return /* @__PURE__ */ M(ss.Provider, {
|
|
1692
|
-
value:
|
|
1655
|
+
value: h,
|
|
1693
1656
|
children: /* @__PURE__ */ M("div", {
|
|
1694
1657
|
"data-slot": "sidebar-wrapper",
|
|
1695
|
-
className:
|
|
1658
|
+
className: x("\n group/sidebar-wrapper relative flex min-h-0 w-full [--sidebar-width-icon:3rem]\n [--sidebar-width:16rem]\n has-data-[variant=inset]:bg-sidebar\n ", r),
|
|
1696
1659
|
...a,
|
|
1697
1660
|
children: i
|
|
1698
1661
|
})
|
|
1699
1662
|
});
|
|
1700
1663
|
}
|
|
1701
|
-
function ls({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: i, children: a, dir: o, ...
|
|
1702
|
-
let
|
|
1664
|
+
function ls({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: i, children: a, dir: o, ...s }) {
|
|
1665
|
+
let c = r(), { isMobile: l, state: u, openMobile: d, setOpenMobile: f } = Q();
|
|
1703
1666
|
return n === "none" ? /* @__PURE__ */ M("div", {
|
|
1704
1667
|
"data-slot": "sidebar",
|
|
1705
|
-
className:
|
|
1706
|
-
...
|
|
1668
|
+
className: x("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", i),
|
|
1669
|
+
...s,
|
|
1707
1670
|
children: a
|
|
1708
|
-
}) :
|
|
1709
|
-
open:
|
|
1710
|
-
onOpenChange:
|
|
1711
|
-
...
|
|
1712
|
-
children: /* @__PURE__ */ N(
|
|
1671
|
+
}) : l ? /* @__PURE__ */ M(pr, {
|
|
1672
|
+
open: d,
|
|
1673
|
+
onOpenChange: f,
|
|
1674
|
+
...s,
|
|
1675
|
+
children: /* @__PURE__ */ N(er, {
|
|
1713
1676
|
dir: o,
|
|
1714
1677
|
"data-sidebar": "sidebar",
|
|
1715
1678
|
"data-slot": "sidebar",
|
|
1716
1679
|
"data-mobile": "true",
|
|
1717
1680
|
className: "\n w-72 bg-sidebar p-0 text-sidebar-foreground\n [&>button]:hidden\n ",
|
|
1718
1681
|
side: e,
|
|
1719
|
-
children: [/* @__PURE__ */ N(
|
|
1682
|
+
children: [/* @__PURE__ */ N(nr, {
|
|
1720
1683
|
className: "sr-only",
|
|
1721
|
-
children: [/* @__PURE__ */ M(
|
|
1684
|
+
children: [/* @__PURE__ */ M(tr, { children: c("ui_sidebar") }), /* @__PURE__ */ M(lr, { children: c("ui_sidebar_description") })]
|
|
1722
1685
|
}), /* @__PURE__ */ M("div", {
|
|
1723
1686
|
className: "flex size-full flex-col",
|
|
1724
1687
|
children: a
|
|
@@ -1726,19 +1689,19 @@ function ls({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1726
1689
|
})
|
|
1727
1690
|
}) : /* @__PURE__ */ N("div", {
|
|
1728
1691
|
className: "\n group peer hidden text-sidebar-foreground\n md:block\n ",
|
|
1729
|
-
"data-state":
|
|
1730
|
-
"data-collapsible":
|
|
1692
|
+
"data-state": u,
|
|
1693
|
+
"data-collapsible": u === "collapsed" ? n : "",
|
|
1731
1694
|
"data-variant": t,
|
|
1732
1695
|
"data-side": e,
|
|
1733
1696
|
"data-slot": "sidebar",
|
|
1734
1697
|
children: [/* @__PURE__ */ M("div", {
|
|
1735
1698
|
"data-slot": "sidebar-gap",
|
|
1736
|
-
className:
|
|
1699
|
+
className: x("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1737
1700
|
}), /* @__PURE__ */ M("div", {
|
|
1738
1701
|
"data-slot": "sidebar-container",
|
|
1739
1702
|
"data-side": e,
|
|
1740
|
-
className:
|
|
1741
|
-
...
|
|
1703
|
+
className: x("\n absolute inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width]\n duration-200 ease-linear\n data-[side=left]:left-0\n data-[side=left]:group-data-[collapsible=offcanvas]:-left-(--sidebar-width)\n data-[side=right]:right-0\n data-[side=right]:group-data-[collapsible=offcanvas]:-right-(--sidebar-width)\n md:flex\n ", t === "floating" || t === "inset" ? "\n p-2\n group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\n " : "\n group-data-[collapsible=icon]:w-(--sidebar-width-icon)\n group-data-[side=left]:border-r\n group-data-[side=right]:border-l\n ", i),
|
|
1704
|
+
...s,
|
|
1742
1705
|
children: /* @__PURE__ */ M("div", {
|
|
1743
1706
|
"data-sidebar": "sidebar",
|
|
1744
1707
|
"data-slot": "sidebar-inner",
|
|
@@ -1750,12 +1713,12 @@ function ls({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1750
1713
|
}
|
|
1751
1714
|
function us({ className: e, onClick: t, ...n }) {
|
|
1752
1715
|
let i = r(), { toggleSidebar: a } = Q();
|
|
1753
|
-
return /* @__PURE__ */ N(
|
|
1716
|
+
return /* @__PURE__ */ N(S, {
|
|
1754
1717
|
"data-sidebar": "trigger",
|
|
1755
1718
|
"data-slot": "sidebar-trigger",
|
|
1756
1719
|
variant: "ghost",
|
|
1757
1720
|
size: "icon-sm",
|
|
1758
|
-
className:
|
|
1721
|
+
className: x(e),
|
|
1759
1722
|
onClick: (e) => {
|
|
1760
1723
|
t?.(e), a();
|
|
1761
1724
|
},
|
|
@@ -1775,22 +1738,22 @@ function ds({ className: e, ...t }) {
|
|
|
1775
1738
|
tabIndex: -1,
|
|
1776
1739
|
onClick: i,
|
|
1777
1740
|
title: n("ui_toggle_sidebar"),
|
|
1778
|
-
className:
|
|
1741
|
+
className: x("\n absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear\n group-data-[side=left]:-right-4\n group-data-[side=right]:left-0\n after:absolute after:inset-y-0 after:inset-s-1/2 after:w-[2px]\n hover:after:bg-sidebar-border\n sm:flex\n ltr:-translate-x-1/2\n rtl:-translate-x-1/2\n ", "\n in-data-[side=left]:cursor-w-resize\n in-data-[side=right]:cursor-e-resize\n ", "\n [[data-side=left][data-state=collapsed]_&]:cursor-e-resize\n [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\n ", "\n group-data-[collapsible=offcanvas]:translate-x-0\n group-data-[collapsible=offcanvas]:after:left-full\n hover:group-data-[collapsible=offcanvas]:bg-sidebar\n ", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
1779
1742
|
...t
|
|
1780
1743
|
});
|
|
1781
1744
|
}
|
|
1782
1745
|
function fs({ className: e, ...t }) {
|
|
1783
1746
|
return /* @__PURE__ */ M("main", {
|
|
1784
1747
|
"data-slot": "sidebar-inset",
|
|
1785
|
-
className:
|
|
1748
|
+
className: x("\n relative flex w-full flex-1 flex-col bg-background\n md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0\n md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm\n md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2\n ", e),
|
|
1786
1749
|
...t
|
|
1787
1750
|
});
|
|
1788
1751
|
}
|
|
1789
1752
|
function ps({ className: e, ...t }) {
|
|
1790
|
-
return /* @__PURE__ */ M(
|
|
1753
|
+
return /* @__PURE__ */ M(Mt, {
|
|
1791
1754
|
"data-slot": "sidebar-input",
|
|
1792
1755
|
"data-sidebar": "input",
|
|
1793
|
-
className:
|
|
1756
|
+
className: x("h-8 w-full bg-background shadow-none", e),
|
|
1794
1757
|
...t
|
|
1795
1758
|
});
|
|
1796
1759
|
}
|
|
@@ -1798,7 +1761,7 @@ function ms({ className: e, ...t }) {
|
|
|
1798
1761
|
return /* @__PURE__ */ M("div", {
|
|
1799
1762
|
"data-slot": "sidebar-header",
|
|
1800
1763
|
"data-sidebar": "header",
|
|
1801
|
-
className:
|
|
1764
|
+
className: x("flex flex-col gap-2 p-2", e),
|
|
1802
1765
|
...t
|
|
1803
1766
|
});
|
|
1804
1767
|
}
|
|
@@ -1806,15 +1769,15 @@ function hs({ className: e, ...t }) {
|
|
|
1806
1769
|
return /* @__PURE__ */ M("div", {
|
|
1807
1770
|
"data-slot": "sidebar-footer",
|
|
1808
1771
|
"data-sidebar": "footer",
|
|
1809
|
-
className:
|
|
1772
|
+
className: x("flex flex-col gap-2 p-2", e),
|
|
1810
1773
|
...t
|
|
1811
1774
|
});
|
|
1812
1775
|
}
|
|
1813
1776
|
function gs({ className: e, ...t }) {
|
|
1814
|
-
return /* @__PURE__ */ M(
|
|
1777
|
+
return /* @__PURE__ */ M(Ht, {
|
|
1815
1778
|
"data-slot": "sidebar-separator",
|
|
1816
1779
|
"data-sidebar": "separator",
|
|
1817
|
-
className:
|
|
1780
|
+
className: x("mx-2 w-auto bg-sidebar-border", e),
|
|
1818
1781
|
...t
|
|
1819
1782
|
});
|
|
1820
1783
|
}
|
|
@@ -1822,7 +1785,7 @@ function _s({ className: e, ...t }) {
|
|
|
1822
1785
|
return /* @__PURE__ */ M("div", {
|
|
1823
1786
|
"data-slot": "sidebar-content",
|
|
1824
1787
|
"data-sidebar": "content",
|
|
1825
|
-
className:
|
|
1788
|
+
className: x("\n no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto\n group-data-[collapsible=icon]:overflow-hidden\n ", e),
|
|
1826
1789
|
...t
|
|
1827
1790
|
});
|
|
1828
1791
|
}
|
|
@@ -1830,14 +1793,14 @@ function vs({ className: e, ...t }) {
|
|
|
1830
1793
|
return /* @__PURE__ */ M("div", {
|
|
1831
1794
|
"data-slot": "sidebar-group",
|
|
1832
1795
|
"data-sidebar": "group",
|
|
1833
|
-
className:
|
|
1796
|
+
className: x("relative flex w-full min-w-0 flex-col p-2", e),
|
|
1834
1797
|
...t
|
|
1835
1798
|
});
|
|
1836
1799
|
}
|
|
1837
1800
|
function ys({ className: e, render: t, ...n }) {
|
|
1838
1801
|
return B({
|
|
1839
1802
|
defaultTagName: "div",
|
|
1840
|
-
props: z({ className:
|
|
1803
|
+
props: z({ className: x("\n flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium\n text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity]\n duration-200 ease-linear\n group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\n focus-visible:ring-2\n [&>svg]:size-4 [&>svg]:shrink-0\n ", e) }, n),
|
|
1841
1804
|
render: t,
|
|
1842
1805
|
state: {
|
|
1843
1806
|
slot: "sidebar-group-label",
|
|
@@ -1848,7 +1811,7 @@ function ys({ className: e, render: t, ...n }) {
|
|
|
1848
1811
|
function bs({ className: e, render: t, ...n }) {
|
|
1849
1812
|
return B({
|
|
1850
1813
|
defaultTagName: "button",
|
|
1851
|
-
props: z({ className:
|
|
1814
|
+
props: z({ className: x("\n absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md\n p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n group-data-[collapsible=icon]:hidden\n after:absolute after:-inset-2\n hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\n focus-visible:ring-2\n md:after:hidden\n [&>svg]:size-4 [&>svg]:shrink-0\n ", e) }, n),
|
|
1852
1815
|
render: t,
|
|
1853
1816
|
state: {
|
|
1854
1817
|
slot: "sidebar-group-action",
|
|
@@ -1860,7 +1823,7 @@ function xs({ className: e, ...t }) {
|
|
|
1860
1823
|
return /* @__PURE__ */ M("div", {
|
|
1861
1824
|
"data-slot": "sidebar-group-content",
|
|
1862
1825
|
"data-sidebar": "group-content",
|
|
1863
|
-
className:
|
|
1826
|
+
className: x("w-full text-sm", e),
|
|
1864
1827
|
...t
|
|
1865
1828
|
});
|
|
1866
1829
|
}
|
|
@@ -1868,7 +1831,7 @@ function Ss({ className: e, ...t }) {
|
|
|
1868
1831
|
return /* @__PURE__ */ M("ul", {
|
|
1869
1832
|
"data-slot": "sidebar-menu",
|
|
1870
1833
|
"data-sidebar": "menu",
|
|
1871
|
-
className:
|
|
1834
|
+
className: x("flex w-full min-w-0 flex-col gap-0", e),
|
|
1872
1835
|
...t
|
|
1873
1836
|
});
|
|
1874
1837
|
}
|
|
@@ -1876,7 +1839,7 @@ function Cs({ className: e, ...t }) {
|
|
|
1876
1839
|
return /* @__PURE__ */ M("li", {
|
|
1877
1840
|
"data-slot": "sidebar-menu-item",
|
|
1878
1841
|
"data-sidebar": "menu-item",
|
|
1879
|
-
className:
|
|
1842
|
+
className: x("group/menu-item relative", e),
|
|
1880
1843
|
...t
|
|
1881
1844
|
});
|
|
1882
1845
|
}
|
|
@@ -1898,13 +1861,13 @@ var ws = L("\n peer/menu-button group/menu-button flex w-full items-center ga
|
|
|
1898
1861
|
}
|
|
1899
1862
|
});
|
|
1900
1863
|
function Ts({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
1901
|
-
let { isMobile:
|
|
1864
|
+
let { isMobile: s, state: c } = Q(), l = B({
|
|
1902
1865
|
defaultTagName: "button",
|
|
1903
|
-
props: z({ className:
|
|
1866
|
+
props: z({ className: x(ws({
|
|
1904
1867
|
variant: n,
|
|
1905
1868
|
size: r
|
|
1906
1869
|
}), a) }, o),
|
|
1907
|
-
render: i ? /* @__PURE__ */ M(
|
|
1870
|
+
render: i ? /* @__PURE__ */ M(te, { render: e }) : e,
|
|
1908
1871
|
state: {
|
|
1909
1872
|
slot: "sidebar-menu-button",
|
|
1910
1873
|
sidebar: "menu-button",
|
|
@@ -1912,17 +1875,17 @@ function Ts({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
1912
1875
|
active: t
|
|
1913
1876
|
}
|
|
1914
1877
|
});
|
|
1915
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ N(
|
|
1878
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ N(ie, { children: [l, /* @__PURE__ */ M(h, {
|
|
1916
1879
|
side: "right",
|
|
1917
1880
|
align: "center",
|
|
1918
|
-
hidden:
|
|
1881
|
+
hidden: c !== "collapsed" || s,
|
|
1919
1882
|
...i
|
|
1920
|
-
})] })) :
|
|
1883
|
+
})] })) : l;
|
|
1921
1884
|
}
|
|
1922
1885
|
function Es({ className: e, render: t, showOnHover: n = !1, ...r }) {
|
|
1923
1886
|
return B({
|
|
1924
1887
|
defaultTagName: "button",
|
|
1925
|
-
props: z({ className:
|
|
1888
|
+
props: z({ className: x("\n absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md\n p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n group-data-[collapsible=icon]:hidden\n peer-hover/menu-button:text-sidebar-accent-foreground\n peer-data-[size=default]/menu-button:top-1.5\n peer-data-[size=lg]/menu-button:top-2.5\n peer-data-[size=sm]/menu-button:top-1\n after:absolute after:-inset-2\n hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\n focus-visible:ring-2\n md:after:hidden\n [&>svg]:size-4 [&>svg]:shrink-0\n ", n && "\n group-focus-within/menu-item:opacity-100\n group-hover/menu-item:opacity-100\n peer-data-active/menu-button:text-sidebar-accent-foreground\n aria-expanded:opacity-100\n md:opacity-0\n ", e) }, r),
|
|
1926
1889
|
render: t,
|
|
1927
1890
|
state: {
|
|
1928
1891
|
slot: "sidebar-menu-action",
|
|
@@ -1934,7 +1897,7 @@ function Ds({ className: e, ...t }) {
|
|
|
1934
1897
|
return /* @__PURE__ */ M("div", {
|
|
1935
1898
|
"data-slot": "sidebar-menu-badge",
|
|
1936
1899
|
"data-sidebar": "menu-badge",
|
|
1937
|
-
className:
|
|
1900
|
+
className: x("\n pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center\n rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none\n group-data-[collapsible=icon]:hidden\n peer-hover/menu-button:text-sidebar-accent-foreground\n peer-data-[size=default]/menu-button:top-1.5\n peer-data-[size=lg]/menu-button:top-2.5\n peer-data-[size=sm]/menu-button:top-1\n peer-data-active/menu-button:text-sidebar-accent-foreground\n ", e),
|
|
1938
1901
|
...t
|
|
1939
1902
|
});
|
|
1940
1903
|
}
|
|
@@ -1942,12 +1905,12 @@ function Os({ className: e, showIcon: t = !1, ...n }) {
|
|
|
1942
1905
|
return /* @__PURE__ */ N("div", {
|
|
1943
1906
|
"data-slot": "sidebar-menu-skeleton",
|
|
1944
1907
|
"data-sidebar": "menu-skeleton",
|
|
1945
|
-
className:
|
|
1908
|
+
className: x("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
1946
1909
|
...n,
|
|
1947
|
-
children: [t && /* @__PURE__ */ M(
|
|
1910
|
+
children: [t && /* @__PURE__ */ M(E, {
|
|
1948
1911
|
className: "size-4 rounded-md",
|
|
1949
1912
|
"data-sidebar": "menu-skeleton-icon"
|
|
1950
|
-
}), /* @__PURE__ */ M(
|
|
1913
|
+
}), /* @__PURE__ */ M(E, {
|
|
1951
1914
|
className: "h-4 w-3/4",
|
|
1952
1915
|
"data-sidebar": "menu-skeleton-text"
|
|
1953
1916
|
})]
|
|
@@ -1957,7 +1920,7 @@ function ks({ className: e, ...t }) {
|
|
|
1957
1920
|
return /* @__PURE__ */ M("ul", {
|
|
1958
1921
|
"data-slot": "sidebar-menu-sub",
|
|
1959
1922
|
"data-sidebar": "menu-sub",
|
|
1960
|
-
className:
|
|
1923
|
+
className: x("\n mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5\n py-0.5\n group-data-[collapsible=icon]:hidden\n ", e),
|
|
1961
1924
|
...t
|
|
1962
1925
|
});
|
|
1963
1926
|
}
|
|
@@ -1965,14 +1928,14 @@ function As({ className: e, ...t }) {
|
|
|
1965
1928
|
return /* @__PURE__ */ M("li", {
|
|
1966
1929
|
"data-slot": "sidebar-menu-sub-item",
|
|
1967
1930
|
"data-sidebar": "menu-sub-item",
|
|
1968
|
-
className:
|
|
1931
|
+
className: x("group/menu-sub-item relative", e),
|
|
1969
1932
|
...t
|
|
1970
1933
|
});
|
|
1971
1934
|
}
|
|
1972
1935
|
function js({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
1973
1936
|
return B({
|
|
1974
1937
|
defaultTagName: "a",
|
|
1975
|
-
props: z({ className:
|
|
1938
|
+
props: z({ className: x("\n flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2\n text-sidebar-foreground ring-sidebar-ring outline-hidden\n group-data-[collapsible=icon]:hidden\n hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\n focus-visible:ring-2\n active:bg-sidebar-accent active:text-sidebar-accent-foreground\n disabled:pointer-events-none disabled:opacity-50\n aria-disabled:pointer-events-none aria-disabled:opacity-50\n data-[size=md]:text-sm\n data-[size=sm]:text-xs\n data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground\n [&>span:last-child]:truncate\n [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground\n ", r) }, i),
|
|
1976
1939
|
render: e,
|
|
1977
1940
|
state: {
|
|
1978
1941
|
slot: "sidebar-menu-sub-button",
|
|
@@ -1982,8 +1945,7 @@ function js({ render: e, size: t = "md", isActive: n = !1, className: r, ...i })
|
|
|
1982
1945
|
}
|
|
1983
1946
|
});
|
|
1984
1947
|
}
|
|
1985
|
-
|
|
1986
|
-
//#region src/ui/svg-diagram/dom.ts
|
|
1948
|
+
// src/ui/svg-diagram/dom.ts
|
|
1987
1949
|
var Ms = [
|
|
1988
1950
|
"href",
|
|
1989
1951
|
"xlink:href",
|
|
@@ -2098,10 +2060,9 @@ function Vs(e, t) {
|
|
|
2098
2060
|
function $(e, t, n) {
|
|
2099
2061
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
2100
2062
|
}
|
|
2101
|
-
|
|
2102
|
-
//#region src/ui/svg-diagram.tsx
|
|
2063
|
+
// src/ui/svg-diagram.tsx
|
|
2103
2064
|
function Hs({ src: e, bindings: t, labels: n, ariaLabel: r, className: i }) {
|
|
2104
|
-
let a = br(null), o = br(r), [
|
|
2065
|
+
let a = br(null), o = br(r), [s, c] = xr(null), [l, u] = xr([]), d = s?.src === e ? s.svg : null, f = s?.src === e && s.failed;
|
|
2105
2066
|
return j(() => {
|
|
2106
2067
|
o.current = r;
|
|
2107
2068
|
}, [r]), j(() => {
|
|
@@ -2117,13 +2078,13 @@ function Hs({ src: e, bindings: t, labels: n, ariaLabel: r, className: i }) {
|
|
|
2117
2078
|
if (t.signal.aborted) return;
|
|
2118
2079
|
let i = new DOMParser().parseFromString(r, "image/svg+xml"), a = i.documentElement;
|
|
2119
2080
|
if (!(a instanceof SVGSVGElement) || i.querySelector("parsererror") != null) throw Error("Asset is not a valid SVG document");
|
|
2120
|
-
Bs(a, `svg-diagram-${crypto.randomUUID()}`), a.setAttribute("role", "group"), a.setAttribute("aria-label", o.current), a.removeAttribute("aria-labelledby"), a.removeAttribute("aria-describedby"), a.setAttribute("preserveAspectRatio", "xMidYMid meet"), n?.replaceChildren(a),
|
|
2081
|
+
Bs(a, `svg-diagram-${crypto.randomUUID()}`), a.setAttribute("role", "group"), a.setAttribute("aria-label", o.current), a.removeAttribute("aria-labelledby"), a.removeAttribute("aria-describedby"), a.setAttribute("preserveAspectRatio", "xMidYMid meet"), n?.replaceChildren(a), c({
|
|
2121
2082
|
src: e,
|
|
2122
2083
|
svg: a,
|
|
2123
2084
|
failed: !1
|
|
2124
2085
|
});
|
|
2125
2086
|
}).catch((t) => {
|
|
2126
|
-
t instanceof DOMException && t.name === "AbortError" ||
|
|
2087
|
+
t instanceof DOMException && t.name === "AbortError" || c({
|
|
2127
2088
|
src: e,
|
|
2128
2089
|
svg: null,
|
|
2129
2090
|
failed: !0
|
|
@@ -2132,43 +2093,42 @@ function Hs({ src: e, bindings: t, labels: n, ariaLabel: r, className: i }) {
|
|
|
2132
2093
|
t.abort(), n?.replaceChildren();
|
|
2133
2094
|
};
|
|
2134
2095
|
}, [e]), j(() => {
|
|
2135
|
-
|
|
2136
|
-
}, [r,
|
|
2137
|
-
if (
|
|
2138
|
-
let e = Vs(
|
|
2139
|
-
|
|
2096
|
+
d?.setAttribute("aria-label", r);
|
|
2097
|
+
}, [r, d]), j(() => {
|
|
2098
|
+
if (d == null) return;
|
|
2099
|
+
let e = Vs(d, t), n = window.setTimeout(() => {
|
|
2100
|
+
u((t) => t.length === e.missing.length && t.every((t, n) => t === e.missing[n]) ? t : e.missing);
|
|
2140
2101
|
}, 0);
|
|
2141
2102
|
return () => {
|
|
2142
2103
|
window.clearTimeout(n), e.cleanup();
|
|
2143
2104
|
};
|
|
2144
|
-
}, [t,
|
|
2145
|
-
className:
|
|
2105
|
+
}, [t, d]), /* @__PURE__ */ N("div", {
|
|
2106
|
+
className: x("relative min-h-80 overflow-hidden", i),
|
|
2146
2107
|
children: [
|
|
2147
2108
|
/* @__PURE__ */ M("div", {
|
|
2148
2109
|
ref: a,
|
|
2149
2110
|
className: "\n size-full\n [&>svg]:block [&>svg]:size-full\n "
|
|
2150
2111
|
}),
|
|
2151
|
-
|
|
2112
|
+
d == null && !f ? /* @__PURE__ */ N("div", {
|
|
2152
2113
|
className: "\n pointer-events-none absolute inset-0 flex items-center justify-center gap-2 text-sm\n text-muted-foreground\n ",
|
|
2153
2114
|
children: [
|
|
2154
|
-
/* @__PURE__ */ M(
|
|
2115
|
+
/* @__PURE__ */ M(Wt, {}),
|
|
2155
2116
|
" ",
|
|
2156
2117
|
n.loading
|
|
2157
2118
|
]
|
|
2158
2119
|
}) : null,
|
|
2159
|
-
|
|
2120
|
+
f ? /* @__PURE__ */ M(Mn, {
|
|
2160
2121
|
className: "absolute inset-x-4 top-4 w-auto",
|
|
2161
2122
|
size: "compact",
|
|
2162
2123
|
description: n.loadError
|
|
2163
2124
|
}) : null,
|
|
2164
|
-
|
|
2125
|
+
d != null && l.length > 0 ? /* @__PURE__ */ M(Mn, {
|
|
2165
2126
|
className: "absolute inset-x-4 bottom-4 w-auto",
|
|
2166
2127
|
severity: "info",
|
|
2167
2128
|
size: "compact",
|
|
2168
|
-
description: n.missingTargets(
|
|
2129
|
+
description: n.missingTargets(l)
|
|
2169
2130
|
}) : null
|
|
2170
2131
|
]
|
|
2171
2132
|
});
|
|
2172
2133
|
}
|
|
2173
|
-
|
|
2174
|
-
export { ci as Accordion, di as AccordionContent, li as AccordionItem, ui as AccordionTrigger, qt as Alert, Gt as AlertAction, Kt as AlertDescription, Mn as AlertDialog, On as AlertDialogAction, An as AlertDialogCancel, En as AlertDialogContent, Sn as AlertDialogDescription, kn as AlertDialogFooter, jn as AlertDialogHeader, Cn as AlertDialogMedia, Dn as AlertDialogOverlay, Nn as AlertDialogPortal, wn as AlertDialogTitle, Tn as AlertDialogTrigger, Wt as AlertTitle, Nr as Area, Pr as AreaChart, pi as AspectRatio, hi as Attachment, Si as AttachmentAction, xi as AttachmentActions, vi as AttachmentContent, bi as AttachmentDescription, wi as AttachmentGroup, _i as AttachmentMedia, yi as AttachmentTitle, Ci as AttachmentTrigger, Ti as Avatar, Oi as AvatarBadge, Di as AvatarFallback, ki as AvatarGroup, Ai as AvatarGroupCount, Ei as AvatarImage, xe as Badge, Fr as Bar, Ir as BarChart, Bn as Breadcrumb, In as BreadcrumbEllipsis, Rn as BreadcrumbItem, Fn as BreadcrumbLink, Pn as BreadcrumbList, Ln as BreadcrumbPage, zn as BreadcrumbSeparator, Ni as Bubble, Pi as BubbleContent, ji as BubbleGroup, Ii as BubbleReactions, C as Button, mt as ButtonGroup, St as ButtonGroupSeparator, lt as ButtonGroupText, Un as Calendar, Vn as CalendarDayButton, Nt as Card, zt as CardAction, Vt as CardContent, Pt as CardDescription, Lt as CardFooter, Ut as CardHeader, Ft as CardTitle, Ri as Carousel, zi as CarouselContent, Bi as CarouselItem, Hi as CarouselNext, Vi as CarouselPrevious, Lr as CartesianGrid, Tt as ChartContainer, it as ChartIndicator, nt as ChartLegend, wt as ChartLegendContent, at as ChartTooltip, rt as ChartTooltipContent, de as Checkbox, Rt as Collapsible, Bt as CollapsibleContent, It as CollapsibleTrigger, Ui as Combobox, ra as ComboboxChip, na as ComboboxChips, ia as ComboboxChipsInput, $i as ComboboxCollection, Ji as ComboboxContent, ea as ComboboxEmpty, Zi as ComboboxGroup, qi as ComboboxInput, Xi as ComboboxItem, Qi as ComboboxLabel, Yi as ComboboxList, ta as ComboboxSeparator, Gi as ComboboxTrigger, Wi as ComboboxValue, oa as Command, sa as CommandDialog, ua as CommandEmpty, da as CommandGroup, ca as CommandInput, pa as CommandItem, la as CommandList, fa as CommandSeparator, ma as CommandShortcut, Rr as ComposedChart, Re as ContentOverlayProvider, Pe as ContentOverlayRegion, ha as ContextMenu, wa as ContextMenuCheckboxItem, _a as ContextMenuContent, va as ContextMenuGroup, ba as ContextMenuItem, ya as ContextMenuLabel, Ta as ContextMenuRadioGroup, Ea as ContextMenuRadioItem, Da as ContextMenuSeparator, Oa as ContextMenuShortcut, xa as ContextMenuSub, Ca as ContextMenuSubContent, Sa as ContextMenuSubTrigger, ga as ContextMenuTrigger, Aa as DataTable, ja as DataTableColumnHeader, Ma as DataTableColumnVisibility, Pa as DataTablePagination, Na as DataTableToolbar, Wn as DateTimePicker, Hn as DateTimeRangePicker, Ge as Dialog, Ve as DialogClose, Ue as DialogContent, ze as DialogDescription, Fe as DialogFooter, He as DialogHeader, We as DialogOverlay, Ie as DialogPortal, Be as DialogTitle, Ke as DialogTrigger, La as DirectionProvider, fe as Drawer, ke as DrawerClose, Me as DrawerContent, me as DrawerDescription, je as DrawerFooter, oe as DrawerHeader, u as DrawerOverlay, Ae as DrawerPortal, se as DrawerSwipeHandle, f as DrawerTitle, d as DrawerTrigger, bn as DropdownMenu, _n as DropdownMenuCheckboxItem, k as DropdownMenuContent, D as DropdownMenuGroup, dn as DropdownMenuItem, O as DropdownMenuLabel, yn as DropdownMenuPortal, fn as DropdownMenuRadioGroup, hn as DropdownMenuRadioItem, xn as DropdownMenuSeparator, pn as DropdownMenuShortcut, mn as DropdownMenuSub, vn as DropdownMenuSubContent, gn as DropdownMenuSubTrigger, E as DropdownMenuTrigger, Mt as Empty, kt as EmptyContent, jt as EmptyDescription, Ot as EmptyHeader, Dt as EmptyMedia, At as EmptyTitle, v as Field, ae as FieldContent, Ne as FieldDescription, l as FieldError, le as FieldGroup, h as FieldLabel, ce as FieldLegend, ue as FieldSeparator, m as FieldSet, _ as FieldTitle, Ua as Gauge, Et as GaugeBar, Wa as HoverCard, Ka as HoverCardContent, Ga as HoverCardTrigger, Je as InlineSkeleton, he as Input, b as InputGroup, x as InputGroupAddon, y as InputGroupButton, pe as InputGroupInput, Ce as InputGroupText, Ee as InputGroupTextarea, ne as InputOTP, ie as InputOTPGroup, p as InputOTPSeparator, g as InputOTPSlot, $n as Item, Yn as ItemActions, Zn as ItemContent, qn as ItemDescription, Gn as ItemFooter, Xn as ItemGroup, Qn as ItemHeader, Kn as ItemMedia, Jn as ItemSeparator, er as ItemTitle, dt as Kbd, ot as KbdGroup, ee as Label, zr as Line, Br as LineChart, Ja as Marker, Xa as MarkerContent, Ya as MarkerIcon, Za as Menubar, ro as MenubarCheckboxItem, to as MenubarContent, $a as MenubarGroup, no as MenubarItem, oo as MenubarLabel, Qa as MenubarMenu, io as MenubarRadioGroup, ao as MenubarRadioItem, so as MenubarSeparator, co as MenubarShortcut, lo as MenubarSub, fo as MenubarSubContent, uo as MenubarSubTrigger, eo as MenubarTrigger, mo as Message, ho as MessageAvatar, go as MessageContent, vo as MessageFooter, po as MessageGroup, _o as MessageHeader, fr as MessageHistoryBell, a as MessageHistoryProvider, n as MessageScopeProvider, Co as MessageScroller, Do as MessageScrollerButton, To as MessageScrollerContent, Eo as MessageScrollerItem, yo as MessageScrollerProvider, wo as MessageScrollerViewport, c as NativeSelect, be as NativeSelectOptGroup, te as NativeSelectOption, Oo as NavigationMenu, No as NavigationMenuContent, Io as NavigationMenuIndicator, Ao as NavigationMenuItem, Fo as NavigationMenuLink, ko as NavigationMenuList, Po as NavigationMenuPositioner, Mo as NavigationMenuTrigger, Ht as NoticeCard, tr as PageHeader, un as PageTitle, Lo as Pagination, Ro as PaginationContent, Uo as PaginationEllipsis, zo as PaginationItem, Bo as PaginationLink, Ho as PaginationNext, Vo as PaginationPrevious, ge as Popover, _e as PopoverContent, we as PopoverDescription, Se as PopoverHeader, ye as PopoverTitle, ve as PopoverTrigger, ln as Progress, an as ProgressIndicator, sn as ProgressLabel, nn as ProgressTrack, en as ProgressValue, Wo as Questionnaire, es as QuestionnaireActions, Xo as QuestionnaireChoice, Zo as QuestionnaireChoiceDescription, Yo as QuestionnaireChoices, Jo as QuestionnaireDescription, $o as QuestionnaireError, Qo as QuestionnaireInput, Ko as QuestionnaireItem, rs as QuestionnaireNext, ts as QuestionnairePrevious, Go as QuestionnaireProgress, ns as QuestionnaireSkip, is as QuestionnaireSubmit, qo as QuestionnaireTitle, rr as RadioGroup, nr as RadioGroupItem, Vr as Rectangle, Hr as ReferenceLine, vt as ResizableHandle, ht as ResizablePanel, ft as ResizablePanelGroup, as as ScrollArea, os as ScrollBar, xt as Select, gt as SelectContent, yt as SelectGroup, pt as SelectItem, st as SelectLabel, _t as SelectSeparator, bt as SelectTrigger, ct as SelectValue, Te as Separator, ur as Sheet, or as SheetClose, ir as SheetContent, lr as SheetDescription, dr as SheetFooter, ar as SheetHeader, sr as SheetTitle, pr as SheetTrigger, ls as Sidebar, _s as SidebarContent, hs as SidebarFooter, vs as SidebarGroup, bs as SidebarGroupAction, xs as SidebarGroupContent, ys as SidebarGroupLabel, ms as SidebarHeader, ps as SidebarInput, fs as SidebarInset, Ss as SidebarMenu, Es as SidebarMenuAction, Ds as SidebarMenuBadge, Ts as SidebarMenuButton, Cs as SidebarMenuItem, Os as SidebarMenuSkeleton, ks as SidebarMenuSub, js as SidebarMenuSubButton, As as SidebarMenuSubItem, cs as SidebarProvider, ds as SidebarRail, gs as SidebarSeparator, us as SidebarTrigger, w as Skeleton, Jt as Slider, Ct as Sparkline, De as Spinner, Hs as SvgDiagram, Yt as Switch, tt as Table, Ze as TableBody, $e as TableCaption, Xe as TableCell, Ye as TableFooter, Qe as TableHead, et as TableHeader, T as TableRow, vr as Tabs, gr as TabsContent, _r as TabsList, hr as TabsTrigger, Le as Textarea, cr as Toaster, Qt as Toggle, $t as ToggleGroup, Zt as ToggleGroupItem, on as Tooltip, cn as TooltipContent, tn as TooltipProvider, rn as TooltipTrigger, qe as WindowOverlayScope, Ur as XAxis, Wr as YAxis, fi as aspectRatioVariants, Oe as badgeVariants, ut as buttonGroupVariants, S as buttonVariants, s as cn, za as gaugeScaleMax, qa as markerVariants, jo as navigationMenuTriggerStyle, e as showNotificationToast, mr as tabsListVariants, o as toast, Xt as toggleVariants, Z as useCarousel, aa as useComboboxAnchor, Ra as useDirection, bo as useMessageScroller, xo as useMessageScrollerScrollable, So as useMessageScrollerVisibility, Q as useSidebar, i as useToast };
|
|
2134
|
+
export { ci as Accordion, di as AccordionContent, li as AccordionItem, ui as AccordionTrigger, Qe as Alert, Ve as AlertAction, Je as AlertDescription, Ze as AlertDialog, Be as AlertDialogAction, qe as AlertDialogCancel, Ne as AlertDialogContent, ve as AlertDialogDescription, He as AlertDialogFooter, Ye as AlertDialogHeader, Se as AlertDialogMedia, Le as AlertDialogOverlay, $e as AlertDialogPortal, we as AlertDialogTitle, De as AlertDialogTrigger, Pe as AlertTitle, Nr as Area, Pr as AreaChart, pi as AspectRatio, hi as Attachment, Si as AttachmentAction, xi as AttachmentActions, vi as AttachmentContent, bi as AttachmentDescription, wi as AttachmentGroup, _i as AttachmentMedia, yi as AttachmentTitle, Ci as AttachmentTrigger, Ti as Avatar, Oi as AvatarBadge, Di as AvatarFallback, ki as AvatarGroup, Ai as AvatarGroupCount, Ei as AvatarImage, Rt as Badge, Fr as Bar, Ir as BarChart, zn as Breadcrumb, Bn as BreadcrumbEllipsis, Vn as BreadcrumbItem, Kn as BreadcrumbLink, vr as BreadcrumbList, Fn as BreadcrumbPage, Yn as BreadcrumbSeparator, Ni as Bubble, Pi as BubbleContent, ji as BubbleGroup, Ii as BubbleReactions, S as Button, un as ButtonGroup, vn as ButtonGroupSeparator, an as ButtonGroupText, Un as Calendar, Gn as CalendarDayButton, Cn as Card, kn as CardAction, jn as CardContent, wn as CardDescription, Dn as CardFooter, Nn as CardHeader, Tn as CardTitle, Ri as Carousel, zi as CarouselContent, Bi as CarouselItem, Hi as CarouselNext, Vi as CarouselPrevious, Lr as CartesianGrid, xn as ChartContainer, $t as ChartIndicator, Zt as ChartLegend, bn as ChartLegendContent, en as ChartTooltip, Qt as ChartTooltipContent, Ot as Checkbox, On as Collapsible, An as CollapsibleContent, En as CollapsibleTrigger, Ui as Combobox, ra as ComboboxChip, na as ComboboxChips, ia as ComboboxChipsInput, $i as ComboboxCollection, Ji as ComboboxContent, ea as ComboboxEmpty, Zi as ComboboxGroup, qi as ComboboxInput, Xi as ComboboxItem, Qi as ComboboxLabel, Yi as ComboboxList, ta as ComboboxSeparator, Gi as ComboboxTrigger, Wi as ComboboxValue, oa as Command, sa as CommandDialog, ua as CommandEmpty, da as CommandGroup, ca as CommandInput, pa as CommandItem, la as CommandList, fa as CommandSeparator, ma as CommandShortcut, Rr as ComposedChart, le as ContentOverlayProvider, m as ContentOverlayRegion, ha as ContextMenu, wa as ContextMenuCheckboxItem, _a as ContextMenuContent, va as ContextMenuGroup, ba as ContextMenuItem, ya as ContextMenuLabel, Ta as ContextMenuRadioGroup, Ea as ContextMenuRadioItem, Da as ContextMenuSeparator, Oa as ContextMenuShortcut, xa as ContextMenuSub, Ca as ContextMenuSubContent, Sa as ContextMenuSubTrigger, ga as ContextMenuTrigger, Aa as DataTable, ja as DataTableColumnHeader, Ma as DataTableColumnVisibility, Pa as DataTablePagination, Na as DataTableToolbar, ir as DateTimePicker, Hn as DateTimeRangePicker, oe as Dialog, at as DialogClose, l as DialogContent, de as DialogDescription, g as DialogFooter, ue as DialogHeader, fe as DialogOverlay, ee as DialogPortal, v as DialogTitle, Ke as DialogTrigger, La as DirectionProvider, kt as Drawer, Kt as DrawerClose, Yt as DrawerContent, jt as DrawerDescription, Jt as DrawerFooter, Ct as DrawerHeader, ct as DrawerOverlay, qt as DrawerPortal, wt as DrawerSwipeHandle, ut as DrawerTitle, lt as DrawerTrigger, tt as DropdownMenu, rt as DropdownMenuCheckboxItem, be as DropdownMenuContent, T as DropdownMenuGroup, se as DropdownMenuItem, u as DropdownMenuLabel, nt as DropdownMenuPortal, ce as DropdownMenuRadioGroup, p as DropdownMenuRadioItem, d as DropdownMenuSeparator, re as DropdownMenuShortcut, Ie as DropdownMenuSub, c as DropdownMenuSubContent, Fe as DropdownMenuSubTrigger, y as DropdownMenuTrigger, ye as Empty, Ue as EmptyContent, Xe as EmptyDescription, Ce as EmptyHeader, Re as EmptyMedia, et as EmptyTitle, _t as Field, St as FieldContent, Xt as FieldDescription, st as FieldError, Et as FieldGroup, pt as FieldLabel, Tt as FieldLegend, Dt as FieldSeparator, ft as FieldSet, gt as FieldTitle, Ua as Gauge, Sn as GaugeBar, Wa as HoverCard, Ka as HoverCardContent, Ga as HoverCardTrigger, xe as InlineSkeleton, Mt as Input, O as InputGroup, k as InputGroupAddon, D as InputGroupButton, At as InputGroupInput, Bt as InputGroupText, Ut as InputGroupTextarea, yt as InputOTP, xt as InputOTPGroup, dt as InputOTPSeparator, mt as InputOTPSlot, gr as Item, qn as ItemActions, In as ItemContent, hr as ItemDescription, Jn as ItemFooter, Rn as ItemGroup, Ln as ItemHeader, Wn as ItemMedia, ar as ItemSeparator, Pn as ItemTitle, sn as Kbd, tn as KbdGroup, ht as Label, zr as Line, Br as LineChart, Ja as Marker, Xa as MarkerContent, Ya as MarkerIcon, Za as Menubar, ro as MenubarCheckboxItem, to as MenubarContent, $a as MenubarGroup, no as MenubarItem, oo as MenubarLabel, Qa as MenubarMenu, io as MenubarRadioGroup, ao as MenubarRadioItem, so as MenubarSeparator, co as MenubarShortcut, lo as MenubarSub, fo as MenubarSubContent, uo as MenubarSubTrigger, eo as MenubarTrigger, mo as Message, ho as MessageAvatar, go as MessageContent, vo as MessageFooter, po as MessageGroup, _o as MessageHeader, fr as MessageHistoryBell, a as MessageHistoryProvider, n as MessageScopeProvider, Co as MessageScroller, Do as MessageScrollerButton, To as MessageScrollerContent, Eo as MessageScrollerItem, yo as MessageScrollerProvider, wo as MessageScrollerViewport, ot as NativeSelect, Lt as NativeSelectOptGroup, vt as NativeSelectOption, Oo as NavigationMenu, No as NavigationMenuContent, Io as NavigationMenuIndicator, Ao as NavigationMenuItem, Fo as NavigationMenuLink, ko as NavigationMenuList, Po as NavigationMenuPositioner, Mo as NavigationMenuTrigger, Mn as NoticeCard, Qn as PageHeader, ne as PageTitle, Lo as Pagination, Ro as PaginationContent, Uo as PaginationEllipsis, zo as PaginationItem, Bo as PaginationLink, Ho as PaginationNext, Vo as PaginationPrevious, Nt as Popover, Pt as PopoverContent, Vt as PopoverDescription, zt as PopoverHeader, It as PopoverTitle, Ft as PopoverTrigger, We as Progress, ze as ProgressIndicator, je as ProgressLabel, ke as ProgressTrack, ge as ProgressValue, Wo as Questionnaire, es as QuestionnaireActions, Xo as QuestionnaireChoice, Zo as QuestionnaireChoiceDescription, Yo as QuestionnaireChoices, Jo as QuestionnaireDescription, $o as QuestionnaireError, Qo as QuestionnaireInput, Ko as QuestionnaireItem, rs as QuestionnaireNext, ts as QuestionnairePrevious, Go as QuestionnaireProgress, ns as QuestionnaireSkip, is as QuestionnaireSubmit, qo as QuestionnaireTitle, mr as RadioGroup, _r as RadioGroupItem, Vr as Rectangle, Hr as ReferenceLine, mn as ResizableHandle, dn as ResizablePanel, cn as ResizablePanelGroup, as as ScrollArea, os as ScrollBar, _n as Select, fn as SelectContent, hn as SelectGroup, ln as SelectItem, nn as SelectLabel, pn as SelectSeparator, gn as SelectTrigger, rn as SelectValue, Ht as Separator, pr as Sheet, $n as SheetClose, er as SheetContent, lr as SheetDescription, or as SheetFooter, nr as SheetHeader, tr as SheetTitle, Xn as SheetTrigger, ls as Sidebar, _s as SidebarContent, hs as SidebarFooter, vs as SidebarGroup, bs as SidebarGroupAction, xs as SidebarGroupContent, ys as SidebarGroupLabel, ms as SidebarHeader, ps as SidebarInput, fs as SidebarInset, Ss as SidebarMenu, Es as SidebarMenuAction, Ds as SidebarMenuBadge, Ts as SidebarMenuButton, Cs as SidebarMenuItem, Os as SidebarMenuSkeleton, ks as SidebarMenuSub, js as SidebarMenuSubButton, As as SidebarMenuSubItem, cs as SidebarProvider, ds as SidebarRail, gs as SidebarSeparator, us as SidebarTrigger, E as Skeleton, Ee as Slider, yn as Sparkline, Wt as Spinner, Hs as SvgDiagram, s as Switch, Te as Table, Oe as TableBody, Ge as TableCaption, C as TableCell, Me as TableFooter, Ae as TableHead, _e as TableHeader, w as TableRow, sr as Tabs, ur as TabsContent, rr as TabsList, Zn as TabsTrigger, it as Textarea, dr as Toaster, he as Toggle, me as ToggleGroup, pe as ToggleGroupItem, ie as Tooltip, h as TooltipContent, _ as TooltipProvider, te as TooltipTrigger, f as WindowOverlayScope, Ur as XAxis, Wr as YAxis, fi as aspectRatioVariants, Gt as badgeVariants, on as buttonGroupVariants, b as buttonVariants, x as cn, za as gaugeScaleMax, qa as markerVariants, jo as navigationMenuTriggerStyle, e as showNotificationToast, cr as tabsListVariants, o as toast, ae as toggleVariants, Z as useCarousel, aa as useComboboxAnchor, Ra as useDirection, bo as useMessageScroller, xo as useMessageScrollerScrollable, So as useMessageScrollerVisibility, Q as useSidebar, i as useToast };
|