@jinaan/uikit 0.1.51 → 0.1.53
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/combobox.d.ts +50 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +997 -867
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/combobox.tsx +252 -0
- package/src/index.ts +1 -0
- package/styles.css +2 -0
package/dist/index.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import { CircleNotch as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { CircleNotch as va, Robot as Na, Terminal as ya, Check as ie, Copy as St, XCircle as wa, Warning as Ca, CheckCircle as za, Info as ka, Minus as Sa, X as ye, CaretDown as Y, MagnifyingGlass as Dt, CaretRight as Tt, Columns as Da, Lock as Ta, DotsSixVertical as Ma, FunnelSimple as vt, WarningCircle as Pa, CaretUp as Ia, CaretUpDown as Ra, CaretLeft as ja } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as h, useState as P, Children as Mt, isValidElement as Pt, useRef as B, useEffect as V, useContext as Z, useCallback as It, createContext as se, useId as Ce, useMemo as ge, useLayoutEffect as Ea, Fragment as _a } from "react";
|
|
4
|
+
import { Slot as La } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as Oe } from "class-variance-authority";
|
|
6
|
+
import { clsx as Aa } from "clsx";
|
|
7
|
+
import { twMerge as Ba } from "tailwind-merge";
|
|
8
|
+
import * as Ve from "@radix-ui/react-avatar";
|
|
9
|
+
import * as Nt from "@radix-ui/react-checkbox";
|
|
10
|
+
import * as $ from "@radix-ui/react-dialog";
|
|
11
|
+
import * as he from "@radix-ui/react-popover";
|
|
12
|
+
import * as j from "@radix-ui/react-dropdown-menu";
|
|
13
|
+
import * as _ from "@radix-ui/react-select";
|
|
14
|
+
import * as $a from "@radix-ui/react-label";
|
|
15
|
+
import * as Fa from "@radix-ui/react-separator";
|
|
16
|
+
import * as oe from "@radix-ui/react-tooltip";
|
|
17
|
+
function o(...t) {
|
|
18
|
+
return Ba(Aa(t));
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function qa(t, a, n) {
|
|
20
21
|
if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
|
|
21
22
|
return t;
|
|
22
|
-
const l = [...t], [
|
|
23
|
-
return l.splice(n, 0,
|
|
23
|
+
const l = [...t], [i] = l.splice(a, 1);
|
|
24
|
+
return l.splice(n, 0, i), l;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function Rt({ className: t }) {
|
|
26
27
|
return /* @__PURE__ */ e(
|
|
27
|
-
|
|
28
|
+
va,
|
|
28
29
|
{
|
|
29
|
-
className:
|
|
30
|
+
className: o("size-4 animate-spin text-muted", t),
|
|
30
31
|
weight: "bold",
|
|
31
32
|
"aria-hidden": !0
|
|
32
33
|
}
|
|
33
34
|
);
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
+
const Ha = Oe(
|
|
36
37
|
"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",
|
|
37
38
|
{
|
|
38
39
|
variants: {
|
|
@@ -65,49 +66,49 @@ const qa = _e(
|
|
|
65
66
|
lg: "[&_svg]:size-[var(--control-icon-lg)]",
|
|
66
67
|
xl: "[&_svg]:size-[var(--control-icon-xl)]",
|
|
67
68
|
icon: "[&_svg]:size-[var(--control-icon-md)]"
|
|
68
|
-
},
|
|
69
|
+
}, R = h(
|
|
69
70
|
({
|
|
70
71
|
className: t,
|
|
71
72
|
variant: a,
|
|
72
73
|
size: n = "md",
|
|
73
74
|
asChild: l = !1,
|
|
74
|
-
leadingIcon:
|
|
75
|
-
trailingIcon:
|
|
76
|
-
iconOnly:
|
|
77
|
-
loading:
|
|
75
|
+
leadingIcon: i,
|
|
76
|
+
trailingIcon: c,
|
|
77
|
+
iconOnly: m = !1,
|
|
78
|
+
loading: u = !1,
|
|
78
79
|
fullWidth: x = !1,
|
|
79
|
-
disabled:
|
|
80
|
-
children:
|
|
80
|
+
disabled: f,
|
|
81
|
+
children: g,
|
|
81
82
|
...N
|
|
82
|
-
},
|
|
83
|
-
const
|
|
83
|
+
}, z) => {
|
|
84
|
+
const y = l ? La : "button", D = Ga[n ?? "md"];
|
|
84
85
|
return /* @__PURE__ */ e(
|
|
85
|
-
|
|
86
|
+
y,
|
|
86
87
|
{
|
|
87
|
-
ref:
|
|
88
|
-
"aria-busy":
|
|
89
|
-
disabled: l ? void 0 :
|
|
90
|
-
className:
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
ref: z,
|
|
89
|
+
"aria-busy": u || void 0,
|
|
90
|
+
disabled: l ? void 0 : f || u,
|
|
91
|
+
className: o(
|
|
92
|
+
Ha({ variant: a, size: n }),
|
|
93
|
+
m && "aspect-square px-0",
|
|
93
94
|
x && "w-full",
|
|
94
|
-
|
|
95
|
+
u && "disabled:opacity-100",
|
|
95
96
|
t
|
|
96
97
|
),
|
|
97
98
|
...N,
|
|
98
|
-
children: l ?
|
|
99
|
+
children: l ? g : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
|
|
99
100
|
/* @__PURE__ */ s(
|
|
100
101
|
"span",
|
|
101
102
|
{
|
|
102
|
-
className:
|
|
103
|
+
className: o(
|
|
103
104
|
"inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap) transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
104
|
-
|
|
105
|
+
u && "translate-y-2 opacity-0"
|
|
105
106
|
),
|
|
106
|
-
"aria-hidden":
|
|
107
|
+
"aria-hidden": u || void 0,
|
|
107
108
|
children: [
|
|
108
|
-
!
|
|
109
|
-
|
|
110
|
-
!
|
|
109
|
+
!u && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", D), "aria-hidden": !0, children: i }) : null,
|
|
110
|
+
g,
|
|
111
|
+
!u && c ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", D), "aria-hidden": !0, children: c }) : null
|
|
111
112
|
]
|
|
112
113
|
}
|
|
113
114
|
),
|
|
@@ -115,12 +116,12 @@ const qa = _e(
|
|
|
115
116
|
"span",
|
|
116
117
|
{
|
|
117
118
|
"data-button-spinner": !0,
|
|
118
|
-
className:
|
|
119
|
+
className: o(
|
|
119
120
|
"pointer-events-none absolute inset-0 flex items-center justify-center transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
120
|
-
|
|
121
|
+
u ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
121
122
|
),
|
|
122
123
|
"aria-hidden": !0,
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
124
|
+
children: /* @__PURE__ */ e(Rt, { className: o("text-current", D) })
|
|
124
125
|
}
|
|
125
126
|
)
|
|
126
127
|
] })
|
|
@@ -128,76 +129,76 @@ const qa = _e(
|
|
|
128
129
|
);
|
|
129
130
|
}
|
|
130
131
|
);
|
|
131
|
-
|
|
132
|
-
function
|
|
132
|
+
R.displayName = "Button";
|
|
133
|
+
function Br({
|
|
133
134
|
command: t,
|
|
134
135
|
tag: a = "Build with agents",
|
|
135
136
|
icon: n,
|
|
136
137
|
className: l
|
|
137
138
|
}) {
|
|
138
|
-
const [
|
|
139
|
+
const [i, c] = P(!1), m = async () => {
|
|
139
140
|
try {
|
|
140
|
-
await navigator.clipboard.writeText(t),
|
|
141
|
+
await navigator.clipboard.writeText(t), c(!0), window.setTimeout(() => c(!1), 1500);
|
|
141
142
|
} catch {
|
|
142
143
|
}
|
|
143
144
|
};
|
|
144
|
-
return /* @__PURE__ */ s("div", { className:
|
|
145
|
+
return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
|
|
145
146
|
/* @__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: [
|
|
146
|
-
n ?? /* @__PURE__ */ e(
|
|
147
|
+
n ?? /* @__PURE__ */ e(Na, { className: "size-3.5", weight: "fill" }),
|
|
147
148
|
a
|
|
148
149
|
] }),
|
|
149
150
|
/* @__PURE__ */ s("div", { className: "mt-2 flex w-full items-center gap-2 rounded-xl border border-line bg-surface py-2 pl-3 pr-2 shadow-sm", children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
151
|
+
/* @__PURE__ */ e(ya, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
151
152
|
/* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
|
|
152
153
|
/* @__PURE__ */ e(
|
|
153
|
-
|
|
154
|
+
R,
|
|
154
155
|
{
|
|
155
156
|
variant: "ghost",
|
|
156
157
|
size: "sm",
|
|
157
158
|
iconOnly: !0,
|
|
158
159
|
"aria-label": "Copy prompt",
|
|
159
160
|
className: "ml-auto",
|
|
160
|
-
onClick:
|
|
161
|
-
children:
|
|
161
|
+
onClick: m,
|
|
162
|
+
children: i ? /* @__PURE__ */ e(ie, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(St, {})
|
|
162
163
|
}
|
|
163
164
|
)
|
|
164
165
|
] })
|
|
165
166
|
] });
|
|
166
167
|
}
|
|
167
|
-
const
|
|
168
|
-
|
|
168
|
+
const jt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
169
|
+
Ve.Root,
|
|
169
170
|
{
|
|
170
171
|
ref: n,
|
|
171
|
-
className:
|
|
172
|
+
className: o(
|
|
172
173
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
|
|
173
174
|
t
|
|
174
175
|
),
|
|
175
176
|
...a
|
|
176
177
|
}
|
|
177
178
|
));
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
|
|
179
|
+
jt.displayName = "Avatar";
|
|
180
|
+
const Et = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
181
|
+
Ve.Image,
|
|
181
182
|
{
|
|
182
183
|
ref: n,
|
|
183
|
-
className:
|
|
184
|
+
className: o("aspect-square size-full object-cover", t),
|
|
184
185
|
...a
|
|
185
186
|
}
|
|
186
187
|
));
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
|
|
188
|
+
Et.displayName = "AvatarImage";
|
|
189
|
+
const _t = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
190
|
+
Ve.Fallback,
|
|
190
191
|
{
|
|
191
192
|
ref: n,
|
|
192
|
-
className:
|
|
193
|
+
className: o(
|
|
193
194
|
"flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
|
|
194
195
|
t
|
|
195
196
|
),
|
|
196
197
|
...a
|
|
197
198
|
}
|
|
198
199
|
));
|
|
199
|
-
|
|
200
|
-
const
|
|
200
|
+
_t.displayName = "AvatarFallback";
|
|
201
|
+
const Oa = Oe(
|
|
201
202
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
202
203
|
{
|
|
203
204
|
variants: {
|
|
@@ -213,7 +214,7 @@ const Ha = _e(
|
|
|
213
214
|
},
|
|
214
215
|
defaultVariants: { variant: "neutral" }
|
|
215
216
|
}
|
|
216
|
-
), Va =
|
|
217
|
+
), Va = Oe("size-1.5 shrink-0 rounded-full", {
|
|
217
218
|
variants: {
|
|
218
219
|
variant: {
|
|
219
220
|
neutral: "bg-subtle",
|
|
@@ -227,54 +228,54 @@ const Ha = _e(
|
|
|
227
228
|
},
|
|
228
229
|
defaultVariants: { variant: "neutral" }
|
|
229
230
|
});
|
|
230
|
-
function Wa({ className: t, variant: a, dot: n = !1, children: l, ...
|
|
231
|
-
return /* @__PURE__ */ s("span", { className:
|
|
232
|
-
n ? /* @__PURE__ */ e("span", { className:
|
|
231
|
+
function Wa({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
|
|
232
|
+
return /* @__PURE__ */ s("span", { className: o(Oa({ variant: a }), t), ...i, children: [
|
|
233
|
+
n ? /* @__PURE__ */ e("span", { className: o(Va({ variant: a })), "aria-hidden": !0 }) : null,
|
|
233
234
|
l
|
|
234
235
|
] });
|
|
235
236
|
}
|
|
236
|
-
const
|
|
237
|
+
const Ua = {
|
|
237
238
|
info: {
|
|
238
|
-
Icon:
|
|
239
|
+
Icon: ka,
|
|
239
240
|
className: "border-info/30 bg-info/10",
|
|
240
241
|
iconClassName: "text-info"
|
|
241
242
|
},
|
|
242
243
|
success: {
|
|
243
|
-
Icon:
|
|
244
|
+
Icon: za,
|
|
244
245
|
className: "border-success/30 bg-success/10",
|
|
245
246
|
iconClassName: "text-success"
|
|
246
247
|
},
|
|
247
248
|
warning: {
|
|
248
|
-
Icon:
|
|
249
|
+
Icon: Ca,
|
|
249
250
|
className: "border-warning/30 bg-warning/10",
|
|
250
251
|
iconClassName: "text-warning"
|
|
251
252
|
},
|
|
252
253
|
error: {
|
|
253
|
-
Icon:
|
|
254
|
+
Icon: wa,
|
|
254
255
|
className: "border-error/30 bg-error/10",
|
|
255
256
|
iconClassName: "text-error"
|
|
256
257
|
}
|
|
257
258
|
};
|
|
258
|
-
function
|
|
259
|
+
function $r({
|
|
259
260
|
variant: t = "info",
|
|
260
261
|
title: a,
|
|
261
262
|
children: n,
|
|
262
263
|
icon: l,
|
|
263
|
-
className:
|
|
264
|
+
className: i
|
|
264
265
|
}) {
|
|
265
|
-
const { Icon:
|
|
266
|
+
const { Icon: c, className: m, iconClassName: u } = Ua[t];
|
|
266
267
|
return /* @__PURE__ */ s(
|
|
267
268
|
"div",
|
|
268
269
|
{
|
|
269
270
|
role: t === "error" ? "alert" : void 0,
|
|
270
|
-
className:
|
|
271
|
+
className: o(
|
|
271
272
|
"flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
|
|
272
273
|
"animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
m,
|
|
275
|
+
i
|
|
275
276
|
),
|
|
276
277
|
children: [
|
|
277
|
-
/* @__PURE__ */ e("span", { className:
|
|
278
|
+
/* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", u), children: l ?? /* @__PURE__ */ e(c, { weight: "fill" }) }),
|
|
278
279
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
279
280
|
a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
|
|
280
281
|
n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
|
|
@@ -283,14 +284,14 @@ function Br({
|
|
|
283
284
|
}
|
|
284
285
|
);
|
|
285
286
|
}
|
|
286
|
-
function
|
|
287
|
+
function Xa({
|
|
287
288
|
className: t,
|
|
288
289
|
...a
|
|
289
290
|
}) {
|
|
290
291
|
return /* @__PURE__ */ e(
|
|
291
292
|
"div",
|
|
292
293
|
{
|
|
293
|
-
className:
|
|
294
|
+
className: o(
|
|
294
295
|
"w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
|
|
295
296
|
t
|
|
296
297
|
),
|
|
@@ -298,14 +299,14 @@ function Ua({
|
|
|
298
299
|
}
|
|
299
300
|
);
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
+
function Ka({
|
|
302
303
|
className: t,
|
|
303
304
|
...a
|
|
304
305
|
}) {
|
|
305
306
|
return /* @__PURE__ */ e(
|
|
306
307
|
"div",
|
|
307
308
|
{
|
|
308
|
-
className:
|
|
309
|
+
className: o(
|
|
309
310
|
"overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
|
|
310
311
|
t
|
|
311
312
|
),
|
|
@@ -313,26 +314,26 @@ function Xa({
|
|
|
313
314
|
}
|
|
314
315
|
);
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
+
function Fr({ className: t, ...a }) {
|
|
317
318
|
return /* @__PURE__ */ e(
|
|
318
319
|
"table",
|
|
319
320
|
{
|
|
320
|
-
className:
|
|
321
|
+
className: o("w-full table-fixed border-collapse caption-bottom text-sm", t),
|
|
321
322
|
...a
|
|
322
323
|
}
|
|
323
324
|
);
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
+
function qr({ className: t, ...a }) {
|
|
326
327
|
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
327
328
|
}
|
|
328
329
|
function Ja({ className: t, ...a }) {
|
|
329
|
-
return /* @__PURE__ */ e("tbody", { className:
|
|
330
|
+
return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...a });
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
+
function yt({ className: t, ...a }) {
|
|
332
333
|
return /* @__PURE__ */ e(
|
|
333
334
|
"tr",
|
|
334
335
|
{
|
|
335
|
-
className:
|
|
336
|
+
className: o(
|
|
336
337
|
"border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
|
|
337
338
|
t
|
|
338
339
|
),
|
|
@@ -340,11 +341,11 @@ function mt({ className: t, ...a }) {
|
|
|
340
341
|
}
|
|
341
342
|
);
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
+
function Hr({ className: t, ...a }) {
|
|
344
345
|
return /* @__PURE__ */ e(
|
|
345
346
|
"th",
|
|
346
347
|
{
|
|
347
|
-
className:
|
|
348
|
+
className: o(
|
|
348
349
|
"h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
|
|
349
350
|
t
|
|
350
351
|
),
|
|
@@ -352,11 +353,11 @@ function qr({ className: t, ...a }) {
|
|
|
352
353
|
}
|
|
353
354
|
);
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function ne({ className: t, ...a }) {
|
|
356
357
|
return /* @__PURE__ */ e(
|
|
357
358
|
"td",
|
|
358
359
|
{
|
|
359
|
-
className:
|
|
360
|
+
className: o(
|
|
360
361
|
"whitespace-nowrap px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
|
|
361
362
|
t
|
|
362
363
|
),
|
|
@@ -364,49 +365,49 @@ function Q({ className: t, ...a }) {
|
|
|
364
365
|
}
|
|
365
366
|
);
|
|
366
367
|
}
|
|
367
|
-
const
|
|
368
|
+
const Qa = {
|
|
368
369
|
default: "bg-table-container",
|
|
369
370
|
muted: "bg-surface border border-line",
|
|
370
371
|
transparent: "bg-transparent"
|
|
371
|
-
},
|
|
372
|
+
}, Ya = {
|
|
372
373
|
default: "bg-table-panel border-table-panel-border",
|
|
373
374
|
muted: "bg-elevated border-line",
|
|
374
375
|
transparent: "bg-transparent border-line"
|
|
375
376
|
};
|
|
376
|
-
function
|
|
377
|
+
function Za(t) {
|
|
377
378
|
return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
+
function ze({
|
|
380
381
|
title: t,
|
|
381
382
|
description: a,
|
|
382
383
|
header: n,
|
|
383
384
|
children: l,
|
|
384
|
-
action:
|
|
385
|
-
tone:
|
|
386
|
-
className:
|
|
387
|
-
headerClassName:
|
|
385
|
+
action: i,
|
|
386
|
+
tone: c = "default",
|
|
387
|
+
className: m,
|
|
388
|
+
headerClassName: u,
|
|
388
389
|
panelClassName: x,
|
|
389
|
-
footer:
|
|
390
|
-
footerClassName:
|
|
390
|
+
footer: f,
|
|
391
|
+
footerClassName: g,
|
|
391
392
|
minHeight: N,
|
|
392
|
-
scrollMode:
|
|
393
|
-
headerContentRef:
|
|
393
|
+
scrollMode: z = "surface",
|
|
394
|
+
headerContentRef: y
|
|
394
395
|
}) {
|
|
395
|
-
const D = !!(t || a),
|
|
396
|
-
|
|
396
|
+
const D = !!(t || a), k = z === "panel", b = Za(i) ? /* @__PURE__ */ e(
|
|
397
|
+
R,
|
|
397
398
|
{
|
|
398
|
-
variant:
|
|
399
|
+
variant: i.variant ?? "primary",
|
|
399
400
|
size: "xs",
|
|
400
|
-
leadingIcon:
|
|
401
|
-
onClick:
|
|
402
|
-
disabled:
|
|
403
|
-
asChild: !!
|
|
404
|
-
children:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
] }) :
|
|
401
|
+
leadingIcon: i.href ? void 0 : i.icon,
|
|
402
|
+
onClick: i.onClick,
|
|
403
|
+
disabled: i.disabled,
|
|
404
|
+
asChild: !!i.href,
|
|
405
|
+
children: i.href ? /* @__PURE__ */ s("a", { href: i.href, children: [
|
|
406
|
+
i.icon,
|
|
407
|
+
i.label
|
|
408
|
+
] }) : i.label
|
|
408
409
|
}
|
|
409
|
-
) :
|
|
410
|
+
) : i, I = n || D ? (
|
|
410
411
|
// Header rows must not inherit the body row hover surface. Panel mode
|
|
411
412
|
// clips the band instead of scrolling it; the caller translates the
|
|
412
413
|
// inner wrapper so titles track the row content. px-px mirrors the
|
|
@@ -415,18 +416,18 @@ function xe({
|
|
|
415
416
|
/* @__PURE__ */ s(
|
|
416
417
|
"div",
|
|
417
418
|
{
|
|
418
|
-
className:
|
|
419
|
+
className: o(
|
|
419
420
|
"[--table-row-hover:transparent] text-table-header",
|
|
420
|
-
|
|
421
|
-
|
|
421
|
+
k && "overflow-hidden px-px",
|
|
422
|
+
u
|
|
422
423
|
),
|
|
423
424
|
children: [
|
|
424
425
|
D ? /* @__PURE__ */ s(
|
|
425
426
|
"div",
|
|
426
427
|
{
|
|
427
|
-
className:
|
|
428
|
+
className: o(
|
|
428
429
|
"px-(--table-pad-x) pb-3 pt-4",
|
|
429
|
-
|
|
430
|
+
b && "pr-28"
|
|
430
431
|
),
|
|
431
432
|
children: [
|
|
432
433
|
t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
|
|
@@ -434,81 +435,81 @@ function xe({
|
|
|
434
435
|
]
|
|
435
436
|
}
|
|
436
437
|
) : null,
|
|
437
|
-
|
|
438
|
+
k ? /* @__PURE__ */ e("div", { ref: y, children: n }) : n
|
|
438
439
|
]
|
|
439
440
|
}
|
|
440
441
|
)
|
|
441
|
-
) : null,
|
|
442
|
-
|
|
442
|
+
) : null, M = /* @__PURE__ */ e(
|
|
443
|
+
Ka,
|
|
443
444
|
{
|
|
444
|
-
className:
|
|
445
|
+
className: o(Ya[c], x),
|
|
445
446
|
style: N ? { minHeight: N } : void 0,
|
|
446
447
|
children: l
|
|
447
448
|
}
|
|
448
449
|
);
|
|
449
|
-
return /* @__PURE__ */ s(
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
return /* @__PURE__ */ s(Xa, { className: o("relative", Qa[c], m), children: [
|
|
451
|
+
k ? /* @__PURE__ */ s(Ge, { children: [
|
|
452
|
+
I,
|
|
453
|
+
M
|
|
453
454
|
] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
I,
|
|
456
|
+
M
|
|
456
457
|
] }),
|
|
457
|
-
|
|
458
|
+
f ? /* @__PURE__ */ e(
|
|
458
459
|
"div",
|
|
459
460
|
{
|
|
460
|
-
className:
|
|
461
|
+
className: o(
|
|
461
462
|
"border-t border-line px-(--table-pad-x) py-3 text-table-header",
|
|
462
|
-
|
|
463
|
+
g
|
|
463
464
|
),
|
|
464
|
-
children:
|
|
465
|
+
children: f
|
|
465
466
|
}
|
|
466
467
|
) : null,
|
|
467
|
-
|
|
468
|
+
b ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: b }) }) : null
|
|
468
469
|
] });
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
const a =
|
|
472
|
-
(l) =>
|
|
471
|
+
function er(t) {
|
|
472
|
+
const a = Mt.toArray(t), n = a.filter(
|
|
473
|
+
(l) => Pt(l) && l.type === Lt
|
|
473
474
|
);
|
|
474
475
|
return {
|
|
475
|
-
header: n.length > 0 ? /* @__PURE__ */ e(
|
|
476
|
+
header: n.length > 0 ? /* @__PURE__ */ e(Ge, { children: n }) : void 0,
|
|
476
477
|
body: a.filter((l) => !n.includes(l))
|
|
477
478
|
};
|
|
478
479
|
}
|
|
479
|
-
const
|
|
480
|
+
const tr = h(
|
|
480
481
|
({ className: t, children: a, ...n }, l) => {
|
|
481
|
-
const { header:
|
|
482
|
-
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(
|
|
482
|
+
const { header: i, body: c } = er(a);
|
|
483
|
+
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(ze, { className: o("shadow-xs", t), header: i, children: c }) });
|
|
483
484
|
}
|
|
484
485
|
);
|
|
485
|
-
|
|
486
|
-
const
|
|
486
|
+
tr.displayName = "Card";
|
|
487
|
+
const Lt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
487
488
|
"div",
|
|
488
489
|
{
|
|
489
490
|
ref: n,
|
|
490
|
-
className:
|
|
491
|
+
className: o(
|
|
491
492
|
"flex flex-col gap-1 px-5 py-4",
|
|
492
493
|
t
|
|
493
494
|
),
|
|
494
495
|
...a
|
|
495
496
|
}
|
|
496
497
|
));
|
|
497
|
-
|
|
498
|
-
const
|
|
498
|
+
Lt.displayName = "CardHeader";
|
|
499
|
+
const ar = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
499
500
|
"h2",
|
|
500
501
|
{
|
|
501
502
|
ref: n,
|
|
502
|
-
className:
|
|
503
|
+
className: o("text-sm font-semibold text-fg", t),
|
|
503
504
|
...a
|
|
504
505
|
}
|
|
505
506
|
));
|
|
506
|
-
|
|
507
|
-
const
|
|
507
|
+
ar.displayName = "CardTitle";
|
|
508
|
+
const rr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
508
509
|
"p",
|
|
509
510
|
{
|
|
510
511
|
ref: n,
|
|
511
|
-
className:
|
|
512
|
+
className: o(
|
|
512
513
|
"mt-1 border-t border-card-divider pt-2 text-sm text-muted",
|
|
513
514
|
"first:mt-0 first:border-t-0 first:pt-0",
|
|
514
515
|
t
|
|
@@ -516,26 +517,26 @@ const ar = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
516
517
|
...a
|
|
517
518
|
}
|
|
518
519
|
));
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
const
|
|
520
|
+
rr.displayName = "CardDescription";
|
|
521
|
+
const nr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
|
|
522
|
+
nr.displayName = "CardContent";
|
|
523
|
+
const lr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
523
524
|
"div",
|
|
524
525
|
{
|
|
525
526
|
ref: n,
|
|
526
|
-
className:
|
|
527
|
+
className: o(
|
|
527
528
|
"flex items-center gap-3 border-t border-line px-5 py-3",
|
|
528
529
|
t
|
|
529
530
|
),
|
|
530
531
|
...a
|
|
531
532
|
}
|
|
532
533
|
));
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
|
|
534
|
+
lr.displayName = "CardFooter";
|
|
535
|
+
const Fe = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
536
|
+
Nt.Root,
|
|
536
537
|
{
|
|
537
538
|
ref: n,
|
|
538
|
-
className:
|
|
539
|
+
className: o(
|
|
539
540
|
"peer size-4 shrink-0 rounded border border-line-strong bg-transparent transition-colors",
|
|
540
541
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/40",
|
|
541
542
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -544,27 +545,27 @@ const Pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
544
545
|
t
|
|
545
546
|
),
|
|
546
547
|
...a,
|
|
547
|
-
children: /* @__PURE__ */ e(
|
|
548
|
+
children: /* @__PURE__ */ e(Nt.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(Sa, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ie, { className: "size-3", weight: "bold" }) })
|
|
548
549
|
}
|
|
549
550
|
));
|
|
550
|
-
|
|
551
|
-
function
|
|
551
|
+
Fe.displayName = "Checkbox";
|
|
552
|
+
function wt(t) {
|
|
552
553
|
return t.width > 0 && t.height > 0;
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
+
function Ct(t) {
|
|
555
556
|
return Math.min(1, Math.max(0.1, t));
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
return !
|
|
558
|
+
function or(t, a) {
|
|
559
|
+
return !wt(t) || !wt(a) ? null : {
|
|
559
560
|
dx: t.left + t.width / 2 - (a.left + a.width / 2),
|
|
560
561
|
dy: t.top + t.height / 2 - (a.top + a.height / 2),
|
|
561
|
-
sx:
|
|
562
|
-
sy:
|
|
562
|
+
sx: Ct(t.width / a.width),
|
|
563
|
+
sy: Ct(t.height / a.height)
|
|
563
564
|
};
|
|
564
565
|
}
|
|
565
|
-
const
|
|
566
|
-
let
|
|
567
|
-
function
|
|
566
|
+
const At = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
567
|
+
let Q = null, zt = !1;
|
|
568
|
+
function We(t) {
|
|
568
569
|
const a = t.getBoundingClientRect();
|
|
569
570
|
return a.width <= 0 || a.height <= 0 ? null : {
|
|
570
571
|
left: a.left,
|
|
@@ -573,152 +574,152 @@ function Le(t) {
|
|
|
573
574
|
height: a.height
|
|
574
575
|
};
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
+
function qe(t) {
|
|
577
578
|
if (!(t instanceof Element)) return;
|
|
578
|
-
const a = t.closest(
|
|
579
|
+
const a = t.closest(At);
|
|
579
580
|
if (!a) return;
|
|
580
|
-
const n =
|
|
581
|
-
n && (
|
|
581
|
+
const n = We(a);
|
|
582
|
+
n && (Q = { rect: n, at: Date.now() });
|
|
582
583
|
}
|
|
583
584
|
function ir() {
|
|
584
|
-
|
|
585
|
+
zt || typeof document > "u" || (zt = !0, document.addEventListener(
|
|
585
586
|
"pointerdown",
|
|
586
|
-
(t) =>
|
|
587
|
+
(t) => qe(t.target),
|
|
587
588
|
!0
|
|
588
589
|
), document.addEventListener(
|
|
589
590
|
"keydown",
|
|
590
591
|
(t) => {
|
|
591
|
-
t.key !== "Enter" && t.key !== " " ||
|
|
592
|
+
t.key !== "Enter" && t.key !== " " || qe(document.activeElement);
|
|
592
593
|
},
|
|
593
594
|
!0
|
|
594
595
|
));
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
-
if (
|
|
598
|
-
const n =
|
|
599
|
-
return
|
|
597
|
+
function sr(t) {
|
|
598
|
+
if (Q && Date.now() - Q.at < 2e3) {
|
|
599
|
+
const n = Q.rect;
|
|
600
|
+
return Q = null, n;
|
|
600
601
|
}
|
|
601
|
-
|
|
602
|
+
Q = null;
|
|
602
603
|
const a = document.activeElement;
|
|
603
|
-
return a instanceof Element && a !== t && !t.contains(a) && a.matches(
|
|
604
|
+
return a instanceof Element && a !== t && !t.contains(a) && a.matches(At) ? We(a) : null;
|
|
604
605
|
}
|
|
605
|
-
const
|
|
606
|
-
}),
|
|
607
|
-
function
|
|
606
|
+
const dr = 250, Bt = se(!1), $t = se(() => {
|
|
607
|
+
}), Ue = se(!1);
|
|
608
|
+
function cr({
|
|
608
609
|
open: t,
|
|
609
610
|
defaultOpen: a,
|
|
610
611
|
onOpenChange: n,
|
|
611
612
|
children: l,
|
|
612
|
-
...
|
|
613
|
+
...i
|
|
613
614
|
}) {
|
|
614
|
-
const [
|
|
615
|
+
const [c, m] = P(
|
|
615
616
|
a ?? !1
|
|
616
|
-
), [
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
t && (
|
|
621
|
-
}, [t]),
|
|
617
|
+
), [u, x] = P(!1), f = B(!1), g = B(null), N = t ?? c, z = B(N);
|
|
618
|
+
z.current = N;
|
|
619
|
+
const y = t !== void 0;
|
|
620
|
+
V(() => ir(), []), V(() => {
|
|
621
|
+
t && (g.current && clearTimeout(g.current), f.current = !1, x(!1));
|
|
622
|
+
}, [t]), V(
|
|
622
623
|
() => () => {
|
|
623
|
-
|
|
624
|
+
g.current && clearTimeout(g.current);
|
|
624
625
|
},
|
|
625
626
|
[]
|
|
626
627
|
);
|
|
627
|
-
const D = (
|
|
628
|
-
if (
|
|
629
|
-
|
|
628
|
+
const D = (k) => {
|
|
629
|
+
if (k) {
|
|
630
|
+
g.current && clearTimeout(g.current), f.current = !1, x(!1), y || m(!0), n == null || n(!0);
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
if (!N ||
|
|
633
|
+
if (!N || f.current) return;
|
|
633
634
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
634
|
-
|
|
635
|
+
y || m(!1), n == null || n(!1);
|
|
635
636
|
return;
|
|
636
637
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
f.current = !0, x(!0), g.current = setTimeout(() => {
|
|
639
|
+
y || m(!1), n == null || n(!1), requestAnimationFrame(() => {
|
|
640
|
+
z.current && (f.current = !1, x(!1));
|
|
640
641
|
});
|
|
641
|
-
},
|
|
642
|
+
}, dr);
|
|
642
643
|
};
|
|
643
|
-
return /* @__PURE__ */ e(
|
|
644
|
-
|
|
644
|
+
return /* @__PURE__ */ e($t.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(Bt.Provider, { value: u, children: /* @__PURE__ */ e(Ue.Provider, { value: !0, children: /* @__PURE__ */ e(
|
|
645
|
+
$.Root,
|
|
645
646
|
{
|
|
646
647
|
open: N,
|
|
647
648
|
onOpenChange: D,
|
|
648
|
-
...
|
|
649
|
+
...i,
|
|
649
650
|
children: l
|
|
650
651
|
}
|
|
651
652
|
) }) }) });
|
|
652
653
|
}
|
|
653
|
-
const
|
|
654
|
-
|
|
654
|
+
const Ft = h(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
|
|
655
|
+
$.Trigger,
|
|
655
656
|
{
|
|
656
657
|
ref: n,
|
|
657
658
|
onClick: (l) => {
|
|
658
|
-
|
|
659
|
+
qe(l.currentTarget), t == null || t(l);
|
|
659
660
|
},
|
|
660
661
|
...a
|
|
661
662
|
}
|
|
662
663
|
));
|
|
663
|
-
|
|
664
|
-
const Gr =
|
|
665
|
-
({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(
|
|
664
|
+
Ft.displayName = "DialogTrigger";
|
|
665
|
+
const Gr = $.Close, qt = h(
|
|
666
|
+
({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e($.Close, { asChild: !0, children: /* @__PURE__ */ e(R, { ref: l, type: "button", variant: t, ...n, children: a }) })
|
|
666
667
|
);
|
|
667
|
-
|
|
668
|
-
function
|
|
668
|
+
qt.displayName = "DialogCancel";
|
|
669
|
+
function Ht(t, a = !0) {
|
|
669
670
|
if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
670
671
|
return;
|
|
671
|
-
const n =
|
|
672
|
+
const n = We(t);
|
|
672
673
|
if (!n) {
|
|
673
|
-
a && window.requestAnimationFrame(() =>
|
|
674
|
+
a && window.requestAnimationFrame(() => Ht(t, !1));
|
|
674
675
|
return;
|
|
675
676
|
}
|
|
676
677
|
t.dataset.dialogMotionStarted = "true";
|
|
677
|
-
const l =
|
|
678
|
-
|
|
679
|
-
const
|
|
678
|
+
const l = sr(t), i = l ? or(l, n) : null;
|
|
679
|
+
i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.sy)), t.classList.add("dialog-fly-in")) : (t.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"));
|
|
680
|
+
const c = () => {
|
|
680
681
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
681
|
-
},
|
|
682
|
-
|
|
682
|
+
}, m = (u) => {
|
|
683
|
+
u.target === t && (u.animationName !== "dialog-fly-in" && u.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", m), c()));
|
|
683
684
|
};
|
|
684
|
-
t.addEventListener("animationend",
|
|
685
|
+
t.addEventListener("animationend", m);
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function ur(t) {
|
|
687
688
|
return t.replace(/dvh\b/g, "vh");
|
|
688
689
|
}
|
|
689
|
-
const
|
|
690
|
+
const Gt = h(
|
|
690
691
|
({
|
|
691
692
|
className: t,
|
|
692
693
|
children: a,
|
|
693
694
|
placement: n = "center",
|
|
694
695
|
topOffset: l = "11dvh",
|
|
695
|
-
motion:
|
|
696
|
-
style:
|
|
697
|
-
onEscapeKeyDown:
|
|
698
|
-
onPointerDownOutside:
|
|
696
|
+
motion: i = "auto",
|
|
697
|
+
style: c,
|
|
698
|
+
onEscapeKeyDown: m,
|
|
699
|
+
onPointerDownOutside: u,
|
|
699
700
|
...x
|
|
700
|
-
},
|
|
701
|
-
const
|
|
701
|
+
}, f) => {
|
|
702
|
+
const g = Z(Bt), N = n === "top", z = N ? {
|
|
702
703
|
"--dialog-top-offset": l,
|
|
703
|
-
"--dialog-top-offset-fallback":
|
|
704
|
-
} : void 0,
|
|
705
|
-
(
|
|
706
|
-
if (D.current =
|
|
707
|
-
b
|
|
704
|
+
"--dialog-top-offset-fallback": ur(l)
|
|
705
|
+
} : void 0, y = Z($t), D = B(null), k = It(
|
|
706
|
+
(b) => {
|
|
707
|
+
if (D.current = b, b && i === "auto" && Ht(b), typeof f == "function") {
|
|
708
|
+
f(b);
|
|
708
709
|
return;
|
|
709
710
|
}
|
|
710
|
-
|
|
711
|
+
f && (f.current = b);
|
|
711
712
|
},
|
|
712
|
-
[
|
|
713
|
+
[i, f]
|
|
713
714
|
);
|
|
714
|
-
return /* @__PURE__ */ s(
|
|
715
|
+
return /* @__PURE__ */ s($.Portal, { children: [
|
|
715
716
|
/* @__PURE__ */ e(
|
|
716
|
-
|
|
717
|
+
$.Overlay,
|
|
717
718
|
{
|
|
718
|
-
className:
|
|
719
|
+
className: o(
|
|
719
720
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
720
|
-
!
|
|
721
|
-
|
|
721
|
+
!g && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
722
|
+
g && "opacity-0 transition-opacity duration-200"
|
|
722
723
|
),
|
|
723
724
|
children: /* @__PURE__ */ e(
|
|
724
725
|
"span",
|
|
@@ -732,35 +733,35 @@ const Rt = f(
|
|
|
732
733
|
/* @__PURE__ */ e(
|
|
733
734
|
"div",
|
|
734
735
|
{
|
|
735
|
-
className:
|
|
736
|
+
className: o(
|
|
736
737
|
"pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
|
|
737
738
|
N ? "items-start" : "items-center"
|
|
738
739
|
),
|
|
739
740
|
children: /* @__PURE__ */ s(
|
|
740
|
-
|
|
741
|
+
$.Content,
|
|
741
742
|
{
|
|
742
|
-
ref:
|
|
743
|
-
style:
|
|
744
|
-
className:
|
|
743
|
+
ref: k,
|
|
744
|
+
style: z ? { ...z, ...c } : c,
|
|
745
|
+
className: o(
|
|
745
746
|
"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]",
|
|
746
747
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
747
748
|
N && "dialog-anchor-top",
|
|
748
|
-
|
|
749
|
-
|
|
749
|
+
i === "command" && "dialog-command-motion",
|
|
750
|
+
g && "dialog-closing",
|
|
750
751
|
"focus:outline-none",
|
|
751
752
|
t
|
|
752
753
|
),
|
|
753
|
-
onEscapeKeyDown: (
|
|
754
|
-
|
|
754
|
+
onEscapeKeyDown: (b) => {
|
|
755
|
+
m == null || m(b), !b.defaultPrevented && (b.preventDefault(), y());
|
|
755
756
|
},
|
|
756
|
-
onPointerDownOutside: (
|
|
757
|
-
|
|
757
|
+
onPointerDownOutside: (b) => {
|
|
758
|
+
u == null || u(b), !b.defaultPrevented && (b.preventDefault(), y());
|
|
758
759
|
},
|
|
759
760
|
...x,
|
|
760
761
|
children: [
|
|
761
762
|
a,
|
|
762
|
-
/* @__PURE__ */ s(
|
|
763
|
-
/* @__PURE__ */ e(
|
|
763
|
+
/* @__PURE__ */ s($.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: [
|
|
764
|
+
/* @__PURE__ */ e(ye, { className: "size-4" }),
|
|
764
765
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
765
766
|
] })
|
|
766
767
|
]
|
|
@@ -771,8 +772,8 @@ const Rt = f(
|
|
|
771
772
|
] });
|
|
772
773
|
}
|
|
773
774
|
);
|
|
774
|
-
|
|
775
|
-
function
|
|
775
|
+
Gt.displayName = "DialogContent";
|
|
776
|
+
function mr({
|
|
776
777
|
className: t,
|
|
777
778
|
...a
|
|
778
779
|
}) {
|
|
@@ -780,7 +781,7 @@ function ur({
|
|
|
780
781
|
"div",
|
|
781
782
|
{
|
|
782
783
|
"data-slot": "panel",
|
|
783
|
-
className:
|
|
784
|
+
className: o(
|
|
784
785
|
"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)",
|
|
785
786
|
t
|
|
786
787
|
),
|
|
@@ -788,7 +789,7 @@ function ur({
|
|
|
788
789
|
}
|
|
789
790
|
);
|
|
790
791
|
}
|
|
791
|
-
function
|
|
792
|
+
function pr({
|
|
792
793
|
className: t,
|
|
793
794
|
...a
|
|
794
795
|
}) {
|
|
@@ -796,12 +797,12 @@ function mr({
|
|
|
796
797
|
"div",
|
|
797
798
|
{
|
|
798
799
|
"data-slot": "body",
|
|
799
|
-
className:
|
|
800
|
+
className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
|
|
800
801
|
...a
|
|
801
802
|
}
|
|
802
803
|
);
|
|
803
804
|
}
|
|
804
|
-
function
|
|
805
|
+
function fr({
|
|
805
806
|
className: t,
|
|
806
807
|
...a
|
|
807
808
|
}) {
|
|
@@ -809,7 +810,7 @@ function pr({
|
|
|
809
810
|
"div",
|
|
810
811
|
{
|
|
811
812
|
"data-slot": "header",
|
|
812
|
-
className:
|
|
813
|
+
className: o(
|
|
813
814
|
"flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
|
|
814
815
|
t
|
|
815
816
|
),
|
|
@@ -817,7 +818,7 @@ function pr({
|
|
|
817
818
|
}
|
|
818
819
|
);
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
+
function br({
|
|
821
822
|
className: t,
|
|
822
823
|
...a
|
|
823
824
|
}) {
|
|
@@ -825,7 +826,7 @@ function fr({
|
|
|
825
826
|
"div",
|
|
826
827
|
{
|
|
827
828
|
"data-slot": "footer",
|
|
828
|
-
className:
|
|
829
|
+
className: o(
|
|
829
830
|
"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",
|
|
830
831
|
t
|
|
831
832
|
),
|
|
@@ -833,81 +834,81 @@ function fr({
|
|
|
833
834
|
}
|
|
834
835
|
);
|
|
835
836
|
}
|
|
836
|
-
const
|
|
837
|
-
const l =
|
|
837
|
+
const Ot = h(({ className: t, ...a }, n) => {
|
|
838
|
+
const l = Z(Ue) ? $.Title : "h2";
|
|
838
839
|
return /* @__PURE__ */ e(
|
|
839
840
|
l,
|
|
840
841
|
{
|
|
841
842
|
ref: n,
|
|
842
|
-
className:
|
|
843
|
+
className: o("text-base font-semibold text-fg", t),
|
|
843
844
|
...a
|
|
844
845
|
}
|
|
845
846
|
);
|
|
846
847
|
});
|
|
847
|
-
|
|
848
|
-
const
|
|
849
|
-
const l =
|
|
848
|
+
Ot.displayName = "DialogTitle";
|
|
849
|
+
const hr = h(({ className: t, ...a }, n) => {
|
|
850
|
+
const l = Z(Ue) ? $.Description : "p";
|
|
850
851
|
return /* @__PURE__ */ e(
|
|
851
852
|
l,
|
|
852
853
|
{
|
|
853
854
|
ref: n,
|
|
854
|
-
className:
|
|
855
|
+
className: o("text-sm text-muted", t),
|
|
855
856
|
...a
|
|
856
857
|
}
|
|
857
858
|
);
|
|
858
859
|
});
|
|
859
|
-
|
|
860
|
-
const
|
|
861
|
-
function
|
|
860
|
+
hr.displayName = "DialogDescription";
|
|
861
|
+
const Vt = se(null);
|
|
862
|
+
function gr({
|
|
862
863
|
label: t,
|
|
863
864
|
value: a,
|
|
864
865
|
onChange: n,
|
|
865
866
|
disabled: l = !1,
|
|
866
|
-
name:
|
|
867
|
-
className:
|
|
868
|
-
children:
|
|
869
|
-
...
|
|
867
|
+
name: i,
|
|
868
|
+
className: c,
|
|
869
|
+
children: m,
|
|
870
|
+
...u
|
|
870
871
|
}) {
|
|
871
|
-
const x =
|
|
872
|
-
return /* @__PURE__ */ e(
|
|
872
|
+
const x = Ce(), f = i ?? x;
|
|
873
|
+
return /* @__PURE__ */ e(Vt.Provider, { value: { name: f, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...u, children: [
|
|
873
874
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
874
|
-
|
|
875
|
+
m
|
|
875
876
|
] }) });
|
|
876
877
|
}
|
|
877
|
-
function
|
|
878
|
+
function xr({
|
|
878
879
|
value: t,
|
|
879
880
|
title: a,
|
|
880
881
|
description: n,
|
|
881
882
|
badge: l,
|
|
882
|
-
disabled:
|
|
883
|
-
className:
|
|
883
|
+
disabled: i = !1,
|
|
884
|
+
className: c
|
|
884
885
|
}) {
|
|
885
|
-
const
|
|
886
|
-
if (!
|
|
886
|
+
const m = Z(Vt), u = Ce();
|
|
887
|
+
if (!m)
|
|
887
888
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
888
|
-
const x =
|
|
889
|
+
const x = i || m.disabled, f = m.value === t;
|
|
889
890
|
return /* @__PURE__ */ s(
|
|
890
891
|
"label",
|
|
891
892
|
{
|
|
892
|
-
className:
|
|
893
|
+
className: o(
|
|
893
894
|
"group relative flex items-start gap-3",
|
|
894
895
|
x ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
895
|
-
|
|
896
|
+
c
|
|
896
897
|
),
|
|
897
898
|
children: [
|
|
898
899
|
/* @__PURE__ */ e(
|
|
899
900
|
"input",
|
|
900
901
|
{
|
|
901
902
|
type: "radio",
|
|
902
|
-
name:
|
|
903
|
+
name: m.name,
|
|
903
904
|
value: t,
|
|
904
|
-
checked:
|
|
905
|
+
checked: f,
|
|
905
906
|
disabled: x,
|
|
906
907
|
onChange: () => {
|
|
907
|
-
var
|
|
908
|
-
return (
|
|
908
|
+
var g;
|
|
909
|
+
return (g = m.onChange) == null ? void 0 : g.call(m, t);
|
|
909
910
|
},
|
|
910
|
-
"aria-describedby": n ?
|
|
911
|
+
"aria-describedby": n ? u : void 0,
|
|
911
912
|
className: "peer sr-only"
|
|
912
913
|
}
|
|
913
914
|
),
|
|
@@ -915,7 +916,7 @@ function gr({
|
|
|
915
916
|
"span",
|
|
916
917
|
{
|
|
917
918
|
"aria-hidden": !0,
|
|
918
|
-
className:
|
|
919
|
+
className: o(
|
|
919
920
|
"mt-[5px] grid size-3.5 shrink-0 place-items-center rounded-full border-2 border-transparent bg-line-strong transition-colors",
|
|
920
921
|
"peer-checked:border-4 peer-checked:border-primary peer-checked:bg-primary-fg",
|
|
921
922
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-focus/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-canvas"
|
|
@@ -927,53 +928,53 @@ function gr({
|
|
|
927
928
|
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
|
|
928
929
|
l ? /* @__PURE__ */ e(Wa, { variant: "primary", children: l }) : null
|
|
929
930
|
] }),
|
|
930
|
-
n ? /* @__PURE__ */ e("span", { id:
|
|
931
|
+
n ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: n }) : null
|
|
931
932
|
] })
|
|
932
933
|
]
|
|
933
934
|
}
|
|
934
935
|
);
|
|
935
936
|
}
|
|
936
|
-
function
|
|
937
|
+
function Or({
|
|
937
938
|
open: t,
|
|
938
939
|
onOpenChange: a,
|
|
939
940
|
trigger: n,
|
|
940
941
|
title: l,
|
|
941
|
-
options:
|
|
942
|
-
defaultValue:
|
|
943
|
-
value:
|
|
944
|
-
onValueChange:
|
|
942
|
+
options: i,
|
|
943
|
+
defaultValue: c,
|
|
944
|
+
value: m,
|
|
945
|
+
onValueChange: u,
|
|
945
946
|
cancelLabel: x = "Cancel",
|
|
946
|
-
confirmLabel:
|
|
947
|
-
onConfirm:
|
|
947
|
+
confirmLabel: f = "Continue",
|
|
948
|
+
onConfirm: g
|
|
948
949
|
}) {
|
|
949
|
-
var
|
|
950
|
-
const [N,
|
|
951
|
-
return /* @__PURE__ */ s(
|
|
952
|
-
n ? /* @__PURE__ */ e(
|
|
950
|
+
var k;
|
|
951
|
+
const [N, z] = P(c ?? ((k = i[0]) == null ? void 0 : k.value) ?? ""), y = m ?? N;
|
|
952
|
+
return /* @__PURE__ */ s(cr, { open: t, onOpenChange: a, children: [
|
|
953
|
+
n ? /* @__PURE__ */ e(Ft, { asChild: !0, children: n }) : null,
|
|
953
954
|
/* @__PURE__ */ s(
|
|
954
|
-
|
|
955
|
+
Gt,
|
|
955
956
|
{
|
|
956
957
|
"aria-describedby": void 0,
|
|
957
958
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
958
959
|
children: [
|
|
959
|
-
/* @__PURE__ */ s(
|
|
960
|
-
/* @__PURE__ */ e(
|
|
961
|
-
/* @__PURE__ */ e(
|
|
962
|
-
|
|
963
|
-
}, children:
|
|
964
|
-
|
|
960
|
+
/* @__PURE__ */ s(mr, { children: [
|
|
961
|
+
/* @__PURE__ */ e(fr, { children: /* @__PURE__ */ e(Ot, { className: "text-xl", children: l }) }),
|
|
962
|
+
/* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(gr, { label: l, value: y, onChange: (b) => {
|
|
963
|
+
m === void 0 && z(b), u == null || u(b);
|
|
964
|
+
}, children: i.map((b) => /* @__PURE__ */ e(
|
|
965
|
+
xr,
|
|
965
966
|
{
|
|
966
|
-
value:
|
|
967
|
-
title:
|
|
968
|
-
description:
|
|
969
|
-
badge:
|
|
967
|
+
value: b.value,
|
|
968
|
+
title: b.title,
|
|
969
|
+
description: b.description,
|
|
970
|
+
badge: b.badge
|
|
970
971
|
},
|
|
971
|
-
|
|
972
|
+
b.value
|
|
972
973
|
)) }) })
|
|
973
974
|
] }),
|
|
974
|
-
/* @__PURE__ */ s(
|
|
975
|
-
/* @__PURE__ */ e(
|
|
976
|
-
/* @__PURE__ */ e(
|
|
975
|
+
/* @__PURE__ */ s(br, { className: "gap-3 pt-2.5", children: [
|
|
976
|
+
/* @__PURE__ */ e(qt, { className: "flex-1", children: x }),
|
|
977
|
+
/* @__PURE__ */ e(R, { className: "flex-1", onClick: () => g == null ? void 0 : g(y), children: f })
|
|
977
978
|
] })
|
|
978
979
|
]
|
|
979
980
|
}
|
|
@@ -981,19 +982,19 @@ function Hr({
|
|
|
981
982
|
] });
|
|
982
983
|
}
|
|
983
984
|
function Vr({ code: t, label: a, className: n }) {
|
|
984
|
-
const [l,
|
|
985
|
+
const [l, i] = P(!1);
|
|
985
986
|
return /* @__PURE__ */ e(
|
|
986
|
-
|
|
987
|
+
ze,
|
|
987
988
|
{
|
|
988
989
|
className: n,
|
|
989
990
|
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
|
|
990
991
|
action: {
|
|
991
992
|
label: l ? "Copied" : "Copy",
|
|
992
|
-
icon: l ? /* @__PURE__ */ e(
|
|
993
|
+
icon: l ? /* @__PURE__ */ e(ie, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(St, {}),
|
|
993
994
|
variant: "ghost",
|
|
994
995
|
onClick: async () => {
|
|
995
996
|
try {
|
|
996
|
-
await navigator.clipboard.writeText(t),
|
|
997
|
+
await navigator.clipboard.writeText(t), i(!0), window.setTimeout(() => i(!1), 1500);
|
|
997
998
|
} catch {
|
|
998
999
|
}
|
|
999
1000
|
}
|
|
@@ -1003,189 +1004,317 @@ function Vr({ code: t, label: a, className: n }) {
|
|
|
1003
1004
|
}
|
|
1004
1005
|
);
|
|
1005
1006
|
}
|
|
1006
|
-
const
|
|
1007
|
+
const vr = {
|
|
1007
1008
|
sm: "h-[var(--control-h-sm)] text-sm",
|
|
1008
1009
|
md: "h-[var(--control-h-md)] text-sm",
|
|
1009
1010
|
lg: "h-[var(--control-h-lg)] text-sm",
|
|
1010
1011
|
xl: "h-[var(--control-h-xl)] rounded-lg text-base"
|
|
1011
|
-
},
|
|
1012
|
+
}, Nr = {
|
|
1012
1013
|
sm: "px-[var(--control-pad-x-sm)]",
|
|
1013
1014
|
md: "px-[var(--control-pad-x-md)]",
|
|
1014
1015
|
lg: "px-[var(--control-pad-x-lg)]",
|
|
1015
1016
|
xl: "px-[var(--control-pad-x-xl)]"
|
|
1016
|
-
},
|
|
1017
|
+
}, yr = {
|
|
1017
1018
|
sm: "left-[var(--control-pad-x-sm)]",
|
|
1018
1019
|
md: "left-[var(--control-pad-x-md)]",
|
|
1019
1020
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
1020
1021
|
xl: "left-[var(--control-pad-x-xl)]"
|
|
1021
|
-
},
|
|
1022
|
+
}, kt = {
|
|
1022
1023
|
sm: "right-[var(--control-pad-x-sm)]",
|
|
1023
1024
|
md: "right-[var(--control-pad-x-md)]",
|
|
1024
1025
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
1025
1026
|
xl: "right-[var(--control-pad-x-xl)]"
|
|
1026
|
-
},
|
|
1027
|
+
}, Be = {
|
|
1027
1028
|
sm: "size-[var(--control-icon-sm)]",
|
|
1028
1029
|
md: "size-[var(--control-icon-md)]",
|
|
1029
1030
|
lg: "size-[var(--control-icon-lg)]",
|
|
1030
1031
|
xl: "size-[var(--control-icon-xl)]"
|
|
1031
|
-
},
|
|
1032
|
+
}, ke = h(
|
|
1032
1033
|
({
|
|
1033
1034
|
className: t,
|
|
1034
1035
|
containerClassName: a,
|
|
1035
1036
|
type: n = "text",
|
|
1036
1037
|
size: l = "md",
|
|
1037
|
-
leadingIcon:
|
|
1038
|
-
trailingIcon:
|
|
1039
|
-
onClear:
|
|
1040
|
-
value:
|
|
1038
|
+
leadingIcon: i,
|
|
1039
|
+
trailingIcon: c,
|
|
1040
|
+
onClear: m,
|
|
1041
|
+
value: u,
|
|
1041
1042
|
defaultValue: x,
|
|
1042
|
-
error:
|
|
1043
|
-
helperText:
|
|
1043
|
+
error: f = !1,
|
|
1044
|
+
helperText: g,
|
|
1044
1045
|
id: N,
|
|
1045
|
-
"aria-describedby":
|
|
1046
|
-
disabled:
|
|
1046
|
+
"aria-describedby": z,
|
|
1047
|
+
disabled: y,
|
|
1047
1048
|
readOnly: D,
|
|
1048
|
-
...
|
|
1049
|
-
},
|
|
1050
|
-
const
|
|
1049
|
+
...k
|
|
1050
|
+
}, b) => {
|
|
1051
|
+
const I = Ce(), M = N ?? I, L = !!g, A = !!(m && (u !== void 0 ? String(u).length > 0 : x !== void 0 && String(x).length > 0)), q = L ? `${M}-description` : void 0, F = [z, q].filter(Boolean).join(" ") || void 0, E = /* @__PURE__ */ e(
|
|
1051
1052
|
"input",
|
|
1052
1053
|
{
|
|
1053
|
-
ref:
|
|
1054
|
-
id:
|
|
1054
|
+
ref: b,
|
|
1055
|
+
id: M,
|
|
1055
1056
|
type: n,
|
|
1056
|
-
disabled:
|
|
1057
|
+
disabled: y,
|
|
1057
1058
|
readOnly: D,
|
|
1058
|
-
"aria-invalid":
|
|
1059
|
-
"aria-describedby":
|
|
1060
|
-
style:
|
|
1061
|
-
paddingInlineStart:
|
|
1062
|
-
paddingInlineEnd:
|
|
1059
|
+
"aria-invalid": f || void 0,
|
|
1060
|
+
"aria-describedby": F,
|
|
1061
|
+
style: i || c || A ? {
|
|
1062
|
+
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
1063
|
+
paddingInlineEnd: c || A ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
1063
1064
|
} : void 0,
|
|
1064
|
-
className:
|
|
1065
|
+
className: o(
|
|
1065
1066
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
1066
|
-
xr[l],
|
|
1067
1067
|
vr[l],
|
|
1068
|
+
Nr[l],
|
|
1068
1069
|
"placeholder:text-(--input-placeholder)",
|
|
1069
1070
|
"hover:border-(--input-border-hover)",
|
|
1070
1071
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
1071
|
-
|
|
1072
|
-
!
|
|
1072
|
+
f && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
|
|
1073
|
+
!f && "border-(--input-border)",
|
|
1073
1074
|
n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
|
|
1074
|
-
|
|
1075
|
+
y && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
|
|
1075
1076
|
D && "cursor-default focus-visible:ring-0",
|
|
1076
1077
|
t
|
|
1077
1078
|
),
|
|
1078
|
-
value:
|
|
1079
|
+
value: u,
|
|
1079
1080
|
defaultValue: x,
|
|
1080
|
-
...
|
|
1081
|
+
...k
|
|
1081
1082
|
}
|
|
1082
1083
|
);
|
|
1083
|
-
return !
|
|
1084
|
+
return !i && !c && !A && !L ? E : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
|
|
1084
1085
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1085
|
-
|
|
1086
|
+
i ? /* @__PURE__ */ e(
|
|
1086
1087
|
"span",
|
|
1087
1088
|
{
|
|
1088
|
-
className:
|
|
1089
|
+
className: o(
|
|
1089
1090
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1090
|
-
|
|
1091
|
+
yr[l]
|
|
1091
1092
|
),
|
|
1092
1093
|
"aria-hidden": !0,
|
|
1093
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1094
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: i })
|
|
1094
1095
|
}
|
|
1095
1096
|
) : null,
|
|
1096
|
-
|
|
1097
|
-
|
|
1097
|
+
E,
|
|
1098
|
+
A ? /* @__PURE__ */ e(
|
|
1098
1099
|
"button",
|
|
1099
1100
|
{
|
|
1100
1101
|
type: "button",
|
|
1101
1102
|
"aria-label": "Clear search",
|
|
1102
|
-
onClick:
|
|
1103
|
-
className:
|
|
1103
|
+
onClick: m,
|
|
1104
|
+
className: o(
|
|
1104
1105
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1105
|
-
|
|
1106
|
+
kt[l]
|
|
1106
1107
|
),
|
|
1107
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1108
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: /* @__PURE__ */ e(ye, {}) })
|
|
1108
1109
|
}
|
|
1109
|
-
) :
|
|
1110
|
+
) : c ? /* @__PURE__ */ e(
|
|
1110
1111
|
"span",
|
|
1111
1112
|
{
|
|
1112
|
-
className:
|
|
1113
|
+
className: o(
|
|
1113
1114
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1114
|
-
|
|
1115
|
+
kt[l]
|
|
1115
1116
|
),
|
|
1116
1117
|
"aria-hidden": !0,
|
|
1117
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
1118
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: c })
|
|
1118
1119
|
}
|
|
1119
1120
|
) : null
|
|
1120
1121
|
] }),
|
|
1121
|
-
|
|
1122
|
+
L ? /* @__PURE__ */ e(
|
|
1122
1123
|
"p",
|
|
1123
1124
|
{
|
|
1124
|
-
id:
|
|
1125
|
-
className:
|
|
1126
|
-
children:
|
|
1125
|
+
id: q,
|
|
1126
|
+
className: o("mt-1.5 text-xs", f ? "text-error" : "text-muted"),
|
|
1127
|
+
children: g
|
|
1127
1128
|
}
|
|
1128
1129
|
) : null
|
|
1129
1130
|
] });
|
|
1130
1131
|
}
|
|
1131
1132
|
);
|
|
1132
|
-
|
|
1133
|
-
function
|
|
1133
|
+
ke.displayName = "Input";
|
|
1134
|
+
function Wr({
|
|
1135
|
+
items: t,
|
|
1136
|
+
value: a,
|
|
1137
|
+
onValueChange: n,
|
|
1138
|
+
onSearchChange: l,
|
|
1139
|
+
loading: i = !1,
|
|
1140
|
+
minSearchLength: c = 3,
|
|
1141
|
+
debounceMs: m = 300,
|
|
1142
|
+
placeholder: u = "Select...",
|
|
1143
|
+
searchPlaceholder: x = "Search",
|
|
1144
|
+
emptyMessage: f = "No results found",
|
|
1145
|
+
hintMessage: g,
|
|
1146
|
+
renderItem: N,
|
|
1147
|
+
renderValue: z,
|
|
1148
|
+
className: y,
|
|
1149
|
+
contentClassName: D,
|
|
1150
|
+
disabled: k = !1
|
|
1151
|
+
}) {
|
|
1152
|
+
const [b, I] = P(!1), [M, L] = P(""), [A, q] = P("");
|
|
1153
|
+
V(() => {
|
|
1154
|
+
const v = M.trim(), W = setTimeout(() => q(v), m);
|
|
1155
|
+
return () => clearTimeout(W);
|
|
1156
|
+
}, [M, m]), V(() => {
|
|
1157
|
+
l && b && A.length >= c && l(A);
|
|
1158
|
+
}, [A, b, c, l]);
|
|
1159
|
+
const F = t.find((v) => v.value === a) ?? null, E = M.trim(), De = E.length > 0 && E.length < c, Te = l !== void 0 && E.length >= c && A !== E, Me = g ?? `Type at least ${c} characters to search`, de = ge(() => {
|
|
1160
|
+
if (l || E.length === 0) return t;
|
|
1161
|
+
const v = E.toLowerCase();
|
|
1162
|
+
return t.filter(
|
|
1163
|
+
(W) => W.label.toLowerCase().includes(v) || (W.description ?? "").toLowerCase().includes(v)
|
|
1164
|
+
);
|
|
1165
|
+
}, [t, E, l]), Pe = (v) => {
|
|
1166
|
+
n(v), I(!1), L(""), q("");
|
|
1167
|
+
}, ee = () => {
|
|
1168
|
+
L(""), q("");
|
|
1169
|
+
};
|
|
1170
|
+
return /* @__PURE__ */ s(
|
|
1171
|
+
he.Root,
|
|
1172
|
+
{
|
|
1173
|
+
open: b,
|
|
1174
|
+
onOpenChange: (v) => {
|
|
1175
|
+
I(v), v || ee();
|
|
1176
|
+
},
|
|
1177
|
+
children: [
|
|
1178
|
+
/* @__PURE__ */ s(
|
|
1179
|
+
he.Trigger,
|
|
1180
|
+
{
|
|
1181
|
+
type: "button",
|
|
1182
|
+
disabled: k,
|
|
1183
|
+
"aria-haspopup": "listbox",
|
|
1184
|
+
className: o(
|
|
1185
|
+
"group btn-fill btn-inner-border btn-interactive flex h-(--control-h-md) w-full items-center justify-between gap-2 rounded-(--control-radius) bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
|
|
1186
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1187
|
+
y
|
|
1188
|
+
),
|
|
1189
|
+
children: [
|
|
1190
|
+
F ? z ? z(F) : /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: F.label }) : /* @__PURE__ */ e("span", { className: "font-normal text-muted", children: u }),
|
|
1191
|
+
/* @__PURE__ */ e(
|
|
1192
|
+
Y,
|
|
1193
|
+
{
|
|
1194
|
+
"aria-hidden": !0,
|
|
1195
|
+
className: "size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none"
|
|
1196
|
+
}
|
|
1197
|
+
)
|
|
1198
|
+
]
|
|
1199
|
+
}
|
|
1200
|
+
),
|
|
1201
|
+
/* @__PURE__ */ e(he.Portal, { children: /* @__PURE__ */ s(
|
|
1202
|
+
he.Content,
|
|
1203
|
+
{
|
|
1204
|
+
role: "listbox",
|
|
1205
|
+
"aria-label": u,
|
|
1206
|
+
align: "start",
|
|
1207
|
+
sideOffset: 4,
|
|
1208
|
+
className: o(
|
|
1209
|
+
"menu-surface btn-inner-border z-50 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1210
|
+
"w-(--radix-popper-anchor-width)",
|
|
1211
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1212
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
1213
|
+
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
1214
|
+
"duration-150 ease-out",
|
|
1215
|
+
D
|
|
1216
|
+
),
|
|
1217
|
+
onKeyDown: (v) => {
|
|
1218
|
+
v.key === "Escape" && (v.stopPropagation(), I(!1), ee());
|
|
1219
|
+
},
|
|
1220
|
+
children: [
|
|
1221
|
+
/* @__PURE__ */ e("div", { className: "pb-1", children: /* @__PURE__ */ e(
|
|
1222
|
+
ke,
|
|
1223
|
+
{
|
|
1224
|
+
value: M,
|
|
1225
|
+
onChange: (v) => L(v.target.value),
|
|
1226
|
+
onClear: () => ee(),
|
|
1227
|
+
placeholder: x,
|
|
1228
|
+
"aria-label": x,
|
|
1229
|
+
leadingIcon: /* @__PURE__ */ e(Dt, { className: "size-3.5" }),
|
|
1230
|
+
size: "sm",
|
|
1231
|
+
className: "h-(--control-h-xs) border-0 bg-(--combobox-search-bg) focus-visible:border-muted focus-visible:ring-0"
|
|
1232
|
+
}
|
|
1233
|
+
) }),
|
|
1234
|
+
/* @__PURE__ */ e("div", { className: "max-h-64 overflow-y-auto", role: "presentation", children: De ? /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: Me }) : de.length > 0 ? de.map((v) => /* @__PURE__ */ e(
|
|
1235
|
+
"button",
|
|
1236
|
+
{
|
|
1237
|
+
type: "button",
|
|
1238
|
+
role: "option",
|
|
1239
|
+
"aria-selected": v.value === a,
|
|
1240
|
+
onClick: () => Pe(v),
|
|
1241
|
+
className: o(
|
|
1242
|
+
"flex w-full items-center gap-3 rounded-lg px-2 py-2 text-left transition-colors",
|
|
1243
|
+
v.value === a ? "bg-(--button-surface-active)" : "hover:bg-(--button-surface-hover)"
|
|
1244
|
+
),
|
|
1245
|
+
children: N ? N(v) : /* @__PURE__ */ s("span", { className: "min-w-0", children: [
|
|
1246
|
+
/* @__PURE__ */ s("span", { className: "flex items-center gap-1.5", children: [
|
|
1247
|
+
/* @__PURE__ */ e("span", { className: "truncate text-sm font-medium text-fg", children: v.label }),
|
|
1248
|
+
v.badge && /* @__PURE__ */ e("span", { className: "rounded bg-elevated px-1.5 py-0.5 text-[11px] text-muted", children: v.badge })
|
|
1249
|
+
] }),
|
|
1250
|
+
v.description && /* @__PURE__ */ e("span", { className: "block truncate text-[13px] text-muted", children: v.description })
|
|
1251
|
+
] })
|
|
1252
|
+
},
|
|
1253
|
+
v.value
|
|
1254
|
+
)) : i || Te ? /* @__PURE__ */ e("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ e(Rt, { className: "size-5 text-muted" }) }) : /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: f }) })
|
|
1255
|
+
]
|
|
1256
|
+
}
|
|
1257
|
+
) })
|
|
1258
|
+
]
|
|
1259
|
+
}
|
|
1260
|
+
);
|
|
1261
|
+
}
|
|
1262
|
+
function Xe(t, a) {
|
|
1134
1263
|
let n = 0;
|
|
1135
|
-
return
|
|
1136
|
-
if (!
|
|
1137
|
-
if (a.some((
|
|
1264
|
+
return Mt.forEach(t, (l) => {
|
|
1265
|
+
if (!Pt(l)) return;
|
|
1266
|
+
if (a.some((c) => c === l.type)) {
|
|
1138
1267
|
n += 1;
|
|
1139
1268
|
return;
|
|
1140
1269
|
}
|
|
1141
|
-
const
|
|
1142
|
-
|
|
1270
|
+
const i = l.props.children;
|
|
1271
|
+
i && (n += Xe(i, a));
|
|
1143
1272
|
}), n;
|
|
1144
1273
|
}
|
|
1145
|
-
const
|
|
1146
|
-
function
|
|
1274
|
+
const Wt = se(!1);
|
|
1275
|
+
function $e({
|
|
1147
1276
|
children: t,
|
|
1148
1277
|
...a
|
|
1149
1278
|
}) {
|
|
1150
|
-
const n =
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1279
|
+
const n = Xe(t, [
|
|
1280
|
+
we,
|
|
1281
|
+
le,
|
|
1282
|
+
Xt
|
|
1154
1283
|
]) === 0;
|
|
1155
|
-
return /* @__PURE__ */ e(
|
|
1284
|
+
return /* @__PURE__ */ e(Wt.Provider, { value: n, children: /* @__PURE__ */ e(j.Root, { ...a, children: t }) });
|
|
1156
1285
|
}
|
|
1157
|
-
const
|
|
1158
|
-
const
|
|
1286
|
+
const xe = h(({ className: t, disabled: a, ...n }, l) => {
|
|
1287
|
+
const i = Z(Wt);
|
|
1159
1288
|
return /* @__PURE__ */ e(
|
|
1160
|
-
|
|
1289
|
+
j.Trigger,
|
|
1161
1290
|
{
|
|
1162
1291
|
ref: l,
|
|
1163
|
-
className:
|
|
1164
|
-
disabled: a ||
|
|
1292
|
+
className: o("group", t),
|
|
1293
|
+
disabled: a || i,
|
|
1165
1294
|
...n
|
|
1166
1295
|
}
|
|
1167
1296
|
);
|
|
1168
1297
|
});
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1298
|
+
xe.displayName = "DropdownMenuTrigger";
|
|
1299
|
+
const Ut = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1171
1300
|
Y,
|
|
1172
1301
|
{
|
|
1173
1302
|
ref: n,
|
|
1174
1303
|
"aria-hidden": !0,
|
|
1175
|
-
className:
|
|
1304
|
+
className: o(
|
|
1176
1305
|
"ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1177
1306
|
t
|
|
1178
1307
|
),
|
|
1179
1308
|
...a
|
|
1180
1309
|
}
|
|
1181
1310
|
));
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1311
|
+
Ut.displayName = "DropdownMenuChevron";
|
|
1312
|
+
const Ur = j.Group, Xr = j.Portal, ve = h(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ e(
|
|
1313
|
+
j.Content,
|
|
1185
1314
|
{
|
|
1186
1315
|
ref: l,
|
|
1187
1316
|
sideOffset: a,
|
|
1188
|
-
className:
|
|
1317
|
+
className: o(
|
|
1189
1318
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1190
1319
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1191
1320
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1198,12 +1327,12 @@ const Wr = P.Group, Or = P.Portal, pe = f(({ className: t, sideOffset: a = 8, ..
|
|
|
1198
1327
|
...n
|
|
1199
1328
|
}
|
|
1200
1329
|
) }));
|
|
1201
|
-
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1330
|
+
ve.displayName = "DropdownMenuContent";
|
|
1331
|
+
const we = h(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
1332
|
+
j.Item,
|
|
1204
1333
|
{
|
|
1205
1334
|
ref: l,
|
|
1206
|
-
className:
|
|
1335
|
+
className: o(
|
|
1207
1336
|
"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",
|
|
1208
1337
|
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1209
1338
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1213,38 +1342,38 @@ const he = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
|
1213
1342
|
...n
|
|
1214
1343
|
}
|
|
1215
1344
|
));
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1345
|
+
we.displayName = "DropdownMenuItem";
|
|
1346
|
+
const le = h(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1347
|
+
j.CheckboxItem,
|
|
1219
1348
|
{
|
|
1220
|
-
ref:
|
|
1221
|
-
className:
|
|
1349
|
+
ref: i,
|
|
1350
|
+
className: o(
|
|
1222
1351
|
"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)",
|
|
1223
1352
|
t
|
|
1224
1353
|
),
|
|
1225
1354
|
checked: n,
|
|
1226
1355
|
...l,
|
|
1227
1356
|
children: [
|
|
1228
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(
|
|
1357
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(j.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(ie, { className: "size-3", weight: "bold" }) }) }),
|
|
1229
1358
|
a
|
|
1230
1359
|
]
|
|
1231
1360
|
}
|
|
1232
1361
|
));
|
|
1233
|
-
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1362
|
+
le.displayName = "DropdownMenuCheckboxItem";
|
|
1363
|
+
const Ne = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1364
|
+
j.Label,
|
|
1236
1365
|
{
|
|
1237
1366
|
ref: n,
|
|
1238
|
-
className:
|
|
1367
|
+
className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1239
1368
|
...a
|
|
1240
1369
|
}
|
|
1241
1370
|
));
|
|
1242
|
-
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1371
|
+
Ne.displayName = "DropdownMenuLabel";
|
|
1372
|
+
const Kr = j.Sub, Xt = h(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1373
|
+
j.SubTrigger,
|
|
1245
1374
|
{
|
|
1246
|
-
ref:
|
|
1247
|
-
className:
|
|
1375
|
+
ref: i,
|
|
1376
|
+
className: o(
|
|
1248
1377
|
"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",
|
|
1249
1378
|
"focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
|
|
1250
1379
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
@@ -1254,17 +1383,17 @@ const Ur = P.Sub, At = f(({ className: t, inset: a, children: n, ...l }, o) => /
|
|
|
1254
1383
|
...l,
|
|
1255
1384
|
children: [
|
|
1256
1385
|
n,
|
|
1257
|
-
/* @__PURE__ */ e(
|
|
1386
|
+
/* @__PURE__ */ e(Tt, { className: "ml-auto shrink-0" })
|
|
1258
1387
|
]
|
|
1259
1388
|
}
|
|
1260
1389
|
));
|
|
1261
|
-
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1390
|
+
Xt.displayName = "DropdownMenuSubTrigger";
|
|
1391
|
+
const wr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1392
|
+
j.SubContent,
|
|
1264
1393
|
{
|
|
1265
1394
|
ref: n,
|
|
1266
1395
|
sideOffset: 8,
|
|
1267
|
-
className:
|
|
1396
|
+
className: o(
|
|
1268
1397
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1269
1398
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1270
1399
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1277,30 +1406,30 @@ const yr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1277
1406
|
...a
|
|
1278
1407
|
}
|
|
1279
1408
|
));
|
|
1280
|
-
|
|
1281
|
-
const
|
|
1282
|
-
|
|
1409
|
+
wr.displayName = "DropdownMenuSubContent";
|
|
1410
|
+
const He = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1411
|
+
j.Separator,
|
|
1283
1412
|
{
|
|
1284
1413
|
ref: n,
|
|
1285
|
-
className:
|
|
1414
|
+
className: o("-mx-1 my-1 h-px bg-line-strong", t),
|
|
1286
1415
|
...a
|
|
1287
1416
|
}
|
|
1288
1417
|
));
|
|
1289
|
-
|
|
1290
|
-
const
|
|
1291
|
-
function
|
|
1418
|
+
He.displayName = "DropdownMenuSeparator";
|
|
1419
|
+
const Jr = _.Group, Kt = _.Value;
|
|
1420
|
+
function Jt({
|
|
1292
1421
|
children: t,
|
|
1293
1422
|
disabled: a,
|
|
1294
1423
|
...n
|
|
1295
1424
|
}) {
|
|
1296
|
-
const l =
|
|
1297
|
-
return /* @__PURE__ */ e(
|
|
1425
|
+
const l = Xe(t, [Se]) === 0;
|
|
1426
|
+
return /* @__PURE__ */ e(_.Root, { disabled: a || l, ...n, children: t });
|
|
1298
1427
|
}
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1428
|
+
const Ke = h(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
|
|
1429
|
+
_.Trigger,
|
|
1301
1430
|
{
|
|
1302
|
-
ref:
|
|
1303
|
-
className:
|
|
1431
|
+
ref: i,
|
|
1432
|
+
className: o(
|
|
1304
1433
|
"group flex items-center justify-between gap-2 text-sm text-fg",
|
|
1305
1434
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1306
1435
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
@@ -1312,19 +1441,19 @@ const Fe = f(({ className: t, children: a, variant: n = "field", ...l }, o) => /
|
|
|
1312
1441
|
...l,
|
|
1313
1442
|
children: [
|
|
1314
1443
|
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
|
|
1315
|
-
/* @__PURE__ */ e(
|
|
1444
|
+
/* @__PURE__ */ e(_.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(Y, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
|
|
1316
1445
|
]
|
|
1317
1446
|
}
|
|
1318
1447
|
));
|
|
1319
|
-
|
|
1320
|
-
const
|
|
1321
|
-
({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...
|
|
1322
|
-
|
|
1448
|
+
Ke.displayName = "SelectTrigger";
|
|
1449
|
+
const Je = h(
|
|
1450
|
+
({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(_.Portal, { children: /* @__PURE__ */ e(
|
|
1451
|
+
_.Content,
|
|
1323
1452
|
{
|
|
1324
|
-
ref:
|
|
1453
|
+
ref: c,
|
|
1325
1454
|
position: n,
|
|
1326
1455
|
sideOffset: l,
|
|
1327
|
-
className:
|
|
1456
|
+
className: o(
|
|
1328
1457
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1329
1458
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
1330
1459
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -1334,50 +1463,50 @@ const qe = f(
|
|
|
1334
1463
|
"duration-150 ease-out",
|
|
1335
1464
|
t
|
|
1336
1465
|
),
|
|
1337
|
-
...
|
|
1338
|
-
children: /* @__PURE__ */ e(
|
|
1466
|
+
...i,
|
|
1467
|
+
children: /* @__PURE__ */ e(_.Viewport, { className: "p-0", children: a })
|
|
1339
1468
|
}
|
|
1340
1469
|
) })
|
|
1341
1470
|
);
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1471
|
+
Je.displayName = "SelectContent";
|
|
1472
|
+
const Se = h(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
1473
|
+
_.Item,
|
|
1345
1474
|
{
|
|
1346
1475
|
ref: l,
|
|
1347
|
-
className:
|
|
1476
|
+
className: o(
|
|
1348
1477
|
"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",
|
|
1349
1478
|
t
|
|
1350
1479
|
),
|
|
1351
1480
|
...n,
|
|
1352
1481
|
children: [
|
|
1353
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1354
|
-
/* @__PURE__ */ e(
|
|
1482
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(_.ItemIndicator, { children: /* @__PURE__ */ e(ie, { className: "size-3.5" }) }) }),
|
|
1483
|
+
/* @__PURE__ */ e(_.ItemText, { children: a })
|
|
1355
1484
|
]
|
|
1356
1485
|
}
|
|
1357
1486
|
));
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1487
|
+
Se.displayName = "SelectItem";
|
|
1488
|
+
const Cr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1489
|
+
_.Label,
|
|
1361
1490
|
{
|
|
1362
1491
|
ref: n,
|
|
1363
|
-
className:
|
|
1492
|
+
className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1364
1493
|
...a
|
|
1365
1494
|
}
|
|
1366
1495
|
));
|
|
1367
|
-
|
|
1368
|
-
function
|
|
1496
|
+
Cr.displayName = "SelectLabel";
|
|
1497
|
+
function zr({
|
|
1369
1498
|
icon: t,
|
|
1370
1499
|
title: a,
|
|
1371
1500
|
description: n,
|
|
1372
1501
|
action: l,
|
|
1373
|
-
className:
|
|
1502
|
+
className: i
|
|
1374
1503
|
}) {
|
|
1375
1504
|
return /* @__PURE__ */ s(
|
|
1376
1505
|
"div",
|
|
1377
1506
|
{
|
|
1378
|
-
className:
|
|
1507
|
+
className: o(
|
|
1379
1508
|
"flex flex-col items-center justify-center gap-4 px-6 py-12 text-center",
|
|
1380
|
-
|
|
1509
|
+
i
|
|
1381
1510
|
),
|
|
1382
1511
|
children: [
|
|
1383
1512
|
t ? /* @__PURE__ */ e("div", { className: "flex size-12 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-5", children: t }) : null,
|
|
@@ -1390,22 +1519,22 @@ function Cr({
|
|
|
1390
1519
|
}
|
|
1391
1520
|
);
|
|
1392
1521
|
}
|
|
1393
|
-
const
|
|
1394
|
-
function
|
|
1522
|
+
const kr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
|
|
1523
|
+
function Sr(t) {
|
|
1395
1524
|
return t.split(/\s+/).slice(0, 2).map((a) => {
|
|
1396
1525
|
var n;
|
|
1397
1526
|
return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
|
|
1398
1527
|
}).join("");
|
|
1399
1528
|
}
|
|
1400
|
-
function
|
|
1529
|
+
function Qr({
|
|
1401
1530
|
name: t,
|
|
1402
1531
|
secondary: a,
|
|
1403
1532
|
image: n
|
|
1404
1533
|
}) {
|
|
1405
1534
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1406
|
-
/* @__PURE__ */ s(
|
|
1407
|
-
n ? /* @__PURE__ */ e(
|
|
1408
|
-
/* @__PURE__ */ e(
|
|
1535
|
+
/* @__PURE__ */ s(jt, { className: "size-8", children: [
|
|
1536
|
+
n ? /* @__PURE__ */ e(Et, { src: n, alt: "" }) : null,
|
|
1537
|
+
/* @__PURE__ */ e(_t, { children: Sr(t) })
|
|
1409
1538
|
] }),
|
|
1410
1539
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1411
1540
|
/* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
|
|
@@ -1413,154 +1542,154 @@ function Jr({
|
|
|
1413
1542
|
] })
|
|
1414
1543
|
] });
|
|
1415
1544
|
}
|
|
1416
|
-
function
|
|
1545
|
+
function Yr({
|
|
1417
1546
|
rows: t,
|
|
1418
1547
|
columns: a,
|
|
1419
1548
|
getRowId: n,
|
|
1420
1549
|
loading: l = !1,
|
|
1421
|
-
error:
|
|
1422
|
-
empty:
|
|
1423
|
-
search:
|
|
1424
|
-
filters:
|
|
1550
|
+
error: i,
|
|
1551
|
+
empty: c,
|
|
1552
|
+
search: m,
|
|
1553
|
+
filters: u,
|
|
1425
1554
|
toolbarStart: x,
|
|
1426
|
-
toolbarEnd:
|
|
1427
|
-
columnPicker:
|
|
1555
|
+
toolbarEnd: f,
|
|
1556
|
+
columnPicker: g = !0,
|
|
1428
1557
|
tabs: N,
|
|
1429
|
-
activeTab:
|
|
1430
|
-
onTabChange:
|
|
1558
|
+
activeTab: z,
|
|
1559
|
+
onTabChange: y,
|
|
1431
1560
|
infoBanner: D,
|
|
1432
|
-
selectable:
|
|
1433
|
-
bulkActions:
|
|
1434
|
-
rowActions:
|
|
1435
|
-
renderExpanded:
|
|
1436
|
-
onRowClick:
|
|
1437
|
-
defaultSort:
|
|
1438
|
-
sort:
|
|
1439
|
-
onSortChange:
|
|
1440
|
-
pageSize:
|
|
1441
|
-
pageSizeOptions:
|
|
1442
|
-
pagination:
|
|
1443
|
-
tone:
|
|
1444
|
-
title:
|
|
1445
|
-
description:
|
|
1446
|
-
headerAction:
|
|
1447
|
-
headerClassName:
|
|
1448
|
-
panelClassName:
|
|
1449
|
-
className:
|
|
1561
|
+
selectable: k = !1,
|
|
1562
|
+
bulkActions: b,
|
|
1563
|
+
rowActions: I,
|
|
1564
|
+
renderExpanded: M,
|
|
1565
|
+
onRowClick: L,
|
|
1566
|
+
defaultSort: A,
|
|
1567
|
+
sort: q,
|
|
1568
|
+
onSortChange: F,
|
|
1569
|
+
pageSize: E = 25,
|
|
1570
|
+
pageSizeOptions: De = [10, 25, 50, 100],
|
|
1571
|
+
pagination: Te = "auto",
|
|
1572
|
+
tone: Me,
|
|
1573
|
+
title: de,
|
|
1574
|
+
description: Pe,
|
|
1575
|
+
headerAction: ee,
|
|
1576
|
+
headerClassName: v,
|
|
1577
|
+
panelClassName: W,
|
|
1578
|
+
className: Qt
|
|
1450
1579
|
}) {
|
|
1451
|
-
const [
|
|
1580
|
+
const [Qe, Ye] = P(
|
|
1452
1581
|
() => Object.fromEntries(
|
|
1453
1582
|
a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
|
|
1454
1583
|
)
|
|
1455
|
-
), [
|
|
1456
|
-
|
|
1457
|
-
),
|
|
1458
|
-
|
|
1459
|
-
}, [
|
|
1460
|
-
|
|
1584
|
+
), [Ze, et] = P(null), [Ie, tt] = P(null), [Yt, Zt] = P(
|
|
1585
|
+
A ?? null
|
|
1586
|
+
), w = F ? q ?? null : Yt, ea = (r) => {
|
|
1587
|
+
F ? F(r) : Zt(r);
|
|
1588
|
+
}, [te, ce] = P(0), [G, ta] = P(E), [U, Re] = P(/* @__PURE__ */ new Set()), [aa, ra] = P(/* @__PURE__ */ new Set()), na = (r) => {
|
|
1589
|
+
ra((d) => {
|
|
1461
1590
|
const p = new Set(d);
|
|
1462
1591
|
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1463
1592
|
});
|
|
1464
|
-
}, [
|
|
1465
|
-
const p = d ?
|
|
1466
|
-
!p ||
|
|
1467
|
-
const
|
|
1468
|
-
return
|
|
1593
|
+
}, [la, je] = P([]), at = a.map((r) => r.id), rt = new Map(a.map((r) => [r.id, r])), nt = Ze ? Ze.map((r) => rt.get(r)).filter((r) => !!r) : a, X = nt.filter((r) => !Qe[r.id]), lt = nt.filter((r) => Qe[r.id] && !r.required), ot = (r) => !!r.required, oa = (r) => rt.get(r), ia = (r, d) => {
|
|
1594
|
+
const p = d ? oa(d) : void 0;
|
|
1595
|
+
!p || ot(p) || r === d || et((S) => {
|
|
1596
|
+
const T = S ?? at;
|
|
1597
|
+
return qa(T, T.indexOf(r), T.indexOf(d));
|
|
1469
1598
|
});
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
},
|
|
1599
|
+
}, sa = (r) => {
|
|
1600
|
+
Ye((d) => ({ ...d, [r]: !1 })), et((d) => d && d.includes(r) ? d : [...d ?? at, r]);
|
|
1601
|
+
}, Ee = (u ?? []).filter((r) => la.includes(r.id)), da = (u ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ue = ge(() => {
|
|
1473
1602
|
let r = t;
|
|
1474
|
-
for (const p of
|
|
1475
|
-
p.value.length > 0 && (r = r.filter((
|
|
1476
|
-
if (!
|
|
1477
|
-
const d =
|
|
1478
|
-
return r.filter((p) =>
|
|
1479
|
-
}, [t,
|
|
1480
|
-
if (!
|
|
1481
|
-
const r = a.find((p) => p.id ===
|
|
1482
|
-
if (!(r != null && r.sortValue)) return
|
|
1483
|
-
const d =
|
|
1484
|
-
return [...
|
|
1485
|
-
const
|
|
1486
|
-
return
|
|
1603
|
+
for (const p of u ?? [])
|
|
1604
|
+
p.value.length > 0 && (r = r.filter((S) => p.match(S, p.value)));
|
|
1605
|
+
if (!m || !m.value.trim()) return r;
|
|
1606
|
+
const d = m.value.trim().toLowerCase();
|
|
1607
|
+
return r.filter((p) => m.keys(p).toLowerCase().includes(d));
|
|
1608
|
+
}, [t, m, u]), K = ge(() => {
|
|
1609
|
+
if (!w) return ue;
|
|
1610
|
+
const r = a.find((p) => p.id === w.id);
|
|
1611
|
+
if (!(r != null && r.sortValue)) return ue;
|
|
1612
|
+
const d = w.dir === "asc" ? 1 : -1;
|
|
1613
|
+
return [...ue].sort((p, S) => {
|
|
1614
|
+
const T = r.sortValue(p), C = r.sortValue(S);
|
|
1615
|
+
return T == null && C == null ? 0 : T == null ? 1 : C == null ? -1 : typeof T == "number" && typeof C == "number" ? (T - C) * d : String(T).localeCompare(String(C)) * d;
|
|
1487
1616
|
});
|
|
1488
|
-
}, [
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
}, [
|
|
1492
|
-
|
|
1493
|
-
}, [
|
|
1494
|
-
const
|
|
1617
|
+
}, [ue, w, a]), ae = Math.max(1, Math.ceil(K.length / G)), ca = !l && !i && K.length > 0 && (Te === "always" || K.length > G);
|
|
1618
|
+
V(() => {
|
|
1619
|
+
ce(0);
|
|
1620
|
+
}, [m == null ? void 0 : m.value, G, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, z, da]), V(() => {
|
|
1621
|
+
te > ae - 1 && ce(ae - 1);
|
|
1622
|
+
}, [te, ae]);
|
|
1623
|
+
const me = te * G, O = K.slice(me, me + G), ua = (r) => {
|
|
1495
1624
|
if (!r.sortable) return;
|
|
1496
|
-
const d =
|
|
1497
|
-
|
|
1625
|
+
const d = w;
|
|
1626
|
+
ea(
|
|
1498
1627
|
(d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
|
|
1499
1628
|
);
|
|
1500
|
-
},
|
|
1501
|
-
|
|
1629
|
+
}, it = O.length > 0 && O.every((r) => U.has(n(r))), ma = O.some((r) => U.has(n(r))), pa = t.filter((r) => U.has(n(r))), fa = () => {
|
|
1630
|
+
Re((r) => {
|
|
1502
1631
|
const d = new Set(r);
|
|
1503
|
-
return
|
|
1632
|
+
return it ? O.forEach((p) => d.delete(n(p))) : O.forEach((p) => d.add(n(p))), d;
|
|
1504
1633
|
});
|
|
1505
|
-
},
|
|
1506
|
-
|
|
1634
|
+
}, ba = (r) => {
|
|
1635
|
+
Re((d) => {
|
|
1507
1636
|
const p = new Set(d);
|
|
1508
1637
|
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1509
1638
|
});
|
|
1510
|
-
},
|
|
1639
|
+
}, ha = !!(m || u != null && u.length || x || f), ga = (r) => (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, st = B(null), dt = B(null), ct = B(null), ut = B(null), [J, _e] = P([]), xa = X.map((r) => r.id).join("\0"), pe = `${k ? "s" : "-"}|${I ? "a" : "-"}|${M ? "e" : "-"}|${xa}`, mt = B(pe), fe = ge(() => {
|
|
1511
1640
|
try {
|
|
1512
1641
|
return JSON.stringify(t);
|
|
1513
1642
|
} catch {
|
|
1514
1643
|
return `rows:${t.length}`;
|
|
1515
1644
|
}
|
|
1516
|
-
}, [t]),
|
|
1517
|
-
const r =
|
|
1645
|
+
}, [t]), pt = B(fe), ft = J.length > 0, Le = It(() => {
|
|
1646
|
+
const r = ct.current, d = ut.current;
|
|
1518
1647
|
r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
|
|
1519
1648
|
}, []);
|
|
1520
|
-
|
|
1521
|
-
const r =
|
|
1649
|
+
Ea(() => {
|
|
1650
|
+
const r = st.current;
|
|
1522
1651
|
if (!r) return;
|
|
1523
1652
|
const d = () => {
|
|
1524
|
-
var
|
|
1525
|
-
const
|
|
1526
|
-
if (!
|
|
1527
|
-
|
|
1653
|
+
var bt, ht, gt;
|
|
1654
|
+
const S = (ht = (bt = r.tBodies[0]) == null ? void 0 : bt.rows.item(0)) == null ? void 0 : ht.cells;
|
|
1655
|
+
if (!S || S.length === 0) {
|
|
1656
|
+
_e((H) => H.length === 0 ? H : []);
|
|
1528
1657
|
return;
|
|
1529
1658
|
}
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1532
|
-
(
|
|
1533
|
-
var
|
|
1659
|
+
const T = (gt = dt.current) == null ? void 0 : gt.querySelectorAll("thead th"), C = Array.from(
|
|
1660
|
+
S,
|
|
1661
|
+
(H, Ae) => {
|
|
1662
|
+
var be, xt;
|
|
1534
1663
|
return Math.max(
|
|
1535
|
-
|
|
1536
|
-
((
|
|
1664
|
+
H.getBoundingClientRect().width,
|
|
1665
|
+
((xt = (be = T == null ? void 0 : T.item(Ae)) == null ? void 0 : be.querySelector("[data-col-sizer]")) == null ? void 0 : xt.getBoundingClientRect().width) ?? 0
|
|
1537
1666
|
);
|
|
1538
1667
|
}
|
|
1539
1668
|
);
|
|
1540
|
-
|
|
1541
|
-
(
|
|
1669
|
+
_e(
|
|
1670
|
+
(H) => H.length === C.length && H.every((Ae, be) => Ae === C[be]) ? H : C
|
|
1542
1671
|
);
|
|
1543
1672
|
};
|
|
1544
|
-
if ((
|
|
1545
|
-
|
|
1673
|
+
if ((mt.current !== pe || pt.current !== fe) && (mt.current = pe, pt.current = fe, ft)) {
|
|
1674
|
+
_e([]);
|
|
1546
1675
|
return;
|
|
1547
1676
|
}
|
|
1548
|
-
if (d(),
|
|
1677
|
+
if (d(), Le(), typeof ResizeObserver > "u") return;
|
|
1549
1678
|
const p = new ResizeObserver(d);
|
|
1550
1679
|
return p.observe(r), () => p.disconnect();
|
|
1551
|
-
}, [
|
|
1552
|
-
const
|
|
1553
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1680
|
+
}, [pe, fe, ft, l, i, Le]);
|
|
1681
|
+
const re = J.reduce((r, d) => r + d, 0);
|
|
1682
|
+
return /* @__PURE__ */ s("div", { className: o("space-y-4", Qt), children: [
|
|
1554
1683
|
N && N.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: N.map((r) => {
|
|
1555
|
-
const d = r.id ===
|
|
1684
|
+
const d = r.id === z;
|
|
1556
1685
|
return /* @__PURE__ */ e(
|
|
1557
1686
|
"button",
|
|
1558
1687
|
{
|
|
1559
1688
|
type: "button",
|
|
1560
1689
|
role: "tab",
|
|
1561
1690
|
"aria-selected": d,
|
|
1562
|
-
onClick: () =>
|
|
1563
|
-
className:
|
|
1691
|
+
onClick: () => y == null ? void 0 : y(r.id),
|
|
1692
|
+
className: o(
|
|
1564
1693
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1565
1694
|
d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1566
1695
|
),
|
|
@@ -1569,39 +1698,39 @@ function Kr({
|
|
|
1569
1698
|
r.id
|
|
1570
1699
|
);
|
|
1571
1700
|
}) }),
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1701
|
+
ha && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1702
|
+
m && /* @__PURE__ */ e(
|
|
1703
|
+
ke,
|
|
1575
1704
|
{
|
|
1576
1705
|
type: "search",
|
|
1577
|
-
"aria-label":
|
|
1578
|
-
placeholder:
|
|
1579
|
-
value:
|
|
1580
|
-
onChange: (r) =>
|
|
1581
|
-
onClear: () =>
|
|
1582
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1706
|
+
"aria-label": m.placeholder ?? "Search",
|
|
1707
|
+
placeholder: m.placeholder ?? "Search...",
|
|
1708
|
+
value: m.value,
|
|
1709
|
+
onChange: (r) => m.onChange(r.target.value),
|
|
1710
|
+
onClear: () => m.onChange(""),
|
|
1711
|
+
leadingIcon: /* @__PURE__ */ e(Dt, {}),
|
|
1583
1712
|
containerClassName: "w-full sm:w-[280px]",
|
|
1584
1713
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1585
1714
|
}
|
|
1586
1715
|
),
|
|
1587
1716
|
x,
|
|
1588
|
-
|
|
1589
|
-
/* @__PURE__ */ e(
|
|
1590
|
-
|
|
1717
|
+
g && /* @__PURE__ */ s($e, { children: [
|
|
1718
|
+
/* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1719
|
+
R,
|
|
1591
1720
|
{
|
|
1592
1721
|
variant: "secondary",
|
|
1593
1722
|
size: "md",
|
|
1594
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1595
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1723
|
+
leadingIcon: /* @__PURE__ */ e(Da, {}),
|
|
1724
|
+
trailingIcon: /* @__PURE__ */ e(Ut, {}),
|
|
1596
1725
|
children: "Columns"
|
|
1597
1726
|
}
|
|
1598
1727
|
) }),
|
|
1599
|
-
/* @__PURE__ */ s(
|
|
1600
|
-
/* @__PURE__ */ e(
|
|
1601
|
-
|
|
1602
|
-
const d =
|
|
1728
|
+
/* @__PURE__ */ s(ve, { align: "end", className: "w-54", children: [
|
|
1729
|
+
/* @__PURE__ */ e(Ne, { className: "text-[13px]", children: "Active columns" }),
|
|
1730
|
+
X.map((r) => {
|
|
1731
|
+
const d = ot(r);
|
|
1603
1732
|
return /* @__PURE__ */ s(
|
|
1604
|
-
|
|
1733
|
+
le,
|
|
1605
1734
|
{
|
|
1606
1735
|
checked: !0,
|
|
1607
1736
|
draggable: !d,
|
|
@@ -1610,27 +1739,27 @@ function Kr({
|
|
|
1610
1739
|
p.preventDefault();
|
|
1611
1740
|
return;
|
|
1612
1741
|
}
|
|
1613
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id),
|
|
1742
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), tt(r.id);
|
|
1614
1743
|
},
|
|
1615
1744
|
onDragOver: (p) => {
|
|
1616
|
-
|
|
1745
|
+
Ie && (p.preventDefault(), ia(Ie, r.id));
|
|
1617
1746
|
},
|
|
1618
1747
|
onDrop: (p) => p.preventDefault(),
|
|
1619
|
-
onDragEnd: () =>
|
|
1748
|
+
onDragEnd: () => tt(null),
|
|
1620
1749
|
onCheckedChange: (p) => {
|
|
1621
|
-
!p && !d &&
|
|
1750
|
+
!p && !d && Ye((S) => ({ ...S, [r.id]: !0 }));
|
|
1622
1751
|
},
|
|
1623
1752
|
onSelect: (p) => p.preventDefault(),
|
|
1624
1753
|
className: "justify-between",
|
|
1625
1754
|
children: [
|
|
1626
1755
|
/* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
|
|
1627
|
-
d ? /* @__PURE__ */ e(
|
|
1628
|
-
|
|
1756
|
+
d ? /* @__PURE__ */ e(Ta, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
1757
|
+
Ma,
|
|
1629
1758
|
{
|
|
1630
1759
|
"aria-hidden": !0,
|
|
1631
|
-
className:
|
|
1760
|
+
className: o(
|
|
1632
1761
|
"size-3.5 shrink-0",
|
|
1633
|
-
|
|
1762
|
+
Ie === r.id ? "text-primary" : "text-subtle"
|
|
1634
1763
|
)
|
|
1635
1764
|
}
|
|
1636
1765
|
)
|
|
@@ -1639,14 +1768,14 @@ function Kr({
|
|
|
1639
1768
|
r.id
|
|
1640
1769
|
);
|
|
1641
1770
|
}),
|
|
1642
|
-
|
|
1643
|
-
/* @__PURE__ */ e(
|
|
1644
|
-
/* @__PURE__ */ e(
|
|
1645
|
-
|
|
1646
|
-
|
|
1771
|
+
lt.length > 0 ? /* @__PURE__ */ s(Ge, { children: [
|
|
1772
|
+
/* @__PURE__ */ e(He, {}),
|
|
1773
|
+
/* @__PURE__ */ e(Ne, { className: "text-[13px]", children: "Available columns" }),
|
|
1774
|
+
lt.map((r) => /* @__PURE__ */ e(
|
|
1775
|
+
le,
|
|
1647
1776
|
{
|
|
1648
1777
|
checked: !1,
|
|
1649
|
-
onCheckedChange: () =>
|
|
1778
|
+
onCheckedChange: () => sa(r.id),
|
|
1650
1779
|
onSelect: (d) => d.preventDefault(),
|
|
1651
1780
|
children: r.header
|
|
1652
1781
|
},
|
|
@@ -1655,21 +1784,21 @@ function Kr({
|
|
|
1655
1784
|
] }) : null
|
|
1656
1785
|
] })
|
|
1657
1786
|
] }),
|
|
1658
|
-
|
|
1659
|
-
/* @__PURE__ */ e(
|
|
1660
|
-
|
|
1787
|
+
u && u.length > 0 ? /* @__PURE__ */ s($e, { children: [
|
|
1788
|
+
/* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1789
|
+
R,
|
|
1661
1790
|
{
|
|
1662
1791
|
variant: "secondary",
|
|
1663
1792
|
size: "md",
|
|
1664
1793
|
iconOnly: !0,
|
|
1665
1794
|
"aria-label": "Add filter",
|
|
1666
|
-
children: /* @__PURE__ */ e(
|
|
1795
|
+
children: /* @__PURE__ */ e(vt, {})
|
|
1667
1796
|
}
|
|
1668
1797
|
) }),
|
|
1669
|
-
/* @__PURE__ */ e(
|
|
1670
|
-
|
|
1798
|
+
/* @__PURE__ */ e(ve, { align: "start", className: "w-54", children: u.map((r) => /* @__PURE__ */ e(
|
|
1799
|
+
we,
|
|
1671
1800
|
{
|
|
1672
|
-
onSelect: () =>
|
|
1801
|
+
onSelect: () => je(
|
|
1673
1802
|
(d) => d.includes(r.id) ? d : [...d, r.id]
|
|
1674
1803
|
),
|
|
1675
1804
|
children: r.label
|
|
@@ -1677,16 +1806,16 @@ function Kr({
|
|
|
1677
1806
|
r.id
|
|
1678
1807
|
)) })
|
|
1679
1808
|
] }) : null,
|
|
1680
|
-
|
|
1809
|
+
f ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: f }) : null
|
|
1681
1810
|
] }),
|
|
1682
|
-
|
|
1683
|
-
|
|
1811
|
+
Ee.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1812
|
+
Ee.map((r) => {
|
|
1684
1813
|
const d = () => {
|
|
1685
|
-
r.onChange([]),
|
|
1814
|
+
r.onChange([]), je((p) => p.filter((S) => S !== r.id));
|
|
1686
1815
|
};
|
|
1687
1816
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1688
1817
|
/* @__PURE__ */ e(
|
|
1689
|
-
|
|
1818
|
+
R,
|
|
1690
1819
|
{
|
|
1691
1820
|
variant: "secondary",
|
|
1692
1821
|
size: "md",
|
|
@@ -1694,39 +1823,39 @@ function Kr({
|
|
|
1694
1823
|
"aria-label": `Remove ${r.label} filter`,
|
|
1695
1824
|
className: "rounded-r-none",
|
|
1696
1825
|
onClick: d,
|
|
1697
|
-
children: /* @__PURE__ */ e(
|
|
1826
|
+
children: /* @__PURE__ */ e(ye, {})
|
|
1698
1827
|
}
|
|
1699
1828
|
),
|
|
1700
|
-
/* @__PURE__ */ s(
|
|
1701
|
-
/* @__PURE__ */ e(
|
|
1702
|
-
/* @__PURE__ */ e(
|
|
1829
|
+
/* @__PURE__ */ s($e, { children: [
|
|
1830
|
+
/* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ s(R, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1831
|
+
/* @__PURE__ */ e(vt, {}),
|
|
1703
1832
|
/* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
|
|
1704
1833
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1705
1834
|
/* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
|
|
1706
1835
|
/* @__PURE__ */ e(Y, { className: "text-muted" })
|
|
1707
1836
|
] }) }),
|
|
1708
|
-
/* @__PURE__ */ s(
|
|
1709
|
-
/* @__PURE__ */ s(
|
|
1837
|
+
/* @__PURE__ */ s(ve, { align: "start", className: "w-56", children: [
|
|
1838
|
+
/* @__PURE__ */ s(Ne, { className: "text-[13px]", children: [
|
|
1710
1839
|
"Filter by ",
|
|
1711
1840
|
r.label
|
|
1712
1841
|
] }),
|
|
1713
1842
|
r.options.map((p) => {
|
|
1714
|
-
const
|
|
1843
|
+
const S = r.value.includes(p.value);
|
|
1715
1844
|
return /* @__PURE__ */ e(
|
|
1716
|
-
|
|
1845
|
+
le,
|
|
1717
1846
|
{
|
|
1718
|
-
checked:
|
|
1847
|
+
checked: S,
|
|
1719
1848
|
onCheckedChange: () => r.onChange(
|
|
1720
|
-
|
|
1849
|
+
S ? r.value.filter((T) => T !== p.value) : [...r.value, p.value]
|
|
1721
1850
|
),
|
|
1722
|
-
onSelect: (
|
|
1851
|
+
onSelect: (T) => T.preventDefault(),
|
|
1723
1852
|
children: p.label
|
|
1724
1853
|
},
|
|
1725
1854
|
p.value
|
|
1726
1855
|
);
|
|
1727
1856
|
}),
|
|
1728
|
-
/* @__PURE__ */ e(
|
|
1729
|
-
/* @__PURE__ */ e(
|
|
1857
|
+
/* @__PURE__ */ e(He, {}),
|
|
1858
|
+
/* @__PURE__ */ e(we, { onSelect: d, children: "Clear filter" })
|
|
1730
1859
|
] })
|
|
1731
1860
|
] })
|
|
1732
1861
|
] }, r.id);
|
|
@@ -1736,8 +1865,8 @@ function Kr({
|
|
|
1736
1865
|
{
|
|
1737
1866
|
type: "button",
|
|
1738
1867
|
onClick: () => {
|
|
1739
|
-
for (const r of
|
|
1740
|
-
|
|
1868
|
+
for (const r of Ee) r.onChange([]);
|
|
1869
|
+
je([]);
|
|
1741
1870
|
},
|
|
1742
1871
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1743
1872
|
children: "Clear filters"
|
|
@@ -1745,18 +1874,18 @@ function Kr({
|
|
|
1745
1874
|
)
|
|
1746
1875
|
] }) : null,
|
|
1747
1876
|
D,
|
|
1748
|
-
|
|
1877
|
+
k && U.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
|
|
1749
1878
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1750
|
-
|
|
1879
|
+
U.size,
|
|
1751
1880
|
" selected"
|
|
1752
1881
|
] }),
|
|
1753
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (
|
|
1754
|
-
|
|
1882
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (b ?? []).map((r) => /* @__PURE__ */ s(
|
|
1883
|
+
R,
|
|
1755
1884
|
{
|
|
1756
1885
|
size: "md",
|
|
1757
1886
|
variant: r.variant ?? "outline",
|
|
1758
1887
|
disabled: r.disabled,
|
|
1759
|
-
onClick: () => void r.onRun(
|
|
1888
|
+
onClick: () => void r.onRun(pa),
|
|
1760
1889
|
children: [
|
|
1761
1890
|
r.icon,
|
|
1762
1891
|
r.label
|
|
@@ -1768,26 +1897,26 @@ function Kr({
|
|
|
1768
1897
|
"button",
|
|
1769
1898
|
{
|
|
1770
1899
|
type: "button",
|
|
1771
|
-
onClick: () =>
|
|
1900
|
+
onClick: () => Re(/* @__PURE__ */ new Set()),
|
|
1772
1901
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1773
1902
|
children: [
|
|
1774
|
-
/* @__PURE__ */ e(
|
|
1903
|
+
/* @__PURE__ */ e(ye, { className: "size-3.5" }),
|
|
1775
1904
|
"Clear"
|
|
1776
1905
|
]
|
|
1777
1906
|
}
|
|
1778
1907
|
)
|
|
1779
1908
|
] }),
|
|
1780
1909
|
/* @__PURE__ */ e(
|
|
1781
|
-
|
|
1910
|
+
ze,
|
|
1782
1911
|
{
|
|
1783
1912
|
scrollMode: "panel",
|
|
1784
|
-
headerContentRef:
|
|
1785
|
-
action:
|
|
1786
|
-
tone:
|
|
1787
|
-
title:
|
|
1788
|
-
description:
|
|
1789
|
-
headerClassName:
|
|
1790
|
-
panelClassName:
|
|
1913
|
+
headerContentRef: ct,
|
|
1914
|
+
action: ee,
|
|
1915
|
+
tone: Me,
|
|
1916
|
+
title: de,
|
|
1917
|
+
description: Pe,
|
|
1918
|
+
headerClassName: v,
|
|
1919
|
+
panelClassName: W,
|
|
1791
1920
|
header: (
|
|
1792
1921
|
// Visible header band. Presentational (aria-sort lives on the body's
|
|
1793
1922
|
// sr-only thead); widths are pinned to the measured body columns and
|
|
@@ -1795,53 +1924,53 @@ function Kr({
|
|
|
1795
1924
|
/* @__PURE__ */ s(
|
|
1796
1925
|
"table",
|
|
1797
1926
|
{
|
|
1798
|
-
ref:
|
|
1927
|
+
ref: dt,
|
|
1799
1928
|
role: "presentation",
|
|
1800
1929
|
className: "w-full table-fixed border-collapse",
|
|
1801
1930
|
style: {
|
|
1802
1931
|
// Fill the container when it fits; force totalWidth (and the
|
|
1803
1932
|
// shared scroller) only when the columns need more room.
|
|
1804
|
-
minWidth:
|
|
1805
|
-
visibility:
|
|
1933
|
+
minWidth: re > 0 ? re : void 0,
|
|
1934
|
+
visibility: re > 0 ? void 0 : "hidden"
|
|
1806
1935
|
},
|
|
1807
1936
|
children: [
|
|
1808
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1937
|
+
/* @__PURE__ */ e("colgroup", { children: J.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1809
1938
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1810
|
-
|
|
1811
|
-
|
|
1939
|
+
k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
|
|
1940
|
+
Fe,
|
|
1812
1941
|
{
|
|
1813
1942
|
"aria-label": "Select all rows",
|
|
1814
|
-
checked:
|
|
1815
|
-
onCheckedChange:
|
|
1943
|
+
checked: it ? !0 : ma ? "indeterminate" : !1,
|
|
1944
|
+
onCheckedChange: fa
|
|
1816
1945
|
}
|
|
1817
1946
|
) }),
|
|
1818
|
-
|
|
1819
|
-
|
|
1947
|
+
M && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
|
|
1948
|
+
X.map((r) => /* @__PURE__ */ e(
|
|
1820
1949
|
"th",
|
|
1821
1950
|
{
|
|
1822
|
-
className:
|
|
1951
|
+
className: o(kr, r.align === "right" && "text-right", r.className),
|
|
1823
1952
|
children: /* @__PURE__ */ e(
|
|
1824
1953
|
"span",
|
|
1825
1954
|
{
|
|
1826
1955
|
"data-col-sizer": !0,
|
|
1827
1956
|
className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
|
|
1828
1957
|
children: r.sortable ? /* @__PURE__ */ s(
|
|
1829
|
-
|
|
1958
|
+
R,
|
|
1830
1959
|
{
|
|
1831
1960
|
type: "button",
|
|
1832
1961
|
variant: "ghost",
|
|
1833
1962
|
size: "xs",
|
|
1834
1963
|
"aria-label": `Sort by ${r.header}`,
|
|
1835
|
-
onClick: () =>
|
|
1836
|
-
className:
|
|
1964
|
+
onClick: () => ua(r),
|
|
1965
|
+
className: o(
|
|
1837
1966
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1838
1967
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1839
1968
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1840
|
-
(
|
|
1969
|
+
(w == null ? void 0 : w.id) === r.id && "text-table-header-active"
|
|
1841
1970
|
),
|
|
1842
1971
|
children: [
|
|
1843
1972
|
r.header,
|
|
1844
|
-
(
|
|
1973
|
+
(w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? /* @__PURE__ */ e(Ia, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ra, { className: "size-3.5 opacity-50" })
|
|
1845
1974
|
]
|
|
1846
1975
|
}
|
|
1847
1976
|
) : r.header
|
|
@@ -1850,117 +1979,117 @@ function Kr({
|
|
|
1850
1979
|
},
|
|
1851
1980
|
r.id
|
|
1852
1981
|
)),
|
|
1853
|
-
|
|
1982
|
+
I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1854
1983
|
] }) })
|
|
1855
1984
|
]
|
|
1856
1985
|
}
|
|
1857
1986
|
)
|
|
1858
1987
|
),
|
|
1859
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1860
|
-
/* @__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(
|
|
1988
|
+
children: /* @__PURE__ */ e("div", { ref: ut, className: "overflow-x-auto", onScroll: Le, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1989
|
+
/* @__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(Pa, { weight: "duotone" }) }),
|
|
1861
1990
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1862
|
-
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children:
|
|
1863
|
-
|
|
1991
|
+
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
1992
|
+
i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
1864
1993
|
] }),
|
|
1865
|
-
|
|
1866
|
-
] }) :
|
|
1867
|
-
|
|
1994
|
+
i.action
|
|
1995
|
+
] }) : O.length === 0 ? /* @__PURE__ */ e(
|
|
1996
|
+
zr,
|
|
1868
1997
|
{
|
|
1869
|
-
icon:
|
|
1870
|
-
title: (
|
|
1871
|
-
description:
|
|
1872
|
-
action:
|
|
1998
|
+
icon: c == null ? void 0 : c.icon,
|
|
1999
|
+
title: (c == null ? void 0 : c.title) ?? "No results",
|
|
2000
|
+
description: c == null ? void 0 : c.description,
|
|
2001
|
+
action: c == null ? void 0 : c.action
|
|
1873
2002
|
}
|
|
1874
2003
|
) : /* @__PURE__ */ s(
|
|
1875
2004
|
"table",
|
|
1876
2005
|
{
|
|
1877
|
-
ref:
|
|
1878
|
-
className:
|
|
2006
|
+
ref: st,
|
|
2007
|
+
className: o(
|
|
1879
2008
|
"border-collapse text-left",
|
|
1880
2009
|
// Unmeasured: content-sized so intrinsic column widths can be
|
|
1881
2010
|
// measured (w-full would squeeze columns into the container).
|
|
1882
2011
|
// Measured: fill the container, pinned to the band's colgroup
|
|
1883
2012
|
// pixel widths; minWidth forces the shared scroller open only
|
|
1884
2013
|
// when the columns need more room than the container has.
|
|
1885
|
-
|
|
2014
|
+
J.length > 0 ? "w-full table-fixed" : "table-auto"
|
|
1886
2015
|
),
|
|
1887
|
-
style: { minWidth:
|
|
2016
|
+
style: { minWidth: re > 0 ? re : void 0 },
|
|
1888
2017
|
children: [
|
|
1889
|
-
|
|
2018
|
+
J.length > 0 && /* @__PURE__ */ e("colgroup", { children: J.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1890
2019
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
2020
|
+
k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
2021
|
+
M && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
|
|
2022
|
+
X.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ga(r), children: r.header }, r.id)),
|
|
2023
|
+
I && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1895
2024
|
] }) }),
|
|
1896
|
-
/* @__PURE__ */ e(Ja, { children:
|
|
1897
|
-
const d = n(r), p =
|
|
1898
|
-
return /* @__PURE__ */ s(
|
|
2025
|
+
/* @__PURE__ */ e(Ja, { children: O.map((r) => {
|
|
2026
|
+
const d = n(r), p = U.has(d), S = aa.has(d), T = X.length + (k ? 1 : 0) + (M ? 1 : 0) + (I ? 1 : 0);
|
|
2027
|
+
return /* @__PURE__ */ s(_a, { children: [
|
|
1899
2028
|
/* @__PURE__ */ s(
|
|
1900
|
-
|
|
2029
|
+
yt,
|
|
1901
2030
|
{
|
|
1902
2031
|
"data-state": p ? "selected" : void 0,
|
|
1903
|
-
onClick:
|
|
1904
|
-
className:
|
|
2032
|
+
onClick: L ? () => L(r) : void 0,
|
|
2033
|
+
className: L ? "cursor-pointer" : void 0,
|
|
1905
2034
|
children: [
|
|
1906
|
-
|
|
1907
|
-
|
|
2035
|
+
k && /* @__PURE__ */ e(ne, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2036
|
+
Fe,
|
|
1908
2037
|
{
|
|
1909
2038
|
"aria-label": "Select row",
|
|
1910
2039
|
checked: p,
|
|
1911
|
-
onCheckedChange: () =>
|
|
2040
|
+
onCheckedChange: () => ba(d)
|
|
1912
2041
|
}
|
|
1913
2042
|
) }),
|
|
1914
|
-
|
|
1915
|
-
|
|
2043
|
+
M && /* @__PURE__ */ e(ne, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2044
|
+
R,
|
|
1916
2045
|
{
|
|
1917
2046
|
type: "button",
|
|
1918
2047
|
variant: "ghost",
|
|
1919
2048
|
size: "icon",
|
|
1920
2049
|
className: "size-7",
|
|
1921
|
-
"aria-label":
|
|
1922
|
-
"aria-expanded":
|
|
1923
|
-
onClick: () =>
|
|
2050
|
+
"aria-label": S ? "Collapse row" : "Expand row",
|
|
2051
|
+
"aria-expanded": S,
|
|
2052
|
+
onClick: () => na(d),
|
|
1924
2053
|
children: /* @__PURE__ */ e(
|
|
1925
2054
|
Y,
|
|
1926
2055
|
{
|
|
1927
|
-
className:
|
|
2056
|
+
className: o(
|
|
1928
2057
|
"size-3.5 text-muted transition-transform motion-safe:duration-200",
|
|
1929
|
-
|
|
2058
|
+
S ? "" : "-rotate-90"
|
|
1930
2059
|
),
|
|
1931
2060
|
weight: "bold"
|
|
1932
2061
|
}
|
|
1933
2062
|
)
|
|
1934
2063
|
}
|
|
1935
2064
|
) }),
|
|
1936
|
-
|
|
1937
|
-
|
|
2065
|
+
X.map((C) => /* @__PURE__ */ e(
|
|
2066
|
+
ne,
|
|
1938
2067
|
{
|
|
1939
|
-
"data-numeric":
|
|
1940
|
-
className:
|
|
1941
|
-
children:
|
|
2068
|
+
"data-numeric": C.numeric ? "" : void 0,
|
|
2069
|
+
className: o(C.align === "right" && "text-right", C.className),
|
|
2070
|
+
children: C.cell(r)
|
|
1942
2071
|
},
|
|
1943
|
-
|
|
2072
|
+
C.id
|
|
1944
2073
|
)),
|
|
1945
|
-
|
|
1946
|
-
|
|
2074
|
+
I && /* @__PURE__ */ e(
|
|
2075
|
+
ne,
|
|
1947
2076
|
{
|
|
1948
2077
|
className: "w-44 px-4 text-right",
|
|
1949
|
-
onClick: (
|
|
1950
|
-
|
|
2078
|
+
onClick: (C) => {
|
|
2079
|
+
C.target.closest("button, a, input, [role='menuitem']") && C.stopPropagation();
|
|
1951
2080
|
},
|
|
1952
|
-
children:
|
|
2081
|
+
children: I(r)
|
|
1953
2082
|
}
|
|
1954
2083
|
)
|
|
1955
2084
|
]
|
|
1956
2085
|
}
|
|
1957
2086
|
),
|
|
1958
|
-
|
|
1959
|
-
|
|
2087
|
+
M && S ? /* @__PURE__ */ e(yt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
|
|
2088
|
+
ne,
|
|
1960
2089
|
{
|
|
1961
|
-
colSpan:
|
|
2090
|
+
colSpan: T,
|
|
1962
2091
|
className: "border-t border-line bg-elevated/60 px-(--table-pad-x) py-3 align-top text-[13px] text-muted",
|
|
1963
|
-
children:
|
|
2092
|
+
children: M(r)
|
|
1964
2093
|
}
|
|
1965
2094
|
) }) : null
|
|
1966
2095
|
] }, d);
|
|
@@ -1970,40 +2099,40 @@ function Kr({
|
|
|
1970
2099
|
) })
|
|
1971
2100
|
}
|
|
1972
2101
|
),
|
|
1973
|
-
|
|
2102
|
+
ca && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1974
2103
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1975
|
-
|
|
2104
|
+
me + 1,
|
|
1976
2105
|
"–",
|
|
1977
|
-
Math.min(
|
|
2106
|
+
Math.min(me + G, K.length),
|
|
1978
2107
|
" of ",
|
|
1979
|
-
|
|
2108
|
+
K.length
|
|
1980
2109
|
] }),
|
|
1981
2110
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1982
|
-
/* @__PURE__ */ s(
|
|
1983
|
-
/* @__PURE__ */ e(
|
|
1984
|
-
/* @__PURE__ */ e(
|
|
2111
|
+
/* @__PURE__ */ s(Jt, { value: String(G), onValueChange: (r) => ta(Number(r)), children: [
|
|
2112
|
+
/* @__PURE__ */ e(Ke, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Kt, {}) }),
|
|
2113
|
+
/* @__PURE__ */ e(Je, { children: De.map((r) => /* @__PURE__ */ e(Se, { value: String(r), children: r }, r)) })
|
|
1985
2114
|
] }),
|
|
1986
2115
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1987
2116
|
/* @__PURE__ */ e(
|
|
1988
|
-
|
|
2117
|
+
R,
|
|
1989
2118
|
{
|
|
1990
2119
|
variant: "secondary",
|
|
1991
2120
|
size: "icon",
|
|
1992
2121
|
"aria-label": "Previous page",
|
|
1993
|
-
disabled:
|
|
1994
|
-
onClick: () =>
|
|
1995
|
-
children: /* @__PURE__ */ e(
|
|
2122
|
+
disabled: te <= 0,
|
|
2123
|
+
onClick: () => ce((r) => Math.max(0, r - 1)),
|
|
2124
|
+
children: /* @__PURE__ */ e(ja, {})
|
|
1996
2125
|
}
|
|
1997
2126
|
),
|
|
1998
2127
|
/* @__PURE__ */ e(
|
|
1999
|
-
|
|
2128
|
+
R,
|
|
2000
2129
|
{
|
|
2001
2130
|
variant: "secondary",
|
|
2002
2131
|
size: "icon",
|
|
2003
2132
|
"aria-label": "Next page",
|
|
2004
|
-
disabled:
|
|
2005
|
-
onClick: () =>
|
|
2006
|
-
children: /* @__PURE__ */ e(
|
|
2133
|
+
disabled: te >= ae - 1,
|
|
2134
|
+
onClick: () => ce((r) => Math.min(ae - 1, r + 1)),
|
|
2135
|
+
children: /* @__PURE__ */ e(Tt, {})
|
|
2007
2136
|
}
|
|
2008
2137
|
)
|
|
2009
2138
|
] })
|
|
@@ -2011,8 +2140,8 @@ function Kr({
|
|
|
2011
2140
|
] })
|
|
2012
2141
|
] });
|
|
2013
2142
|
}
|
|
2014
|
-
function
|
|
2015
|
-
return /* @__PURE__ */ e(
|
|
2143
|
+
function Zr({ icon: t, title: a, description: n, action: l, className: i }) {
|
|
2144
|
+
return /* @__PURE__ */ e(ze, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
2016
2145
|
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,
|
|
2017
2146
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2018
2147
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
@@ -2021,66 +2150,66 @@ function Qr({ icon: t, title: a, description: n, action: l, className: o }) {
|
|
|
2021
2150
|
l
|
|
2022
2151
|
] }) });
|
|
2023
2152
|
}
|
|
2024
|
-
const
|
|
2153
|
+
const Dr = h(
|
|
2025
2154
|
({
|
|
2026
2155
|
className: t,
|
|
2027
2156
|
inputClassName: a,
|
|
2028
2157
|
selectClassName: n,
|
|
2029
2158
|
selectValue: l,
|
|
2030
|
-
onSelectChange:
|
|
2031
|
-
selectOptions:
|
|
2032
|
-
selectAriaLabel:
|
|
2033
|
-
selectPlaceholder:
|
|
2159
|
+
onSelectChange: i,
|
|
2160
|
+
selectOptions: c,
|
|
2161
|
+
selectAriaLabel: m,
|
|
2162
|
+
selectPlaceholder: u,
|
|
2034
2163
|
id: x,
|
|
2035
|
-
size:
|
|
2036
|
-
disabled:
|
|
2164
|
+
size: f,
|
|
2165
|
+
disabled: g,
|
|
2037
2166
|
...N
|
|
2038
|
-
},
|
|
2167
|
+
}, z) => /* @__PURE__ */ s("div", { className: o("flex w-full items-stretch", t), children: [
|
|
2039
2168
|
/* @__PURE__ */ e(
|
|
2040
|
-
|
|
2169
|
+
ke,
|
|
2041
2170
|
{
|
|
2042
2171
|
...N,
|
|
2043
|
-
ref:
|
|
2172
|
+
ref: z,
|
|
2044
2173
|
id: x,
|
|
2045
|
-
size:
|
|
2046
|
-
disabled:
|
|
2047
|
-
className:
|
|
2174
|
+
size: f,
|
|
2175
|
+
disabled: g,
|
|
2176
|
+
className: o(
|
|
2048
2177
|
"min-w-0 rounded-l-(--control-radius) rounded-r-none",
|
|
2049
2178
|
a
|
|
2050
2179
|
)
|
|
2051
2180
|
}
|
|
2052
2181
|
),
|
|
2053
2182
|
/* @__PURE__ */ s(
|
|
2054
|
-
|
|
2183
|
+
Jt,
|
|
2055
2184
|
{
|
|
2056
2185
|
value: l,
|
|
2057
|
-
onValueChange:
|
|
2058
|
-
disabled:
|
|
2186
|
+
onValueChange: i,
|
|
2187
|
+
disabled: g,
|
|
2059
2188
|
children: [
|
|
2060
2189
|
/* @__PURE__ */ e(
|
|
2061
|
-
|
|
2190
|
+
Ke,
|
|
2062
2191
|
{
|
|
2063
|
-
"aria-label":
|
|
2192
|
+
"aria-label": m,
|
|
2064
2193
|
variant: "ghost",
|
|
2065
|
-
className:
|
|
2194
|
+
className: o(
|
|
2066
2195
|
"min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
|
|
2067
2196
|
n
|
|
2068
2197
|
),
|
|
2069
|
-
children: /* @__PURE__ */ e(
|
|
2198
|
+
children: /* @__PURE__ */ e(Kt, { placeholder: u })
|
|
2070
2199
|
}
|
|
2071
2200
|
),
|
|
2072
|
-
/* @__PURE__ */ e(
|
|
2201
|
+
/* @__PURE__ */ e(Je, { children: c.map((y) => /* @__PURE__ */ e(Se, { value: y.value, children: y.label }, y.value)) })
|
|
2073
2202
|
]
|
|
2074
2203
|
}
|
|
2075
2204
|
)
|
|
2076
2205
|
] })
|
|
2077
2206
|
);
|
|
2078
|
-
|
|
2079
|
-
function
|
|
2207
|
+
Dr.displayName = "InputSelect";
|
|
2208
|
+
function en({ className: t, ...a }) {
|
|
2080
2209
|
return /* @__PURE__ */ e(
|
|
2081
2210
|
"kbd",
|
|
2082
2211
|
{
|
|
2083
|
-
className:
|
|
2212
|
+
className: o(
|
|
2084
2213
|
"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",
|
|
2085
2214
|
t
|
|
2086
2215
|
),
|
|
@@ -2088,43 +2217,43 @@ function Yr({ className: t, ...a }) {
|
|
|
2088
2217
|
}
|
|
2089
2218
|
);
|
|
2090
2219
|
}
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2220
|
+
const Tr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
2221
|
+
$a.Root,
|
|
2093
2222
|
{
|
|
2094
2223
|
ref: n,
|
|
2095
|
-
className:
|
|
2224
|
+
className: o(
|
|
2096
2225
|
"mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
2097
2226
|
t
|
|
2098
2227
|
),
|
|
2099
2228
|
...a
|
|
2100
2229
|
}
|
|
2101
2230
|
));
|
|
2102
|
-
|
|
2103
|
-
function
|
|
2231
|
+
Tr.displayName = "Label";
|
|
2232
|
+
function tn({
|
|
2104
2233
|
value: t,
|
|
2105
2234
|
onValueChange: a,
|
|
2106
2235
|
options: n,
|
|
2107
2236
|
size: l = "sm",
|
|
2108
|
-
className:
|
|
2109
|
-
...
|
|
2237
|
+
className: i,
|
|
2238
|
+
...c
|
|
2110
2239
|
}) {
|
|
2111
|
-
const
|
|
2240
|
+
const m = Ce();
|
|
2112
2241
|
return /* @__PURE__ */ e(
|
|
2113
2242
|
"div",
|
|
2114
2243
|
{
|
|
2115
2244
|
role: "radiogroup",
|
|
2116
|
-
"aria-label":
|
|
2117
|
-
className:
|
|
2245
|
+
"aria-label": c["aria-label"],
|
|
2246
|
+
className: o(
|
|
2118
2247
|
"inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
|
|
2119
2248
|
l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
|
|
2120
|
-
|
|
2249
|
+
i
|
|
2121
2250
|
),
|
|
2122
|
-
children: n.map((
|
|
2123
|
-
const x =
|
|
2251
|
+
children: n.map((u) => {
|
|
2252
|
+
const x = u.value === t;
|
|
2124
2253
|
return /* @__PURE__ */ s(
|
|
2125
2254
|
"label",
|
|
2126
2255
|
{
|
|
2127
|
-
className:
|
|
2256
|
+
className: o(
|
|
2128
2257
|
"inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
|
|
2129
2258
|
"has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
|
|
2130
2259
|
l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
|
|
@@ -2135,30 +2264,30 @@ function Zr({
|
|
|
2135
2264
|
"input",
|
|
2136
2265
|
{
|
|
2137
2266
|
type: "radio",
|
|
2138
|
-
name:
|
|
2139
|
-
value:
|
|
2267
|
+
name: m,
|
|
2268
|
+
value: u.value,
|
|
2140
2269
|
checked: x,
|
|
2141
|
-
onChange: () => a(
|
|
2270
|
+
onChange: () => a(u.value),
|
|
2142
2271
|
className: "sr-only"
|
|
2143
2272
|
}
|
|
2144
2273
|
),
|
|
2145
|
-
|
|
2146
|
-
|
|
2274
|
+
u.icon,
|
|
2275
|
+
u.label
|
|
2147
2276
|
]
|
|
2148
2277
|
},
|
|
2149
|
-
|
|
2278
|
+
u.value
|
|
2150
2279
|
);
|
|
2151
2280
|
})
|
|
2152
2281
|
}
|
|
2153
2282
|
);
|
|
2154
2283
|
}
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2284
|
+
const Mr = h(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
2285
|
+
Fa.Root,
|
|
2157
2286
|
{
|
|
2158
|
-
ref:
|
|
2287
|
+
ref: i,
|
|
2159
2288
|
decorative: n,
|
|
2160
2289
|
orientation: a,
|
|
2161
|
-
className:
|
|
2290
|
+
className: o(
|
|
2162
2291
|
"shrink-0 bg-line",
|
|
2163
2292
|
a === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
2164
2293
|
t
|
|
@@ -2166,22 +2295,22 @@ const Tr = f(({ className: t, orientation: a = "horizontal", decorative: n = !0,
|
|
|
2166
2295
|
...l
|
|
2167
2296
|
}
|
|
2168
2297
|
));
|
|
2169
|
-
|
|
2170
|
-
function
|
|
2298
|
+
Mr.displayName = "Separator";
|
|
2299
|
+
function an({ className: t, ...a }) {
|
|
2171
2300
|
return /* @__PURE__ */ e(
|
|
2172
2301
|
"div",
|
|
2173
2302
|
{
|
|
2174
|
-
className:
|
|
2303
|
+
className: o("animate-pulse rounded-md bg-elevated", t),
|
|
2175
2304
|
...a
|
|
2176
2305
|
}
|
|
2177
2306
|
);
|
|
2178
2307
|
}
|
|
2179
|
-
const
|
|
2180
|
-
|
|
2308
|
+
const rn = oe.Provider, nn = oe.Root, ln = oe.Trigger, Pr = h(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(oe.Portal, { children: /* @__PURE__ */ e(
|
|
2309
|
+
oe.Content,
|
|
2181
2310
|
{
|
|
2182
2311
|
ref: l,
|
|
2183
2312
|
sideOffset: a,
|
|
2184
|
-
className:
|
|
2313
|
+
className: o(
|
|
2185
2314
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
2186
2315
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
2187
2316
|
"data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
@@ -2194,83 +2323,84 @@ const tn = te.Provider, an = te.Root, rn = te.Trigger, Mr = f(({ className: t, s
|
|
|
2194
2323
|
...n
|
|
2195
2324
|
}
|
|
2196
2325
|
) }));
|
|
2197
|
-
|
|
2326
|
+
Pr.displayName = "TooltipContent";
|
|
2198
2327
|
export {
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2328
|
+
Br as AgentPrompt,
|
|
2329
|
+
jt as Avatar,
|
|
2330
|
+
_t as AvatarFallback,
|
|
2331
|
+
Et as AvatarImage,
|
|
2203
2332
|
Wa as Badge,
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2333
|
+
R as Button,
|
|
2334
|
+
$r as Callout,
|
|
2335
|
+
tr as Card,
|
|
2336
|
+
nr as CardContent,
|
|
2337
|
+
rr as CardDescription,
|
|
2338
|
+
lr as CardFooter,
|
|
2339
|
+
Lt as CardHeader,
|
|
2340
|
+
ar as CardTitle,
|
|
2341
|
+
Fe as Checkbox,
|
|
2342
|
+
Or as ChoiceDialog,
|
|
2214
2343
|
Vr as CodeBlock,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2344
|
+
Wr as Combobox,
|
|
2345
|
+
Yr as DataTable,
|
|
2346
|
+
Qr as DataTableIdentity,
|
|
2347
|
+
cr as Dialog,
|
|
2348
|
+
pr as DialogBody,
|
|
2349
|
+
qt as DialogCancel,
|
|
2220
2350
|
Gr as DialogClose,
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2351
|
+
Gt as DialogContent,
|
|
2352
|
+
hr as DialogDescription,
|
|
2353
|
+
br as DialogFooter,
|
|
2354
|
+
fr as DialogHeader,
|
|
2355
|
+
mr as DialogPanel,
|
|
2356
|
+
Ot as DialogTitle,
|
|
2357
|
+
Ft as DialogTrigger,
|
|
2358
|
+
$e as DropdownMenu,
|
|
2359
|
+
le as DropdownMenuCheckboxItem,
|
|
2360
|
+
Ut as DropdownMenuChevron,
|
|
2361
|
+
ve as DropdownMenuContent,
|
|
2362
|
+
Ur as DropdownMenuGroup,
|
|
2363
|
+
we as DropdownMenuItem,
|
|
2364
|
+
Ne as DropdownMenuLabel,
|
|
2365
|
+
Xr as DropdownMenuPortal,
|
|
2366
|
+
He as DropdownMenuSeparator,
|
|
2367
|
+
Kr as DropdownMenuSub,
|
|
2368
|
+
wr as DropdownMenuSubContent,
|
|
2369
|
+
Xt as DropdownMenuSubTrigger,
|
|
2370
|
+
xe as DropdownMenuTrigger,
|
|
2371
|
+
Zr as EmptyState,
|
|
2372
|
+
ke as Input,
|
|
2373
|
+
Dr as InputSelect,
|
|
2374
|
+
en as Kbd,
|
|
2375
|
+
Tr as Label,
|
|
2376
|
+
xr as RadioCard,
|
|
2377
|
+
gr as RadioGroup,
|
|
2378
|
+
tn as Segmented,
|
|
2379
|
+
Jt as Select,
|
|
2380
|
+
Je as SelectContent,
|
|
2381
|
+
Jr as SelectGroup,
|
|
2382
|
+
Se as SelectItem,
|
|
2383
|
+
Cr as SelectLabel,
|
|
2384
|
+
Ke as SelectTrigger,
|
|
2385
|
+
Kt as SelectValue,
|
|
2386
|
+
Mr as Separator,
|
|
2387
|
+
an as Skeleton,
|
|
2388
|
+
Rt as Spinner,
|
|
2389
|
+
Fr as Table,
|
|
2260
2390
|
Ja as TableBody,
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2391
|
+
ne as TableCell,
|
|
2392
|
+
Xa as TableContainer,
|
|
2393
|
+
zr as TableEmptyState,
|
|
2394
|
+
Hr as TableHead,
|
|
2395
|
+
qr as TableHeader,
|
|
2396
|
+
Ka as TablePanel,
|
|
2397
|
+
yt as TableRow,
|
|
2398
|
+
ze as TableSurface,
|
|
2399
|
+
nn as Tooltip,
|
|
2400
|
+
Pr as TooltipContent,
|
|
2401
|
+
rn as TooltipProvider,
|
|
2402
|
+
ln as TooltipTrigger,
|
|
2403
|
+
Oa as badgeVariants,
|
|
2404
|
+
Ha as buttonVariants
|
|
2275
2405
|
};
|
|
2276
2406
|
//# sourceMappingURL=index.js.map
|