@jinaan/uikit 0.1.19 → 0.1.20
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/button.d.ts.map +1 -1
- package/dist/index.js +145 -141
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/button.tsx +10 -8
package/dist/index.js
CHANGED
|
@@ -13,14 +13,14 @@ import * as D from "@radix-ui/react-select";
|
|
|
13
13
|
import * as qt from "@radix-ui/react-label";
|
|
14
14
|
import * as Gt from "@radix-ui/react-separator";
|
|
15
15
|
import * as W from "@radix-ui/react-tooltip";
|
|
16
|
-
function
|
|
16
|
+
function i(...t) {
|
|
17
17
|
return $t(Ft(t));
|
|
18
18
|
}
|
|
19
19
|
function Ht({ className: t }) {
|
|
20
20
|
return /* @__PURE__ */ e(
|
|
21
21
|
wt,
|
|
22
22
|
{
|
|
23
|
-
className:
|
|
23
|
+
className: i("size-4 animate-spin text-muted", t),
|
|
24
24
|
weight: "bold",
|
|
25
25
|
"aria-hidden": !0
|
|
26
26
|
}
|
|
@@ -65,7 +65,7 @@ const Vt = ye(
|
|
|
65
65
|
variant: a,
|
|
66
66
|
size: r = "md",
|
|
67
67
|
asChild: l = !1,
|
|
68
|
-
leadingIcon:
|
|
68
|
+
leadingIcon: o,
|
|
69
69
|
trailingIcon: d,
|
|
70
70
|
iconOnly: c = !1,
|
|
71
71
|
loading: u = !1,
|
|
@@ -81,7 +81,7 @@ const Vt = ye(
|
|
|
81
81
|
ref: k,
|
|
82
82
|
"aria-busy": u || void 0,
|
|
83
83
|
disabled: l ? void 0 : g || u,
|
|
84
|
-
className:
|
|
84
|
+
className: i(
|
|
85
85
|
Vt({ variant: a, size: r }),
|
|
86
86
|
c && "aspect-square px-0",
|
|
87
87
|
h && "w-full",
|
|
@@ -93,24 +93,28 @@ const Vt = ye(
|
|
|
93
93
|
/* @__PURE__ */ s(
|
|
94
94
|
"span",
|
|
95
95
|
{
|
|
96
|
-
className:
|
|
96
|
+
className: i(
|
|
97
97
|
"inline-flex items-center justify-center gap-[var(--control-gap)] transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
98
98
|
u && "translate-y-2 opacity-0"
|
|
99
99
|
),
|
|
100
100
|
"aria-hidden": u || void 0,
|
|
101
101
|
children: [
|
|
102
|
-
!u &&
|
|
102
|
+
!u && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", w), "aria-hidden": !0, children: o }) : null,
|
|
103
103
|
p,
|
|
104
|
-
!u && d ? /* @__PURE__ */ e("span", { className:
|
|
104
|
+
!u && d ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
109
|
"span",
|
|
110
110
|
{
|
|
111
|
-
|
|
111
|
+
"data-button-spinner": !0,
|
|
112
|
+
className: i(
|
|
113
|
+
"pointer-events-none absolute inset-0 flex items-center justify-center transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
114
|
+
u ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
115
|
+
),
|
|
112
116
|
"aria-hidden": !0,
|
|
113
|
-
children: /* @__PURE__ */ e(Ht, { className:
|
|
117
|
+
children: /* @__PURE__ */ e(Ht, { className: i("text-current", w) })
|
|
114
118
|
}
|
|
115
119
|
)
|
|
116
120
|
] })
|
|
@@ -125,13 +129,13 @@ function qa({
|
|
|
125
129
|
icon: r,
|
|
126
130
|
className: l
|
|
127
131
|
}) {
|
|
128
|
-
const [
|
|
132
|
+
const [o, d] = T(!1), c = async () => {
|
|
129
133
|
try {
|
|
130
134
|
await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
|
|
131
135
|
} catch {
|
|
132
136
|
}
|
|
133
137
|
};
|
|
134
|
-
return /* @__PURE__ */ s("div", { className:
|
|
138
|
+
return /* @__PURE__ */ s("div", { className: i("relative inline-flex max-w-full", l), children: [
|
|
135
139
|
/* @__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: [
|
|
136
140
|
r ?? /* @__PURE__ */ e(Ct, { className: "size-3.5", weight: "fill" }),
|
|
137
141
|
a
|
|
@@ -148,7 +152,7 @@ function qa({
|
|
|
148
152
|
"aria-label": "Copy prompt",
|
|
149
153
|
className: "ml-auto",
|
|
150
154
|
onClick: c,
|
|
151
|
-
children:
|
|
155
|
+
children: o ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {})
|
|
152
156
|
}
|
|
153
157
|
)
|
|
154
158
|
] })
|
|
@@ -158,7 +162,7 @@ const Ge = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
158
162
|
we.Root,
|
|
159
163
|
{
|
|
160
164
|
ref: r,
|
|
161
|
-
className:
|
|
165
|
+
className: i(
|
|
162
166
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
|
|
163
167
|
t
|
|
164
168
|
),
|
|
@@ -170,7 +174,7 @@ const He = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
170
174
|
we.Image,
|
|
171
175
|
{
|
|
172
176
|
ref: r,
|
|
173
|
-
className:
|
|
177
|
+
className: i("aspect-square size-full object-cover", t),
|
|
174
178
|
...a
|
|
175
179
|
}
|
|
176
180
|
));
|
|
@@ -179,7 +183,7 @@ const Ve = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
179
183
|
we.Fallback,
|
|
180
184
|
{
|
|
181
185
|
ref: r,
|
|
182
|
-
className:
|
|
186
|
+
className: i(
|
|
183
187
|
"flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
|
|
184
188
|
t
|
|
185
189
|
),
|
|
@@ -217,9 +221,9 @@ const Wt = ye(
|
|
|
217
221
|
},
|
|
218
222
|
defaultVariants: { variant: "neutral" }
|
|
219
223
|
});
|
|
220
|
-
function Jt({ className: t, variant: a, dot: r = !1, children: l, ...
|
|
221
|
-
return /* @__PURE__ */ s("span", { className:
|
|
222
|
-
r ? /* @__PURE__ */ e("span", { className:
|
|
224
|
+
function Jt({ className: t, variant: a, dot: r = !1, children: l, ...o }) {
|
|
225
|
+
return /* @__PURE__ */ s("span", { className: i(Wt({ variant: a }), t), ...o, children: [
|
|
226
|
+
r ? /* @__PURE__ */ e("span", { className: i(Xt({ variant: a })), "aria-hidden": !0 }) : null,
|
|
223
227
|
l
|
|
224
228
|
] });
|
|
225
229
|
}
|
|
@@ -250,21 +254,21 @@ function Ga({
|
|
|
250
254
|
title: a,
|
|
251
255
|
children: r,
|
|
252
256
|
icon: l,
|
|
253
|
-
className:
|
|
257
|
+
className: o
|
|
254
258
|
}) {
|
|
255
259
|
const { Icon: d, className: c, iconClassName: u } = Qt[t];
|
|
256
260
|
return /* @__PURE__ */ s(
|
|
257
261
|
"div",
|
|
258
262
|
{
|
|
259
263
|
role: t === "error" ? "alert" : void 0,
|
|
260
|
-
className:
|
|
264
|
+
className: i(
|
|
261
265
|
"flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
|
|
262
266
|
"animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
|
|
263
267
|
c,
|
|
264
|
-
|
|
268
|
+
o
|
|
265
269
|
),
|
|
266
270
|
children: [
|
|
267
|
-
/* @__PURE__ */ e("span", { className:
|
|
271
|
+
/* @__PURE__ */ e("span", { className: i("mt-0.5 shrink-0 [&_svg]:size-4", u), children: l ?? /* @__PURE__ */ e(d, { weight: "fill" }) }),
|
|
268
272
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
269
273
|
a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
|
|
270
274
|
r ? /* @__PURE__ */ e("div", { className: "text-muted", children: r }) : null
|
|
@@ -280,7 +284,7 @@ function Yt({
|
|
|
280
284
|
return /* @__PURE__ */ e(
|
|
281
285
|
"div",
|
|
282
286
|
{
|
|
283
|
-
className:
|
|
287
|
+
className: i(
|
|
284
288
|
"w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
|
|
285
289
|
t
|
|
286
290
|
),
|
|
@@ -295,7 +299,7 @@ function Zt({
|
|
|
295
299
|
return /* @__PURE__ */ e(
|
|
296
300
|
"div",
|
|
297
301
|
{
|
|
298
|
-
className:
|
|
302
|
+
className: i(
|
|
299
303
|
"overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
|
|
300
304
|
t
|
|
301
305
|
),
|
|
@@ -307,7 +311,7 @@ function Ha({ className: t, ...a }) {
|
|
|
307
311
|
return /* @__PURE__ */ e(
|
|
308
312
|
"table",
|
|
309
313
|
{
|
|
310
|
-
className:
|
|
314
|
+
className: i("w-full table-fixed border-collapse caption-bottom text-sm", t),
|
|
311
315
|
...a
|
|
312
316
|
}
|
|
313
317
|
);
|
|
@@ -316,13 +320,13 @@ function Va({ className: t, ...a }) {
|
|
|
316
320
|
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
317
321
|
}
|
|
318
322
|
function Ot({ className: t, ...a }) {
|
|
319
|
-
return /* @__PURE__ */ e("tbody", { className:
|
|
323
|
+
return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...a });
|
|
320
324
|
}
|
|
321
325
|
function Kt({ className: t, ...a }) {
|
|
322
326
|
return /* @__PURE__ */ e(
|
|
323
327
|
"tr",
|
|
324
328
|
{
|
|
325
|
-
className:
|
|
329
|
+
className: i(
|
|
326
330
|
"border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
|
|
327
331
|
t
|
|
328
332
|
),
|
|
@@ -334,7 +338,7 @@ function Ua({ className: t, ...a }) {
|
|
|
334
338
|
return /* @__PURE__ */ e(
|
|
335
339
|
"th",
|
|
336
340
|
{
|
|
337
|
-
className:
|
|
341
|
+
className: i(
|
|
338
342
|
"h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
|
|
339
343
|
t
|
|
340
344
|
),
|
|
@@ -346,7 +350,7 @@ function fe({ className: t, ...a }) {
|
|
|
346
350
|
return /* @__PURE__ */ e(
|
|
347
351
|
"td",
|
|
348
352
|
{
|
|
349
|
-
className:
|
|
353
|
+
className: i(
|
|
350
354
|
"px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
|
|
351
355
|
t
|
|
352
356
|
),
|
|
@@ -371,37 +375,37 @@ function ce({
|
|
|
371
375
|
description: a,
|
|
372
376
|
header: r,
|
|
373
377
|
children: l,
|
|
374
|
-
action:
|
|
378
|
+
action: o,
|
|
375
379
|
tone: d = "default",
|
|
376
380
|
className: c,
|
|
377
381
|
headerClassName: u,
|
|
378
382
|
panelClassName: h,
|
|
379
383
|
minHeight: g
|
|
380
384
|
}) {
|
|
381
|
-
const p = !!(t || a), N = aa(
|
|
385
|
+
const p = !!(t || a), N = aa(o) ? /* @__PURE__ */ e(
|
|
382
386
|
z,
|
|
383
387
|
{
|
|
384
|
-
variant:
|
|
388
|
+
variant: o.variant ?? "primary",
|
|
385
389
|
size: "xs",
|
|
386
|
-
leadingIcon:
|
|
387
|
-
onClick:
|
|
388
|
-
disabled:
|
|
389
|
-
asChild: !!
|
|
390
|
-
children:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
] }) :
|
|
390
|
+
leadingIcon: o.href ? void 0 : o.icon,
|
|
391
|
+
onClick: o.onClick,
|
|
392
|
+
disabled: o.disabled,
|
|
393
|
+
asChild: !!o.href,
|
|
394
|
+
children: o.href ? /* @__PURE__ */ s("a", { href: o.href, children: [
|
|
395
|
+
o.icon,
|
|
396
|
+
o.label
|
|
397
|
+
] }) : o.label
|
|
394
398
|
}
|
|
395
|
-
) :
|
|
396
|
-
return /* @__PURE__ */ s(Yt, { className:
|
|
399
|
+
) : o;
|
|
400
|
+
return /* @__PURE__ */ s(Yt, { className: i("relative", ea[d], c), children: [
|
|
397
401
|
/* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
398
402
|
r || p ? (
|
|
399
403
|
// Header rows must not inherit the body row hover surface.
|
|
400
|
-
/* @__PURE__ */ s("div", { className:
|
|
404
|
+
/* @__PURE__ */ s("div", { className: i("[--table-row-hover:transparent] text-table-header", u), children: [
|
|
401
405
|
p ? /* @__PURE__ */ s(
|
|
402
406
|
"div",
|
|
403
407
|
{
|
|
404
|
-
className:
|
|
408
|
+
className: i(
|
|
405
409
|
"px-(--table-pad-x) pb-3 pt-4",
|
|
406
410
|
N && "pr-28"
|
|
407
411
|
),
|
|
@@ -417,7 +421,7 @@ function ce({
|
|
|
417
421
|
/* @__PURE__ */ e(
|
|
418
422
|
Zt,
|
|
419
423
|
{
|
|
420
|
-
className:
|
|
424
|
+
className: i(ta[d], h),
|
|
421
425
|
style: g ? { minHeight: g } : void 0,
|
|
422
426
|
children: l
|
|
423
427
|
}
|
|
@@ -437,8 +441,8 @@ function ra(t) {
|
|
|
437
441
|
}
|
|
438
442
|
const na = b(
|
|
439
443
|
({ className: t, children: a, ...r }, l) => {
|
|
440
|
-
const { header:
|
|
441
|
-
return /* @__PURE__ */ e("div", { ref: l, ...r, children: /* @__PURE__ */ e(ce, { className:
|
|
444
|
+
const { header: o, body: d } = ra(a);
|
|
445
|
+
return /* @__PURE__ */ e("div", { ref: l, ...r, children: /* @__PURE__ */ e(ce, { className: i("shadow-xs", t), header: o, children: d }) });
|
|
442
446
|
}
|
|
443
447
|
);
|
|
444
448
|
na.displayName = "Card";
|
|
@@ -446,7 +450,7 @@ const Ue = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
446
450
|
"div",
|
|
447
451
|
{
|
|
448
452
|
ref: r,
|
|
449
|
-
className:
|
|
453
|
+
className: i(
|
|
450
454
|
"flex flex-col gap-1 px-5 py-4",
|
|
451
455
|
t
|
|
452
456
|
),
|
|
@@ -458,7 +462,7 @@ const la = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
458
462
|
"h2",
|
|
459
463
|
{
|
|
460
464
|
ref: r,
|
|
461
|
-
className:
|
|
465
|
+
className: i("text-sm font-semibold text-fg", t),
|
|
462
466
|
...a
|
|
463
467
|
}
|
|
464
468
|
));
|
|
@@ -467,7 +471,7 @@ const ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
467
471
|
"p",
|
|
468
472
|
{
|
|
469
473
|
ref: r,
|
|
470
|
-
className:
|
|
474
|
+
className: i(
|
|
471
475
|
"mt-1 border-t border-card-divider pt-2 text-sm text-muted",
|
|
472
476
|
"first:mt-0 first:border-t-0 first:pt-0",
|
|
473
477
|
t
|
|
@@ -476,13 +480,13 @@ const ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
476
480
|
}
|
|
477
481
|
));
|
|
478
482
|
ia.displayName = "CardDescription";
|
|
479
|
-
const oa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e("div", { ref: r, className:
|
|
483
|
+
const oa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e("div", { ref: r, className: i("px-5 py-4", t), ...a }));
|
|
480
484
|
oa.displayName = "CardContent";
|
|
481
485
|
const sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
482
486
|
"div",
|
|
483
487
|
{
|
|
484
488
|
ref: r,
|
|
485
|
-
className:
|
|
489
|
+
className: i(
|
|
486
490
|
"flex items-center gap-3 border-t border-line px-5 py-3",
|
|
487
491
|
t
|
|
488
492
|
),
|
|
@@ -494,7 +498,7 @@ const xe = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
494
498
|
Ee.Root,
|
|
495
499
|
{
|
|
496
500
|
ref: r,
|
|
497
|
-
className:
|
|
501
|
+
className: i(
|
|
498
502
|
"peer size-4 shrink-0 rounded border border-line-strong bg-transparent transition-colors",
|
|
499
503
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/40",
|
|
500
504
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -568,7 +572,7 @@ function pa({
|
|
|
568
572
|
defaultOpen: a,
|
|
569
573
|
onOpenChange: r,
|
|
570
574
|
children: l,
|
|
571
|
-
...
|
|
575
|
+
...o
|
|
572
576
|
}) {
|
|
573
577
|
const [d, c] = T(
|
|
574
578
|
a ?? !1
|
|
@@ -604,7 +608,7 @@ function pa({
|
|
|
604
608
|
{
|
|
605
609
|
open: N,
|
|
606
610
|
onOpenChange: w,
|
|
607
|
-
...
|
|
611
|
+
...o,
|
|
608
612
|
children: l
|
|
609
613
|
}
|
|
610
614
|
) }) });
|
|
@@ -633,8 +637,8 @@ function Ze(t, a = !0) {
|
|
|
633
637
|
return;
|
|
634
638
|
}
|
|
635
639
|
t.dataset.dialogMotionStarted = "true";
|
|
636
|
-
const l = ua(t),
|
|
637
|
-
|
|
640
|
+
const l = ua(t), o = l ? da(l, r) : null;
|
|
641
|
+
o ? (t.style.setProperty("--dialog-dx", `${o.dx}px`), t.style.setProperty("--dialog-dy", `${o.dy}px`), t.style.setProperty("--dialog-sx", String(o.sx)), t.style.setProperty("--dialog-sy", String(o.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
|
|
638
642
|
const d = () => {
|
|
639
643
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
640
644
|
}, c = (u) => {
|
|
@@ -642,7 +646,7 @@ function Ze(t, a = !0) {
|
|
|
642
646
|
};
|
|
643
647
|
t.addEventListener("animationend", c);
|
|
644
648
|
}
|
|
645
|
-
const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOutside: l, ...
|
|
649
|
+
const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOutside: l, ...o }, d) => {
|
|
646
650
|
const c = ie(Xe), u = ie(Je), h = te(null), g = At(
|
|
647
651
|
(p) => {
|
|
648
652
|
if (h.current = p, p && Ze(p), typeof d == "function") {
|
|
@@ -657,7 +661,7 @@ const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
657
661
|
/* @__PURE__ */ e(
|
|
658
662
|
M.Overlay,
|
|
659
663
|
{
|
|
660
|
-
className:
|
|
664
|
+
className: i(
|
|
661
665
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
662
666
|
!c && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
663
667
|
c && "opacity-0 transition-opacity duration-200"
|
|
@@ -675,7 +679,7 @@ const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
675
679
|
M.Content,
|
|
676
680
|
{
|
|
677
681
|
ref: g,
|
|
678
|
-
className:
|
|
682
|
+
className: i(
|
|
679
683
|
"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]",
|
|
680
684
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
681
685
|
c && "dialog-closing",
|
|
@@ -688,7 +692,7 @@ const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
688
692
|
onPointerDownOutside: (p) => {
|
|
689
693
|
l == null || l(p), !p.defaultPrevented && (p.preventDefault(), u());
|
|
690
694
|
},
|
|
691
|
-
...
|
|
695
|
+
...o,
|
|
692
696
|
children: [
|
|
693
697
|
a,
|
|
694
698
|
/* @__PURE__ */ s(M.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
|
|
@@ -709,7 +713,7 @@ function ba({
|
|
|
709
713
|
"div",
|
|
710
714
|
{
|
|
711
715
|
"data-slot": "panel",
|
|
712
|
-
className:
|
|
716
|
+
className: i(
|
|
713
717
|
"flex min-h-0 flex-1 flex-col overflow-hidden rounded-b-2xl border-x-0 border-t-0 border-b border-(--dialog-panel-border) bg-(--dialog-panel-bg) shadow-(--dialog-panel-shadow)",
|
|
714
718
|
t
|
|
715
719
|
),
|
|
@@ -725,7 +729,7 @@ function fa({
|
|
|
725
729
|
"div",
|
|
726
730
|
{
|
|
727
731
|
"data-slot": "body",
|
|
728
|
-
className:
|
|
732
|
+
className: i("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
|
|
729
733
|
...a
|
|
730
734
|
}
|
|
731
735
|
);
|
|
@@ -738,7 +742,7 @@ function ha({
|
|
|
738
742
|
"div",
|
|
739
743
|
{
|
|
740
744
|
"data-slot": "header",
|
|
741
|
-
className:
|
|
745
|
+
className: i(
|
|
742
746
|
"flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
|
|
743
747
|
t
|
|
744
748
|
),
|
|
@@ -754,7 +758,7 @@ function ga({
|
|
|
754
758
|
"div",
|
|
755
759
|
{
|
|
756
760
|
"data-slot": "footer",
|
|
757
|
-
className:
|
|
761
|
+
className: i(
|
|
758
762
|
"flex shrink-0 flex-col-reverse gap-2 px-3 pt-3 sm:flex-row sm:px-4 sm:pt-3.5 sm:*:flex-1",
|
|
759
763
|
t
|
|
760
764
|
),
|
|
@@ -766,7 +770,7 @@ const Ke = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
766
770
|
M.Title,
|
|
767
771
|
{
|
|
768
772
|
ref: r,
|
|
769
|
-
className:
|
|
773
|
+
className: i("text-base font-semibold text-fg", t),
|
|
770
774
|
...a
|
|
771
775
|
}
|
|
772
776
|
));
|
|
@@ -775,7 +779,7 @@ const xa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
775
779
|
M.Description,
|
|
776
780
|
{
|
|
777
781
|
ref: r,
|
|
778
|
-
className:
|
|
782
|
+
className: i("text-sm text-muted", t),
|
|
779
783
|
...a
|
|
780
784
|
}
|
|
781
785
|
));
|
|
@@ -786,13 +790,13 @@ function va({
|
|
|
786
790
|
value: a,
|
|
787
791
|
onChange: r,
|
|
788
792
|
disabled: l = !1,
|
|
789
|
-
name:
|
|
793
|
+
name: o,
|
|
790
794
|
className: d,
|
|
791
795
|
children: c,
|
|
792
796
|
...u
|
|
793
797
|
}) {
|
|
794
|
-
const h = de(), g =
|
|
795
|
-
return /* @__PURE__ */ e(et.Provider, { value: { name: g, value: a, onChange: r, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className:
|
|
798
|
+
const h = de(), g = o ?? h;
|
|
799
|
+
return /* @__PURE__ */ e(et.Provider, { value: { name: g, value: a, onChange: r, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", d), ...u, children: [
|
|
796
800
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
797
801
|
c
|
|
798
802
|
] }) });
|
|
@@ -802,17 +806,17 @@ function Na({
|
|
|
802
806
|
title: a,
|
|
803
807
|
description: r,
|
|
804
808
|
badge: l,
|
|
805
|
-
disabled:
|
|
809
|
+
disabled: o = !1,
|
|
806
810
|
className: d
|
|
807
811
|
}) {
|
|
808
812
|
const c = ie(et), u = de();
|
|
809
813
|
if (!c)
|
|
810
814
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
811
|
-
const h =
|
|
815
|
+
const h = o || c.disabled, g = c.value === t;
|
|
812
816
|
return /* @__PURE__ */ s(
|
|
813
817
|
"label",
|
|
814
818
|
{
|
|
815
|
-
className:
|
|
819
|
+
className: i(
|
|
816
820
|
"group relative flex items-start gap-3",
|
|
817
821
|
h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
818
822
|
d
|
|
@@ -838,7 +842,7 @@ function Na({
|
|
|
838
842
|
"span",
|
|
839
843
|
{
|
|
840
844
|
"aria-hidden": !0,
|
|
841
|
-
className:
|
|
845
|
+
className: i(
|
|
842
846
|
"mt-[5px] grid size-3.5 shrink-0 place-items-center rounded-full border-2 border-transparent bg-line-strong transition-colors",
|
|
843
847
|
"peer-checked:border-4 peer-checked:border-primary peer-checked:bg-primary-fg",
|
|
844
848
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-focus/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-canvas"
|
|
@@ -861,7 +865,7 @@ function Xa({
|
|
|
861
865
|
onOpenChange: a,
|
|
862
866
|
trigger: r,
|
|
863
867
|
title: l,
|
|
864
|
-
options:
|
|
868
|
+
options: o,
|
|
865
869
|
defaultValue: d,
|
|
866
870
|
value: c,
|
|
867
871
|
onValueChange: u,
|
|
@@ -870,7 +874,7 @@ function Xa({
|
|
|
870
874
|
onConfirm: p
|
|
871
875
|
}) {
|
|
872
876
|
var I;
|
|
873
|
-
const [N, k] = T(d ?? ((I =
|
|
877
|
+
const [N, k] = T(d ?? ((I = o[0]) == null ? void 0 : I.value) ?? ""), S = c ?? N;
|
|
874
878
|
return /* @__PURE__ */ s(pa, { open: t, onOpenChange: a, children: [
|
|
875
879
|
r ? /* @__PURE__ */ e(Qe, { asChild: !0, children: r }) : null,
|
|
876
880
|
/* @__PURE__ */ s(
|
|
@@ -883,7 +887,7 @@ function Xa({
|
|
|
883
887
|
/* @__PURE__ */ e(ha, { children: /* @__PURE__ */ e(Ke, { className: "text-xl", children: l }) }),
|
|
884
888
|
/* @__PURE__ */ e(fa, { children: /* @__PURE__ */ e(va, { label: l, value: S, onChange: (y) => {
|
|
885
889
|
c === void 0 && k(y), u == null || u(y);
|
|
886
|
-
}, children:
|
|
890
|
+
}, children: o.map((y) => /* @__PURE__ */ e(
|
|
887
891
|
Na,
|
|
888
892
|
{
|
|
889
893
|
value: y.value,
|
|
@@ -904,7 +908,7 @@ function Xa({
|
|
|
904
908
|
] });
|
|
905
909
|
}
|
|
906
910
|
function Ja({ code: t, label: a, className: r }) {
|
|
907
|
-
const [l,
|
|
911
|
+
const [l, o] = T(!1);
|
|
908
912
|
return /* @__PURE__ */ e(
|
|
909
913
|
ce,
|
|
910
914
|
{
|
|
@@ -916,7 +920,7 @@ function Ja({ code: t, label: a, className: r }) {
|
|
|
916
920
|
variant: "ghost",
|
|
917
921
|
onClick: async () => {
|
|
918
922
|
try {
|
|
919
|
-
await navigator.clipboard.writeText(t),
|
|
923
|
+
await navigator.clipboard.writeText(t), o(!0), window.setTimeout(() => o(!1), 1500);
|
|
920
924
|
} catch {
|
|
921
925
|
}
|
|
922
926
|
}
|
|
@@ -957,7 +961,7 @@ const ya = {
|
|
|
957
961
|
containerClassName: a,
|
|
958
962
|
type: r = "text",
|
|
959
963
|
size: l = "md",
|
|
960
|
-
leadingIcon:
|
|
964
|
+
leadingIcon: o,
|
|
961
965
|
trailingIcon: d,
|
|
962
966
|
onClear: c,
|
|
963
967
|
value: u,
|
|
@@ -980,11 +984,11 @@ const ya = {
|
|
|
980
984
|
readOnly: w,
|
|
981
985
|
"aria-invalid": g || void 0,
|
|
982
986
|
"aria-describedby": ue,
|
|
983
|
-
style:
|
|
984
|
-
paddingInlineStart:
|
|
987
|
+
style: o || d || _ ? {
|
|
988
|
+
paddingInlineStart: o ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
985
989
|
paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
986
990
|
} : void 0,
|
|
987
|
-
className:
|
|
991
|
+
className: i(
|
|
988
992
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
989
993
|
ya[l],
|
|
990
994
|
wa[l],
|
|
@@ -1003,17 +1007,17 @@ const ya = {
|
|
|
1003
1007
|
...I
|
|
1004
1008
|
}
|
|
1005
1009
|
);
|
|
1006
|
-
return !
|
|
1010
|
+
return !o && !d && !_ && !F ? Y : /* @__PURE__ */ s("div", { className: i("w-full", a), children: [
|
|
1007
1011
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1008
|
-
|
|
1012
|
+
o ? /* @__PURE__ */ e(
|
|
1009
1013
|
"span",
|
|
1010
1014
|
{
|
|
1011
|
-
className:
|
|
1015
|
+
className: i(
|
|
1012
1016
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1013
1017
|
Ca[l]
|
|
1014
1018
|
),
|
|
1015
1019
|
"aria-hidden": !0,
|
|
1016
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1020
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: o })
|
|
1017
1021
|
}
|
|
1018
1022
|
) : null,
|
|
1019
1023
|
Y,
|
|
@@ -1023,21 +1027,21 @@ const ya = {
|
|
|
1023
1027
|
type: "button",
|
|
1024
1028
|
"aria-label": "Clear search",
|
|
1025
1029
|
onClick: c,
|
|
1026
|
-
className:
|
|
1030
|
+
className: i(
|
|
1027
1031
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1028
1032
|
Ae[l]
|
|
1029
1033
|
),
|
|
1030
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1034
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: /* @__PURE__ */ e(le, {}) })
|
|
1031
1035
|
}
|
|
1032
1036
|
) : d ? /* @__PURE__ */ e(
|
|
1033
1037
|
"span",
|
|
1034
1038
|
{
|
|
1035
|
-
className:
|
|
1039
|
+
className: i(
|
|
1036
1040
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1037
1041
|
Ae[l]
|
|
1038
1042
|
),
|
|
1039
1043
|
"aria-hidden": !0,
|
|
1040
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1044
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: d })
|
|
1041
1045
|
}
|
|
1042
1046
|
) : null
|
|
1043
1047
|
] }),
|
|
@@ -1045,7 +1049,7 @@ const ya = {
|
|
|
1045
1049
|
"p",
|
|
1046
1050
|
{
|
|
1047
1051
|
id: Q,
|
|
1048
|
-
className:
|
|
1052
|
+
className: i("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
|
|
1049
1053
|
children: p
|
|
1050
1054
|
}
|
|
1051
1055
|
) : null
|
|
@@ -1061,8 +1065,8 @@ function Se(t, a) {
|
|
|
1061
1065
|
r += 1;
|
|
1062
1066
|
return;
|
|
1063
1067
|
}
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1068
|
+
const o = l.props.children;
|
|
1069
|
+
o && (r += Se(o, a));
|
|
1066
1070
|
}), r;
|
|
1067
1071
|
}
|
|
1068
1072
|
const at = se(!1);
|
|
@@ -1094,7 +1098,7 @@ const Qa = C.Group, Ya = C.Portal, re = b(({ className: t, sideOffset: a = 8, ..
|
|
|
1094
1098
|
{
|
|
1095
1099
|
ref: l,
|
|
1096
1100
|
sideOffset: a,
|
|
1097
|
-
className:
|
|
1101
|
+
className: i(
|
|
1098
1102
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1099
1103
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1100
1104
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1112,7 +1116,7 @@ const oe = b(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
|
1112
1116
|
C.Item,
|
|
1113
1117
|
{
|
|
1114
1118
|
ref: l,
|
|
1115
|
-
className:
|
|
1119
|
+
className: i(
|
|
1116
1120
|
"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",
|
|
1117
1121
|
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1118
1122
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1123,11 +1127,11 @@ const oe = b(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
|
1123
1127
|
}
|
|
1124
1128
|
));
|
|
1125
1129
|
oe.displayName = "DropdownMenuItem";
|
|
1126
|
-
const U = b(({ className: t, children: a, checked: r, ...l },
|
|
1130
|
+
const U = b(({ className: t, children: a, checked: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1127
1131
|
C.CheckboxItem,
|
|
1128
1132
|
{
|
|
1129
|
-
ref:
|
|
1130
|
-
className:
|
|
1133
|
+
ref: o,
|
|
1134
|
+
className: i(
|
|
1131
1135
|
"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)",
|
|
1132
1136
|
t
|
|
1133
1137
|
),
|
|
@@ -1144,16 +1148,16 @@ const ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1144
1148
|
C.Label,
|
|
1145
1149
|
{
|
|
1146
1150
|
ref: r,
|
|
1147
|
-
className:
|
|
1151
|
+
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1148
1152
|
...a
|
|
1149
1153
|
}
|
|
1150
1154
|
));
|
|
1151
1155
|
ne.displayName = "DropdownMenuLabel";
|
|
1152
|
-
const Za = C.Sub, rt = b(({ className: t, inset: a, children: r, ...l },
|
|
1156
|
+
const Za = C.Sub, rt = b(({ className: t, inset: a, children: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1153
1157
|
C.SubTrigger,
|
|
1154
1158
|
{
|
|
1155
|
-
ref:
|
|
1156
|
-
className:
|
|
1159
|
+
ref: o,
|
|
1160
|
+
className: i(
|
|
1157
1161
|
"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",
|
|
1158
1162
|
"focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
|
|
1159
1163
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1173,7 +1177,7 @@ const Sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1173
1177
|
{
|
|
1174
1178
|
ref: r,
|
|
1175
1179
|
sideOffset: 8,
|
|
1176
|
-
className:
|
|
1180
|
+
className: i(
|
|
1177
1181
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1178
1182
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1179
1183
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1191,7 +1195,7 @@ const Ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1191
1195
|
C.Separator,
|
|
1192
1196
|
{
|
|
1193
1197
|
ref: r,
|
|
1194
|
-
className:
|
|
1198
|
+
className: i("-mx-1 my-1 h-px bg-line", t),
|
|
1195
1199
|
...a
|
|
1196
1200
|
}
|
|
1197
1201
|
));
|
|
@@ -1205,11 +1209,11 @@ function ka({
|
|
|
1205
1209
|
const l = Se(t, [ze]) === 0;
|
|
1206
1210
|
return /* @__PURE__ */ e(D.Root, { disabled: a || l, ...r, children: t });
|
|
1207
1211
|
}
|
|
1208
|
-
const nt = b(({ className: t, children: a, variant: r = "field", ...l },
|
|
1212
|
+
const nt = b(({ className: t, children: a, variant: r = "field", ...l }, o) => /* @__PURE__ */ s(
|
|
1209
1213
|
D.Trigger,
|
|
1210
1214
|
{
|
|
1211
|
-
ref:
|
|
1212
|
-
className:
|
|
1215
|
+
ref: o,
|
|
1216
|
+
className: i(
|
|
1213
1217
|
"flex items-center justify-between gap-2 text-sm text-fg",
|
|
1214
1218
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1215
1219
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
@@ -1227,13 +1231,13 @@ const nt = b(({ className: t, children: a, variant: r = "field", ...l }, i) => /
|
|
|
1227
1231
|
));
|
|
1228
1232
|
nt.displayName = "SelectTrigger";
|
|
1229
1233
|
const lt = b(
|
|
1230
|
-
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...
|
|
1234
|
+
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...o }, d) => /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ e(
|
|
1231
1235
|
D.Content,
|
|
1232
1236
|
{
|
|
1233
1237
|
ref: d,
|
|
1234
1238
|
position: r,
|
|
1235
1239
|
sideOffset: l,
|
|
1236
|
-
className:
|
|
1240
|
+
className: i(
|
|
1237
1241
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1238
1242
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1239
1243
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1243,7 +1247,7 @@ const lt = b(
|
|
|
1243
1247
|
"duration-150 ease-out",
|
|
1244
1248
|
t
|
|
1245
1249
|
),
|
|
1246
|
-
...
|
|
1250
|
+
...o,
|
|
1247
1251
|
children: /* @__PURE__ */ e(D.Viewport, { className: "p-0", children: a })
|
|
1248
1252
|
}
|
|
1249
1253
|
) })
|
|
@@ -1253,7 +1257,7 @@ const ze = b(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
|
1253
1257
|
D.Item,
|
|
1254
1258
|
{
|
|
1255
1259
|
ref: l,
|
|
1256
|
-
className:
|
|
1260
|
+
className: i(
|
|
1257
1261
|
"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",
|
|
1258
1262
|
t
|
|
1259
1263
|
),
|
|
@@ -1269,7 +1273,7 @@ const Da = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1269
1273
|
D.Label,
|
|
1270
1274
|
{
|
|
1271
1275
|
ref: r,
|
|
1272
|
-
className:
|
|
1276
|
+
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1273
1277
|
...a
|
|
1274
1278
|
}
|
|
1275
1279
|
));
|
|
@@ -1279,14 +1283,14 @@ function Ta({
|
|
|
1279
1283
|
title: a,
|
|
1280
1284
|
description: r,
|
|
1281
1285
|
action: l,
|
|
1282
|
-
className:
|
|
1286
|
+
className: o
|
|
1283
1287
|
}) {
|
|
1284
1288
|
return /* @__PURE__ */ s(
|
|
1285
1289
|
"div",
|
|
1286
1290
|
{
|
|
1287
|
-
className:
|
|
1291
|
+
className: i(
|
|
1288
1292
|
"flex min-h-[22rem] flex-col items-center justify-center gap-5 px-6 py-16 text-center",
|
|
1289
|
-
|
|
1293
|
+
o
|
|
1290
1294
|
),
|
|
1291
1295
|
children: [
|
|
1292
1296
|
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,
|
|
@@ -1327,7 +1331,7 @@ function er({
|
|
|
1327
1331
|
columns: a,
|
|
1328
1332
|
getRowId: r,
|
|
1329
1333
|
loading: l = !1,
|
|
1330
|
-
error:
|
|
1334
|
+
error: o,
|
|
1331
1335
|
empty: d,
|
|
1332
1336
|
search: c,
|
|
1333
1337
|
filters: u,
|
|
@@ -1397,7 +1401,7 @@ function er({
|
|
|
1397
1401
|
...Nt,
|
|
1398
1402
|
...y ? ["11rem"] : []
|
|
1399
1403
|
], yt = (n) => (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? "ascending" : "descending" : void 0;
|
|
1400
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1404
|
+
return /* @__PURE__ */ s("div", { className: i("space-y-4", ot), children: [
|
|
1401
1405
|
p && p.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: p.map((n) => {
|
|
1402
1406
|
const m = n.id === N;
|
|
1403
1407
|
return /* @__PURE__ */ e(
|
|
@@ -1407,7 +1411,7 @@ function er({
|
|
|
1407
1411
|
role: "tab",
|
|
1408
1412
|
"aria-selected": m,
|
|
1409
1413
|
onClick: () => k == null ? void 0 : k(n.id),
|
|
1410
|
-
className:
|
|
1414
|
+
className: i(
|
|
1411
1415
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1412
1416
|
m ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1413
1417
|
),
|
|
@@ -1622,7 +1626,7 @@ function er({
|
|
|
1622
1626
|
j.map((n) => /* @__PURE__ */ e(
|
|
1623
1627
|
"th",
|
|
1624
1628
|
{
|
|
1625
|
-
className:
|
|
1629
|
+
className: i(Ma, n.align === "right" && "text-right", n.className),
|
|
1626
1630
|
children: n.sortable ? /* @__PURE__ */ s(
|
|
1627
1631
|
z,
|
|
1628
1632
|
{
|
|
@@ -1631,7 +1635,7 @@ function er({
|
|
|
1631
1635
|
size: "xs",
|
|
1632
1636
|
"aria-label": `Sort by ${n.header}`,
|
|
1633
1637
|
onClick: () => mt(n),
|
|
1634
|
-
className:
|
|
1638
|
+
className: i(
|
|
1635
1639
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1636
1640
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1637
1641
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
@@ -1650,13 +1654,13 @@ function er({
|
|
|
1650
1654
|
] }) })
|
|
1651
1655
|
] })
|
|
1652
1656
|
),
|
|
1653
|
-
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)) }) :
|
|
1657
|
+
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)) }) : o ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1654
1658
|
/* @__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(_t, { weight: "duotone" }) }),
|
|
1655
1659
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1656
|
-
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children:
|
|
1657
|
-
|
|
1660
|
+
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: o.title }),
|
|
1661
|
+
o.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: o.description }) : null
|
|
1658
1662
|
] }),
|
|
1659
|
-
|
|
1663
|
+
o.action
|
|
1660
1664
|
] }) : E.length === 0 ? /* @__PURE__ */ e(
|
|
1661
1665
|
Ta,
|
|
1662
1666
|
{
|
|
@@ -1693,7 +1697,7 @@ function er({
|
|
|
1693
1697
|
fe,
|
|
1694
1698
|
{
|
|
1695
1699
|
"data-numeric": v.numeric ? "" : void 0,
|
|
1696
|
-
className:
|
|
1700
|
+
className: i(v.align === "right" && "text-right", v.className),
|
|
1697
1701
|
children: v.cell(n)
|
|
1698
1702
|
},
|
|
1699
1703
|
v.id
|
|
@@ -1707,7 +1711,7 @@ function er({
|
|
|
1707
1711
|
] })
|
|
1708
1712
|
}
|
|
1709
1713
|
),
|
|
1710
|
-
!l && !
|
|
1714
|
+
!l && !o && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1711
1715
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1712
1716
|
K + 1,
|
|
1713
1717
|
"–",
|
|
@@ -1747,8 +1751,8 @@ function er({
|
|
|
1747
1751
|
] })
|
|
1748
1752
|
] });
|
|
1749
1753
|
}
|
|
1750
|
-
function tr({ icon: t, title: a, description: r, action: l, className:
|
|
1751
|
-
return /* @__PURE__ */ e(ce, { className:
|
|
1754
|
+
function tr({ icon: t, title: a, description: r, action: l, className: o }) {
|
|
1755
|
+
return /* @__PURE__ */ e(ce, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1752
1756
|
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,
|
|
1753
1757
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1754
1758
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
@@ -1761,7 +1765,7 @@ function ar({ className: t, ...a }) {
|
|
|
1761
1765
|
return /* @__PURE__ */ e(
|
|
1762
1766
|
"kbd",
|
|
1763
1767
|
{
|
|
1764
|
-
className:
|
|
1768
|
+
className: i(
|
|
1765
1769
|
"inline-flex h-5 min-w-5 items-center justify-center rounded border border-line bg-elevated px-1.5 font-mono text-[11px] font-medium text-subtle",
|
|
1766
1770
|
t
|
|
1767
1771
|
),
|
|
@@ -1773,7 +1777,7 @@ const Ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1773
1777
|
qt.Root,
|
|
1774
1778
|
{
|
|
1775
1779
|
ref: r,
|
|
1776
|
-
className:
|
|
1780
|
+
className: i(
|
|
1777
1781
|
"mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1778
1782
|
t
|
|
1779
1783
|
),
|
|
@@ -1786,7 +1790,7 @@ function rr({
|
|
|
1786
1790
|
onValueChange: a,
|
|
1787
1791
|
options: r,
|
|
1788
1792
|
size: l = "sm",
|
|
1789
|
-
className:
|
|
1793
|
+
className: o,
|
|
1790
1794
|
...d
|
|
1791
1795
|
}) {
|
|
1792
1796
|
const c = de();
|
|
@@ -1795,17 +1799,17 @@ function rr({
|
|
|
1795
1799
|
{
|
|
1796
1800
|
role: "radiogroup",
|
|
1797
1801
|
"aria-label": d["aria-label"],
|
|
1798
|
-
className:
|
|
1802
|
+
className: i(
|
|
1799
1803
|
"inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
|
|
1800
1804
|
l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
|
|
1801
|
-
|
|
1805
|
+
o
|
|
1802
1806
|
),
|
|
1803
1807
|
children: r.map((u) => {
|
|
1804
1808
|
const h = u.value === t;
|
|
1805
1809
|
return /* @__PURE__ */ s(
|
|
1806
1810
|
"label",
|
|
1807
1811
|
{
|
|
1808
|
-
className:
|
|
1812
|
+
className: i(
|
|
1809
1813
|
"inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
|
|
1810
1814
|
"has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
|
|
1811
1815
|
l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
|
|
@@ -1833,13 +1837,13 @@ function rr({
|
|
|
1833
1837
|
}
|
|
1834
1838
|
);
|
|
1835
1839
|
}
|
|
1836
|
-
const ja = b(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l },
|
|
1840
|
+
const ja = b(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l }, o) => /* @__PURE__ */ e(
|
|
1837
1841
|
Gt.Root,
|
|
1838
1842
|
{
|
|
1839
|
-
ref:
|
|
1843
|
+
ref: o,
|
|
1840
1844
|
decorative: r,
|
|
1841
1845
|
orientation: a,
|
|
1842
|
-
className:
|
|
1846
|
+
className: i(
|
|
1843
1847
|
"shrink-0 bg-line",
|
|
1844
1848
|
a === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
1845
1849
|
t
|
|
@@ -1852,7 +1856,7 @@ function nr({ className: t, ...a }) {
|
|
|
1852
1856
|
return /* @__PURE__ */ e(
|
|
1853
1857
|
"div",
|
|
1854
1858
|
{
|
|
1855
|
-
className:
|
|
1859
|
+
className: i("animate-pulse rounded-md bg-elevated", t),
|
|
1856
1860
|
...a
|
|
1857
1861
|
}
|
|
1858
1862
|
);
|
|
@@ -1862,7 +1866,7 @@ const lr = W.Provider, ir = W.Root, or = W.Trigger, Ea = b(({ className: t, side
|
|
|
1862
1866
|
{
|
|
1863
1867
|
ref: l,
|
|
1864
1868
|
sideOffset: a,
|
|
1865
|
-
className:
|
|
1869
|
+
className: i(
|
|
1866
1870
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
1867
1871
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
1868
1872
|
"data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0",
|