@jinaan/uikit 0.1.18 → 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 +295 -270
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/button.tsx +32 -15
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import { CircleNotch as wt, Robot as Ct, Terminal as St, Check as X, Copy as Fe, XCircle as zt, Warning as kt, CheckCircle as Dt, Info as Tt, Minus as Mt, X as le, CaretRight as Pt, CaretDown as ee, MagnifyingGlass as It, Columns as
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as Be } from "react/jsx-runtime";
|
|
2
|
+
import { CircleNotch as wt, Robot as Ct, Terminal as St, Check as X, Copy as Fe, XCircle as zt, Warning as kt, CheckCircle as Dt, Info as Tt, Minus as Mt, X as le, CaretRight as Pt, CaretDown as ee, MagnifyingGlass as It, Columns as jt, Lock as Et, FunnelSimple as Ie, WarningCircle as _t, CaretUp as Lt, CaretUpDown as Rt } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as b, useState as T, Children as $e, isValidElement as qe, useRef as te, useEffect as V, useContext as ie, useCallback as At, createContext as se, useId as de, useMemo as je } from "react";
|
|
4
4
|
import { Slot as Bt } from "@radix-ui/react-slot";
|
|
5
|
-
import { cva as
|
|
5
|
+
import { cva as ye } from "class-variance-authority";
|
|
6
6
|
import { clsx as Ft } from "clsx";
|
|
7
7
|
import { twMerge as $t } from "tailwind-merge";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as we from "@radix-ui/react-avatar";
|
|
9
|
+
import * as Ee from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as M from "@radix-ui/react-dialog";
|
|
11
11
|
import * as C from "@radix-ui/react-dropdown-menu";
|
|
12
12
|
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
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
const Vt =
|
|
29
|
+
const Vt = ye(
|
|
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: {
|
|
@@ -59,19 +59,19 @@ const Vt = we(
|
|
|
59
59
|
lg: "[&_svg]:size-[var(--control-icon-lg)]",
|
|
60
60
|
xl: "[&_svg]:size-[var(--control-icon-xl)]",
|
|
61
61
|
icon: "[&_svg]:size-[var(--control-icon-md)]"
|
|
62
|
-
}, z =
|
|
62
|
+
}, z = b(
|
|
63
63
|
({
|
|
64
64
|
className: t,
|
|
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,
|
|
72
72
|
fullWidth: h = !1,
|
|
73
73
|
disabled: g,
|
|
74
|
-
children:
|
|
74
|
+
children: p,
|
|
75
75
|
...N
|
|
76
76
|
}, k) => {
|
|
77
77
|
const S = l ? Bt : "button", w = Ut[r ?? "md"];
|
|
@@ -81,17 +81,42 @@ const Vt = we(
|
|
|
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",
|
|
88
|
+
u && "disabled:opacity-100",
|
|
88
89
|
t
|
|
89
90
|
),
|
|
90
91
|
...N,
|
|
91
|
-
children: l ?
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
children: l ? p : /* @__PURE__ */ s("span", { className: "relative inline-flex items-center justify-center gap-[var(--control-gap)]", children: [
|
|
93
|
+
/* @__PURE__ */ s(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
className: i(
|
|
97
|
+
"inline-flex items-center justify-center gap-[var(--control-gap)] transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
98
|
+
u && "translate-y-2 opacity-0"
|
|
99
|
+
),
|
|
100
|
+
"aria-hidden": u || void 0,
|
|
101
|
+
children: [
|
|
102
|
+
!u && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", w), "aria-hidden": !0, children: o }) : null,
|
|
103
|
+
p,
|
|
104
|
+
!u && d ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
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
|
+
),
|
|
116
|
+
"aria-hidden": !0,
|
|
117
|
+
children: /* @__PURE__ */ e(Ht, { className: i("text-current", w) })
|
|
118
|
+
}
|
|
119
|
+
)
|
|
95
120
|
] })
|
|
96
121
|
}
|
|
97
122
|
);
|
|
@@ -104,13 +129,13 @@ function qa({
|
|
|
104
129
|
icon: r,
|
|
105
130
|
className: l
|
|
106
131
|
}) {
|
|
107
|
-
const [
|
|
132
|
+
const [o, d] = T(!1), c = async () => {
|
|
108
133
|
try {
|
|
109
134
|
await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
|
|
110
135
|
} catch {
|
|
111
136
|
}
|
|
112
137
|
};
|
|
113
|
-
return /* @__PURE__ */ s("div", { className:
|
|
138
|
+
return /* @__PURE__ */ s("div", { className: i("relative inline-flex max-w-full", l), children: [
|
|
114
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: [
|
|
115
140
|
r ?? /* @__PURE__ */ e(Ct, { className: "size-3.5", weight: "fill" }),
|
|
116
141
|
a
|
|
@@ -127,17 +152,17 @@ function qa({
|
|
|
127
152
|
"aria-label": "Copy prompt",
|
|
128
153
|
className: "ml-auto",
|
|
129
154
|
onClick: c,
|
|
130
|
-
children:
|
|
155
|
+
children: o ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {})
|
|
131
156
|
}
|
|
132
157
|
)
|
|
133
158
|
] })
|
|
134
159
|
] });
|
|
135
160
|
}
|
|
136
|
-
const Ge =
|
|
137
|
-
|
|
161
|
+
const Ge = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
162
|
+
we.Root,
|
|
138
163
|
{
|
|
139
164
|
ref: r,
|
|
140
|
-
className:
|
|
165
|
+
className: i(
|
|
141
166
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
|
|
142
167
|
t
|
|
143
168
|
),
|
|
@@ -145,20 +170,20 @@ const Ge = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
145
170
|
}
|
|
146
171
|
));
|
|
147
172
|
Ge.displayName = "Avatar";
|
|
148
|
-
const He =
|
|
149
|
-
|
|
173
|
+
const He = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
174
|
+
we.Image,
|
|
150
175
|
{
|
|
151
176
|
ref: r,
|
|
152
|
-
className:
|
|
177
|
+
className: i("aspect-square size-full object-cover", t),
|
|
153
178
|
...a
|
|
154
179
|
}
|
|
155
180
|
));
|
|
156
181
|
He.displayName = "AvatarImage";
|
|
157
|
-
const Ve =
|
|
158
|
-
|
|
182
|
+
const Ve = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
183
|
+
we.Fallback,
|
|
159
184
|
{
|
|
160
185
|
ref: r,
|
|
161
|
-
className:
|
|
186
|
+
className: i(
|
|
162
187
|
"flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
|
|
163
188
|
t
|
|
164
189
|
),
|
|
@@ -166,7 +191,7 @@ const Ve = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
166
191
|
}
|
|
167
192
|
));
|
|
168
193
|
Ve.displayName = "AvatarFallback";
|
|
169
|
-
const Wt =
|
|
194
|
+
const Wt = ye(
|
|
170
195
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
171
196
|
{
|
|
172
197
|
variants: {
|
|
@@ -182,7 +207,7 @@ const Wt = we(
|
|
|
182
207
|
},
|
|
183
208
|
defaultVariants: { variant: "neutral" }
|
|
184
209
|
}
|
|
185
|
-
), Xt =
|
|
210
|
+
), Xt = ye("size-1.5 shrink-0 rounded-full", {
|
|
186
211
|
variants: {
|
|
187
212
|
variant: {
|
|
188
213
|
neutral: "bg-subtle",
|
|
@@ -196,9 +221,9 @@ const Wt = we(
|
|
|
196
221
|
},
|
|
197
222
|
defaultVariants: { variant: "neutral" }
|
|
198
223
|
});
|
|
199
|
-
function Jt({ className: t, variant: a, dot: r = !1, children: l, ...
|
|
200
|
-
return /* @__PURE__ */ s("span", { className:
|
|
201
|
-
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,
|
|
202
227
|
l
|
|
203
228
|
] });
|
|
204
229
|
}
|
|
@@ -229,21 +254,21 @@ function Ga({
|
|
|
229
254
|
title: a,
|
|
230
255
|
children: r,
|
|
231
256
|
icon: l,
|
|
232
|
-
className:
|
|
257
|
+
className: o
|
|
233
258
|
}) {
|
|
234
259
|
const { Icon: d, className: c, iconClassName: u } = Qt[t];
|
|
235
260
|
return /* @__PURE__ */ s(
|
|
236
261
|
"div",
|
|
237
262
|
{
|
|
238
263
|
role: t === "error" ? "alert" : void 0,
|
|
239
|
-
className:
|
|
264
|
+
className: i(
|
|
240
265
|
"flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
|
|
241
266
|
"animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
|
|
242
267
|
c,
|
|
243
|
-
|
|
268
|
+
o
|
|
244
269
|
),
|
|
245
270
|
children: [
|
|
246
|
-
/* @__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" }) }),
|
|
247
272
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
248
273
|
a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
|
|
249
274
|
r ? /* @__PURE__ */ e("div", { className: "text-muted", children: r }) : null
|
|
@@ -259,7 +284,7 @@ function Yt({
|
|
|
259
284
|
return /* @__PURE__ */ e(
|
|
260
285
|
"div",
|
|
261
286
|
{
|
|
262
|
-
className:
|
|
287
|
+
className: i(
|
|
263
288
|
"w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
|
|
264
289
|
t
|
|
265
290
|
),
|
|
@@ -274,7 +299,7 @@ function Zt({
|
|
|
274
299
|
return /* @__PURE__ */ e(
|
|
275
300
|
"div",
|
|
276
301
|
{
|
|
277
|
-
className:
|
|
302
|
+
className: i(
|
|
278
303
|
"overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
|
|
279
304
|
t
|
|
280
305
|
),
|
|
@@ -286,7 +311,7 @@ function Ha({ className: t, ...a }) {
|
|
|
286
311
|
return /* @__PURE__ */ e(
|
|
287
312
|
"table",
|
|
288
313
|
{
|
|
289
|
-
className:
|
|
314
|
+
className: i("w-full table-fixed border-collapse caption-bottom text-sm", t),
|
|
290
315
|
...a
|
|
291
316
|
}
|
|
292
317
|
);
|
|
@@ -295,13 +320,13 @@ function Va({ className: t, ...a }) {
|
|
|
295
320
|
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
296
321
|
}
|
|
297
322
|
function Ot({ className: t, ...a }) {
|
|
298
|
-
return /* @__PURE__ */ e("tbody", { className:
|
|
323
|
+
return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...a });
|
|
299
324
|
}
|
|
300
325
|
function Kt({ className: t, ...a }) {
|
|
301
326
|
return /* @__PURE__ */ e(
|
|
302
327
|
"tr",
|
|
303
328
|
{
|
|
304
|
-
className:
|
|
329
|
+
className: i(
|
|
305
330
|
"border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
|
|
306
331
|
t
|
|
307
332
|
),
|
|
@@ -313,7 +338,7 @@ function Ua({ className: t, ...a }) {
|
|
|
313
338
|
return /* @__PURE__ */ e(
|
|
314
339
|
"th",
|
|
315
340
|
{
|
|
316
|
-
className:
|
|
341
|
+
className: i(
|
|
317
342
|
"h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
|
|
318
343
|
t
|
|
319
344
|
),
|
|
@@ -325,7 +350,7 @@ function fe({ className: t, ...a }) {
|
|
|
325
350
|
return /* @__PURE__ */ e(
|
|
326
351
|
"td",
|
|
327
352
|
{
|
|
328
|
-
className:
|
|
353
|
+
className: i(
|
|
329
354
|
"px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
|
|
330
355
|
t
|
|
331
356
|
),
|
|
@@ -350,37 +375,37 @@ function ce({
|
|
|
350
375
|
description: a,
|
|
351
376
|
header: r,
|
|
352
377
|
children: l,
|
|
353
|
-
action:
|
|
378
|
+
action: o,
|
|
354
379
|
tone: d = "default",
|
|
355
380
|
className: c,
|
|
356
381
|
headerClassName: u,
|
|
357
382
|
panelClassName: h,
|
|
358
383
|
minHeight: g
|
|
359
384
|
}) {
|
|
360
|
-
const
|
|
385
|
+
const p = !!(t || a), N = aa(o) ? /* @__PURE__ */ e(
|
|
361
386
|
z,
|
|
362
387
|
{
|
|
363
|
-
variant:
|
|
388
|
+
variant: o.variant ?? "primary",
|
|
364
389
|
size: "xs",
|
|
365
|
-
leadingIcon:
|
|
366
|
-
onClick:
|
|
367
|
-
disabled:
|
|
368
|
-
asChild: !!
|
|
369
|
-
children:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
] }) :
|
|
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
|
|
373
398
|
}
|
|
374
|
-
) :
|
|
375
|
-
return /* @__PURE__ */ s(Yt, { className:
|
|
399
|
+
) : o;
|
|
400
|
+
return /* @__PURE__ */ s(Yt, { className: i("relative", ea[d], c), children: [
|
|
376
401
|
/* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
377
|
-
r ||
|
|
402
|
+
r || p ? (
|
|
378
403
|
// Header rows must not inherit the body row hover surface.
|
|
379
|
-
/* @__PURE__ */ s("div", { className:
|
|
380
|
-
|
|
404
|
+
/* @__PURE__ */ s("div", { className: i("[--table-row-hover:transparent] text-table-header", u), children: [
|
|
405
|
+
p ? /* @__PURE__ */ s(
|
|
381
406
|
"div",
|
|
382
407
|
{
|
|
383
|
-
className:
|
|
408
|
+
className: i(
|
|
384
409
|
"px-(--table-pad-x) pb-3 pt-4",
|
|
385
410
|
N && "pr-28"
|
|
386
411
|
),
|
|
@@ -396,7 +421,7 @@ function ce({
|
|
|
396
421
|
/* @__PURE__ */ e(
|
|
397
422
|
Zt,
|
|
398
423
|
{
|
|
399
|
-
className:
|
|
424
|
+
className: i(ta[d], h),
|
|
400
425
|
style: g ? { minHeight: g } : void 0,
|
|
401
426
|
children: l
|
|
402
427
|
}
|
|
@@ -410,22 +435,22 @@ function ra(t) {
|
|
|
410
435
|
(l) => qe(l) && l.type === Ue
|
|
411
436
|
);
|
|
412
437
|
return {
|
|
413
|
-
header: r.length > 0 ? /* @__PURE__ */ e(
|
|
438
|
+
header: r.length > 0 ? /* @__PURE__ */ e(Be, { children: r }) : void 0,
|
|
414
439
|
body: a.filter((l) => !r.includes(l))
|
|
415
440
|
};
|
|
416
441
|
}
|
|
417
|
-
const na =
|
|
442
|
+
const na = b(
|
|
418
443
|
({ className: t, children: a, ...r }, l) => {
|
|
419
|
-
const { header:
|
|
420
|
-
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 }) });
|
|
421
446
|
}
|
|
422
447
|
);
|
|
423
448
|
na.displayName = "Card";
|
|
424
|
-
const Ue =
|
|
449
|
+
const Ue = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
425
450
|
"div",
|
|
426
451
|
{
|
|
427
452
|
ref: r,
|
|
428
|
-
className:
|
|
453
|
+
className: i(
|
|
429
454
|
"flex flex-col gap-1 px-5 py-4",
|
|
430
455
|
t
|
|
431
456
|
),
|
|
@@ -433,20 +458,20 @@ const Ue = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
433
458
|
}
|
|
434
459
|
));
|
|
435
460
|
Ue.displayName = "CardHeader";
|
|
436
|
-
const la =
|
|
461
|
+
const la = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
437
462
|
"h2",
|
|
438
463
|
{
|
|
439
464
|
ref: r,
|
|
440
|
-
className:
|
|
465
|
+
className: i("text-sm font-semibold text-fg", t),
|
|
441
466
|
...a
|
|
442
467
|
}
|
|
443
468
|
));
|
|
444
469
|
la.displayName = "CardTitle";
|
|
445
|
-
const ia =
|
|
470
|
+
const ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
446
471
|
"p",
|
|
447
472
|
{
|
|
448
473
|
ref: r,
|
|
449
|
-
className:
|
|
474
|
+
className: i(
|
|
450
475
|
"mt-1 border-t border-card-divider pt-2 text-sm text-muted",
|
|
451
476
|
"first:mt-0 first:border-t-0 first:pt-0",
|
|
452
477
|
t
|
|
@@ -455,13 +480,13 @@ const ia = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
455
480
|
}
|
|
456
481
|
));
|
|
457
482
|
ia.displayName = "CardDescription";
|
|
458
|
-
const oa =
|
|
483
|
+
const oa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e("div", { ref: r, className: i("px-5 py-4", t), ...a }));
|
|
459
484
|
oa.displayName = "CardContent";
|
|
460
|
-
const sa =
|
|
485
|
+
const sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
461
486
|
"div",
|
|
462
487
|
{
|
|
463
488
|
ref: r,
|
|
464
|
-
className:
|
|
489
|
+
className: i(
|
|
465
490
|
"flex items-center gap-3 border-t border-line px-5 py-3",
|
|
466
491
|
t
|
|
467
492
|
),
|
|
@@ -469,11 +494,11 @@ const sa = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
469
494
|
}
|
|
470
495
|
));
|
|
471
496
|
sa.displayName = "CardFooter";
|
|
472
|
-
const xe =
|
|
473
|
-
|
|
497
|
+
const xe = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
498
|
+
Ee.Root,
|
|
474
499
|
{
|
|
475
500
|
ref: r,
|
|
476
|
-
className:
|
|
501
|
+
className: i(
|
|
477
502
|
"peer size-4 shrink-0 rounded border border-line-strong bg-transparent transition-colors",
|
|
478
503
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/40",
|
|
479
504
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -482,27 +507,27 @@ const xe = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
482
507
|
t
|
|
483
508
|
),
|
|
484
509
|
...a,
|
|
485
|
-
children: /* @__PURE__ */ e(
|
|
510
|
+
children: /* @__PURE__ */ e(Ee.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: a.checked === "indeterminate" ? /* @__PURE__ */ e(Mt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) })
|
|
486
511
|
}
|
|
487
512
|
));
|
|
488
513
|
xe.displayName = "Checkbox";
|
|
489
|
-
function
|
|
514
|
+
function _e(t) {
|
|
490
515
|
return t.width > 0 && t.height > 0;
|
|
491
516
|
}
|
|
492
|
-
function
|
|
517
|
+
function Le(t) {
|
|
493
518
|
return Math.min(1, Math.max(0.1, t));
|
|
494
519
|
}
|
|
495
520
|
function da(t, a) {
|
|
496
|
-
return !
|
|
521
|
+
return !_e(t) || !_e(a) ? null : {
|
|
497
522
|
dx: t.left + t.width / 2 - (a.left + a.width / 2),
|
|
498
523
|
dy: t.top + t.height / 2 - (a.top + a.height / 2),
|
|
499
|
-
sx:
|
|
500
|
-
sy:
|
|
524
|
+
sx: Le(t.width / a.width),
|
|
525
|
+
sy: Le(t.height / a.height)
|
|
501
526
|
};
|
|
502
527
|
}
|
|
503
528
|
const We = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
504
|
-
let A = null,
|
|
505
|
-
function
|
|
529
|
+
let A = null, Re = !1;
|
|
530
|
+
function Ce(t) {
|
|
506
531
|
const a = t.getBoundingClientRect();
|
|
507
532
|
return a.width <= 0 || a.height <= 0 ? null : {
|
|
508
533
|
left: a.left,
|
|
@@ -515,11 +540,11 @@ function ve(t) {
|
|
|
515
540
|
if (!(t instanceof Element)) return;
|
|
516
541
|
const a = t.closest(We);
|
|
517
542
|
if (!a) return;
|
|
518
|
-
const r =
|
|
543
|
+
const r = Ce(a);
|
|
519
544
|
r && (A = { rect: r, at: Date.now() });
|
|
520
545
|
}
|
|
521
546
|
function ca() {
|
|
522
|
-
|
|
547
|
+
Re || typeof document > "u" || (Re = !0, document.addEventListener(
|
|
523
548
|
"pointerdown",
|
|
524
549
|
(t) => ve(t.target),
|
|
525
550
|
!0
|
|
@@ -538,33 +563,33 @@ function ua(t) {
|
|
|
538
563
|
}
|
|
539
564
|
A = null;
|
|
540
565
|
const a = document.activeElement;
|
|
541
|
-
return a instanceof Element && a !== t && !t.contains(a) && a.matches(We) ?
|
|
566
|
+
return a instanceof Element && a !== t && !t.contains(a) && a.matches(We) ? Ce(a) : null;
|
|
542
567
|
}
|
|
543
568
|
const ma = 250, Xe = se(!1), Je = se(() => {
|
|
544
569
|
});
|
|
545
|
-
function
|
|
570
|
+
function pa({
|
|
546
571
|
open: t,
|
|
547
572
|
defaultOpen: a,
|
|
548
573
|
onOpenChange: r,
|
|
549
574
|
children: l,
|
|
550
|
-
...
|
|
575
|
+
...o
|
|
551
576
|
}) {
|
|
552
577
|
const [d, c] = T(
|
|
553
578
|
a ?? !1
|
|
554
|
-
), [u, h] = T(!1), g = te(!1),
|
|
579
|
+
), [u, h] = T(!1), g = te(!1), p = te(null), N = t ?? d, k = te(N);
|
|
555
580
|
k.current = N;
|
|
556
581
|
const S = t !== void 0;
|
|
557
582
|
V(() => ca(), []), V(() => {
|
|
558
|
-
t && (
|
|
583
|
+
t && (p.current && clearTimeout(p.current), g.current = !1, h(!1));
|
|
559
584
|
}, [t]), V(
|
|
560
585
|
() => () => {
|
|
561
|
-
|
|
586
|
+
p.current && clearTimeout(p.current);
|
|
562
587
|
},
|
|
563
588
|
[]
|
|
564
589
|
);
|
|
565
590
|
const w = (I) => {
|
|
566
591
|
if (I) {
|
|
567
|
-
|
|
592
|
+
p.current && clearTimeout(p.current), g.current = !1, h(!1), S || c(!0), r == null || r(!0);
|
|
568
593
|
return;
|
|
569
594
|
}
|
|
570
595
|
if (!N || g.current) return;
|
|
@@ -572,7 +597,7 @@ function ba({
|
|
|
572
597
|
S || c(!1), r == null || r(!1);
|
|
573
598
|
return;
|
|
574
599
|
}
|
|
575
|
-
g.current = !0, h(!0),
|
|
600
|
+
g.current = !0, h(!0), p.current = setTimeout(() => {
|
|
576
601
|
S || c(!1), r == null || r(!1), requestAnimationFrame(() => {
|
|
577
602
|
k.current && (g.current = !1, h(!1));
|
|
578
603
|
});
|
|
@@ -583,12 +608,12 @@ function ba({
|
|
|
583
608
|
{
|
|
584
609
|
open: N,
|
|
585
610
|
onOpenChange: w,
|
|
586
|
-
...
|
|
611
|
+
...o,
|
|
587
612
|
children: l
|
|
588
613
|
}
|
|
589
614
|
) }) });
|
|
590
615
|
}
|
|
591
|
-
const Qe =
|
|
616
|
+
const Qe = b(({ onClick: t, ...a }, r) => /* @__PURE__ */ e(
|
|
592
617
|
M.Trigger,
|
|
593
618
|
{
|
|
594
619
|
ref: r,
|
|
@@ -599,21 +624,21 @@ const Qe = p(({ onClick: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
599
624
|
}
|
|
600
625
|
));
|
|
601
626
|
Qe.displayName = "DialogTrigger";
|
|
602
|
-
const Wa = M.Close, Ye =
|
|
627
|
+
const Wa = M.Close, Ye = b(
|
|
603
628
|
({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e(M.Close, { asChild: !0, children: /* @__PURE__ */ e(z, { ref: l, type: "button", variant: t, ...r, children: a }) })
|
|
604
629
|
);
|
|
605
630
|
Ye.displayName = "DialogCancel";
|
|
606
631
|
function Ze(t, a = !0) {
|
|
607
632
|
if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
608
633
|
return;
|
|
609
|
-
const r =
|
|
634
|
+
const r = Ce(t);
|
|
610
635
|
if (!r) {
|
|
611
636
|
a && window.requestAnimationFrame(() => Ze(t, !1));
|
|
612
637
|
return;
|
|
613
638
|
}
|
|
614
639
|
t.dataset.dialogMotionStarted = "true";
|
|
615
|
-
const l = ua(t),
|
|
616
|
-
|
|
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"));
|
|
617
642
|
const d = () => {
|
|
618
643
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
619
644
|
}, c = (u) => {
|
|
@@ -621,14 +646,14 @@ function Ze(t, a = !0) {
|
|
|
621
646
|
};
|
|
622
647
|
t.addEventListener("animationend", c);
|
|
623
648
|
}
|
|
624
|
-
const Oe =
|
|
649
|
+
const Oe = b(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOutside: l, ...o }, d) => {
|
|
625
650
|
const c = ie(Xe), u = ie(Je), h = te(null), g = At(
|
|
626
|
-
(
|
|
627
|
-
if (h.current =
|
|
628
|
-
d(
|
|
651
|
+
(p) => {
|
|
652
|
+
if (h.current = p, p && Ze(p), typeof d == "function") {
|
|
653
|
+
d(p);
|
|
629
654
|
return;
|
|
630
655
|
}
|
|
631
|
-
d && (d.current =
|
|
656
|
+
d && (d.current = p);
|
|
632
657
|
},
|
|
633
658
|
[d]
|
|
634
659
|
);
|
|
@@ -636,7 +661,7 @@ const Oe = p(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
636
661
|
/* @__PURE__ */ e(
|
|
637
662
|
M.Overlay,
|
|
638
663
|
{
|
|
639
|
-
className:
|
|
664
|
+
className: i(
|
|
640
665
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
641
666
|
!c && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
642
667
|
c && "opacity-0 transition-opacity duration-200"
|
|
@@ -654,20 +679,20 @@ const Oe = p(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
654
679
|
M.Content,
|
|
655
680
|
{
|
|
656
681
|
ref: g,
|
|
657
|
-
className:
|
|
682
|
+
className: i(
|
|
658
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]",
|
|
659
684
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
660
685
|
c && "dialog-closing",
|
|
661
686
|
"focus:outline-none",
|
|
662
687
|
t
|
|
663
688
|
),
|
|
664
|
-
onEscapeKeyDown: (
|
|
665
|
-
r == null || r(
|
|
689
|
+
onEscapeKeyDown: (p) => {
|
|
690
|
+
r == null || r(p), !p.defaultPrevented && (p.preventDefault(), u());
|
|
666
691
|
},
|
|
667
|
-
onPointerDownOutside: (
|
|
668
|
-
l == null || l(
|
|
692
|
+
onPointerDownOutside: (p) => {
|
|
693
|
+
l == null || l(p), !p.defaultPrevented && (p.preventDefault(), u());
|
|
669
694
|
},
|
|
670
|
-
...
|
|
695
|
+
...o,
|
|
671
696
|
children: [
|
|
672
697
|
a,
|
|
673
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: [
|
|
@@ -680,7 +705,7 @@ const Oe = p(({ className: t, children: a, onEscapeKeyDown: r, onPointerDownOuts
|
|
|
680
705
|
] });
|
|
681
706
|
});
|
|
682
707
|
Oe.displayName = "DialogContent";
|
|
683
|
-
function
|
|
708
|
+
function ba({
|
|
684
709
|
className: t,
|
|
685
710
|
...a
|
|
686
711
|
}) {
|
|
@@ -688,7 +713,7 @@ function pa({
|
|
|
688
713
|
"div",
|
|
689
714
|
{
|
|
690
715
|
"data-slot": "panel",
|
|
691
|
-
className:
|
|
716
|
+
className: i(
|
|
692
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)",
|
|
693
718
|
t
|
|
694
719
|
),
|
|
@@ -704,7 +729,7 @@ function fa({
|
|
|
704
729
|
"div",
|
|
705
730
|
{
|
|
706
731
|
"data-slot": "body",
|
|
707
|
-
className:
|
|
732
|
+
className: i("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
|
|
708
733
|
...a
|
|
709
734
|
}
|
|
710
735
|
);
|
|
@@ -717,7 +742,7 @@ function ha({
|
|
|
717
742
|
"div",
|
|
718
743
|
{
|
|
719
744
|
"data-slot": "header",
|
|
720
|
-
className:
|
|
745
|
+
className: i(
|
|
721
746
|
"flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
|
|
722
747
|
t
|
|
723
748
|
),
|
|
@@ -733,7 +758,7 @@ function ga({
|
|
|
733
758
|
"div",
|
|
734
759
|
{
|
|
735
760
|
"data-slot": "footer",
|
|
736
|
-
className:
|
|
761
|
+
className: i(
|
|
737
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",
|
|
738
763
|
t
|
|
739
764
|
),
|
|
@@ -741,20 +766,20 @@ function ga({
|
|
|
741
766
|
}
|
|
742
767
|
);
|
|
743
768
|
}
|
|
744
|
-
const Ke =
|
|
769
|
+
const Ke = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
745
770
|
M.Title,
|
|
746
771
|
{
|
|
747
772
|
ref: r,
|
|
748
|
-
className:
|
|
773
|
+
className: i("text-base font-semibold text-fg", t),
|
|
749
774
|
...a
|
|
750
775
|
}
|
|
751
776
|
));
|
|
752
777
|
Ke.displayName = "DialogTitle";
|
|
753
|
-
const xa =
|
|
778
|
+
const xa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
754
779
|
M.Description,
|
|
755
780
|
{
|
|
756
781
|
ref: r,
|
|
757
|
-
className:
|
|
782
|
+
className: i("text-sm text-muted", t),
|
|
758
783
|
...a
|
|
759
784
|
}
|
|
760
785
|
));
|
|
@@ -765,13 +790,13 @@ function va({
|
|
|
765
790
|
value: a,
|
|
766
791
|
onChange: r,
|
|
767
792
|
disabled: l = !1,
|
|
768
|
-
name:
|
|
793
|
+
name: o,
|
|
769
794
|
className: d,
|
|
770
795
|
children: c,
|
|
771
796
|
...u
|
|
772
797
|
}) {
|
|
773
|
-
const h = de(), g =
|
|
774
|
-
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: [
|
|
775
800
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
776
801
|
c
|
|
777
802
|
] }) });
|
|
@@ -781,17 +806,17 @@ function Na({
|
|
|
781
806
|
title: a,
|
|
782
807
|
description: r,
|
|
783
808
|
badge: l,
|
|
784
|
-
disabled:
|
|
809
|
+
disabled: o = !1,
|
|
785
810
|
className: d
|
|
786
811
|
}) {
|
|
787
812
|
const c = ie(et), u = de();
|
|
788
813
|
if (!c)
|
|
789
814
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
790
|
-
const h =
|
|
815
|
+
const h = o || c.disabled, g = c.value === t;
|
|
791
816
|
return /* @__PURE__ */ s(
|
|
792
817
|
"label",
|
|
793
818
|
{
|
|
794
|
-
className:
|
|
819
|
+
className: i(
|
|
795
820
|
"group relative flex items-start gap-3",
|
|
796
821
|
h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
797
822
|
d
|
|
@@ -806,8 +831,8 @@ function Na({
|
|
|
806
831
|
checked: g,
|
|
807
832
|
disabled: h,
|
|
808
833
|
onChange: () => {
|
|
809
|
-
var
|
|
810
|
-
return (
|
|
834
|
+
var p;
|
|
835
|
+
return (p = c.onChange) == null ? void 0 : p.call(c, t);
|
|
811
836
|
},
|
|
812
837
|
"aria-describedby": r ? u : void 0,
|
|
813
838
|
className: "peer sr-only"
|
|
@@ -817,7 +842,7 @@ function Na({
|
|
|
817
842
|
"span",
|
|
818
843
|
{
|
|
819
844
|
"aria-hidden": !0,
|
|
820
|
-
className:
|
|
845
|
+
className: i(
|
|
821
846
|
"mt-[5px] grid size-3.5 shrink-0 place-items-center rounded-full border-2 border-transparent bg-line-strong transition-colors",
|
|
822
847
|
"peer-checked:border-4 peer-checked:border-primary peer-checked:bg-primary-fg",
|
|
823
848
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-focus/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-canvas"
|
|
@@ -840,17 +865,17 @@ function Xa({
|
|
|
840
865
|
onOpenChange: a,
|
|
841
866
|
trigger: r,
|
|
842
867
|
title: l,
|
|
843
|
-
options:
|
|
868
|
+
options: o,
|
|
844
869
|
defaultValue: d,
|
|
845
870
|
value: c,
|
|
846
871
|
onValueChange: u,
|
|
847
872
|
cancelLabel: h = "Cancel",
|
|
848
873
|
confirmLabel: g = "Continue",
|
|
849
|
-
onConfirm:
|
|
874
|
+
onConfirm: p
|
|
850
875
|
}) {
|
|
851
876
|
var I;
|
|
852
|
-
const [N, k] = T(d ?? ((I =
|
|
853
|
-
return /* @__PURE__ */ s(
|
|
877
|
+
const [N, k] = T(d ?? ((I = o[0]) == null ? void 0 : I.value) ?? ""), S = c ?? N;
|
|
878
|
+
return /* @__PURE__ */ s(pa, { open: t, onOpenChange: a, children: [
|
|
854
879
|
r ? /* @__PURE__ */ e(Qe, { asChild: !0, children: r }) : null,
|
|
855
880
|
/* @__PURE__ */ s(
|
|
856
881
|
Oe,
|
|
@@ -858,11 +883,11 @@ function Xa({
|
|
|
858
883
|
"aria-describedby": void 0,
|
|
859
884
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
860
885
|
children: [
|
|
861
|
-
/* @__PURE__ */ s(
|
|
886
|
+
/* @__PURE__ */ s(ba, { children: [
|
|
862
887
|
/* @__PURE__ */ e(ha, { children: /* @__PURE__ */ e(Ke, { className: "text-xl", children: l }) }),
|
|
863
888
|
/* @__PURE__ */ e(fa, { children: /* @__PURE__ */ e(va, { label: l, value: S, onChange: (y) => {
|
|
864
889
|
c === void 0 && k(y), u == null || u(y);
|
|
865
|
-
}, children:
|
|
890
|
+
}, children: o.map((y) => /* @__PURE__ */ e(
|
|
866
891
|
Na,
|
|
867
892
|
{
|
|
868
893
|
value: y.value,
|
|
@@ -875,7 +900,7 @@ function Xa({
|
|
|
875
900
|
] }),
|
|
876
901
|
/* @__PURE__ */ s(ga, { className: "gap-3 pt-2.5", children: [
|
|
877
902
|
/* @__PURE__ */ e(Ye, { className: "flex-1", children: h }),
|
|
878
|
-
/* @__PURE__ */ e(z, { className: "flex-1", onClick: () =>
|
|
903
|
+
/* @__PURE__ */ e(z, { className: "flex-1", onClick: () => p == null ? void 0 : p(S), children: g })
|
|
879
904
|
] })
|
|
880
905
|
]
|
|
881
906
|
}
|
|
@@ -883,7 +908,7 @@ function Xa({
|
|
|
883
908
|
] });
|
|
884
909
|
}
|
|
885
910
|
function Ja({ code: t, label: a, className: r }) {
|
|
886
|
-
const [l,
|
|
911
|
+
const [l, o] = T(!1);
|
|
887
912
|
return /* @__PURE__ */ e(
|
|
888
913
|
ce,
|
|
889
914
|
{
|
|
@@ -895,7 +920,7 @@ function Ja({ code: t, label: a, className: r }) {
|
|
|
895
920
|
variant: "ghost",
|
|
896
921
|
onClick: async () => {
|
|
897
922
|
try {
|
|
898
|
-
await navigator.clipboard.writeText(t),
|
|
923
|
+
await navigator.clipboard.writeText(t), o(!0), window.setTimeout(() => o(!1), 1500);
|
|
899
924
|
} catch {
|
|
900
925
|
}
|
|
901
926
|
}
|
|
@@ -920,7 +945,7 @@ const ya = {
|
|
|
920
945
|
md: "left-[var(--control-pad-x-md)]",
|
|
921
946
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
922
947
|
xl: "left-[var(--control-pad-x-xl)]"
|
|
923
|
-
},
|
|
948
|
+
}, Ae = {
|
|
924
949
|
sm: "right-[var(--control-pad-x-sm)]",
|
|
925
950
|
md: "right-[var(--control-pad-x-md)]",
|
|
926
951
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
@@ -930,26 +955,26 @@ const ya = {
|
|
|
930
955
|
md: "size-[var(--control-icon-md)]",
|
|
931
956
|
lg: "size-[var(--control-icon-lg)]",
|
|
932
957
|
xl: "size-[var(--control-icon-xl)]"
|
|
933
|
-
}, tt =
|
|
958
|
+
}, tt = b(
|
|
934
959
|
({
|
|
935
960
|
className: t,
|
|
936
961
|
containerClassName: a,
|
|
937
962
|
type: r = "text",
|
|
938
963
|
size: l = "md",
|
|
939
|
-
leadingIcon:
|
|
964
|
+
leadingIcon: o,
|
|
940
965
|
trailingIcon: d,
|
|
941
966
|
onClear: c,
|
|
942
967
|
value: u,
|
|
943
968
|
defaultValue: h,
|
|
944
969
|
error: g = !1,
|
|
945
|
-
helperText:
|
|
970
|
+
helperText: p,
|
|
946
971
|
id: N,
|
|
947
972
|
"aria-describedby": k,
|
|
948
973
|
disabled: S,
|
|
949
974
|
readOnly: w,
|
|
950
975
|
...I
|
|
951
976
|
}, y) => {
|
|
952
|
-
const B = de(), J = N ?? B, F = !!
|
|
977
|
+
const B = de(), J = N ?? B, F = !!p, _ = !!(c && (u !== void 0 ? String(u).length > 0 : h !== void 0 && String(h).length > 0)), Q = F ? `${J}-description` : void 0, ue = [k, Q].filter(Boolean).join(" ") || void 0, Y = /* @__PURE__ */ e(
|
|
953
978
|
"input",
|
|
954
979
|
{
|
|
955
980
|
ref: y,
|
|
@@ -959,11 +984,11 @@ const ya = {
|
|
|
959
984
|
readOnly: w,
|
|
960
985
|
"aria-invalid": g || void 0,
|
|
961
986
|
"aria-describedby": ue,
|
|
962
|
-
style:
|
|
963
|
-
paddingInlineStart:
|
|
964
|
-
paddingInlineEnd: d ||
|
|
987
|
+
style: o || d || _ ? {
|
|
988
|
+
paddingInlineStart: o ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
989
|
+
paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
965
990
|
} : void 0,
|
|
966
|
-
className:
|
|
991
|
+
className: i(
|
|
967
992
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
968
993
|
ya[l],
|
|
969
994
|
wa[l],
|
|
@@ -982,41 +1007,41 @@ const ya = {
|
|
|
982
1007
|
...I
|
|
983
1008
|
}
|
|
984
1009
|
);
|
|
985
|
-
return !
|
|
1010
|
+
return !o && !d && !_ && !F ? Y : /* @__PURE__ */ s("div", { className: i("w-full", a), children: [
|
|
986
1011
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
987
|
-
|
|
1012
|
+
o ? /* @__PURE__ */ e(
|
|
988
1013
|
"span",
|
|
989
1014
|
{
|
|
990
|
-
className:
|
|
1015
|
+
className: i(
|
|
991
1016
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
992
1017
|
Ca[l]
|
|
993
1018
|
),
|
|
994
1019
|
"aria-hidden": !0,
|
|
995
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1020
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: o })
|
|
996
1021
|
}
|
|
997
1022
|
) : null,
|
|
998
1023
|
Y,
|
|
999
|
-
|
|
1024
|
+
_ ? /* @__PURE__ */ e(
|
|
1000
1025
|
"button",
|
|
1001
1026
|
{
|
|
1002
1027
|
type: "button",
|
|
1003
1028
|
"aria-label": "Clear search",
|
|
1004
1029
|
onClick: c,
|
|
1005
|
-
className:
|
|
1030
|
+
className: i(
|
|
1006
1031
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1007
|
-
|
|
1032
|
+
Ae[l]
|
|
1008
1033
|
),
|
|
1009
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1034
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: /* @__PURE__ */ e(le, {}) })
|
|
1010
1035
|
}
|
|
1011
1036
|
) : d ? /* @__PURE__ */ e(
|
|
1012
1037
|
"span",
|
|
1013
1038
|
{
|
|
1014
|
-
className:
|
|
1039
|
+
className: i(
|
|
1015
1040
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1016
|
-
|
|
1041
|
+
Ae[l]
|
|
1017
1042
|
),
|
|
1018
1043
|
"aria-hidden": !0,
|
|
1019
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1044
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: d })
|
|
1020
1045
|
}
|
|
1021
1046
|
) : null
|
|
1022
1047
|
] }),
|
|
@@ -1024,15 +1049,15 @@ const ya = {
|
|
|
1024
1049
|
"p",
|
|
1025
1050
|
{
|
|
1026
1051
|
id: Q,
|
|
1027
|
-
className:
|
|
1028
|
-
children:
|
|
1052
|
+
className: i("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
|
|
1053
|
+
children: p
|
|
1029
1054
|
}
|
|
1030
1055
|
) : null
|
|
1031
1056
|
] });
|
|
1032
1057
|
}
|
|
1033
1058
|
);
|
|
1034
1059
|
tt.displayName = "Input";
|
|
1035
|
-
function
|
|
1060
|
+
function Se(t, a) {
|
|
1036
1061
|
let r = 0;
|
|
1037
1062
|
return $e.forEach(t, (l) => {
|
|
1038
1063
|
if (!qe(l)) return;
|
|
@@ -1040,8 +1065,8 @@ function ze(t, a) {
|
|
|
1040
1065
|
r += 1;
|
|
1041
1066
|
return;
|
|
1042
1067
|
}
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1068
|
+
const o = l.props.children;
|
|
1069
|
+
o && (r += Se(o, a));
|
|
1045
1070
|
}), r;
|
|
1046
1071
|
}
|
|
1047
1072
|
const at = se(!1);
|
|
@@ -1049,14 +1074,14 @@ function ge({
|
|
|
1049
1074
|
children: t,
|
|
1050
1075
|
...a
|
|
1051
1076
|
}) {
|
|
1052
|
-
const r =
|
|
1077
|
+
const r = Se(t, [
|
|
1053
1078
|
oe,
|
|
1054
1079
|
U,
|
|
1055
1080
|
rt
|
|
1056
1081
|
]) === 0;
|
|
1057
1082
|
return /* @__PURE__ */ e(at.Provider, { value: r, children: /* @__PURE__ */ e(C.Root, { ...a, children: t }) });
|
|
1058
1083
|
}
|
|
1059
|
-
const ae =
|
|
1084
|
+
const ae = b(({ disabled: t, ...a }, r) => {
|
|
1060
1085
|
const l = ie(at);
|
|
1061
1086
|
return /* @__PURE__ */ e(
|
|
1062
1087
|
C.Trigger,
|
|
@@ -1068,12 +1093,12 @@ const ae = p(({ disabled: t, ...a }, r) => {
|
|
|
1068
1093
|
);
|
|
1069
1094
|
});
|
|
1070
1095
|
ae.displayName = "DropdownMenuTrigger";
|
|
1071
|
-
const Qa = C.Group, Ya = C.Portal, re =
|
|
1096
|
+
const Qa = C.Group, Ya = C.Portal, re = b(({ className: t, sideOffset: a = 8, ...r }, l) => /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ e(
|
|
1072
1097
|
C.Content,
|
|
1073
1098
|
{
|
|
1074
1099
|
ref: l,
|
|
1075
1100
|
sideOffset: a,
|
|
1076
|
-
className:
|
|
1101
|
+
className: i(
|
|
1077
1102
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1078
1103
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1079
1104
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1087,11 +1112,11 @@ const Qa = C.Group, Ya = C.Portal, re = p(({ className: t, sideOffset: a = 8, ..
|
|
|
1087
1112
|
}
|
|
1088
1113
|
) }));
|
|
1089
1114
|
re.displayName = "DropdownMenuContent";
|
|
1090
|
-
const oe =
|
|
1115
|
+
const oe = b(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
1091
1116
|
C.Item,
|
|
1092
1117
|
{
|
|
1093
1118
|
ref: l,
|
|
1094
|
-
className:
|
|
1119
|
+
className: i(
|
|
1095
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",
|
|
1096
1121
|
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1097
1122
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1102,11 +1127,11 @@ const oe = p(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
|
1102
1127
|
}
|
|
1103
1128
|
));
|
|
1104
1129
|
oe.displayName = "DropdownMenuItem";
|
|
1105
|
-
const U =
|
|
1130
|
+
const U = b(({ className: t, children: a, checked: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1106
1131
|
C.CheckboxItem,
|
|
1107
1132
|
{
|
|
1108
|
-
ref:
|
|
1109
|
-
className:
|
|
1133
|
+
ref: o,
|
|
1134
|
+
className: i(
|
|
1110
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)",
|
|
1111
1136
|
t
|
|
1112
1137
|
),
|
|
@@ -1119,20 +1144,20 @@ const U = p(({ className: t, children: a, checked: r, ...l }, i) => /* @__PURE__
|
|
|
1119
1144
|
}
|
|
1120
1145
|
));
|
|
1121
1146
|
U.displayName = "DropdownMenuCheckboxItem";
|
|
1122
|
-
const ne =
|
|
1147
|
+
const ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1123
1148
|
C.Label,
|
|
1124
1149
|
{
|
|
1125
1150
|
ref: r,
|
|
1126
|
-
className:
|
|
1151
|
+
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1127
1152
|
...a
|
|
1128
1153
|
}
|
|
1129
1154
|
));
|
|
1130
1155
|
ne.displayName = "DropdownMenuLabel";
|
|
1131
|
-
const Za = C.Sub, rt =
|
|
1156
|
+
const Za = C.Sub, rt = b(({ className: t, inset: a, children: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1132
1157
|
C.SubTrigger,
|
|
1133
1158
|
{
|
|
1134
|
-
ref:
|
|
1135
|
-
className:
|
|
1159
|
+
ref: o,
|
|
1160
|
+
className: i(
|
|
1136
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",
|
|
1137
1162
|
"focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
|
|
1138
1163
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1147,12 +1172,12 @@ const Za = C.Sub, rt = p(({ className: t, inset: a, children: r, ...l }, i) => /
|
|
|
1147
1172
|
}
|
|
1148
1173
|
));
|
|
1149
1174
|
rt.displayName = "DropdownMenuSubTrigger";
|
|
1150
|
-
const Sa =
|
|
1175
|
+
const Sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1151
1176
|
C.SubContent,
|
|
1152
1177
|
{
|
|
1153
1178
|
ref: r,
|
|
1154
1179
|
sideOffset: 8,
|
|
1155
|
-
className:
|
|
1180
|
+
className: i(
|
|
1156
1181
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1157
1182
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1158
1183
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1166,11 +1191,11 @@ const Sa = p(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1166
1191
|
}
|
|
1167
1192
|
));
|
|
1168
1193
|
Sa.displayName = "DropdownMenuSubContent";
|
|
1169
|
-
const Ne =
|
|
1194
|
+
const Ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1170
1195
|
C.Separator,
|
|
1171
1196
|
{
|
|
1172
1197
|
ref: r,
|
|
1173
|
-
className:
|
|
1198
|
+
className: i("-mx-1 my-1 h-px bg-line", t),
|
|
1174
1199
|
...a
|
|
1175
1200
|
}
|
|
1176
1201
|
));
|
|
@@ -1181,14 +1206,14 @@ function ka({
|
|
|
1181
1206
|
disabled: a,
|
|
1182
1207
|
...r
|
|
1183
1208
|
}) {
|
|
1184
|
-
const l =
|
|
1209
|
+
const l = Se(t, [ze]) === 0;
|
|
1185
1210
|
return /* @__PURE__ */ e(D.Root, { disabled: a || l, ...r, children: t });
|
|
1186
1211
|
}
|
|
1187
|
-
const nt =
|
|
1212
|
+
const nt = b(({ className: t, children: a, variant: r = "field", ...l }, o) => /* @__PURE__ */ s(
|
|
1188
1213
|
D.Trigger,
|
|
1189
1214
|
{
|
|
1190
|
-
ref:
|
|
1191
|
-
className:
|
|
1215
|
+
ref: o,
|
|
1216
|
+
className: i(
|
|
1192
1217
|
"flex items-center justify-between gap-2 text-sm text-fg",
|
|
1193
1218
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1194
1219
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
@@ -1205,14 +1230,14 @@ const nt = p(({ className: t, children: a, variant: r = "field", ...l }, i) => /
|
|
|
1205
1230
|
}
|
|
1206
1231
|
));
|
|
1207
1232
|
nt.displayName = "SelectTrigger";
|
|
1208
|
-
const lt =
|
|
1209
|
-
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...
|
|
1233
|
+
const lt = b(
|
|
1234
|
+
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...o }, d) => /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ e(
|
|
1210
1235
|
D.Content,
|
|
1211
1236
|
{
|
|
1212
1237
|
ref: d,
|
|
1213
1238
|
position: r,
|
|
1214
1239
|
sideOffset: l,
|
|
1215
|
-
className:
|
|
1240
|
+
className: i(
|
|
1216
1241
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1217
1242
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1218
1243
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1222,17 +1247,17 @@ const lt = p(
|
|
|
1222
1247
|
"duration-150 ease-out",
|
|
1223
1248
|
t
|
|
1224
1249
|
),
|
|
1225
|
-
...
|
|
1250
|
+
...o,
|
|
1226
1251
|
children: /* @__PURE__ */ e(D.Viewport, { className: "p-0", children: a })
|
|
1227
1252
|
}
|
|
1228
1253
|
) })
|
|
1229
1254
|
);
|
|
1230
1255
|
lt.displayName = "SelectContent";
|
|
1231
|
-
const
|
|
1256
|
+
const ze = b(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
1232
1257
|
D.Item,
|
|
1233
1258
|
{
|
|
1234
1259
|
ref: l,
|
|
1235
|
-
className:
|
|
1260
|
+
className: i(
|
|
1236
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",
|
|
1237
1262
|
t
|
|
1238
1263
|
),
|
|
@@ -1243,12 +1268,12 @@ const ke = p(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
|
1243
1268
|
]
|
|
1244
1269
|
}
|
|
1245
1270
|
));
|
|
1246
|
-
|
|
1247
|
-
const Da =
|
|
1271
|
+
ze.displayName = "SelectItem";
|
|
1272
|
+
const Da = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1248
1273
|
D.Label,
|
|
1249
1274
|
{
|
|
1250
1275
|
ref: r,
|
|
1251
|
-
className:
|
|
1276
|
+
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1252
1277
|
...a
|
|
1253
1278
|
}
|
|
1254
1279
|
));
|
|
@@ -1258,14 +1283,14 @@ function Ta({
|
|
|
1258
1283
|
title: a,
|
|
1259
1284
|
description: r,
|
|
1260
1285
|
action: l,
|
|
1261
|
-
className:
|
|
1286
|
+
className: o
|
|
1262
1287
|
}) {
|
|
1263
1288
|
return /* @__PURE__ */ s(
|
|
1264
1289
|
"div",
|
|
1265
1290
|
{
|
|
1266
|
-
className:
|
|
1291
|
+
className: i(
|
|
1267
1292
|
"flex min-h-[22rem] flex-col items-center justify-center gap-5 px-6 py-16 text-center",
|
|
1268
|
-
|
|
1293
|
+
o
|
|
1269
1294
|
),
|
|
1270
1295
|
children: [
|
|
1271
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,
|
|
@@ -1306,13 +1331,13 @@ function er({
|
|
|
1306
1331
|
columns: a,
|
|
1307
1332
|
getRowId: r,
|
|
1308
1333
|
loading: l = !1,
|
|
1309
|
-
error:
|
|
1334
|
+
error: o,
|
|
1310
1335
|
empty: d,
|
|
1311
1336
|
search: c,
|
|
1312
1337
|
filters: u,
|
|
1313
1338
|
toolbarStart: h,
|
|
1314
1339
|
toolbarEnd: g,
|
|
1315
|
-
tabs:
|
|
1340
|
+
tabs: p,
|
|
1316
1341
|
activeTab: N,
|
|
1317
1342
|
onTabChange: k,
|
|
1318
1343
|
infoBanner: S,
|
|
@@ -1322,27 +1347,27 @@ function er({
|
|
|
1322
1347
|
onRowClick: B,
|
|
1323
1348
|
defaultSort: J,
|
|
1324
1349
|
pageSize: F = 25,
|
|
1325
|
-
pageSizeOptions:
|
|
1350
|
+
pageSizeOptions: _ = [10, 25, 50, 100],
|
|
1326
1351
|
tone: Q,
|
|
1327
1352
|
headerAction: ue,
|
|
1328
1353
|
headerClassName: Y,
|
|
1329
1354
|
panelClassName: it,
|
|
1330
1355
|
className: ot
|
|
1331
1356
|
}) {
|
|
1332
|
-
const [
|
|
1357
|
+
const [ke, De] = T(
|
|
1333
1358
|
() => Object.fromEntries(
|
|
1334
1359
|
a.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
|
|
1335
1360
|
)
|
|
1336
1361
|
), [x, st] = T(
|
|
1337
1362
|
J ?? null
|
|
1338
|
-
), [$, Z] = T(0), [L, dt] = T(F), [R, me] = T(/* @__PURE__ */ new Set()), [ct,
|
|
1363
|
+
), [$, Z] = T(0), [L, dt] = T(F), [R, me] = T(/* @__PURE__ */ new Set()), [ct, pe] = T([]), j = a.filter((n) => !ke[n.id]), Te = a.filter((n) => ke[n.id] && !n.required), be = (u ?? []).filter((n) => ct.includes(n.id)), ut = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), O = je(() => {
|
|
1339
1364
|
let n = t;
|
|
1340
1365
|
for (const f of u ?? [])
|
|
1341
1366
|
f.value.length > 0 && (n = n.filter((v) => f.match(v, f.value)));
|
|
1342
1367
|
if (!c || !c.value.trim()) return n;
|
|
1343
1368
|
const m = c.value.trim().toLowerCase();
|
|
1344
1369
|
return n.filter((f) => c.keys(f).toLowerCase().includes(m));
|
|
1345
|
-
}, [t, c, u]), q =
|
|
1370
|
+
}, [t, c, u]), q = je(() => {
|
|
1346
1371
|
if (!x) return O;
|
|
1347
1372
|
const n = a.find((f) => f.id === x.id);
|
|
1348
1373
|
if (!(n != null && n.sortValue)) return O;
|
|
@@ -1357,27 +1382,27 @@ function er({
|
|
|
1357
1382
|
}, [c == null ? void 0 : c.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, N, ut]), V(() => {
|
|
1358
1383
|
$ > G - 1 && Z(G - 1);
|
|
1359
1384
|
}, [$, G]);
|
|
1360
|
-
const K = $ * L,
|
|
1385
|
+
const K = $ * L, E = q.slice(K, K + L), mt = (n) => {
|
|
1361
1386
|
n.sortable && st(
|
|
1362
1387
|
(m) => (m == null ? void 0 : m.id) === n.id ? m.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
|
|
1363
1388
|
);
|
|
1364
|
-
},
|
|
1389
|
+
}, Me = E.length > 0 && E.every((n) => R.has(r(n))), pt = E.some((n) => R.has(r(n))), bt = t.filter((n) => R.has(r(n))), ft = () => {
|
|
1365
1390
|
me((n) => {
|
|
1366
1391
|
const m = new Set(n);
|
|
1367
|
-
return
|
|
1392
|
+
return Me ? E.forEach((f) => m.delete(r(f))) : E.forEach((f) => m.add(r(f))), m;
|
|
1368
1393
|
});
|
|
1369
1394
|
}, ht = (n) => {
|
|
1370
1395
|
me((m) => {
|
|
1371
1396
|
const f = new Set(m);
|
|
1372
1397
|
return f.has(n) ? f.delete(n) : f.add(n), f;
|
|
1373
1398
|
});
|
|
1374
|
-
}, gt = !!(c || u != null && u.length || h || g), xt =
|
|
1399
|
+
}, gt = !!(c || u != null && u.length || h || g), xt = j.some((n) => n.width), vt = j.length > 1 ? 70 / (j.length - 1) : 100, Nt = j.map((n, m) => n.width ? n.width : xt ? "auto" : `${m === 0 ? 30 : vt}%`), Pe = [
|
|
1375
1400
|
...w ? ["2.75rem"] : [],
|
|
1376
1401
|
...Nt,
|
|
1377
1402
|
...y ? ["11rem"] : []
|
|
1378
1403
|
], yt = (n) => (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? "ascending" : "descending" : void 0;
|
|
1379
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1380
|
-
|
|
1404
|
+
return /* @__PURE__ */ s("div", { className: i("space-y-4", ot), children: [
|
|
1405
|
+
p && p.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: p.map((n) => {
|
|
1381
1406
|
const m = n.id === N;
|
|
1382
1407
|
return /* @__PURE__ */ e(
|
|
1383
1408
|
"button",
|
|
@@ -1386,7 +1411,7 @@ function er({
|
|
|
1386
1411
|
role: "tab",
|
|
1387
1412
|
"aria-selected": m,
|
|
1388
1413
|
onClick: () => k == null ? void 0 : k(n.id),
|
|
1389
|
-
className:
|
|
1414
|
+
className: i(
|
|
1390
1415
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1391
1416
|
m ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1392
1417
|
),
|
|
@@ -1417,36 +1442,36 @@ function er({
|
|
|
1417
1442
|
{
|
|
1418
1443
|
variant: "secondary",
|
|
1419
1444
|
size: "md",
|
|
1420
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1445
|
+
leadingIcon: /* @__PURE__ */ e(jt, {}),
|
|
1421
1446
|
trailingIcon: /* @__PURE__ */ e(ee, {}),
|
|
1422
1447
|
children: "Columns"
|
|
1423
1448
|
}
|
|
1424
1449
|
) }),
|
|
1425
1450
|
/* @__PURE__ */ s(re, { align: "end", className: "w-54", children: [
|
|
1426
1451
|
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Active columns" }),
|
|
1427
|
-
|
|
1452
|
+
j.map((n) => /* @__PURE__ */ s(
|
|
1428
1453
|
U,
|
|
1429
1454
|
{
|
|
1430
1455
|
checked: !0,
|
|
1431
1456
|
disabled: n.required,
|
|
1432
|
-
onCheckedChange: () =>
|
|
1457
|
+
onCheckedChange: () => De((m) => ({ ...m, [n.id]: !0 })),
|
|
1433
1458
|
onSelect: (m) => m.preventDefault(),
|
|
1434
1459
|
className: "justify-between",
|
|
1435
1460
|
children: [
|
|
1436
1461
|
/* @__PURE__ */ e("span", { children: n.header }),
|
|
1437
|
-
n.required ? /* @__PURE__ */ e(
|
|
1462
|
+
n.required ? /* @__PURE__ */ e(Et, { className: "size-3.5 text-subtle", "aria-hidden": !0 }) : null
|
|
1438
1463
|
]
|
|
1439
1464
|
},
|
|
1440
1465
|
n.id
|
|
1441
1466
|
)),
|
|
1442
|
-
|
|
1467
|
+
Te.length > 0 ? /* @__PURE__ */ s(Be, { children: [
|
|
1443
1468
|
/* @__PURE__ */ e(Ne, {}),
|
|
1444
1469
|
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Available columns" }),
|
|
1445
|
-
|
|
1470
|
+
Te.map((n) => /* @__PURE__ */ e(
|
|
1446
1471
|
U,
|
|
1447
1472
|
{
|
|
1448
1473
|
checked: !1,
|
|
1449
|
-
onCheckedChange: () =>
|
|
1474
|
+
onCheckedChange: () => De((m) => ({ ...m, [n.id]: !1 })),
|
|
1450
1475
|
onSelect: (m) => m.preventDefault(),
|
|
1451
1476
|
children: n.header
|
|
1452
1477
|
},
|
|
@@ -1463,13 +1488,13 @@ function er({
|
|
|
1463
1488
|
size: "md",
|
|
1464
1489
|
iconOnly: !0,
|
|
1465
1490
|
"aria-label": "Add filter",
|
|
1466
|
-
children: /* @__PURE__ */ e(
|
|
1491
|
+
children: /* @__PURE__ */ e(Ie, {})
|
|
1467
1492
|
}
|
|
1468
1493
|
) }),
|
|
1469
1494
|
/* @__PURE__ */ e(re, { align: "start", className: "w-54", children: u.map((n) => /* @__PURE__ */ e(
|
|
1470
1495
|
oe,
|
|
1471
1496
|
{
|
|
1472
|
-
onSelect: () =>
|
|
1497
|
+
onSelect: () => pe(
|
|
1473
1498
|
(m) => m.includes(n.id) ? m : [...m, n.id]
|
|
1474
1499
|
),
|
|
1475
1500
|
children: n.label
|
|
@@ -1479,10 +1504,10 @@ function er({
|
|
|
1479
1504
|
] }) : null,
|
|
1480
1505
|
g ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: g }) : null
|
|
1481
1506
|
] }),
|
|
1482
|
-
|
|
1483
|
-
|
|
1507
|
+
be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1508
|
+
be.map((n) => {
|
|
1484
1509
|
const m = () => {
|
|
1485
|
-
n.onChange([]),
|
|
1510
|
+
n.onChange([]), pe((f) => f.filter((v) => v !== n.id));
|
|
1486
1511
|
};
|
|
1487
1512
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1488
1513
|
/* @__PURE__ */ e(
|
|
@@ -1499,7 +1524,7 @@ function er({
|
|
|
1499
1524
|
),
|
|
1500
1525
|
/* @__PURE__ */ s(ge, { children: [
|
|
1501
1526
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ s(z, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1502
|
-
/* @__PURE__ */ e(
|
|
1527
|
+
/* @__PURE__ */ e(Ie, {}),
|
|
1503
1528
|
/* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
|
|
1504
1529
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1505
1530
|
/* @__PURE__ */ e("span", { className: "text-muted", children: n.value.length > 0 ? `${n.value.length} selected` : "Enter value" }),
|
|
@@ -1536,8 +1561,8 @@ function er({
|
|
|
1536
1561
|
{
|
|
1537
1562
|
type: "button",
|
|
1538
1563
|
onClick: () => {
|
|
1539
|
-
for (const n of
|
|
1540
|
-
|
|
1564
|
+
for (const n of be) n.onChange([]);
|
|
1565
|
+
pe([]);
|
|
1541
1566
|
},
|
|
1542
1567
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1543
1568
|
children: "Clear filters"
|
|
@@ -1556,7 +1581,7 @@ function er({
|
|
|
1556
1581
|
size: "md",
|
|
1557
1582
|
variant: n.variant ?? "outline",
|
|
1558
1583
|
disabled: n.disabled,
|
|
1559
|
-
onClick: () => void n.onRun(
|
|
1584
|
+
onClick: () => void n.onRun(bt),
|
|
1560
1585
|
children: [
|
|
1561
1586
|
n.icon,
|
|
1562
1587
|
n.label
|
|
@@ -1588,20 +1613,20 @@ function er({
|
|
|
1588
1613
|
// Visible header: presentational so its controls stay focusable while
|
|
1589
1614
|
// the body table carries the semantic column headers (sr-only).
|
|
1590
1615
|
/* @__PURE__ */ s("table", { role: "presentation", className: "w-full table-fixed border-collapse", children: [
|
|
1591
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1616
|
+
/* @__PURE__ */ e("colgroup", { children: Pe.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
|
|
1592
1617
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1593
1618
|
w && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ e(
|
|
1594
1619
|
xe,
|
|
1595
1620
|
{
|
|
1596
1621
|
"aria-label": "Select all rows",
|
|
1597
|
-
checked:
|
|
1622
|
+
checked: Me ? !0 : pt ? "indeterminate" : !1,
|
|
1598
1623
|
onCheckedChange: ft
|
|
1599
1624
|
}
|
|
1600
1625
|
) }),
|
|
1601
|
-
|
|
1626
|
+
j.map((n) => /* @__PURE__ */ e(
|
|
1602
1627
|
"th",
|
|
1603
1628
|
{
|
|
1604
|
-
className:
|
|
1629
|
+
className: i(Ma, n.align === "right" && "text-right", n.className),
|
|
1605
1630
|
children: n.sortable ? /* @__PURE__ */ s(
|
|
1606
1631
|
z,
|
|
1607
1632
|
{
|
|
@@ -1610,7 +1635,7 @@ function er({
|
|
|
1610
1635
|
size: "xs",
|
|
1611
1636
|
"aria-label": `Sort by ${n.header}`,
|
|
1612
1637
|
onClick: () => mt(n),
|
|
1613
|
-
className:
|
|
1638
|
+
className: i(
|
|
1614
1639
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1615
1640
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1616
1641
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
@@ -1629,14 +1654,14 @@ function er({
|
|
|
1629
1654
|
] }) })
|
|
1630
1655
|
] })
|
|
1631
1656
|
),
|
|
1632
|
-
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)) }) :
|
|
1633
|
-
/* @__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(
|
|
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: [
|
|
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" }) }),
|
|
1634
1659
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1635
|
-
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children:
|
|
1636
|
-
|
|
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
|
|
1637
1662
|
] }),
|
|
1638
|
-
|
|
1639
|
-
] }) :
|
|
1663
|
+
o.action
|
|
1664
|
+
] }) : E.length === 0 ? /* @__PURE__ */ e(
|
|
1640
1665
|
Ta,
|
|
1641
1666
|
{
|
|
1642
1667
|
icon: d == null ? void 0 : d.icon,
|
|
@@ -1645,13 +1670,13 @@ function er({
|
|
|
1645
1670
|
action: d == null ? void 0 : d.action
|
|
1646
1671
|
}
|
|
1647
1672
|
) : /* @__PURE__ */ s("table", { className: "w-full table-fixed border-collapse", children: [
|
|
1648
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1673
|
+
/* @__PURE__ */ e("colgroup", { children: Pe.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
|
|
1649
1674
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1650
1675
|
w && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1651
|
-
|
|
1676
|
+
j.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": yt(n), children: n.header }, n.id)),
|
|
1652
1677
|
y && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1653
1678
|
] }) }),
|
|
1654
|
-
/* @__PURE__ */ e(Ot, { children:
|
|
1679
|
+
/* @__PURE__ */ e(Ot, { children: E.map((n) => {
|
|
1655
1680
|
const m = r(n), f = R.has(m);
|
|
1656
1681
|
return /* @__PURE__ */ s(
|
|
1657
1682
|
Kt,
|
|
@@ -1668,11 +1693,11 @@ function er({
|
|
|
1668
1693
|
onCheckedChange: () => ht(m)
|
|
1669
1694
|
}
|
|
1670
1695
|
) }),
|
|
1671
|
-
|
|
1696
|
+
j.map((v) => /* @__PURE__ */ e(
|
|
1672
1697
|
fe,
|
|
1673
1698
|
{
|
|
1674
1699
|
"data-numeric": v.numeric ? "" : void 0,
|
|
1675
|
-
className:
|
|
1700
|
+
className: i(v.align === "right" && "text-right", v.className),
|
|
1676
1701
|
children: v.cell(n)
|
|
1677
1702
|
},
|
|
1678
1703
|
v.id
|
|
@@ -1686,7 +1711,7 @@ function er({
|
|
|
1686
1711
|
] })
|
|
1687
1712
|
}
|
|
1688
1713
|
),
|
|
1689
|
-
!l && !
|
|
1714
|
+
!l && !o && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1690
1715
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1691
1716
|
K + 1,
|
|
1692
1717
|
"–",
|
|
@@ -1697,7 +1722,7 @@ function er({
|
|
|
1697
1722
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1698
1723
|
/* @__PURE__ */ s(ka, { value: String(L), onValueChange: (n) => dt(Number(n)), children: [
|
|
1699
1724
|
/* @__PURE__ */ e(nt, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e(za, {}) }),
|
|
1700
|
-
/* @__PURE__ */ e(lt, { children:
|
|
1725
|
+
/* @__PURE__ */ e(lt, { children: _.map((n) => /* @__PURE__ */ s(ze, { value: String(n), children: [
|
|
1701
1726
|
n,
|
|
1702
1727
|
" / page"
|
|
1703
1728
|
] }, n)) })
|
|
@@ -1726,8 +1751,8 @@ function er({
|
|
|
1726
1751
|
] })
|
|
1727
1752
|
] });
|
|
1728
1753
|
}
|
|
1729
|
-
function tr({ icon: t, title: a, description: r, action: l, className:
|
|
1730
|
-
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: [
|
|
1731
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,
|
|
1732
1757
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1733
1758
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
@@ -1740,7 +1765,7 @@ function ar({ className: t, ...a }) {
|
|
|
1740
1765
|
return /* @__PURE__ */ e(
|
|
1741
1766
|
"kbd",
|
|
1742
1767
|
{
|
|
1743
|
-
className:
|
|
1768
|
+
className: i(
|
|
1744
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",
|
|
1745
1770
|
t
|
|
1746
1771
|
),
|
|
@@ -1748,11 +1773,11 @@ function ar({ className: t, ...a }) {
|
|
|
1748
1773
|
}
|
|
1749
1774
|
);
|
|
1750
1775
|
}
|
|
1751
|
-
const Ia =
|
|
1776
|
+
const Ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1752
1777
|
qt.Root,
|
|
1753
1778
|
{
|
|
1754
1779
|
ref: r,
|
|
1755
|
-
className:
|
|
1780
|
+
className: i(
|
|
1756
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",
|
|
1757
1782
|
t
|
|
1758
1783
|
),
|
|
@@ -1765,7 +1790,7 @@ function rr({
|
|
|
1765
1790
|
onValueChange: a,
|
|
1766
1791
|
options: r,
|
|
1767
1792
|
size: l = "sm",
|
|
1768
|
-
className:
|
|
1793
|
+
className: o,
|
|
1769
1794
|
...d
|
|
1770
1795
|
}) {
|
|
1771
1796
|
const c = de();
|
|
@@ -1774,17 +1799,17 @@ function rr({
|
|
|
1774
1799
|
{
|
|
1775
1800
|
role: "radiogroup",
|
|
1776
1801
|
"aria-label": d["aria-label"],
|
|
1777
|
-
className:
|
|
1802
|
+
className: i(
|
|
1778
1803
|
"inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
|
|
1779
1804
|
l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
|
|
1780
|
-
|
|
1805
|
+
o
|
|
1781
1806
|
),
|
|
1782
1807
|
children: r.map((u) => {
|
|
1783
1808
|
const h = u.value === t;
|
|
1784
1809
|
return /* @__PURE__ */ s(
|
|
1785
1810
|
"label",
|
|
1786
1811
|
{
|
|
1787
|
-
className:
|
|
1812
|
+
className: i(
|
|
1788
1813
|
"inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
|
|
1789
1814
|
"has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
|
|
1790
1815
|
l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
|
|
@@ -1812,13 +1837,13 @@ function rr({
|
|
|
1812
1837
|
}
|
|
1813
1838
|
);
|
|
1814
1839
|
}
|
|
1815
|
-
const
|
|
1840
|
+
const ja = b(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l }, o) => /* @__PURE__ */ e(
|
|
1816
1841
|
Gt.Root,
|
|
1817
1842
|
{
|
|
1818
|
-
ref:
|
|
1843
|
+
ref: o,
|
|
1819
1844
|
decorative: r,
|
|
1820
1845
|
orientation: a,
|
|
1821
|
-
className:
|
|
1846
|
+
className: i(
|
|
1822
1847
|
"shrink-0 bg-line",
|
|
1823
1848
|
a === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
1824
1849
|
t
|
|
@@ -1826,22 +1851,22 @@ const Ea = p(({ className: t, orientation: a = "horizontal", decorative: r = !0,
|
|
|
1826
1851
|
...l
|
|
1827
1852
|
}
|
|
1828
1853
|
));
|
|
1829
|
-
|
|
1854
|
+
ja.displayName = "Separator";
|
|
1830
1855
|
function nr({ className: t, ...a }) {
|
|
1831
1856
|
return /* @__PURE__ */ e(
|
|
1832
1857
|
"div",
|
|
1833
1858
|
{
|
|
1834
|
-
className:
|
|
1859
|
+
className: i("animate-pulse rounded-md bg-elevated", t),
|
|
1835
1860
|
...a
|
|
1836
1861
|
}
|
|
1837
1862
|
);
|
|
1838
1863
|
}
|
|
1839
|
-
const lr = W.Provider, ir = W.Root, or = W.Trigger,
|
|
1864
|
+
const lr = W.Provider, ir = W.Root, or = W.Trigger, Ea = b(({ className: t, sideOffset: a = 6, ...r }, l) => /* @__PURE__ */ e(W.Portal, { children: /* @__PURE__ */ e(
|
|
1840
1865
|
W.Content,
|
|
1841
1866
|
{
|
|
1842
1867
|
ref: l,
|
|
1843
1868
|
sideOffset: a,
|
|
1844
|
-
className:
|
|
1869
|
+
className: i(
|
|
1845
1870
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
1846
1871
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
1847
1872
|
"data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1854,7 +1879,7 @@ const lr = W.Provider, ir = W.Root, or = W.Trigger, _a = p(({ className: t, side
|
|
|
1854
1879
|
...r
|
|
1855
1880
|
}
|
|
1856
1881
|
) }));
|
|
1857
|
-
|
|
1882
|
+
Ea.displayName = "TooltipContent";
|
|
1858
1883
|
export {
|
|
1859
1884
|
qa as AgentPrompt,
|
|
1860
1885
|
Ge as Avatar,
|
|
@@ -1874,7 +1899,7 @@ export {
|
|
|
1874
1899
|
Ja as CodeBlock,
|
|
1875
1900
|
er as DataTable,
|
|
1876
1901
|
Ka as DataTableIdentity,
|
|
1877
|
-
|
|
1902
|
+
pa as Dialog,
|
|
1878
1903
|
fa as DialogBody,
|
|
1879
1904
|
Ye as DialogCancel,
|
|
1880
1905
|
Wa as DialogClose,
|
|
@@ -1882,7 +1907,7 @@ export {
|
|
|
1882
1907
|
xa as DialogDescription,
|
|
1883
1908
|
ga as DialogFooter,
|
|
1884
1909
|
ha as DialogHeader,
|
|
1885
|
-
|
|
1910
|
+
ba as DialogPanel,
|
|
1886
1911
|
Ke as DialogTitle,
|
|
1887
1912
|
Qe as DialogTrigger,
|
|
1888
1913
|
ge as DropdownMenu,
|
|
@@ -1907,11 +1932,11 @@ export {
|
|
|
1907
1932
|
ka as Select,
|
|
1908
1933
|
lt as SelectContent,
|
|
1909
1934
|
Oa as SelectGroup,
|
|
1910
|
-
|
|
1935
|
+
ze as SelectItem,
|
|
1911
1936
|
Da as SelectLabel,
|
|
1912
1937
|
nt as SelectTrigger,
|
|
1913
1938
|
za as SelectValue,
|
|
1914
|
-
|
|
1939
|
+
ja as Separator,
|
|
1915
1940
|
nr as Skeleton,
|
|
1916
1941
|
Ht as Spinner,
|
|
1917
1942
|
Ha as Table,
|
|
@@ -1925,7 +1950,7 @@ export {
|
|
|
1925
1950
|
Kt as TableRow,
|
|
1926
1951
|
ce as TableSurface,
|
|
1927
1952
|
ir as Tooltip,
|
|
1928
|
-
|
|
1953
|
+
Ea as TooltipContent,
|
|
1929
1954
|
lr as TooltipProvider,
|
|
1930
1955
|
or as TooltipTrigger,
|
|
1931
1956
|
Wt as badgeVariants,
|