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