@jinaan/uikit 0.1.8 → 0.1.10
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/callout.d.ts.map +1 -1
- package/dist/choice-dialog.d.ts.map +1 -1
- package/dist/dialog.d.ts +3 -0
- package/dist/dialog.d.ts.map +1 -1
- package/dist/index.js +566 -562
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/callout.tsx +1 -0
- package/src/choice-dialog.tsx +2 -7
- package/src/dialog.tsx +48 -13
- package/src/dropdown-menu.tsx +4 -4
- package/src/select.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import { CircleNotch as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { Slot as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { CircleNotch as yt, Robot as wt, Terminal as Ct, Check as X, Copy as Fe, XCircle as St, Warning as kt, CheckCircle as zt, Info as Dt, Minus as Tt, X as le, CaretDown as ee, MagnifyingGlass as Mt, Columns as Pt, Lock as It, FunnelSimple as Ee, WarningCircle as Et, CaretUp as jt, CaretUpDown as _t } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as b, useState as D, Children as $e, isValidElement as qe, useRef as te, useEffect as V, useContext as ie, useCallback as Lt, createContext as se, useId as de, useMemo as je } from "react";
|
|
4
|
+
import { Slot as Rt } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva as we } from "class-variance-authority";
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
6
|
+
import { clsx as At } from "clsx";
|
|
7
|
+
import { twMerge as Bt } from "tailwind-merge";
|
|
8
8
|
import * as Ce from "@radix-ui/react-avatar";
|
|
9
9
|
import * as _e from "@radix-ui/react-checkbox";
|
|
10
|
-
import * as
|
|
10
|
+
import * as M from "@radix-ui/react-dialog";
|
|
11
11
|
import * as T from "@radix-ui/react-dropdown-menu";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
12
|
+
import * as z from "@radix-ui/react-select";
|
|
13
|
+
import * as Ft from "@radix-ui/react-label";
|
|
14
|
+
import * as $t from "@radix-ui/react-separator";
|
|
15
15
|
import * as W from "@radix-ui/react-tooltip";
|
|
16
16
|
function o(...t) {
|
|
17
|
-
return
|
|
17
|
+
return Bt(At(t));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function qt({ className: t }) {
|
|
20
20
|
return /* @__PURE__ */ e(
|
|
21
|
-
|
|
21
|
+
yt,
|
|
22
22
|
{
|
|
23
23
|
className: o("size-4 animate-spin text-muted", t),
|
|
24
24
|
weight: "bold",
|
|
@@ -26,7 +26,7 @@ function Ft({ className: t }) {
|
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const Gt = we(
|
|
30
30
|
"relative inline-flex select-none items-center justify-center gap-[var(--control-gap)] whitespace-nowrap rounded-[var(--control-radius)] border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-[120ms] active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong disabled:pointer-events-none disabled:opacity-50",
|
|
31
31
|
{
|
|
32
32
|
variants: {
|
|
@@ -52,71 +52,71 @@ const $t = we(
|
|
|
52
52
|
size: "md"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
),
|
|
55
|
+
), Ht = {
|
|
56
56
|
xs: "[&_svg]:size-[var(--control-icon-xs)]",
|
|
57
57
|
sm: "[&_svg]:size-[var(--control-icon-sm)]",
|
|
58
58
|
md: "[&_svg]:size-[var(--control-icon-md)]",
|
|
59
59
|
lg: "[&_svg]:size-[var(--control-icon-lg)]",
|
|
60
60
|
xl: "[&_svg]:size-[var(--control-icon-xl)]",
|
|
61
61
|
icon: "[&_svg]:size-[var(--control-icon-md)]"
|
|
62
|
-
}, S =
|
|
62
|
+
}, S = b(
|
|
63
63
|
({
|
|
64
64
|
className: t,
|
|
65
65
|
variant: r,
|
|
66
66
|
size: a = "md",
|
|
67
67
|
asChild: l = !1,
|
|
68
68
|
leadingIcon: i,
|
|
69
|
-
trailingIcon:
|
|
70
|
-
iconOnly:
|
|
71
|
-
loading:
|
|
72
|
-
fullWidth:
|
|
73
|
-
disabled:
|
|
74
|
-
children:
|
|
75
|
-
...
|
|
76
|
-
},
|
|
77
|
-
const
|
|
69
|
+
trailingIcon: d,
|
|
70
|
+
iconOnly: c = !1,
|
|
71
|
+
loading: u = !1,
|
|
72
|
+
fullWidth: h = !1,
|
|
73
|
+
disabled: g,
|
|
74
|
+
children: p,
|
|
75
|
+
...N
|
|
76
|
+
}, k) => {
|
|
77
|
+
const C = l ? Rt : "button", w = Ht[a ?? "md"];
|
|
78
78
|
return /* @__PURE__ */ e(
|
|
79
|
-
|
|
79
|
+
C,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
82
|
-
"aria-busy":
|
|
83
|
-
disabled: l ? void 0 :
|
|
81
|
+
ref: k,
|
|
82
|
+
"aria-busy": u || void 0,
|
|
83
|
+
disabled: l ? void 0 : g || u,
|
|
84
84
|
className: o(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
Gt({ variant: r, size: a }),
|
|
86
|
+
c && "aspect-square px-0",
|
|
87
|
+
h && "w-full",
|
|
88
88
|
t
|
|
89
89
|
),
|
|
90
|
-
...
|
|
91
|
-
children: l ?
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
!
|
|
90
|
+
...N,
|
|
91
|
+
children: l ? p : /* @__PURE__ */ s(ye, { children: [
|
|
92
|
+
u ? /* @__PURE__ */ e(qt, { className: o("text-current", w), "aria-hidden": !0 }) : i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
|
|
93
|
+
p,
|
|
94
|
+
!u && d ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
|
|
95
95
|
] })
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
100
|
S.displayName = "Button";
|
|
101
|
-
function
|
|
101
|
+
function Br({
|
|
102
102
|
command: t,
|
|
103
103
|
tag: r = "Build with agents",
|
|
104
104
|
icon: a,
|
|
105
105
|
className: l
|
|
106
106
|
}) {
|
|
107
|
-
const [i,
|
|
107
|
+
const [i, d] = D(!1), c = async () => {
|
|
108
108
|
try {
|
|
109
|
-
await navigator.clipboard.writeText(t),
|
|
109
|
+
await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
|
|
110
110
|
} catch {
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
|
|
114
114
|
/* @__PURE__ */ s("span", { className: "absolute -top-2.5 left-4 z-10 inline-flex items-center gap-1.5 rounded-md bg-fg px-2 py-1 text-[11px] font-medium text-canvas shadow-sm", children: [
|
|
115
|
-
a ?? /* @__PURE__ */ e(
|
|
115
|
+
a ?? /* @__PURE__ */ e(wt, { className: "size-3.5", weight: "fill" }),
|
|
116
116
|
r
|
|
117
117
|
] }),
|
|
118
118
|
/* @__PURE__ */ s("div", { className: "mt-2 flex w-full items-center gap-2 rounded-xl border border-line bg-surface py-2 pl-3 pr-2 shadow-sm", children: [
|
|
119
|
-
/* @__PURE__ */ e(
|
|
119
|
+
/* @__PURE__ */ e(Ct, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
120
120
|
/* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
|
|
121
121
|
/* @__PURE__ */ e(
|
|
122
122
|
S,
|
|
@@ -126,14 +126,14 @@ function Rr({
|
|
|
126
126
|
iconOnly: !0,
|
|
127
127
|
"aria-label": "Copy prompt",
|
|
128
128
|
className: "ml-auto",
|
|
129
|
-
onClick:
|
|
129
|
+
onClick: c,
|
|
130
130
|
children: i ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {})
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
] })
|
|
134
134
|
] });
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const Ge = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
137
137
|
Ce.Root,
|
|
138
138
|
{
|
|
139
139
|
ref: a,
|
|
@@ -144,8 +144,8 @@ const He = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
144
144
|
...r
|
|
145
145
|
}
|
|
146
146
|
));
|
|
147
|
-
|
|
148
|
-
const
|
|
147
|
+
Ge.displayName = "Avatar";
|
|
148
|
+
const He = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
149
149
|
Ce.Image,
|
|
150
150
|
{
|
|
151
151
|
ref: a,
|
|
@@ -153,8 +153,8 @@ const qe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
153
153
|
...r
|
|
154
154
|
}
|
|
155
155
|
));
|
|
156
|
-
|
|
157
|
-
const Ve =
|
|
156
|
+
He.displayName = "AvatarImage";
|
|
157
|
+
const Ve = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
158
158
|
Ce.Fallback,
|
|
159
159
|
{
|
|
160
160
|
ref: a,
|
|
@@ -166,7 +166,7 @@ const Ve = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
166
166
|
}
|
|
167
167
|
));
|
|
168
168
|
Ve.displayName = "AvatarFallback";
|
|
169
|
-
const
|
|
169
|
+
const Vt = we(
|
|
170
170
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
171
171
|
{
|
|
172
172
|
variants: {
|
|
@@ -182,7 +182,7 @@ const Ht = we(
|
|
|
182
182
|
},
|
|
183
183
|
defaultVariants: { variant: "neutral" }
|
|
184
184
|
}
|
|
185
|
-
),
|
|
185
|
+
), Ut = we("size-1.5 shrink-0 rounded-full", {
|
|
186
186
|
variants: {
|
|
187
187
|
variant: {
|
|
188
188
|
neutral: "bg-subtle",
|
|
@@ -196,53 +196,54 @@ const Ht = we(
|
|
|
196
196
|
},
|
|
197
197
|
defaultVariants: { variant: "neutral" }
|
|
198
198
|
});
|
|
199
|
-
function
|
|
200
|
-
return /* @__PURE__ */ s("span", { className: o(
|
|
201
|
-
a ? /* @__PURE__ */ e("span", { className: o(
|
|
199
|
+
function Wt({ className: t, variant: r, dot: a = !1, children: l, ...i }) {
|
|
200
|
+
return /* @__PURE__ */ s("span", { className: o(Vt({ variant: r }), t), ...i, children: [
|
|
201
|
+
a ? /* @__PURE__ */ e("span", { className: o(Ut({ variant: r })), "aria-hidden": !0 }) : null,
|
|
202
202
|
l
|
|
203
203
|
] });
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const Xt = {
|
|
206
206
|
info: {
|
|
207
|
-
Icon:
|
|
207
|
+
Icon: Dt,
|
|
208
208
|
className: "border-info/30 bg-info/10",
|
|
209
209
|
iconClassName: "text-info"
|
|
210
210
|
},
|
|
211
211
|
success: {
|
|
212
|
-
Icon:
|
|
212
|
+
Icon: zt,
|
|
213
213
|
className: "border-success/30 bg-success/10",
|
|
214
214
|
iconClassName: "text-success"
|
|
215
215
|
},
|
|
216
216
|
warning: {
|
|
217
|
-
Icon:
|
|
217
|
+
Icon: kt,
|
|
218
218
|
className: "border-warning/30 bg-warning/10",
|
|
219
219
|
iconClassName: "text-warning"
|
|
220
220
|
},
|
|
221
221
|
error: {
|
|
222
|
-
Icon:
|
|
222
|
+
Icon: St,
|
|
223
223
|
className: "border-error/30 bg-error/10",
|
|
224
224
|
iconClassName: "text-error"
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function Fr({
|
|
228
228
|
variant: t = "info",
|
|
229
229
|
title: r,
|
|
230
230
|
children: a,
|
|
231
231
|
icon: l,
|
|
232
232
|
className: i
|
|
233
233
|
}) {
|
|
234
|
-
const { Icon:
|
|
234
|
+
const { Icon: d, className: c, iconClassName: u } = Xt[t];
|
|
235
235
|
return /* @__PURE__ */ s(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
role: t === "error" ? "alert" : void 0,
|
|
239
239
|
className: o(
|
|
240
240
|
"flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
|
|
241
|
-
|
|
241
|
+
"animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
|
|
242
|
+
c,
|
|
242
243
|
i
|
|
243
244
|
),
|
|
244
245
|
children: [
|
|
245
|
-
/* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4",
|
|
246
|
+
/* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", u), children: l ?? /* @__PURE__ */ e(d, { weight: "fill" }) }),
|
|
246
247
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
247
248
|
r ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: r }) : null,
|
|
248
249
|
a ? /* @__PURE__ */ e("div", { className: "text-muted", children: a }) : null
|
|
@@ -251,7 +252,7 @@ function Ar({
|
|
|
251
252
|
}
|
|
252
253
|
);
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function Jt({
|
|
255
256
|
className: t,
|
|
256
257
|
...r
|
|
257
258
|
}) {
|
|
@@ -266,7 +267,7 @@ function Wt({
|
|
|
266
267
|
}
|
|
267
268
|
);
|
|
268
269
|
}
|
|
269
|
-
function
|
|
270
|
+
function Qt({
|
|
270
271
|
className: t,
|
|
271
272
|
...r
|
|
272
273
|
}) {
|
|
@@ -281,7 +282,7 @@ function Xt({
|
|
|
281
282
|
}
|
|
282
283
|
);
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function $r({ className: t, ...r }) {
|
|
285
286
|
return /* @__PURE__ */ e(
|
|
286
287
|
"table",
|
|
287
288
|
{
|
|
@@ -290,13 +291,13 @@ function Br({ className: t, ...r }) {
|
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function qr({ className: t, ...r }) {
|
|
294
295
|
return /* @__PURE__ */ e("thead", { className: t, ...r });
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Yt({ className: t, ...r }) {
|
|
297
298
|
return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...r });
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function Zt({ className: t, ...r }) {
|
|
300
301
|
return /* @__PURE__ */ e(
|
|
301
302
|
"tr",
|
|
302
303
|
{
|
|
@@ -308,7 +309,7 @@ function Jt({ className: t, ...r }) {
|
|
|
308
309
|
}
|
|
309
310
|
);
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
+
function Gr({ className: t, ...r }) {
|
|
312
313
|
return /* @__PURE__ */ e(
|
|
313
314
|
"th",
|
|
314
315
|
{
|
|
@@ -320,7 +321,7 @@ function $r({ className: t, ...r }) {
|
|
|
320
321
|
}
|
|
321
322
|
);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function fe({ className: t, ...r }) {
|
|
324
325
|
return /* @__PURE__ */ e(
|
|
325
326
|
"td",
|
|
326
327
|
{
|
|
@@ -332,31 +333,31 @@ function me({ className: t, ...r }) {
|
|
|
332
333
|
}
|
|
333
334
|
);
|
|
334
335
|
}
|
|
335
|
-
const
|
|
336
|
+
const Kt = {
|
|
336
337
|
default: "bg-table-container",
|
|
337
338
|
muted: "bg-surface border border-line",
|
|
338
339
|
transparent: "bg-transparent"
|
|
339
|
-
},
|
|
340
|
+
}, Ot = {
|
|
340
341
|
default: "bg-table-panel border-table-panel-border",
|
|
341
342
|
muted: "bg-elevated border-line",
|
|
342
343
|
transparent: "bg-transparent border-line"
|
|
343
344
|
};
|
|
344
|
-
function
|
|
345
|
+
function er(t) {
|
|
345
346
|
return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function ce({
|
|
348
349
|
title: t,
|
|
349
350
|
description: r,
|
|
350
351
|
header: a,
|
|
351
352
|
children: l,
|
|
352
353
|
action: i,
|
|
353
|
-
tone:
|
|
354
|
-
className:
|
|
355
|
-
headerClassName:
|
|
356
|
-
panelClassName:
|
|
357
|
-
minHeight:
|
|
354
|
+
tone: d = "default",
|
|
355
|
+
className: c,
|
|
356
|
+
headerClassName: u,
|
|
357
|
+
panelClassName: h,
|
|
358
|
+
minHeight: g
|
|
358
359
|
}) {
|
|
359
|
-
const
|
|
360
|
+
const p = !!(t || r), N = er(i) ? /* @__PURE__ */ e(
|
|
360
361
|
S,
|
|
361
362
|
{
|
|
362
363
|
variant: i.variant ?? "primary",
|
|
@@ -371,17 +372,17 @@ function oe({
|
|
|
371
372
|
] }) : i.label
|
|
372
373
|
}
|
|
373
374
|
) : i;
|
|
374
|
-
return /* @__PURE__ */ s(
|
|
375
|
+
return /* @__PURE__ */ s(Jt, { className: o("relative", Kt[d], c), children: [
|
|
375
376
|
/* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
376
|
-
a ||
|
|
377
|
+
a || p ? (
|
|
377
378
|
// Header rows must not inherit the body row hover surface.
|
|
378
|
-
/* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent]",
|
|
379
|
-
|
|
379
|
+
/* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent]", u), children: [
|
|
380
|
+
p ? /* @__PURE__ */ s(
|
|
380
381
|
"div",
|
|
381
382
|
{
|
|
382
383
|
className: o(
|
|
383
384
|
"px-(--table-pad-x) pb-3 pt-4",
|
|
384
|
-
|
|
385
|
+
N && "pr-28"
|
|
385
386
|
),
|
|
386
387
|
children: [
|
|
387
388
|
t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
|
|
@@ -393,34 +394,34 @@ function oe({
|
|
|
393
394
|
] })
|
|
394
395
|
) : null,
|
|
395
396
|
/* @__PURE__ */ e(
|
|
396
|
-
|
|
397
|
+
Qt,
|
|
397
398
|
{
|
|
398
|
-
className: o(
|
|
399
|
-
style:
|
|
399
|
+
className: o(Ot[d], h),
|
|
400
|
+
style: g ? { minHeight: g } : void 0,
|
|
400
401
|
children: l
|
|
401
402
|
}
|
|
402
403
|
)
|
|
403
404
|
] }),
|
|
404
|
-
|
|
405
|
+
N ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: N }) }) : null
|
|
405
406
|
] });
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function tr(t) {
|
|
408
409
|
const r = $e.toArray(t), a = r.filter(
|
|
409
|
-
(l) =>
|
|
410
|
+
(l) => qe(l) && l.type === Ue
|
|
410
411
|
);
|
|
411
412
|
return {
|
|
412
|
-
header: a.length > 0 ? /* @__PURE__ */ e(
|
|
413
|
+
header: a.length > 0 ? /* @__PURE__ */ e(ye, { children: a }) : void 0,
|
|
413
414
|
body: r.filter((l) => !a.includes(l))
|
|
414
415
|
};
|
|
415
416
|
}
|
|
416
|
-
const
|
|
417
|
+
const rr = b(
|
|
417
418
|
({ className: t, children: r, ...a }, l) => {
|
|
418
|
-
const { header: i, body:
|
|
419
|
-
return /* @__PURE__ */ e("div", { ref: l, ...a, children: /* @__PURE__ */ e(
|
|
419
|
+
const { header: i, body: d } = tr(r);
|
|
420
|
+
return /* @__PURE__ */ e("div", { ref: l, ...a, children: /* @__PURE__ */ e(ce, { className: o("shadow-xs", t), header: i, children: d }) });
|
|
420
421
|
}
|
|
421
422
|
);
|
|
422
|
-
|
|
423
|
-
const Ue =
|
|
423
|
+
rr.displayName = "Card";
|
|
424
|
+
const Ue = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
424
425
|
"div",
|
|
425
426
|
{
|
|
426
427
|
ref: a,
|
|
@@ -432,7 +433,7 @@ const Ue = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
432
433
|
}
|
|
433
434
|
));
|
|
434
435
|
Ue.displayName = "CardHeader";
|
|
435
|
-
const
|
|
436
|
+
const ar = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
436
437
|
"h2",
|
|
437
438
|
{
|
|
438
439
|
ref: a,
|
|
@@ -440,8 +441,8 @@ const tr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
440
441
|
...r
|
|
441
442
|
}
|
|
442
443
|
));
|
|
443
|
-
|
|
444
|
-
const
|
|
444
|
+
ar.displayName = "CardTitle";
|
|
445
|
+
const nr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
445
446
|
"p",
|
|
446
447
|
{
|
|
447
448
|
ref: a,
|
|
@@ -453,10 +454,10 @@ const rr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
453
454
|
...r
|
|
454
455
|
}
|
|
455
456
|
));
|
|
456
|
-
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
const
|
|
457
|
+
nr.displayName = "CardDescription";
|
|
458
|
+
const lr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: o("px-5 py-4", t), ...r }));
|
|
459
|
+
lr.displayName = "CardContent";
|
|
460
|
+
const ir = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
460
461
|
"div",
|
|
461
462
|
{
|
|
462
463
|
ref: a,
|
|
@@ -467,8 +468,8 @@ const nr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
467
468
|
...r
|
|
468
469
|
}
|
|
469
470
|
));
|
|
470
|
-
|
|
471
|
-
const
|
|
471
|
+
ir.displayName = "CardFooter";
|
|
472
|
+
const xe = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
472
473
|
_e.Root,
|
|
473
474
|
{
|
|
474
475
|
ref: a,
|
|
@@ -481,17 +482,17 @@ const he = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
481
482
|
t
|
|
482
483
|
),
|
|
483
484
|
...r,
|
|
484
|
-
children: /* @__PURE__ */ e(_e.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: r.checked === "indeterminate" ? /* @__PURE__ */ e(
|
|
485
|
+
children: /* @__PURE__ */ e(_e.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: r.checked === "indeterminate" ? /* @__PURE__ */ e(Tt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) })
|
|
485
486
|
}
|
|
486
487
|
));
|
|
487
|
-
|
|
488
|
+
xe.displayName = "Checkbox";
|
|
488
489
|
function Le(t) {
|
|
489
490
|
return t.width > 0 && t.height > 0;
|
|
490
491
|
}
|
|
491
492
|
function Re(t) {
|
|
492
493
|
return Math.min(1, Math.max(0.1, t));
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function or(t, r) {
|
|
495
496
|
return !Le(t) || !Le(r) ? null : {
|
|
496
497
|
dx: t.left + t.width / 2 - (r.left + r.width / 2),
|
|
497
498
|
dy: t.top + t.height / 2 - (r.top + r.height / 2),
|
|
@@ -510,27 +511,27 @@ function Se(t) {
|
|
|
510
511
|
height: r.height
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
+
function ve(t) {
|
|
514
515
|
if (!(t instanceof Element)) return;
|
|
515
516
|
const r = t.closest(We);
|
|
516
517
|
if (!r) return;
|
|
517
518
|
const a = Se(r);
|
|
518
519
|
a && (A = { rect: a, at: Date.now() });
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function sr() {
|
|
521
522
|
Ae || typeof document > "u" || (Ae = !0, document.addEventListener(
|
|
522
523
|
"pointerdown",
|
|
523
|
-
(t) =>
|
|
524
|
+
(t) => ve(t.target),
|
|
524
525
|
!0
|
|
525
526
|
), document.addEventListener(
|
|
526
527
|
"keydown",
|
|
527
528
|
(t) => {
|
|
528
|
-
t.key !== "Enter" && t.key !== " " ||
|
|
529
|
+
t.key !== "Enter" && t.key !== " " || ve(document.activeElement);
|
|
529
530
|
},
|
|
530
531
|
!0
|
|
531
532
|
));
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
+
function dr(t) {
|
|
534
535
|
if (A && Date.now() - A.at < 2e3) {
|
|
535
536
|
const a = A.rect;
|
|
536
537
|
return A = null, a;
|
|
@@ -539,102 +540,106 @@ function or(t) {
|
|
|
539
540
|
const r = document.activeElement;
|
|
540
541
|
return r instanceof Element && r !== t && !t.contains(r) && r.matches(We) ? Se(r) : null;
|
|
541
542
|
}
|
|
542
|
-
const
|
|
543
|
-
|
|
543
|
+
const cr = 250, Xe = se(!1), Je = se(() => {
|
|
544
|
+
});
|
|
545
|
+
function ur({
|
|
544
546
|
open: t,
|
|
545
547
|
defaultOpen: r,
|
|
546
548
|
onOpenChange: a,
|
|
547
549
|
children: l,
|
|
548
550
|
...i
|
|
549
551
|
}) {
|
|
550
|
-
const [
|
|
552
|
+
const [d, c] = D(
|
|
551
553
|
r ?? !1
|
|
552
|
-
), [
|
|
553
|
-
|
|
554
|
+
), [u, h] = D(!1), g = te(!1), p = te(null), N = t ?? d, k = te(N);
|
|
555
|
+
k.current = N;
|
|
554
556
|
const C = t !== void 0;
|
|
555
|
-
V(() =>
|
|
556
|
-
t &&
|
|
557
|
+
V(() => sr(), []), V(() => {
|
|
558
|
+
t && h(!1);
|
|
557
559
|
}, [t]), V(
|
|
558
560
|
() => () => {
|
|
559
|
-
|
|
561
|
+
p.current && clearTimeout(p.current);
|
|
560
562
|
},
|
|
561
563
|
[]
|
|
562
564
|
);
|
|
563
|
-
const
|
|
564
|
-
if (
|
|
565
|
-
|
|
565
|
+
const w = (I) => {
|
|
566
|
+
if (I) {
|
|
567
|
+
p.current && clearTimeout(p.current), g.current = !1, h(!1), C || c(!0), a == null || a(!0);
|
|
566
568
|
return;
|
|
567
569
|
}
|
|
568
|
-
if (!
|
|
570
|
+
if (!N || g.current) return;
|
|
569
571
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
570
|
-
C ||
|
|
572
|
+
C || c(!1), a == null || a(!1);
|
|
571
573
|
return;
|
|
572
574
|
}
|
|
573
|
-
|
|
574
|
-
C ||
|
|
575
|
-
|
|
575
|
+
g.current = !0, h(!0), p.current = setTimeout(() => {
|
|
576
|
+
C || c(!1), a == null || a(!1), requestAnimationFrame(() => {
|
|
577
|
+
k.current && (g.current = !1, h(!1));
|
|
576
578
|
});
|
|
577
|
-
},
|
|
579
|
+
}, cr);
|
|
578
580
|
};
|
|
579
|
-
return /* @__PURE__ */ e(Xe.Provider, { value:
|
|
580
|
-
|
|
581
|
+
return /* @__PURE__ */ e(Je.Provider, { value: () => w(!1), children: /* @__PURE__ */ e(Xe.Provider, { value: u, children: /* @__PURE__ */ e(
|
|
582
|
+
M.Root,
|
|
581
583
|
{
|
|
582
|
-
open:
|
|
583
|
-
onOpenChange:
|
|
584
|
+
open: N,
|
|
585
|
+
onOpenChange: w,
|
|
584
586
|
...i,
|
|
585
587
|
children: l
|
|
586
588
|
}
|
|
587
|
-
) });
|
|
589
|
+
) }) });
|
|
588
590
|
}
|
|
589
|
-
const
|
|
590
|
-
|
|
591
|
+
const Qe = b(({ onClick: t, ...r }, a) => /* @__PURE__ */ e(
|
|
592
|
+
M.Trigger,
|
|
591
593
|
{
|
|
592
594
|
ref: a,
|
|
593
595
|
onClick: (l) => {
|
|
594
|
-
|
|
596
|
+
ve(l.currentTarget), t == null || t(l);
|
|
595
597
|
},
|
|
596
598
|
...r
|
|
597
599
|
}
|
|
598
600
|
));
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
601
|
+
Qe.displayName = "DialogTrigger";
|
|
602
|
+
const Hr = M.Close, Ye = b(
|
|
603
|
+
({ variant: t = "secondary", children: r = "Cancel", ...a }, l) => /* @__PURE__ */ e(M.Close, { asChild: !0, children: /* @__PURE__ */ e(S, { ref: l, type: "button", variant: t, ...a, children: r }) })
|
|
604
|
+
);
|
|
605
|
+
Ye.displayName = "DialogCancel";
|
|
606
|
+
function Ze(t, r = !0) {
|
|
602
607
|
if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
603
608
|
return;
|
|
604
609
|
const a = Se(t);
|
|
605
610
|
if (!a) {
|
|
606
|
-
r && window.requestAnimationFrame(() =>
|
|
611
|
+
r && window.requestAnimationFrame(() => Ze(t, !1));
|
|
607
612
|
return;
|
|
608
613
|
}
|
|
609
614
|
t.dataset.dialogMotionStarted = "true";
|
|
610
|
-
const l =
|
|
615
|
+
const l = dr(t), i = l ? or(l, a) : null;
|
|
611
616
|
i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.sy)), t.classList.add("dialog-fly-in")) : t.classList.add("dialog-pop-in");
|
|
612
|
-
const
|
|
617
|
+
const d = () => {
|
|
613
618
|
t.classList.remove("dialog-fly-in", "dialog-pop-in"), t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy");
|
|
614
|
-
},
|
|
615
|
-
|
|
619
|
+
}, c = (u) => {
|
|
620
|
+
u.target === t && (u.animationName !== "dialog-fly-in" && u.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", c), d()));
|
|
616
621
|
};
|
|
617
|
-
t.addEventListener("animationend",
|
|
622
|
+
t.addEventListener("animationend", c);
|
|
618
623
|
}
|
|
619
|
-
const
|
|
620
|
-
const
|
|
621
|
-
(
|
|
622
|
-
if (
|
|
623
|
-
|
|
624
|
+
const Ke = b(({ className: t, children: r, onEscapeKeyDown: a, onPointerDownOutside: l, ...i }, d) => {
|
|
625
|
+
const c = ie(Xe), u = ie(Je), h = te(null), g = Lt(
|
|
626
|
+
(p) => {
|
|
627
|
+
if (h.current = p, p && Ze(p), typeof d == "function") {
|
|
628
|
+
d(p);
|
|
624
629
|
return;
|
|
625
630
|
}
|
|
626
|
-
|
|
631
|
+
d && (d.current = p);
|
|
627
632
|
},
|
|
628
|
-
[
|
|
633
|
+
[d]
|
|
629
634
|
);
|
|
630
|
-
return /* @__PURE__ */ s(
|
|
635
|
+
return /* @__PURE__ */ s(M.Portal, { children: [
|
|
631
636
|
/* @__PURE__ */ e(
|
|
632
|
-
|
|
637
|
+
M.Overlay,
|
|
633
638
|
{
|
|
634
639
|
className: o(
|
|
635
|
-
"fixed inset-0 z-50 overflow-hidden bg-overlay data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
636
|
-
!
|
|
637
|
-
|
|
640
|
+
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
641
|
+
!c && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
642
|
+
c && "opacity-0 transition-opacity duration-200"
|
|
638
643
|
),
|
|
639
644
|
children: /* @__PURE__ */ e(
|
|
640
645
|
"span",
|
|
@@ -646,21 +651,27 @@ const Qe = p(({ className: t, children: r, ...a }, l) => {
|
|
|
646
651
|
}
|
|
647
652
|
),
|
|
648
653
|
/* @__PURE__ */ e("div", { className: "pointer-events-none fixed inset-0 z-50 flex items-center justify-center overflow-y-auto p-4", children: /* @__PURE__ */ s(
|
|
649
|
-
|
|
654
|
+
M.Content,
|
|
650
655
|
{
|
|
651
|
-
ref:
|
|
656
|
+
ref: g,
|
|
652
657
|
className: o(
|
|
653
658
|
"dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
|
|
654
659
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
655
|
-
|
|
660
|
+
c && "dialog-closing",
|
|
656
661
|
"focus:outline-none",
|
|
657
662
|
t
|
|
658
663
|
),
|
|
659
|
-
|
|
664
|
+
onEscapeKeyDown: (p) => {
|
|
665
|
+
a == null || a(p), !p.defaultPrevented && (p.preventDefault(), u());
|
|
666
|
+
},
|
|
667
|
+
onPointerDownOutside: (p) => {
|
|
668
|
+
l == null || l(p), !p.defaultPrevented && (p.preventDefault(), u());
|
|
669
|
+
},
|
|
670
|
+
...i,
|
|
660
671
|
children: [
|
|
661
672
|
r,
|
|
662
|
-
/* @__PURE__ */ s(
|
|
663
|
-
/* @__PURE__ */ e(
|
|
673
|
+
/* @__PURE__ */ s(M.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
|
|
674
|
+
/* @__PURE__ */ e(le, { className: "size-4" }),
|
|
664
675
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
665
676
|
] })
|
|
666
677
|
]
|
|
@@ -668,8 +679,8 @@ const Qe = p(({ className: t, children: r, ...a }, l) => {
|
|
|
668
679
|
) })
|
|
669
680
|
] });
|
|
670
681
|
});
|
|
671
|
-
|
|
672
|
-
function
|
|
682
|
+
Ke.displayName = "DialogContent";
|
|
683
|
+
function mr({
|
|
673
684
|
className: t,
|
|
674
685
|
...r
|
|
675
686
|
}) {
|
|
@@ -685,7 +696,7 @@ function cr({
|
|
|
685
696
|
}
|
|
686
697
|
);
|
|
687
698
|
}
|
|
688
|
-
function
|
|
699
|
+
function pr({
|
|
689
700
|
className: t,
|
|
690
701
|
...r
|
|
691
702
|
}) {
|
|
@@ -698,7 +709,7 @@ function ur({
|
|
|
698
709
|
}
|
|
699
710
|
);
|
|
700
711
|
}
|
|
701
|
-
function
|
|
712
|
+
function br({
|
|
702
713
|
className: t,
|
|
703
714
|
...r
|
|
704
715
|
}) {
|
|
@@ -714,7 +725,7 @@ function mr({
|
|
|
714
725
|
}
|
|
715
726
|
);
|
|
716
727
|
}
|
|
717
|
-
function
|
|
728
|
+
function fr({
|
|
718
729
|
className: t,
|
|
719
730
|
...r
|
|
720
731
|
}) {
|
|
@@ -730,75 +741,75 @@ function br({
|
|
|
730
741
|
}
|
|
731
742
|
);
|
|
732
743
|
}
|
|
733
|
-
const
|
|
734
|
-
|
|
744
|
+
const Oe = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
745
|
+
M.Title,
|
|
735
746
|
{
|
|
736
747
|
ref: a,
|
|
737
748
|
className: o("text-base font-semibold text-fg", t),
|
|
738
749
|
...r
|
|
739
750
|
}
|
|
740
751
|
));
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
752
|
+
Oe.displayName = "DialogTitle";
|
|
753
|
+
const hr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
754
|
+
M.Description,
|
|
744
755
|
{
|
|
745
756
|
ref: a,
|
|
746
757
|
className: o("text-sm text-muted", t),
|
|
747
758
|
...r
|
|
748
759
|
}
|
|
749
760
|
));
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
function
|
|
761
|
+
hr.displayName = "DialogDescription";
|
|
762
|
+
const et = se(null);
|
|
763
|
+
function gr({
|
|
753
764
|
label: t,
|
|
754
765
|
value: r,
|
|
755
766
|
onChange: a,
|
|
756
767
|
disabled: l = !1,
|
|
757
768
|
name: i,
|
|
758
|
-
className:
|
|
759
|
-
children:
|
|
760
|
-
...
|
|
769
|
+
className: d,
|
|
770
|
+
children: c,
|
|
771
|
+
...u
|
|
761
772
|
}) {
|
|
762
|
-
const
|
|
763
|
-
return /* @__PURE__ */ e(
|
|
773
|
+
const h = de(), g = i ?? h;
|
|
774
|
+
return /* @__PURE__ */ e(et.Provider, { value: { name: g, value: r, onChange: a, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", d), ...u, children: [
|
|
764
775
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
765
|
-
|
|
776
|
+
c
|
|
766
777
|
] }) });
|
|
767
778
|
}
|
|
768
|
-
function
|
|
779
|
+
function xr({
|
|
769
780
|
value: t,
|
|
770
781
|
title: r,
|
|
771
782
|
description: a,
|
|
772
783
|
badge: l,
|
|
773
784
|
disabled: i = !1,
|
|
774
|
-
className:
|
|
785
|
+
className: d
|
|
775
786
|
}) {
|
|
776
|
-
const
|
|
777
|
-
if (!
|
|
787
|
+
const c = ie(et), u = de();
|
|
788
|
+
if (!c)
|
|
778
789
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
779
|
-
const
|
|
790
|
+
const h = i || c.disabled, g = c.value === t;
|
|
780
791
|
return /* @__PURE__ */ s(
|
|
781
792
|
"label",
|
|
782
793
|
{
|
|
783
794
|
className: o(
|
|
784
795
|
"group relative flex items-start gap-3",
|
|
785
|
-
|
|
786
|
-
|
|
796
|
+
h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
797
|
+
d
|
|
787
798
|
),
|
|
788
799
|
children: [
|
|
789
800
|
/* @__PURE__ */ e(
|
|
790
801
|
"input",
|
|
791
802
|
{
|
|
792
803
|
type: "radio",
|
|
793
|
-
name:
|
|
804
|
+
name: c.name,
|
|
794
805
|
value: t,
|
|
795
|
-
checked:
|
|
796
|
-
disabled:
|
|
806
|
+
checked: g,
|
|
807
|
+
disabled: h,
|
|
797
808
|
onChange: () => {
|
|
798
|
-
var
|
|
799
|
-
return (
|
|
809
|
+
var p;
|
|
810
|
+
return (p = c.onChange) == null ? void 0 : p.call(c, t);
|
|
800
811
|
},
|
|
801
|
-
"aria-describedby": a ?
|
|
812
|
+
"aria-describedby": a ? u : void 0,
|
|
802
813
|
className: "peer sr-only"
|
|
803
814
|
}
|
|
804
815
|
),
|
|
@@ -816,73 +827,65 @@ function hr({
|
|
|
816
827
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
817
828
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
818
829
|
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: r }),
|
|
819
|
-
l ? /* @__PURE__ */ e(
|
|
830
|
+
l ? /* @__PURE__ */ e(Wt, { variant: "primary", children: l }) : null
|
|
820
831
|
] }),
|
|
821
|
-
a ? /* @__PURE__ */ e("span", { id:
|
|
832
|
+
a ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: a }) : null
|
|
822
833
|
] })
|
|
823
834
|
]
|
|
824
835
|
}
|
|
825
836
|
);
|
|
826
837
|
}
|
|
827
|
-
function
|
|
838
|
+
function Vr({
|
|
828
839
|
open: t,
|
|
829
840
|
onOpenChange: r,
|
|
830
841
|
trigger: a,
|
|
831
842
|
title: l,
|
|
832
843
|
options: i,
|
|
833
|
-
defaultValue:
|
|
834
|
-
value:
|
|
835
|
-
onValueChange:
|
|
836
|
-
cancelLabel:
|
|
837
|
-
confirmLabel:
|
|
838
|
-
onConfirm:
|
|
844
|
+
defaultValue: d,
|
|
845
|
+
value: c,
|
|
846
|
+
onValueChange: u,
|
|
847
|
+
cancelLabel: h = "Cancel",
|
|
848
|
+
confirmLabel: g = "Continue",
|
|
849
|
+
onConfirm: p
|
|
839
850
|
}) {
|
|
840
851
|
var I;
|
|
841
|
-
const [
|
|
842
|
-
return /* @__PURE__ */ s(
|
|
843
|
-
a ? /* @__PURE__ */ e(
|
|
852
|
+
const [N, k] = D(d ?? ((I = i[0]) == null ? void 0 : I.value) ?? ""), C = c ?? N;
|
|
853
|
+
return /* @__PURE__ */ s(ur, { open: t, onOpenChange: r, children: [
|
|
854
|
+
a ? /* @__PURE__ */ e(Qe, { asChild: !0, children: a }) : null,
|
|
844
855
|
/* @__PURE__ */ s(
|
|
845
|
-
|
|
856
|
+
Ke,
|
|
846
857
|
{
|
|
847
858
|
"aria-describedby": void 0,
|
|
848
859
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
849
860
|
children: [
|
|
850
|
-
/* @__PURE__ */ s(
|
|
851
|
-
/* @__PURE__ */ e(
|
|
852
|
-
/* @__PURE__ */ e(
|
|
853
|
-
|
|
854
|
-
}, children: i.map((
|
|
855
|
-
|
|
861
|
+
/* @__PURE__ */ s(mr, { children: [
|
|
862
|
+
/* @__PURE__ */ e(br, { children: /* @__PURE__ */ e(Oe, { className: "text-xl", children: l }) }),
|
|
863
|
+
/* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(gr, { label: l, value: C, onChange: (y) => {
|
|
864
|
+
c === void 0 && k(y), u == null || u(y);
|
|
865
|
+
}, children: i.map((y) => /* @__PURE__ */ e(
|
|
866
|
+
xr,
|
|
856
867
|
{
|
|
857
|
-
value:
|
|
858
|
-
title:
|
|
859
|
-
description:
|
|
860
|
-
badge:
|
|
868
|
+
value: y.value,
|
|
869
|
+
title: y.title,
|
|
870
|
+
description: y.description,
|
|
871
|
+
badge: y.badge
|
|
861
872
|
},
|
|
862
|
-
|
|
873
|
+
y.value
|
|
863
874
|
)) }) })
|
|
864
875
|
] }),
|
|
865
|
-
/* @__PURE__ */ s(
|
|
866
|
-
/* @__PURE__ */ e(
|
|
867
|
-
|
|
868
|
-
{
|
|
869
|
-
variant: "secondary",
|
|
870
|
-
className: "flex-1",
|
|
871
|
-
onClick: () => r == null ? void 0 : r(!1),
|
|
872
|
-
children: f
|
|
873
|
-
}
|
|
874
|
-
),
|
|
875
|
-
/* @__PURE__ */ e(S, { className: "flex-1", onClick: () => g == null ? void 0 : g(z), children: h })
|
|
876
|
+
/* @__PURE__ */ s(fr, { className: "gap-3 pt-2.5", children: [
|
|
877
|
+
/* @__PURE__ */ e(Ye, { className: "flex-1", children: h }),
|
|
878
|
+
/* @__PURE__ */ e(S, { className: "flex-1", onClick: () => p == null ? void 0 : p(C), children: g })
|
|
876
879
|
] })
|
|
877
880
|
]
|
|
878
881
|
}
|
|
879
882
|
)
|
|
880
883
|
] });
|
|
881
884
|
}
|
|
882
|
-
function
|
|
885
|
+
function Ur({ code: t, label: r, className: a }) {
|
|
883
886
|
const [l, i] = D(!1);
|
|
884
887
|
return /* @__PURE__ */ e(
|
|
885
|
-
|
|
888
|
+
ce,
|
|
886
889
|
{
|
|
887
890
|
className: a,
|
|
888
891
|
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: r }) }),
|
|
@@ -902,17 +905,17 @@ function qr({ code: t, label: r, className: a }) {
|
|
|
902
905
|
}
|
|
903
906
|
);
|
|
904
907
|
}
|
|
905
|
-
const
|
|
908
|
+
const vr = {
|
|
906
909
|
sm: "h-[var(--control-h-sm)] text-sm",
|
|
907
910
|
md: "h-[var(--control-h-md)] text-sm",
|
|
908
911
|
lg: "h-[var(--control-h-lg)] text-sm",
|
|
909
912
|
xl: "h-[var(--control-h-xl)] rounded-lg text-base"
|
|
910
|
-
},
|
|
913
|
+
}, Nr = {
|
|
911
914
|
sm: "px-[var(--control-pad-x-sm)]",
|
|
912
915
|
md: "px-[var(--control-pad-x-md)]",
|
|
913
916
|
lg: "px-[var(--control-pad-x-lg)]",
|
|
914
917
|
xl: "px-[var(--control-pad-x-xl)]"
|
|
915
|
-
},
|
|
918
|
+
}, yr = {
|
|
916
919
|
sm: "left-[var(--control-pad-x-sm)]",
|
|
917
920
|
md: "left-[var(--control-pad-x-md)]",
|
|
918
921
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
@@ -922,89 +925,89 @@ const gr = {
|
|
|
922
925
|
md: "right-[var(--control-pad-x-md)]",
|
|
923
926
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
924
927
|
xl: "right-[var(--control-pad-x-xl)]"
|
|
925
|
-
},
|
|
928
|
+
}, he = {
|
|
926
929
|
sm: "size-[var(--control-icon-sm)]",
|
|
927
930
|
md: "size-[var(--control-icon-md)]",
|
|
928
931
|
lg: "size-[var(--control-icon-lg)]",
|
|
929
932
|
xl: "size-[var(--control-icon-xl)]"
|
|
930
|
-
},
|
|
933
|
+
}, tt = b(
|
|
931
934
|
({
|
|
932
935
|
className: t,
|
|
933
936
|
containerClassName: r,
|
|
934
937
|
type: a = "text",
|
|
935
938
|
size: l = "md",
|
|
936
939
|
leadingIcon: i,
|
|
937
|
-
trailingIcon:
|
|
938
|
-
onClear:
|
|
939
|
-
value:
|
|
940
|
-
defaultValue:
|
|
941
|
-
error:
|
|
942
|
-
helperText:
|
|
943
|
-
id:
|
|
944
|
-
"aria-describedby":
|
|
945
|
-
disabled:
|
|
940
|
+
trailingIcon: d,
|
|
941
|
+
onClear: c,
|
|
942
|
+
value: u,
|
|
943
|
+
defaultValue: h,
|
|
944
|
+
error: g = !1,
|
|
945
|
+
helperText: p,
|
|
946
|
+
id: N,
|
|
947
|
+
"aria-describedby": k,
|
|
948
|
+
disabled: C,
|
|
946
949
|
readOnly: w,
|
|
947
950
|
...I
|
|
948
|
-
},
|
|
949
|
-
const B =
|
|
951
|
+
}, y) => {
|
|
952
|
+
const B = de(), J = N ?? B, F = !!p, _ = !!(c && (u !== void 0 ? String(u).length > 0 : h !== void 0 && String(h).length > 0)), Q = F ? `${J}-description` : void 0, ue = [k, Q].filter(Boolean).join(" ") || void 0, Y = /* @__PURE__ */ e(
|
|
950
953
|
"input",
|
|
951
954
|
{
|
|
952
|
-
ref:
|
|
953
|
-
id:
|
|
955
|
+
ref: y,
|
|
956
|
+
id: J,
|
|
954
957
|
type: a,
|
|
955
|
-
disabled:
|
|
958
|
+
disabled: C,
|
|
956
959
|
readOnly: w,
|
|
957
|
-
"aria-invalid":
|
|
958
|
-
"aria-describedby":
|
|
959
|
-
style: i ||
|
|
960
|
+
"aria-invalid": g || void 0,
|
|
961
|
+
"aria-describedby": ue,
|
|
962
|
+
style: i || d || _ ? {
|
|
960
963
|
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
961
|
-
paddingInlineEnd:
|
|
964
|
+
paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
962
965
|
} : void 0,
|
|
963
966
|
className: o(
|
|
964
967
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
965
|
-
|
|
966
|
-
|
|
968
|
+
vr[l],
|
|
969
|
+
Nr[l],
|
|
967
970
|
"placeholder:text-(--input-placeholder)",
|
|
968
971
|
"hover:border-(--input-border-hover)",
|
|
969
972
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
970
|
-
|
|
971
|
-
!
|
|
972
|
-
|
|
973
|
+
g && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
|
|
974
|
+
!g && "border-(--input-border)",
|
|
975
|
+
C && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
|
|
973
976
|
w && "cursor-default focus-visible:ring-0",
|
|
974
977
|
t
|
|
975
978
|
),
|
|
976
|
-
value:
|
|
977
|
-
defaultValue:
|
|
979
|
+
value: u,
|
|
980
|
+
defaultValue: h,
|
|
978
981
|
...I
|
|
979
982
|
}
|
|
980
983
|
);
|
|
981
|
-
return !i && !
|
|
984
|
+
return !i && !d && !_ && !F ? Y : /* @__PURE__ */ s("div", { className: o("w-full", r), children: [
|
|
982
985
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
983
986
|
i ? /* @__PURE__ */ e(
|
|
984
987
|
"span",
|
|
985
988
|
{
|
|
986
989
|
className: o(
|
|
987
990
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
988
|
-
|
|
991
|
+
yr[l]
|
|
989
992
|
),
|
|
990
993
|
"aria-hidden": !0,
|
|
991
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
994
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: i })
|
|
992
995
|
}
|
|
993
996
|
) : null,
|
|
994
|
-
|
|
997
|
+
Y,
|
|
995
998
|
_ ? /* @__PURE__ */ e(
|
|
996
999
|
"button",
|
|
997
1000
|
{
|
|
998
1001
|
type: "button",
|
|
999
1002
|
"aria-label": "Clear search",
|
|
1000
|
-
onClick:
|
|
1003
|
+
onClick: c,
|
|
1001
1004
|
className: o(
|
|
1002
1005
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1003
1006
|
Be[l]
|
|
1004
1007
|
),
|
|
1005
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
1008
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: /* @__PURE__ */ e(le, {}) })
|
|
1006
1009
|
}
|
|
1007
|
-
) :
|
|
1010
|
+
) : d ? /* @__PURE__ */ e(
|
|
1008
1011
|
"span",
|
|
1009
1012
|
{
|
|
1010
1013
|
className: o(
|
|
@@ -1012,27 +1015,27 @@ const gr = {
|
|
|
1012
1015
|
Be[l]
|
|
1013
1016
|
),
|
|
1014
1017
|
"aria-hidden": !0,
|
|
1015
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
1018
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: d })
|
|
1016
1019
|
}
|
|
1017
1020
|
) : null
|
|
1018
1021
|
] }),
|
|
1019
1022
|
F ? /* @__PURE__ */ e(
|
|
1020
1023
|
"p",
|
|
1021
1024
|
{
|
|
1022
|
-
id:
|
|
1023
|
-
className: o("mt-1.5 text-xs",
|
|
1024
|
-
children:
|
|
1025
|
+
id: Q,
|
|
1026
|
+
className: o("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
|
|
1027
|
+
children: p
|
|
1025
1028
|
}
|
|
1026
1029
|
) : null
|
|
1027
1030
|
] });
|
|
1028
1031
|
}
|
|
1029
1032
|
);
|
|
1030
|
-
|
|
1033
|
+
tt.displayName = "Input";
|
|
1031
1034
|
function ke(t, r) {
|
|
1032
1035
|
let a = 0;
|
|
1033
1036
|
return $e.forEach(t, (l) => {
|
|
1034
|
-
if (!
|
|
1035
|
-
if (r.some((
|
|
1037
|
+
if (!qe(l)) return;
|
|
1038
|
+
if (r.some((d) => d === l.type)) {
|
|
1036
1039
|
a += 1;
|
|
1037
1040
|
return;
|
|
1038
1041
|
}
|
|
@@ -1040,19 +1043,19 @@ function ke(t, r) {
|
|
|
1040
1043
|
i && (a += ke(i, r));
|
|
1041
1044
|
}), a;
|
|
1042
1045
|
}
|
|
1043
|
-
const
|
|
1044
|
-
function
|
|
1046
|
+
const rt = se(!1);
|
|
1047
|
+
function ge({
|
|
1045
1048
|
children: t,
|
|
1046
1049
|
...r
|
|
1047
1050
|
}) {
|
|
1048
1051
|
const a = ke(t, [
|
|
1049
|
-
|
|
1052
|
+
oe,
|
|
1050
1053
|
U
|
|
1051
1054
|
]) === 0;
|
|
1052
|
-
return /* @__PURE__ */ e(
|
|
1055
|
+
return /* @__PURE__ */ e(rt.Provider, { value: a, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
|
|
1053
1056
|
}
|
|
1054
|
-
const
|
|
1055
|
-
const l =
|
|
1057
|
+
const re = b(({ disabled: t, ...r }, a) => {
|
|
1058
|
+
const l = ie(rt);
|
|
1056
1059
|
return /* @__PURE__ */ e(
|
|
1057
1060
|
T.Trigger,
|
|
1058
1061
|
{
|
|
@@ -1062,14 +1065,14 @@ const te = p(({ disabled: t, ...r }, a) => {
|
|
|
1062
1065
|
}
|
|
1063
1066
|
);
|
|
1064
1067
|
});
|
|
1065
|
-
|
|
1066
|
-
const
|
|
1068
|
+
re.displayName = "DropdownMenuTrigger";
|
|
1069
|
+
const Wr = T.Group, Xr = T.Portal, ae = b(({ className: t, sideOffset: r = 8, ...a }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
|
|
1067
1070
|
T.Content,
|
|
1068
1071
|
{
|
|
1069
1072
|
ref: l,
|
|
1070
1073
|
sideOffset: r,
|
|
1071
1074
|
className: o(
|
|
1072
|
-
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-
|
|
1075
|
+
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1073
1076
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1074
1077
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
1075
1078
|
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
@@ -1081,14 +1084,14 @@ const Vr = T.Group, Ur = T.Portal, re = p(({ className: t, sideOffset: r = 8, ..
|
|
|
1081
1084
|
...a
|
|
1082
1085
|
}
|
|
1083
1086
|
) }));
|
|
1084
|
-
|
|
1085
|
-
const
|
|
1087
|
+
ae.displayName = "DropdownMenuContent";
|
|
1088
|
+
const oe = b(({ className: t, inset: r, ...a }, l) => /* @__PURE__ */ e(
|
|
1086
1089
|
T.Item,
|
|
1087
1090
|
{
|
|
1088
1091
|
ref: l,
|
|
1089
1092
|
className: o(
|
|
1090
1093
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
|
|
1091
|
-
"focus:bg-
|
|
1094
|
+
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1092
1095
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
1093
1096
|
r && "pl-8",
|
|
1094
1097
|
t
|
|
@@ -1096,25 +1099,25 @@ const le = p(({ className: t, inset: r, ...a }, l) => /* @__PURE__ */ e(
|
|
|
1096
1099
|
...a
|
|
1097
1100
|
}
|
|
1098
1101
|
));
|
|
1099
|
-
|
|
1100
|
-
const U =
|
|
1102
|
+
oe.displayName = "DropdownMenuItem";
|
|
1103
|
+
const U = b(({ className: t, children: r, checked: a, ...l }, i) => /* @__PURE__ */ s(
|
|
1101
1104
|
T.CheckboxItem,
|
|
1102
1105
|
{
|
|
1103
1106
|
ref: i,
|
|
1104
1107
|
className: o(
|
|
1105
|
-
"group relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none transition-colors focus:bg-
|
|
1108
|
+
"group relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none transition-colors focus:bg-(--menu-highlight)",
|
|
1106
1109
|
t
|
|
1107
1110
|
),
|
|
1108
1111
|
checked: a,
|
|
1109
1112
|
...l,
|
|
1110
1113
|
children: [
|
|
1111
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(T.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-
|
|
1114
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(T.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) }) }),
|
|
1112
1115
|
r
|
|
1113
1116
|
]
|
|
1114
1117
|
}
|
|
1115
1118
|
));
|
|
1116
1119
|
U.displayName = "DropdownMenuCheckboxItem";
|
|
1117
|
-
const
|
|
1120
|
+
const ne = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
1118
1121
|
T.Label,
|
|
1119
1122
|
{
|
|
1120
1123
|
ref: a,
|
|
@@ -1122,8 +1125,8 @@ const ae = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
1122
1125
|
...r
|
|
1123
1126
|
}
|
|
1124
1127
|
));
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1128
|
+
ne.displayName = "DropdownMenuLabel";
|
|
1129
|
+
const Ne = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
1127
1130
|
T.Separator,
|
|
1128
1131
|
{
|
|
1129
1132
|
ref: a,
|
|
@@ -1131,24 +1134,24 @@ const xe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
1131
1134
|
...r
|
|
1132
1135
|
}
|
|
1133
1136
|
));
|
|
1134
|
-
|
|
1135
|
-
const
|
|
1136
|
-
function
|
|
1137
|
+
Ne.displayName = "DropdownMenuSeparator";
|
|
1138
|
+
const Jr = z.Group, wr = z.Value;
|
|
1139
|
+
function Cr({
|
|
1137
1140
|
children: t,
|
|
1138
1141
|
disabled: r,
|
|
1139
1142
|
...a
|
|
1140
1143
|
}) {
|
|
1141
1144
|
const l = ke(t, [ze]) === 0;
|
|
1142
|
-
return /* @__PURE__ */ e(
|
|
1145
|
+
return /* @__PURE__ */ e(z.Root, { disabled: r || l, ...a, children: t });
|
|
1143
1146
|
}
|
|
1144
|
-
const
|
|
1145
|
-
|
|
1147
|
+
const at = b(({ className: t, children: r, variant: a = "field", ...l }, i) => /* @__PURE__ */ s(
|
|
1148
|
+
z.Trigger,
|
|
1146
1149
|
{
|
|
1147
1150
|
ref: i,
|
|
1148
1151
|
className: o(
|
|
1149
1152
|
"flex items-center justify-between gap-2 text-sm text-fg",
|
|
1150
1153
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1151
|
-
"data-
|
|
1154
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
1152
1155
|
"[&>span]:truncate",
|
|
1153
1156
|
a === "field" && "h-(--control-h-md) w-full rounded-md border border-line bg-surface px-3 focus:border-primary focus:ring-2 focus:ring-focus/30",
|
|
1154
1157
|
a === "inline" && "btn-fill btn-inner-border btn-interactive h-(--control-h-md) w-auto rounded-(--control-radius) border-0 bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
|
|
@@ -1157,16 +1160,16 @@ const tt = p(({ className: t, children: r, variant: a = "field", ...l }, i) => /
|
|
|
1157
1160
|
...l,
|
|
1158
1161
|
children: [
|
|
1159
1162
|
r,
|
|
1160
|
-
/* @__PURE__ */ e(
|
|
1163
|
+
/* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(ee, { className: "size-3.5 text-subtle" }) })
|
|
1161
1164
|
]
|
|
1162
1165
|
}
|
|
1163
1166
|
));
|
|
1164
|
-
|
|
1165
|
-
const
|
|
1166
|
-
({ className: t, children: r, position: a = "popper", sideOffset: l = 8, ...i },
|
|
1167
|
-
|
|
1167
|
+
at.displayName = "SelectTrigger";
|
|
1168
|
+
const nt = b(
|
|
1169
|
+
({ className: t, children: r, position: a = "popper", sideOffset: l = 8, ...i }, d) => /* @__PURE__ */ e(z.Portal, { children: /* @__PURE__ */ e(
|
|
1170
|
+
z.Content,
|
|
1168
1171
|
{
|
|
1169
|
-
ref:
|
|
1172
|
+
ref: d,
|
|
1170
1173
|
position: a,
|
|
1171
1174
|
sideOffset: l,
|
|
1172
1175
|
className: o(
|
|
@@ -1180,13 +1183,13 @@ const rt = p(
|
|
|
1180
1183
|
t
|
|
1181
1184
|
),
|
|
1182
1185
|
...i,
|
|
1183
|
-
children: /* @__PURE__ */ e(
|
|
1186
|
+
children: /* @__PURE__ */ e(z.Viewport, { className: "p-0", children: r })
|
|
1184
1187
|
}
|
|
1185
1188
|
) })
|
|
1186
1189
|
);
|
|
1187
|
-
|
|
1188
|
-
const ze =
|
|
1189
|
-
|
|
1190
|
+
nt.displayName = "SelectContent";
|
|
1191
|
+
const ze = b(({ className: t, children: r, ...a }, l) => /* @__PURE__ */ s(
|
|
1192
|
+
z.Item,
|
|
1190
1193
|
{
|
|
1191
1194
|
ref: l,
|
|
1192
1195
|
className: o(
|
|
@@ -1195,22 +1198,22 @@ const ze = p(({ className: t, children: r, ...a }, l) => /* @__PURE__ */ s(
|
|
|
1195
1198
|
),
|
|
1196
1199
|
...a,
|
|
1197
1200
|
children: [
|
|
1198
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1199
|
-
/* @__PURE__ */ e(
|
|
1201
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(z.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-3.5" }) }) }),
|
|
1202
|
+
/* @__PURE__ */ e(z.ItemText, { children: r })
|
|
1200
1203
|
]
|
|
1201
1204
|
}
|
|
1202
1205
|
));
|
|
1203
1206
|
ze.displayName = "SelectItem";
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1207
|
+
const Sr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
1208
|
+
z.Label,
|
|
1206
1209
|
{
|
|
1207
1210
|
ref: a,
|
|
1208
1211
|
className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1209
1212
|
...r
|
|
1210
1213
|
}
|
|
1211
1214
|
));
|
|
1212
|
-
|
|
1213
|
-
function
|
|
1215
|
+
Sr.displayName = "SelectLabel";
|
|
1216
|
+
function kr({
|
|
1214
1217
|
icon: t,
|
|
1215
1218
|
title: r,
|
|
1216
1219
|
description: a,
|
|
@@ -1235,22 +1238,22 @@ function Cr({
|
|
|
1235
1238
|
}
|
|
1236
1239
|
);
|
|
1237
1240
|
}
|
|
1238
|
-
const
|
|
1239
|
-
function
|
|
1241
|
+
const zr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium";
|
|
1242
|
+
function Dr(t) {
|
|
1240
1243
|
return t.split(/\s+/).slice(0, 2).map((r) => {
|
|
1241
1244
|
var a;
|
|
1242
1245
|
return ((a = r[0]) == null ? void 0 : a.toUpperCase()) ?? "";
|
|
1243
1246
|
}).join("");
|
|
1244
1247
|
}
|
|
1245
|
-
function
|
|
1248
|
+
function Qr({
|
|
1246
1249
|
name: t,
|
|
1247
1250
|
secondary: r,
|
|
1248
1251
|
image: a
|
|
1249
1252
|
}) {
|
|
1250
1253
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1251
|
-
/* @__PURE__ */ s(
|
|
1252
|
-
a ? /* @__PURE__ */ e(
|
|
1253
|
-
/* @__PURE__ */ e(Ve, { children:
|
|
1254
|
+
/* @__PURE__ */ s(Ge, { className: "size-8", children: [
|
|
1255
|
+
a ? /* @__PURE__ */ e(He, { src: a, alt: "" }) : null,
|
|
1256
|
+
/* @__PURE__ */ e(Ve, { children: Dr(t) })
|
|
1254
1257
|
] }),
|
|
1255
1258
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1256
1259
|
/* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
|
|
@@ -1258,91 +1261,91 @@ function Xr({
|
|
|
1258
1261
|
] })
|
|
1259
1262
|
] });
|
|
1260
1263
|
}
|
|
1261
|
-
function
|
|
1264
|
+
function Yr({
|
|
1262
1265
|
rows: t,
|
|
1263
1266
|
columns: r,
|
|
1264
1267
|
getRowId: a,
|
|
1265
1268
|
loading: l = !1,
|
|
1266
1269
|
error: i,
|
|
1267
|
-
empty:
|
|
1268
|
-
search:
|
|
1269
|
-
filters:
|
|
1270
|
-
toolbarStart:
|
|
1271
|
-
toolbarEnd:
|
|
1272
|
-
tabs:
|
|
1273
|
-
activeTab:
|
|
1274
|
-
onTabChange:
|
|
1275
|
-
infoBanner:
|
|
1270
|
+
empty: d,
|
|
1271
|
+
search: c,
|
|
1272
|
+
filters: u,
|
|
1273
|
+
toolbarStart: h,
|
|
1274
|
+
toolbarEnd: g,
|
|
1275
|
+
tabs: p,
|
|
1276
|
+
activeTab: N,
|
|
1277
|
+
onTabChange: k,
|
|
1278
|
+
infoBanner: C,
|
|
1276
1279
|
selectable: w = !1,
|
|
1277
1280
|
bulkActions: I,
|
|
1278
|
-
rowActions:
|
|
1281
|
+
rowActions: y,
|
|
1279
1282
|
onRowClick: B,
|
|
1280
|
-
defaultSort:
|
|
1283
|
+
defaultSort: J,
|
|
1281
1284
|
pageSize: F = 25,
|
|
1282
1285
|
pageSizeOptions: _ = [10, 25, 50, 100],
|
|
1283
|
-
tone:
|
|
1284
|
-
headerAction:
|
|
1285
|
-
headerClassName:
|
|
1286
|
-
panelClassName:
|
|
1287
|
-
className:
|
|
1286
|
+
tone: Q,
|
|
1287
|
+
headerAction: ue,
|
|
1288
|
+
headerClassName: Y,
|
|
1289
|
+
panelClassName: lt,
|
|
1290
|
+
className: it
|
|
1288
1291
|
}) {
|
|
1289
1292
|
const [De, Te] = D(
|
|
1290
1293
|
() => Object.fromEntries(
|
|
1291
1294
|
r.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
|
|
1292
1295
|
)
|
|
1293
|
-
), [x,
|
|
1294
|
-
|
|
1295
|
-
), [$,
|
|
1296
|
+
), [x, ot] = D(
|
|
1297
|
+
J ?? null
|
|
1298
|
+
), [$, Z] = D(0), [L, st] = D(F), [R, me] = D(/* @__PURE__ */ new Set()), [dt, pe] = D([]), E = r.filter((n) => !De[n.id]), Me = r.filter((n) => De[n.id] && !n.required), be = (u ?? []).filter((n) => dt.includes(n.id)), ct = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), K = je(() => {
|
|
1296
1299
|
let n = t;
|
|
1297
|
-
for (const
|
|
1298
|
-
|
|
1299
|
-
if (!
|
|
1300
|
-
const m =
|
|
1301
|
-
return n.filter((
|
|
1302
|
-
}, [t,
|
|
1303
|
-
if (!x) return
|
|
1304
|
-
const n = r.find((
|
|
1305
|
-
if (!(n != null && n.sortValue)) return
|
|
1300
|
+
for (const f of u ?? [])
|
|
1301
|
+
f.value.length > 0 && (n = n.filter((v) => f.match(v, f.value)));
|
|
1302
|
+
if (!c || !c.value.trim()) return n;
|
|
1303
|
+
const m = c.value.trim().toLowerCase();
|
|
1304
|
+
return n.filter((f) => c.keys(f).toLowerCase().includes(m));
|
|
1305
|
+
}, [t, c, u]), q = je(() => {
|
|
1306
|
+
if (!x) return K;
|
|
1307
|
+
const n = r.find((f) => f.id === x.id);
|
|
1308
|
+
if (!(n != null && n.sortValue)) return K;
|
|
1306
1309
|
const m = x.dir === "asc" ? 1 : -1;
|
|
1307
|
-
return [...
|
|
1308
|
-
const
|
|
1309
|
-
return
|
|
1310
|
+
return [...K].sort((f, v) => {
|
|
1311
|
+
const P = n.sortValue(f), H = n.sortValue(v);
|
|
1312
|
+
return P == null && H == null ? 0 : P == null ? 1 : H == null ? -1 : typeof P == "number" && typeof H == "number" ? (P - H) * m : String(P).localeCompare(String(H)) * m;
|
|
1310
1313
|
});
|
|
1311
|
-
}, [
|
|
1314
|
+
}, [K, x, r]), G = Math.max(1, Math.ceil(q.length / L));
|
|
1312
1315
|
V(() => {
|
|
1313
|
-
|
|
1314
|
-
}, [
|
|
1315
|
-
$ >
|
|
1316
|
-
}, [$,
|
|
1317
|
-
const O = $ * L, j =
|
|
1318
|
-
n.sortable &&
|
|
1316
|
+
Z(0);
|
|
1317
|
+
}, [c == null ? void 0 : c.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, N, ct]), V(() => {
|
|
1318
|
+
$ > G - 1 && Z(G - 1);
|
|
1319
|
+
}, [$, G]);
|
|
1320
|
+
const O = $ * L, j = q.slice(O, O + L), ut = (n) => {
|
|
1321
|
+
n.sortable && ot(
|
|
1319
1322
|
(m) => (m == null ? void 0 : m.id) === n.id ? m.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
|
|
1320
1323
|
);
|
|
1321
|
-
}, Pe = j.length > 0 && j.every((n) => R.has(a(n))),
|
|
1322
|
-
|
|
1324
|
+
}, Pe = j.length > 0 && j.every((n) => R.has(a(n))), mt = j.some((n) => R.has(a(n))), pt = t.filter((n) => R.has(a(n))), bt = () => {
|
|
1325
|
+
me((n) => {
|
|
1323
1326
|
const m = new Set(n);
|
|
1324
|
-
return Pe ? j.forEach((
|
|
1327
|
+
return Pe ? j.forEach((f) => m.delete(a(f))) : j.forEach((f) => m.add(a(f))), m;
|
|
1325
1328
|
});
|
|
1326
|
-
},
|
|
1327
|
-
|
|
1328
|
-
const
|
|
1329
|
-
return
|
|
1329
|
+
}, ft = (n) => {
|
|
1330
|
+
me((m) => {
|
|
1331
|
+
const f = new Set(m);
|
|
1332
|
+
return f.has(n) ? f.delete(n) : f.add(n), f;
|
|
1330
1333
|
});
|
|
1331
|
-
},
|
|
1334
|
+
}, ht = !!(c || u != null && u.length || h || g), gt = E.some((n) => n.width), xt = E.length > 1 ? 70 / (E.length - 1) : 100, vt = E.map((n, m) => n.width ? n.width : gt ? "auto" : `${m === 0 ? 30 : xt}%`), Ie = [
|
|
1332
1335
|
...w ? ["2.75rem"] : [],
|
|
1333
|
-
...
|
|
1334
|
-
...
|
|
1335
|
-
],
|
|
1336
|
-
return /* @__PURE__ */ s("div", { className: o("space-y-4",
|
|
1337
|
-
|
|
1338
|
-
const m = n.id ===
|
|
1336
|
+
...vt,
|
|
1337
|
+
...y ? ["11rem"] : []
|
|
1338
|
+
], Nt = (n) => (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? "ascending" : "descending" : void 0;
|
|
1339
|
+
return /* @__PURE__ */ s("div", { className: o("space-y-4", it), children: [
|
|
1340
|
+
p && p.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: p.map((n) => {
|
|
1341
|
+
const m = n.id === N;
|
|
1339
1342
|
return /* @__PURE__ */ e(
|
|
1340
1343
|
"button",
|
|
1341
1344
|
{
|
|
1342
1345
|
type: "button",
|
|
1343
1346
|
role: "tab",
|
|
1344
1347
|
"aria-selected": m,
|
|
1345
|
-
onClick: () =>
|
|
1348
|
+
onClick: () => k == null ? void 0 : k(n.id),
|
|
1346
1349
|
className: o(
|
|
1347
1350
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1348
1351
|
m ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
@@ -1352,35 +1355,35 @@ function Kr({
|
|
|
1352
1355
|
n.id
|
|
1353
1356
|
);
|
|
1354
1357
|
}) }),
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
+
ht && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1359
|
+
c && /* @__PURE__ */ e(
|
|
1360
|
+
tt,
|
|
1358
1361
|
{
|
|
1359
1362
|
type: "search",
|
|
1360
|
-
"aria-label":
|
|
1361
|
-
placeholder:
|
|
1362
|
-
value:
|
|
1363
|
-
onChange: (n) =>
|
|
1364
|
-
onClear: () =>
|
|
1365
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1363
|
+
"aria-label": c.placeholder ?? "Search",
|
|
1364
|
+
placeholder: c.placeholder ?? "Search...",
|
|
1365
|
+
value: c.value,
|
|
1366
|
+
onChange: (n) => c.onChange(n.target.value),
|
|
1367
|
+
onClear: () => c.onChange(""),
|
|
1368
|
+
leadingIcon: /* @__PURE__ */ e(Mt, {}),
|
|
1366
1369
|
containerClassName: "w-full sm:w-[280px]",
|
|
1367
1370
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1368
1371
|
}
|
|
1369
1372
|
),
|
|
1370
|
-
|
|
1371
|
-
/* @__PURE__ */ s(
|
|
1372
|
-
/* @__PURE__ */ e(
|
|
1373
|
+
h,
|
|
1374
|
+
/* @__PURE__ */ s(ge, { children: [
|
|
1375
|
+
/* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1373
1376
|
S,
|
|
1374
1377
|
{
|
|
1375
1378
|
variant: "secondary",
|
|
1376
1379
|
size: "md",
|
|
1377
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1380
|
+
leadingIcon: /* @__PURE__ */ e(Pt, {}),
|
|
1378
1381
|
trailingIcon: /* @__PURE__ */ e(ee, {}),
|
|
1379
1382
|
children: "Columns"
|
|
1380
1383
|
}
|
|
1381
1384
|
) }),
|
|
1382
|
-
/* @__PURE__ */ s(
|
|
1383
|
-
/* @__PURE__ */ e(
|
|
1385
|
+
/* @__PURE__ */ s(ae, { align: "end", className: "w-54", children: [
|
|
1386
|
+
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Active columns" }),
|
|
1384
1387
|
E.map((n) => /* @__PURE__ */ s(
|
|
1385
1388
|
U,
|
|
1386
1389
|
{
|
|
@@ -1391,14 +1394,14 @@ function Kr({
|
|
|
1391
1394
|
className: "justify-between",
|
|
1392
1395
|
children: [
|
|
1393
1396
|
/* @__PURE__ */ e("span", { children: n.header }),
|
|
1394
|
-
n.required ? /* @__PURE__ */ e(
|
|
1397
|
+
n.required ? /* @__PURE__ */ e(It, { className: "size-3.5 text-subtle", "aria-hidden": !0 }) : null
|
|
1395
1398
|
]
|
|
1396
1399
|
},
|
|
1397
1400
|
n.id
|
|
1398
1401
|
)),
|
|
1399
|
-
Me.length > 0 ? /* @__PURE__ */ s(
|
|
1400
|
-
/* @__PURE__ */ e(
|
|
1401
|
-
/* @__PURE__ */ e(
|
|
1402
|
+
Me.length > 0 ? /* @__PURE__ */ s(ye, { children: [
|
|
1403
|
+
/* @__PURE__ */ e(Ne, {}),
|
|
1404
|
+
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Available columns" }),
|
|
1402
1405
|
Me.map((n) => /* @__PURE__ */ e(
|
|
1403
1406
|
U,
|
|
1404
1407
|
{
|
|
@@ -1412,21 +1415,21 @@ function Kr({
|
|
|
1412
1415
|
] }) : null
|
|
1413
1416
|
] })
|
|
1414
1417
|
] }),
|
|
1415
|
-
|
|
1416
|
-
/* @__PURE__ */ e(
|
|
1418
|
+
u && u.length > 0 ? /* @__PURE__ */ s(ge, { children: [
|
|
1419
|
+
/* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1417
1420
|
S,
|
|
1418
1421
|
{
|
|
1419
1422
|
variant: "secondary",
|
|
1420
1423
|
size: "md",
|
|
1421
1424
|
iconOnly: !0,
|
|
1422
1425
|
"aria-label": "Add filter",
|
|
1423
|
-
children: /* @__PURE__ */ e(
|
|
1426
|
+
children: /* @__PURE__ */ e(Ee, {})
|
|
1424
1427
|
}
|
|
1425
1428
|
) }),
|
|
1426
|
-
/* @__PURE__ */ e(
|
|
1427
|
-
|
|
1429
|
+
/* @__PURE__ */ e(ae, { align: "start", className: "w-54", children: u.map((n) => /* @__PURE__ */ e(
|
|
1430
|
+
oe,
|
|
1428
1431
|
{
|
|
1429
|
-
onSelect: () =>
|
|
1432
|
+
onSelect: () => pe(
|
|
1430
1433
|
(m) => m.includes(n.id) ? m : [...m, n.id]
|
|
1431
1434
|
),
|
|
1432
1435
|
children: n.label
|
|
@@ -1434,12 +1437,12 @@ function Kr({
|
|
|
1434
1437
|
n.id
|
|
1435
1438
|
)) })
|
|
1436
1439
|
] }) : null,
|
|
1437
|
-
|
|
1440
|
+
g ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: g }) : null
|
|
1438
1441
|
] }),
|
|
1439
|
-
|
|
1440
|
-
|
|
1442
|
+
be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1443
|
+
be.map((n) => {
|
|
1441
1444
|
const m = () => {
|
|
1442
|
-
n.onChange([]),
|
|
1445
|
+
n.onChange([]), pe((f) => f.filter((v) => v !== n.id));
|
|
1443
1446
|
};
|
|
1444
1447
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1445
1448
|
/* @__PURE__ */ e(
|
|
@@ -1451,39 +1454,39 @@ function Kr({
|
|
|
1451
1454
|
"aria-label": `Remove ${n.label} filter`,
|
|
1452
1455
|
className: "rounded-r-none",
|
|
1453
1456
|
onClick: m,
|
|
1454
|
-
children: /* @__PURE__ */ e(
|
|
1457
|
+
children: /* @__PURE__ */ e(le, {})
|
|
1455
1458
|
}
|
|
1456
1459
|
),
|
|
1457
|
-
/* @__PURE__ */ s(
|
|
1458
|
-
/* @__PURE__ */ e(
|
|
1459
|
-
/* @__PURE__ */ e(
|
|
1460
|
+
/* @__PURE__ */ s(ge, { children: [
|
|
1461
|
+
/* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ s(S, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1462
|
+
/* @__PURE__ */ e(Ee, {}),
|
|
1460
1463
|
/* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
|
|
1461
1464
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1462
1465
|
/* @__PURE__ */ e("span", { className: "text-muted", children: n.value.length > 0 ? `${n.value.length} selected` : "Enter value" }),
|
|
1463
1466
|
/* @__PURE__ */ e(ee, { className: "text-muted" })
|
|
1464
1467
|
] }) }),
|
|
1465
|
-
/* @__PURE__ */ s(
|
|
1466
|
-
/* @__PURE__ */ s(
|
|
1468
|
+
/* @__PURE__ */ s(ae, { align: "start", className: "w-56", children: [
|
|
1469
|
+
/* @__PURE__ */ s(ne, { className: "text-[13px]", children: [
|
|
1467
1470
|
"Filter by ",
|
|
1468
1471
|
n.label
|
|
1469
1472
|
] }),
|
|
1470
|
-
n.options.map((
|
|
1471
|
-
const v = n.value.includes(
|
|
1473
|
+
n.options.map((f) => {
|
|
1474
|
+
const v = n.value.includes(f.value);
|
|
1472
1475
|
return /* @__PURE__ */ e(
|
|
1473
1476
|
U,
|
|
1474
1477
|
{
|
|
1475
1478
|
checked: v,
|
|
1476
1479
|
onCheckedChange: () => n.onChange(
|
|
1477
|
-
v ? n.value.filter((
|
|
1480
|
+
v ? n.value.filter((P) => P !== f.value) : [...n.value, f.value]
|
|
1478
1481
|
),
|
|
1479
|
-
onSelect: (
|
|
1480
|
-
children:
|
|
1482
|
+
onSelect: (P) => P.preventDefault(),
|
|
1483
|
+
children: f.label
|
|
1481
1484
|
},
|
|
1482
|
-
|
|
1485
|
+
f.value
|
|
1483
1486
|
);
|
|
1484
1487
|
}),
|
|
1485
|
-
/* @__PURE__ */ e(
|
|
1486
|
-
/* @__PURE__ */ e(
|
|
1488
|
+
/* @__PURE__ */ e(Ne, {}),
|
|
1489
|
+
/* @__PURE__ */ e(oe, { onSelect: m, children: "Clear filter" })
|
|
1487
1490
|
] })
|
|
1488
1491
|
] })
|
|
1489
1492
|
] }, n.id);
|
|
@@ -1493,15 +1496,15 @@ function Kr({
|
|
|
1493
1496
|
{
|
|
1494
1497
|
type: "button",
|
|
1495
1498
|
onClick: () => {
|
|
1496
|
-
for (const n of
|
|
1497
|
-
|
|
1499
|
+
for (const n of be) n.onChange([]);
|
|
1500
|
+
pe([]);
|
|
1498
1501
|
},
|
|
1499
1502
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1500
1503
|
children: "Clear filters"
|
|
1501
1504
|
}
|
|
1502
1505
|
)
|
|
1503
1506
|
] }) : null,
|
|
1504
|
-
|
|
1507
|
+
C,
|
|
1505
1508
|
w && R.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
|
|
1506
1509
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1507
1510
|
R.size,
|
|
@@ -1513,7 +1516,7 @@ function Kr({
|
|
|
1513
1516
|
size: "md",
|
|
1514
1517
|
variant: n.variant ?? "outline",
|
|
1515
1518
|
disabled: n.disabled,
|
|
1516
|
-
onClick: () => void n.onRun(
|
|
1519
|
+
onClick: () => void n.onRun(pt),
|
|
1517
1520
|
children: [
|
|
1518
1521
|
n.icon,
|
|
1519
1522
|
n.label
|
|
@@ -1525,40 +1528,40 @@ function Kr({
|
|
|
1525
1528
|
"button",
|
|
1526
1529
|
{
|
|
1527
1530
|
type: "button",
|
|
1528
|
-
onClick: () =>
|
|
1531
|
+
onClick: () => me(/* @__PURE__ */ new Set()),
|
|
1529
1532
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1530
1533
|
children: [
|
|
1531
|
-
/* @__PURE__ */ e(
|
|
1534
|
+
/* @__PURE__ */ e(le, { className: "size-3.5" }),
|
|
1532
1535
|
"Clear"
|
|
1533
1536
|
]
|
|
1534
1537
|
}
|
|
1535
1538
|
)
|
|
1536
1539
|
] }),
|
|
1537
1540
|
/* @__PURE__ */ e(
|
|
1538
|
-
|
|
1541
|
+
ce,
|
|
1539
1542
|
{
|
|
1540
|
-
action:
|
|
1541
|
-
tone:
|
|
1542
|
-
headerClassName:
|
|
1543
|
-
panelClassName:
|
|
1543
|
+
action: ue,
|
|
1544
|
+
tone: Q,
|
|
1545
|
+
headerClassName: Y,
|
|
1546
|
+
panelClassName: lt,
|
|
1544
1547
|
header: (
|
|
1545
1548
|
// Visible header: presentational so its controls stay focusable while
|
|
1546
1549
|
// the body table carries the semantic column headers (sr-only).
|
|
1547
1550
|
/* @__PURE__ */ s("table", { role: "presentation", className: "w-full table-fixed border-collapse", children: [
|
|
1548
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1551
|
+
/* @__PURE__ */ e("colgroup", { children: Ie.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
|
|
1549
1552
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1550
1553
|
w && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ e(
|
|
1551
|
-
|
|
1554
|
+
xe,
|
|
1552
1555
|
{
|
|
1553
1556
|
"aria-label": "Select all rows",
|
|
1554
|
-
checked: Pe ? !0 :
|
|
1555
|
-
onCheckedChange:
|
|
1557
|
+
checked: Pe ? !0 : mt ? "indeterminate" : !1,
|
|
1558
|
+
onCheckedChange: bt
|
|
1556
1559
|
}
|
|
1557
1560
|
) }),
|
|
1558
1561
|
E.map((n) => /* @__PURE__ */ e(
|
|
1559
1562
|
"th",
|
|
1560
1563
|
{
|
|
1561
|
-
className: o(
|
|
1564
|
+
className: o(zr, n.align === "right" && "text-right", n.className),
|
|
1562
1565
|
children: n.sortable ? /* @__PURE__ */ s(
|
|
1563
1566
|
S,
|
|
1564
1567
|
{
|
|
@@ -1566,7 +1569,7 @@ function Kr({
|
|
|
1566
1569
|
variant: "ghost",
|
|
1567
1570
|
size: "xs",
|
|
1568
1571
|
"aria-label": `Sort by ${n.header}`,
|
|
1569
|
-
onClick: () =>
|
|
1572
|
+
onClick: () => ut(n),
|
|
1570
1573
|
className: o(
|
|
1571
1574
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1572
1575
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
@@ -1575,58 +1578,58 @@ function Kr({
|
|
|
1575
1578
|
),
|
|
1576
1579
|
children: [
|
|
1577
1580
|
n.header,
|
|
1578
|
-
(x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(
|
|
1581
|
+
(x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ee, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(_t, { className: "size-3.5 opacity-50" })
|
|
1579
1582
|
]
|
|
1580
1583
|
}
|
|
1581
1584
|
) : n.header
|
|
1582
1585
|
},
|
|
1583
1586
|
n.id
|
|
1584
1587
|
)),
|
|
1585
|
-
|
|
1588
|
+
y && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1586
1589
|
] }) })
|
|
1587
1590
|
] })
|
|
1588
1591
|
),
|
|
1589
1592
|
children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((n) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, n)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1590
|
-
/* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(
|
|
1593
|
+
/* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(Et, { weight: "duotone" }) }),
|
|
1591
1594
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1592
1595
|
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
1593
1596
|
i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
1594
1597
|
] }),
|
|
1595
1598
|
i.action
|
|
1596
1599
|
] }) : j.length === 0 ? /* @__PURE__ */ e(
|
|
1597
|
-
|
|
1600
|
+
kr,
|
|
1598
1601
|
{
|
|
1599
|
-
icon:
|
|
1600
|
-
title: (
|
|
1601
|
-
description: typeof (
|
|
1602
|
-
action:
|
|
1602
|
+
icon: d == null ? void 0 : d.icon,
|
|
1603
|
+
title: (d == null ? void 0 : d.title) ?? "No results",
|
|
1604
|
+
description: typeof (d == null ? void 0 : d.description) == "string" ? d.description : void 0,
|
|
1605
|
+
action: d == null ? void 0 : d.action
|
|
1603
1606
|
}
|
|
1604
1607
|
) : /* @__PURE__ */ s("table", { className: "w-full table-fixed border-collapse", children: [
|
|
1605
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1608
|
+
/* @__PURE__ */ e("colgroup", { children: Ie.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
|
|
1606
1609
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1607
1610
|
w && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1608
|
-
E.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort":
|
|
1609
|
-
|
|
1611
|
+
E.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": Nt(n), children: n.header }, n.id)),
|
|
1612
|
+
y && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1610
1613
|
] }) }),
|
|
1611
|
-
/* @__PURE__ */ e(
|
|
1612
|
-
const m = a(n),
|
|
1614
|
+
/* @__PURE__ */ e(Yt, { children: j.map((n) => {
|
|
1615
|
+
const m = a(n), f = R.has(m);
|
|
1613
1616
|
return /* @__PURE__ */ s(
|
|
1614
|
-
|
|
1617
|
+
Zt,
|
|
1615
1618
|
{
|
|
1616
|
-
"data-state":
|
|
1619
|
+
"data-state": f ? "selected" : void 0,
|
|
1617
1620
|
onClick: B ? () => B(n) : void 0,
|
|
1618
1621
|
className: B ? "cursor-pointer" : void 0,
|
|
1619
1622
|
children: [
|
|
1620
|
-
w && /* @__PURE__ */ e(
|
|
1621
|
-
|
|
1623
|
+
w && /* @__PURE__ */ e(fe, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1624
|
+
xe,
|
|
1622
1625
|
{
|
|
1623
1626
|
"aria-label": "Select row",
|
|
1624
|
-
checked:
|
|
1625
|
-
onCheckedChange: () =>
|
|
1627
|
+
checked: f,
|
|
1628
|
+
onCheckedChange: () => ft(m)
|
|
1626
1629
|
}
|
|
1627
1630
|
) }),
|
|
1628
1631
|
E.map((v) => /* @__PURE__ */ e(
|
|
1629
|
-
|
|
1632
|
+
fe,
|
|
1630
1633
|
{
|
|
1631
1634
|
"data-numeric": v.numeric ? "" : void 0,
|
|
1632
1635
|
className: o(v.align === "right" && "text-right", v.className),
|
|
@@ -1634,7 +1637,7 @@ function Kr({
|
|
|
1634
1637
|
},
|
|
1635
1638
|
v.id
|
|
1636
1639
|
)),
|
|
1637
|
-
|
|
1640
|
+
y && /* @__PURE__ */ e(fe, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: y(n) })
|
|
1638
1641
|
]
|
|
1639
1642
|
},
|
|
1640
1643
|
m
|
|
@@ -1643,18 +1646,18 @@ function Kr({
|
|
|
1643
1646
|
] })
|
|
1644
1647
|
}
|
|
1645
1648
|
),
|
|
1646
|
-
!l && !i &&
|
|
1649
|
+
!l && !i && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1647
1650
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1648
1651
|
O + 1,
|
|
1649
1652
|
"–",
|
|
1650
|
-
Math.min(O + L,
|
|
1653
|
+
Math.min(O + L, q.length),
|
|
1651
1654
|
" of ",
|
|
1652
|
-
|
|
1655
|
+
q.length
|
|
1653
1656
|
] }),
|
|
1654
1657
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1655
|
-
/* @__PURE__ */ s(
|
|
1656
|
-
/* @__PURE__ */ e(
|
|
1657
|
-
/* @__PURE__ */ e(
|
|
1658
|
+
/* @__PURE__ */ s(Cr, { value: String(L), onValueChange: (n) => st(Number(n)), children: [
|
|
1659
|
+
/* @__PURE__ */ e(at, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e(wr, {}) }),
|
|
1660
|
+
/* @__PURE__ */ e(nt, { children: _.map((n) => /* @__PURE__ */ s(ze, { value: String(n), children: [
|
|
1658
1661
|
n,
|
|
1659
1662
|
" / page"
|
|
1660
1663
|
] }, n)) })
|
|
@@ -1665,7 +1668,7 @@ function Kr({
|
|
|
1665
1668
|
variant: "outline",
|
|
1666
1669
|
size: "md",
|
|
1667
1670
|
disabled: $ <= 0,
|
|
1668
|
-
onClick: () =>
|
|
1671
|
+
onClick: () => Z((n) => Math.max(0, n - 1)),
|
|
1669
1672
|
children: "Previous"
|
|
1670
1673
|
}
|
|
1671
1674
|
),
|
|
@@ -1674,8 +1677,8 @@ function Kr({
|
|
|
1674
1677
|
{
|
|
1675
1678
|
variant: "outline",
|
|
1676
1679
|
size: "md",
|
|
1677
|
-
disabled: $ >=
|
|
1678
|
-
onClick: () =>
|
|
1680
|
+
disabled: $ >= G - 1,
|
|
1681
|
+
onClick: () => Z((n) => Math.min(G - 1, n + 1)),
|
|
1679
1682
|
children: "Next"
|
|
1680
1683
|
}
|
|
1681
1684
|
)
|
|
@@ -1683,8 +1686,8 @@ function Kr({
|
|
|
1683
1686
|
] })
|
|
1684
1687
|
] });
|
|
1685
1688
|
}
|
|
1686
|
-
function
|
|
1687
|
-
return /* @__PURE__ */ e(
|
|
1689
|
+
function Zr({ icon: t, title: r, description: a, action: l, className: i }) {
|
|
1690
|
+
return /* @__PURE__ */ e(ce, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1688
1691
|
t ? /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: t }) : null,
|
|
1689
1692
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1690
1693
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
|
|
@@ -1693,7 +1696,7 @@ function Jr({ icon: t, title: r, description: a, action: l, className: i }) {
|
|
|
1693
1696
|
l
|
|
1694
1697
|
] }) });
|
|
1695
1698
|
}
|
|
1696
|
-
function
|
|
1699
|
+
function Kr({ className: t, ...r }) {
|
|
1697
1700
|
return /* @__PURE__ */ e(
|
|
1698
1701
|
"kbd",
|
|
1699
1702
|
{
|
|
@@ -1705,8 +1708,8 @@ function Qr({ className: t, ...r }) {
|
|
|
1705
1708
|
}
|
|
1706
1709
|
);
|
|
1707
1710
|
}
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1711
|
+
const Tr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
1712
|
+
Ft.Root,
|
|
1710
1713
|
{
|
|
1711
1714
|
ref: a,
|
|
1712
1715
|
className: o(
|
|
@@ -1716,28 +1719,28 @@ const zr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
|
1716
1719
|
...r
|
|
1717
1720
|
}
|
|
1718
1721
|
));
|
|
1719
|
-
|
|
1720
|
-
function
|
|
1722
|
+
Tr.displayName = "Label";
|
|
1723
|
+
function Or({
|
|
1721
1724
|
value: t,
|
|
1722
1725
|
onValueChange: r,
|
|
1723
1726
|
options: a,
|
|
1724
1727
|
size: l = "sm",
|
|
1725
1728
|
className: i,
|
|
1726
|
-
...
|
|
1729
|
+
...d
|
|
1727
1730
|
}) {
|
|
1728
|
-
const
|
|
1731
|
+
const c = de();
|
|
1729
1732
|
return /* @__PURE__ */ e(
|
|
1730
1733
|
"div",
|
|
1731
1734
|
{
|
|
1732
1735
|
role: "radiogroup",
|
|
1733
|
-
"aria-label":
|
|
1736
|
+
"aria-label": d["aria-label"],
|
|
1734
1737
|
className: o(
|
|
1735
1738
|
"inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
|
|
1736
1739
|
l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
|
|
1737
1740
|
i
|
|
1738
1741
|
),
|
|
1739
|
-
children: a.map((
|
|
1740
|
-
const
|
|
1742
|
+
children: a.map((u) => {
|
|
1743
|
+
const h = u.value === t;
|
|
1741
1744
|
return /* @__PURE__ */ s(
|
|
1742
1745
|
"label",
|
|
1743
1746
|
{
|
|
@@ -1745,32 +1748,32 @@ function Yr({
|
|
|
1745
1748
|
"inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
|
|
1746
1749
|
"has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
|
|
1747
1750
|
l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
|
|
1748
|
-
|
|
1751
|
+
h ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
|
|
1749
1752
|
),
|
|
1750
1753
|
children: [
|
|
1751
1754
|
/* @__PURE__ */ e(
|
|
1752
1755
|
"input",
|
|
1753
1756
|
{
|
|
1754
1757
|
type: "radio",
|
|
1755
|
-
name:
|
|
1756
|
-
value:
|
|
1757
|
-
checked:
|
|
1758
|
-
onChange: () => r(
|
|
1758
|
+
name: c,
|
|
1759
|
+
value: u.value,
|
|
1760
|
+
checked: h,
|
|
1761
|
+
onChange: () => r(u.value),
|
|
1759
1762
|
className: "sr-only"
|
|
1760
1763
|
}
|
|
1761
1764
|
),
|
|
1762
|
-
|
|
1763
|
-
|
|
1765
|
+
u.icon,
|
|
1766
|
+
u.label
|
|
1764
1767
|
]
|
|
1765
1768
|
},
|
|
1766
|
-
|
|
1769
|
+
u.value
|
|
1767
1770
|
);
|
|
1768
1771
|
})
|
|
1769
1772
|
}
|
|
1770
1773
|
);
|
|
1771
1774
|
}
|
|
1772
|
-
const
|
|
1773
|
-
|
|
1775
|
+
const Mr = b(({ className: t, orientation: r = "horizontal", decorative: a = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
1776
|
+
$t.Root,
|
|
1774
1777
|
{
|
|
1775
1778
|
ref: i,
|
|
1776
1779
|
decorative: a,
|
|
@@ -1783,8 +1786,8 @@ const Dr = p(({ className: t, orientation: r = "horizontal", decorative: a = !0,
|
|
|
1783
1786
|
...l
|
|
1784
1787
|
}
|
|
1785
1788
|
));
|
|
1786
|
-
|
|
1787
|
-
function
|
|
1789
|
+
Mr.displayName = "Separator";
|
|
1790
|
+
function ea({ className: t, ...r }) {
|
|
1788
1791
|
return /* @__PURE__ */ e(
|
|
1789
1792
|
"div",
|
|
1790
1793
|
{
|
|
@@ -1793,7 +1796,7 @@ function Zr({ className: t, ...r }) {
|
|
|
1793
1796
|
}
|
|
1794
1797
|
);
|
|
1795
1798
|
}
|
|
1796
|
-
const
|
|
1799
|
+
const ta = W.Provider, ra = W.Root, aa = W.Trigger, Pr = b(({ className: t, sideOffset: r = 6, ...a }, l) => /* @__PURE__ */ e(W.Portal, { children: /* @__PURE__ */ e(
|
|
1797
1800
|
W.Content,
|
|
1798
1801
|
{
|
|
1799
1802
|
ref: l,
|
|
@@ -1811,77 +1814,78 @@ const Or = W.Provider, ea = W.Root, ta = W.Trigger, Tr = p(({ className: t, side
|
|
|
1811
1814
|
...a
|
|
1812
1815
|
}
|
|
1813
1816
|
) }));
|
|
1814
|
-
|
|
1817
|
+
Pr.displayName = "TooltipContent";
|
|
1815
1818
|
export {
|
|
1816
|
-
|
|
1817
|
-
|
|
1819
|
+
Br as AgentPrompt,
|
|
1820
|
+
Ge as Avatar,
|
|
1818
1821
|
Ve as AvatarFallback,
|
|
1819
|
-
|
|
1820
|
-
|
|
1822
|
+
He as AvatarImage,
|
|
1823
|
+
Wt as Badge,
|
|
1821
1824
|
S as Button,
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1825
|
+
Fr as Callout,
|
|
1826
|
+
rr as Card,
|
|
1827
|
+
lr as CardContent,
|
|
1828
|
+
nr as CardDescription,
|
|
1829
|
+
ir as CardFooter,
|
|
1827
1830
|
Ue as CardHeader,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1831
|
+
ar as CardTitle,
|
|
1832
|
+
xe as Checkbox,
|
|
1833
|
+
Vr as ChoiceDialog,
|
|
1834
|
+
Ur as CodeBlock,
|
|
1835
|
+
Yr as DataTable,
|
|
1836
|
+
Qr as DataTableIdentity,
|
|
1837
|
+
ur as Dialog,
|
|
1838
|
+
pr as DialogBody,
|
|
1839
|
+
Ye as DialogCancel,
|
|
1840
|
+
Hr as DialogClose,
|
|
1841
|
+
Ke as DialogContent,
|
|
1842
|
+
hr as DialogDescription,
|
|
1843
|
+
fr as DialogFooter,
|
|
1844
|
+
br as DialogHeader,
|
|
1845
|
+
mr as DialogPanel,
|
|
1846
|
+
Oe as DialogTitle,
|
|
1847
|
+
Qe as DialogTrigger,
|
|
1848
|
+
ge as DropdownMenu,
|
|
1845
1849
|
U as DropdownMenuCheckboxItem,
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1850
|
+
ae as DropdownMenuContent,
|
|
1851
|
+
Wr as DropdownMenuGroup,
|
|
1852
|
+
oe as DropdownMenuItem,
|
|
1853
|
+
ne as DropdownMenuLabel,
|
|
1854
|
+
Xr as DropdownMenuPortal,
|
|
1855
|
+
Ne as DropdownMenuSeparator,
|
|
1856
|
+
re as DropdownMenuTrigger,
|
|
1857
|
+
Zr as EmptyState,
|
|
1858
|
+
tt as Input,
|
|
1859
|
+
Kr as Kbd,
|
|
1860
|
+
Tr as Label,
|
|
1861
|
+
xr as RadioCard,
|
|
1862
|
+
gr as RadioGroup,
|
|
1863
|
+
Or as Segmented,
|
|
1864
|
+
Cr as Select,
|
|
1865
|
+
nt as SelectContent,
|
|
1866
|
+
Jr as SelectGroup,
|
|
1863
1867
|
ze as SelectItem,
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1868
|
+
Sr as SelectLabel,
|
|
1869
|
+
at as SelectTrigger,
|
|
1870
|
+
wr as SelectValue,
|
|
1871
|
+
Mr as Separator,
|
|
1872
|
+
ea as Skeleton,
|
|
1873
|
+
qt as Spinner,
|
|
1874
|
+
$r as Table,
|
|
1875
|
+
Yt as TableBody,
|
|
1876
|
+
fe as TableCell,
|
|
1877
|
+
Jt as TableContainer,
|
|
1878
|
+
kr as TableEmptyState,
|
|
1879
|
+
Gr as TableHead,
|
|
1880
|
+
qr as TableHeader,
|
|
1881
|
+
Qt as TablePanel,
|
|
1882
|
+
Zt as TableRow,
|
|
1883
|
+
ce as TableSurface,
|
|
1884
|
+
ra as Tooltip,
|
|
1885
|
+
Pr as TooltipContent,
|
|
1886
|
+
ta as TooltipProvider,
|
|
1887
|
+
aa as TooltipTrigger,
|
|
1888
|
+
Vt as badgeVariants,
|
|
1889
|
+
Gt as buttonVariants
|
|
1886
1890
|
};
|
|
1887
1891
|
//# sourceMappingURL=index.js.map
|