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