@aivex/ui 1.2.0-dev.42 → 1.2.0-dev.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-BrPqDGyO.js → Button-CH_7RCR4.js} +244 -194
- package/dist/Button-CH_7RCR4.js.map +1 -0
- package/dist/Button-D6MqxX_7.cjs +2 -0
- package/dist/Button-D6MqxX_7.cjs.map +1 -0
- package/dist/{IconButton-CK4en7H6.js → IconButton-7v0vHj6O.js} +2 -2
- package/dist/{IconButton-CK4en7H6.js.map → IconButton-7v0vHj6O.js.map} +1 -1
- package/dist/{IconButton-DBlsEy3m.cjs → IconButton-DwhPDE1m.cjs} +2 -2
- package/dist/{IconButton-DBlsEy3m.cjs.map → IconButton-DwhPDE1m.cjs.map} +1 -1
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +2 -2
- package/dist/components/DataGrid/DataGrid.d.ts +8 -3
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +10 -2
- package/dist/components/DataGrid/index.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +628 -625
- package/dist/index.js.map +1 -1
- package/dist/{keyboard-BMCakKCv.js → keyboard-CnteNNEc.js} +2 -2
- package/dist/{keyboard-BMCakKCv.js.map → keyboard-CnteNNEc.js.map} +1 -1
- package/dist/{keyboard-DCewgvMV.cjs → keyboard-GVlhOfI6.cjs} +2 -2
- package/dist/{keyboard-DCewgvMV.cjs.map → keyboard-GVlhOfI6.cjs.map} +1 -1
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.js +88 -88
- package/dist/styles.css +1 -1
- package/dist/utils.cjs +1 -1
- package/package.json +1 -1
- package/dist/Button-BrPqDGyO.js.map +0 -1
- package/dist/Button-EEErevS-.cjs +0 -2
- package/dist/Button-EEErevS-.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
import { cn as e } from "./utils.js";
|
|
4
|
-
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-
|
|
5
|
-
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as
|
|
6
|
-
import { a as
|
|
4
|
+
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-7v0vHj6O.js";
|
|
5
|
+
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as M, Ei as ee, En as N, Er as te, Et as ne, F as P, Fi as F, Fn as re, Fr as ie, Ft as ae, G as oe, Gi as se, Gn as ce, Gr as le, Gt as ue, H as de, Hi as fe, Hn as pe, Hr as me, Ht as he, I, Ii as ge, In as _e, Ir as ve, It as ye, J as be, Ji as xe, Jn as Se, Jr as Ce, Jt as we, K as Te, Ki as Ee, Kn as De, Kr as Oe, Kt as ke, L as Ae, Li as je, Ln as Me, Lr as Ne, Lt as Pe, M as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oi as Ke, On as qe, Or as Je, Ot as Ye, P as Xe, Pi as Ze, Pn as Qe, Pr as $e, Pt as et, Q as tt, Qi as nt, Qn as rt, Qr as it, Qt as at, R as ot, Ri as st, Rn as ct, Rr as lt, Rt as ut, S as dt, Si as ft, Sn as pt, Sr as mt, St as ht, T as gt, Ti as _t, Tn as vt, Tr as yt, Tt as bt, U as xt, Ui as St, Un as Ct, Ur as wt, Ut as Tt, V as Et, Vi as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wi as Mt, Wn as Nt, Wr as Pt, Wt as Ft, X as It, Xi as Lt, Xn as Rt, Xr as zt, Xt as Bt, Y as Vt, Yi as Ht, Yn as Ut, Yr as Wt, Yt as Gt, Z as Kt, Zi as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _i as Qt, _n as $t, _r as en, _t as tn, a as nn, aa as rn, ai as an, an as on, ar as sn, at as cn, b as ln, bi as un, bn as dn, br as fn, bt as pn, c as mn, ca as hn, ci as gn, cn as _n, cr as vn, ct as yn, d as bn, da as xn, di as Sn, dn as Cn, dr as wn, dt as Tn, ea as En, ei as Dn, en as On, er as kn, et as An, f as jn, fa as Mn, fi as Nn, fn as Pn, fr as Fn, ft as In, g as Ln, ga as L, gi as Rn, gn as zn, gr as Bn, gt as Vn, h as Hn, ha as Un, hi as Wn, hn as Gn, hr as Kn, ht as qn, i as Jn, ia as Yn, ii as Xn, in as Zn, ir as Qn, it as $n, j as er, ji as tr, jn as nr, jr as rr, jt as ir, k as ar, ki as or, kn as sr, kr as cr, kt as lr, l as ur, la as dr, li as fr, ln as pr, lr as mr, lt as hr, m as gr, ma as _r, mi as vr, mn as yr, mr as br, mt as xr, n as Sr, na as Cr, ni as wr, nn as Tr, nr as Er, nt as Dr, o as Or, oa as kr, oi as Ar, on as jr, or as Mr, ot as Nr, p as Pr, pa as Fr, pi as Ir, pn as Lr, pr as Rr, pt as zr, q as Br, qi as Vr, qn as Hr, qr as Ur, qt as Wr, r as Gr, ra as Kr, ri as qr, rn as Jr, rr as Yr, rt as Xr, s as Zr, sa as Qr, si as $r, sn as ei, sr as ti, st as ni, t as R, ta as ri, ti as ii, tn as ai, tr as oi, tt as si, u as ci, ua as li, ui, un as di, ur as fi, ut as pi, v as mi, vi as hi, vn as gi, vr as _i, vt as vi, w as yi, wi as bi, wn as xi, wr as Si, wt as Ci, x as wi, xi as Ti, xn as Ei, xr as Di, xt as z, y as Oi, yi as ki, yn as Ai, yr as ji, yt as Mi, z as Ni, zi as Pi, zn as Fi, zr as Ii, zt as Li } from "./Button-CH_7RCR4.js";
|
|
6
|
+
import { a as Ri, c as zi, i as Bi, n as Vi, o as Hi, r as Ui, s as B } from "./keyboard-CnteNNEc.js";
|
|
7
7
|
import { cva as V } from "class-variance-authority";
|
|
8
|
-
import { Fragment as
|
|
8
|
+
import { Fragment as Wi, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
9
9
|
import { Slot as W } from "@radix-ui/react-slot";
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import * as
|
|
12
|
-
import { flexRender as
|
|
13
|
-
import { DndContext as
|
|
14
|
-
import { restrictToFirstScrollableAncestor as
|
|
15
|
-
import { SortableContext as
|
|
16
|
-
import { CSS as
|
|
17
|
-
import { createPortal as
|
|
18
|
-
import * as
|
|
19
|
-
import { useVirtualizer as
|
|
10
|
+
import { Fragment as Gi, cloneElement as Ki, createContext as qi, isValidElement as Ji, memo as Yi, useCallback as G, useContext as Xi, useEffect as K, useId as Zi, useMemo as Qi, useRef as q, useState as J } from "react";
|
|
11
|
+
import * as Y from "@radix-ui/react-popover";
|
|
12
|
+
import { flexRender as $i, getCoreRowModel as ea, getCoreRowModel as ta, getExpandedRowModel as na, getFacetedMinMaxValues as ra, getFacetedRowModel as ia, getFacetedUniqueValues as aa, getFilteredRowModel as oa, getGroupedRowModel as sa, getPaginationRowModel as ca, getSortedRowModel as la, useReactTable as ua } from "@tanstack/react-table";
|
|
13
|
+
import { DndContext as da, DragOverlay as fa, KeyboardSensor as pa, PointerSensor as ma, closestCenter as ha, useSensor as ga, useSensors as _a } from "@dnd-kit/core";
|
|
14
|
+
import { restrictToFirstScrollableAncestor as va, restrictToVerticalAxis as ya } from "@dnd-kit/modifiers";
|
|
15
|
+
import { SortableContext as ba, arrayMove as xa, sortableKeyboardCoordinates as Sa, useSortable as Ca, verticalListSortingStrategy as wa } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as Ta } from "@dnd-kit/utilities";
|
|
17
|
+
import { createPortal as Ea } from "react-dom";
|
|
18
|
+
import * as Da from "@radix-ui/react-scroll-area";
|
|
19
|
+
import { useVirtualizer as Oa } from "@tanstack/react-virtual";
|
|
20
20
|
import * as X from "@radix-ui/react-alert-dialog";
|
|
21
21
|
import * as Z from "@radix-ui/react-dialog";
|
|
22
22
|
import * as Q from "@radix-ui/react-select";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import { useComposedRefs as
|
|
26
|
-
import { Toaster as
|
|
23
|
+
import * as ka from "@radix-ui/react-toggle-group";
|
|
24
|
+
import * as Aa from "@radix-ui/react-tabs";
|
|
25
|
+
import { useComposedRefs as ja } from "@radix-ui/react-compose-refs";
|
|
26
|
+
import { Toaster as Ma, toast as Na } from "sonner";
|
|
27
27
|
//#region src/components/Badge/Badge.tsx
|
|
28
|
-
var
|
|
28
|
+
var Pa = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-[2px]", {
|
|
29
29
|
variants: {
|
|
30
30
|
shape: {
|
|
31
31
|
rect: "aivex:rounded-xs",
|
|
@@ -194,11 +194,11 @@ var Ma = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-
|
|
|
194
194
|
size: "sm",
|
|
195
195
|
color: "gray"
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
198
|
-
function
|
|
197
|
+
}), Fa = "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center";
|
|
198
|
+
function Ia({ className: t, variant: n = "filled", rounded: r = !1, size: i, color: a, startContent: o, endContent: s, children: c, ref: l, ...u }) {
|
|
199
199
|
return /* @__PURE__ */ U("span", {
|
|
200
200
|
ref: l,
|
|
201
|
-
className: e(
|
|
201
|
+
className: e(Pa({
|
|
202
202
|
shape: r ? "pill" : "rect",
|
|
203
203
|
treatment: n,
|
|
204
204
|
size: i,
|
|
@@ -207,7 +207,7 @@ function Pa({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
207
207
|
...u,
|
|
208
208
|
children: [
|
|
209
209
|
o && /* @__PURE__ */ H("span", {
|
|
210
|
-
className:
|
|
210
|
+
className: Fa,
|
|
211
211
|
children: o
|
|
212
212
|
}),
|
|
213
213
|
i === "md" ? /* @__PURE__ */ H("span", {
|
|
@@ -215,13 +215,13 @@ function Pa({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
215
215
|
children: c
|
|
216
216
|
}) : c,
|
|
217
217
|
s && /* @__PURE__ */ H("span", {
|
|
218
|
-
className:
|
|
218
|
+
className: Fa,
|
|
219
219
|
children: s
|
|
220
220
|
})
|
|
221
221
|
]
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var La = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
225
225
|
variants: {
|
|
226
226
|
type: {
|
|
227
227
|
essential: "aivex:bg-icon-brand",
|
|
@@ -238,10 +238,10 @@ var Fa = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
|
238
238
|
size: "md"
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
function
|
|
241
|
+
function Ra({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
242
242
|
return /* @__PURE__ */ H("span", {
|
|
243
243
|
ref: i,
|
|
244
|
-
className: e(
|
|
244
|
+
className: e(La({
|
|
245
245
|
type: n,
|
|
246
246
|
size: r
|
|
247
247
|
}), t),
|
|
@@ -250,7 +250,7 @@ function Ia({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/components/BreadCrumb/BreadCrumb.tsx
|
|
253
|
-
function
|
|
253
|
+
function za({ item: e, isCurrent: t }) {
|
|
254
254
|
if (t) return /* @__PURE__ */ H("span", {
|
|
255
255
|
"aria-current": "page",
|
|
256
256
|
className: "aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-medium aivex:text-text-primary aivex:select-none",
|
|
@@ -265,15 +265,15 @@ function La({ item: e, isCurrent: t }) {
|
|
|
265
265
|
children: [/* @__PURE__ */ H(L, { variant: "default" }), e.label]
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Ba() {
|
|
269
269
|
return /* @__PURE__ */ H("span", {
|
|
270
270
|
"aria-hidden": "true",
|
|
271
271
|
className: "aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0",
|
|
272
272
|
children: "/"
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ U(
|
|
275
|
+
function Va({ items: e }) {
|
|
276
|
+
return /* @__PURE__ */ U(zi, { children: [/* @__PURE__ */ H(zi.Trigger, {
|
|
277
277
|
asChild: !0,
|
|
278
278
|
children: /* @__PURE__ */ U("button", {
|
|
279
279
|
type: "button",
|
|
@@ -281,12 +281,12 @@ function za({ items: e }) {
|
|
|
281
281
|
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors",
|
|
282
282
|
children: [/* @__PURE__ */ H(L, { variant: "default" }), "···"]
|
|
283
283
|
})
|
|
284
|
-
}), /* @__PURE__ */ H(
|
|
284
|
+
}), /* @__PURE__ */ H(zi.Content, {
|
|
285
285
|
side: "bottom",
|
|
286
286
|
align: "start",
|
|
287
287
|
children: e.map((e, t) => {
|
|
288
288
|
let n = e.as ?? (e.href ? "a" : "button"), r = n === "button" ? { type: "button" } : {};
|
|
289
|
-
return /* @__PURE__ */ H(
|
|
289
|
+
return /* @__PURE__ */ H(zi.Item, {
|
|
290
290
|
asChild: !0,
|
|
291
291
|
children: /* @__PURE__ */ U(n, {
|
|
292
292
|
href: e.href,
|
|
@@ -301,7 +301,7 @@ function za({ items: e }) {
|
|
|
301
301
|
})
|
|
302
302
|
})] });
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Ha({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
305
305
|
let o = r !== void 0 && n.length > r, s = n[0], c = n[n.length - 1], l = o ? n.slice(1, -1) : [], u = n.length - 1;
|
|
306
306
|
return /* @__PURE__ */ H("nav", {
|
|
307
307
|
ref: i,
|
|
@@ -310,25 +310,25 @@ function Ba({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
310
310
|
...a,
|
|
311
311
|
children: /* @__PURE__ */ H("ol", {
|
|
312
312
|
className: "aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs",
|
|
313
|
-
children: o ? /* @__PURE__ */ U(
|
|
313
|
+
children: o ? /* @__PURE__ */ U(Wi, { children: [
|
|
314
314
|
/* @__PURE__ */ H("li", {
|
|
315
315
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
316
|
-
children: /* @__PURE__ */ H(
|
|
316
|
+
children: /* @__PURE__ */ H(za, { item: s })
|
|
317
317
|
}),
|
|
318
318
|
/* @__PURE__ */ U("li", {
|
|
319
319
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
320
|
-
children: [/* @__PURE__ */ H(
|
|
320
|
+
children: [/* @__PURE__ */ H(Ba, {}), /* @__PURE__ */ H(Va, { items: l })]
|
|
321
321
|
}),
|
|
322
322
|
/* @__PURE__ */ U("li", {
|
|
323
323
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
324
|
-
children: [/* @__PURE__ */ H(
|
|
324
|
+
children: [/* @__PURE__ */ H(Ba, {}), /* @__PURE__ */ H(za, {
|
|
325
325
|
item: c,
|
|
326
326
|
isCurrent: !0
|
|
327
327
|
})]
|
|
328
328
|
})
|
|
329
329
|
] }) : n.map((e, t) => /* @__PURE__ */ U("li", {
|
|
330
330
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
331
|
-
children: [t > 0 && /* @__PURE__ */ H(
|
|
331
|
+
children: [t > 0 && /* @__PURE__ */ H(Ba, {}), /* @__PURE__ */ H(za, {
|
|
332
332
|
item: e,
|
|
333
333
|
isCurrent: t === u
|
|
334
334
|
})]
|
|
@@ -338,26 +338,26 @@ function Ba({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/components/Calendar/date.ts
|
|
341
|
-
function
|
|
341
|
+
function Ua(e) {
|
|
342
342
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Wa(e, t) {
|
|
345
345
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function Ga(e, t) {
|
|
348
|
+
return Ua(e).getTime() < Ua(t).getTime();
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function Ka(e, t) {
|
|
351
|
+
return Ua(e).getTime() > Ua(t).getTime();
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function qa(e) {
|
|
354
354
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Ja(e, t) {
|
|
357
357
|
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let n =
|
|
359
|
+
function Ya(e, t = 0) {
|
|
360
|
+
let n = qa(e), r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
|
|
361
361
|
for (let e = 0; e < (n.getDay() - t + 7) % 7; e++) i.push(null);
|
|
362
362
|
for (let t = 1; t <= r; t++) i.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
363
363
|
for (; i.length < 42;) i.push(null);
|
|
@@ -367,7 +367,7 @@ function qa(e, t = 0) {
|
|
|
367
367
|
}
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/components/Calendar/Calendar.tsx
|
|
370
|
-
var
|
|
370
|
+
var Xa = [
|
|
371
371
|
"SUNDAY",
|
|
372
372
|
"MONDAY",
|
|
373
373
|
"TUESDAY",
|
|
@@ -376,8 +376,8 @@ var Ja = [
|
|
|
376
376
|
"FRIDAY",
|
|
377
377
|
"SATURDAY"
|
|
378
378
|
];
|
|
379
|
-
function
|
|
380
|
-
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } =
|
|
379
|
+
function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r, nextMonthLabel: i, month: a, selected: o, rangeStart: s, rangeEnd: c, onSelectDay: l, markedDates: u, minDate: d, maxDate: f, disabledDate: p, onPrevMonth: m, onNextMonth: h, weekdayLabels: g, formatMonthTitle: _, className: v }) {
|
|
380
|
+
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } = Qi(() => ({
|
|
381
381
|
monthFormatter: new Intl.DateTimeFormat(t, {
|
|
382
382
|
calendar: "gregory",
|
|
383
383
|
year: "numeric",
|
|
@@ -385,17 +385,17 @@ function Ya({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
385
385
|
}),
|
|
386
386
|
weekdayFormatter: new Intl.DateTimeFormat(t, { weekday: "short" }),
|
|
387
387
|
dayFormatter: new Intl.NumberFormat(t, { useGrouping: !1 })
|
|
388
|
-
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w =
|
|
388
|
+
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w = Ya(a, C), T = [...Xa.slice(C), ...Xa.slice(0, C)], E = s ?? o ?? null, D = c ?? o ?? null, O = !!(E && D && !Wa(E, D)), k = (e) => d && Ga(e, d) || f && Ka(e, f) ? !0 : p ? p(e) : !1, A = (e) => u?.some((t) => Wa(t, e)) ?? !1;
|
|
389
389
|
return /* @__PURE__ */ U("div", {
|
|
390
390
|
className: e("aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg", v),
|
|
391
391
|
children: [/* @__PURE__ */ U("div", {
|
|
392
392
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-md",
|
|
393
393
|
children: [
|
|
394
|
-
/* @__PURE__ */ H(
|
|
394
|
+
/* @__PURE__ */ H(Qa, { children: m && /* @__PURE__ */ H(R, {
|
|
395
395
|
variant: "outline",
|
|
396
396
|
color: "secondary",
|
|
397
397
|
size: "icon-md",
|
|
398
|
-
"aria-label": r ?? y.format(
|
|
398
|
+
"aria-label": r ?? y.format(Ja(a, -1)),
|
|
399
399
|
onClick: m,
|
|
400
400
|
children: /* @__PURE__ */ H(Ft, { size: 20 })
|
|
401
401
|
}) }),
|
|
@@ -403,11 +403,11 @@ function Ya({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
403
403
|
className: "aivex:flex-1 aivex:text-center aivex:text-heading-sm aivex:text-text-primary aivex:select-none",
|
|
404
404
|
children: S
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */ H(
|
|
406
|
+
/* @__PURE__ */ H(Qa, { children: h && /* @__PURE__ */ H(R, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
color: "secondary",
|
|
409
409
|
size: "icon-md",
|
|
410
|
-
"aria-label": i ?? y.format(
|
|
410
|
+
"aria-label": i ?? y.format(Ja(a, 1)),
|
|
411
411
|
onClick: h,
|
|
412
412
|
children: /* @__PURE__ */ H(ue, { size: 20 })
|
|
413
413
|
}) })
|
|
@@ -418,13 +418,13 @@ function Ya({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
418
418
|
className: "aivex:flex",
|
|
419
419
|
children: T.map((t) => /* @__PURE__ */ H("span", {
|
|
420
420
|
className: e("aivex:flex aivex:size-10 aivex:items-center aivex:justify-center aivex:text-label-lg aivex:select-none", t === "SUNDAY" ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
421
|
-
children: g?.[t] ?? b.format(new Date(2023, 0, 1 +
|
|
421
|
+
children: g?.[t] ?? b.format(new Date(2023, 0, 1 + Xa.indexOf(t)))
|
|
422
422
|
}, t))
|
|
423
423
|
}), w.map((t, n) => /* @__PURE__ */ H("div", {
|
|
424
424
|
className: "aivex:flex",
|
|
425
425
|
children: t.map((t, n) => {
|
|
426
426
|
if (!t) return /* @__PURE__ */ H("span", { className: "aivex:size-10" }, n);
|
|
427
|
-
let r = k(t), i = !!(E &&
|
|
427
|
+
let r = k(t), i = !!(E && Wa(t, E)), a = !!(D && Wa(t, D)), o = i || a, s = O && E && D && !Ga(t, E) && !Ka(t, D), c = t.getDay() === 0;
|
|
428
428
|
return /* @__PURE__ */ U("button", {
|
|
429
429
|
type: "button",
|
|
430
430
|
disabled: r,
|
|
@@ -450,7 +450,7 @@ function Ya({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
450
450
|
})]
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Qa({ children: e }) {
|
|
454
454
|
return /* @__PURE__ */ H("span", {
|
|
455
455
|
className: "aivex:flex aivex:size-8 aivex:shrink-0",
|
|
456
456
|
children: e
|
|
@@ -458,7 +458,7 @@ function Xa({ children: e }) {
|
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/components/Card/Card.tsx
|
|
461
|
-
function
|
|
461
|
+
function $a({ className: t, interactive: n, selected: r, disabled: i = !1, asChild: a = !1, children: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, "aria-disabled": f, ...p }) {
|
|
462
462
|
return /* @__PURE__ */ H(a ? W : "div", {
|
|
463
463
|
ref: s,
|
|
464
464
|
className: e("aivex:bg-bg-primary aivex:rounded-xl aivex:p-xl aivex:border aivex:border-border-subtle aivex:transition-colors", t, n && !i && "aivex:cursor-pointer aivex:hover:border-border-strong aivex:active:border-border-strong aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", n && !i && !r && "aivex:active:bg-bg-tertiary", r && "aivex:border-border-brand aivex:bg-bg-brand-subtle aivex:hover:border-border-brand", i && "aivex:cursor-not-allowed aivex:opacity-disable"),
|
|
@@ -474,29 +474,29 @@ function Za({ className: t, interactive: n, selected: r, disabled: i = !1, asChi
|
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
477
|
-
var
|
|
477
|
+
var eo = V("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer", {
|
|
478
478
|
variants: { size: {
|
|
479
479
|
sm: "aivex:w-4 aivex:h-4",
|
|
480
480
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
481
481
|
} },
|
|
482
482
|
defaultVariants: { size: "md" }
|
|
483
|
-
}),
|
|
483
|
+
}), to = {
|
|
484
484
|
sm: "aivex:w-5 aivex:h-5",
|
|
485
485
|
md: "aivex:w-6 aivex:h-6"
|
|
486
|
-
},
|
|
486
|
+
}, no = {
|
|
487
487
|
sm: "aivex:h-5",
|
|
488
488
|
md: "aivex:h-6"
|
|
489
489
|
};
|
|
490
|
-
function
|
|
491
|
-
let f =
|
|
490
|
+
function ro({ className: t, label: n, size: r = "md", indeterminate: i = !1, disabled: a, checked: o, defaultChecked: s, onChange: c, id: l, ref: u, ...d }) {
|
|
491
|
+
let f = q(null), p = o !== void 0, [m, h] = J(!!s), g = typeof u == "object" && u ? u : f;
|
|
492
492
|
K(() => {
|
|
493
493
|
g && "current" in g && g.current && (g.current.indeterminate = i);
|
|
494
494
|
}, [i, g]);
|
|
495
|
-
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S =
|
|
495
|
+
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S = Zi(), C = l ?? S;
|
|
496
496
|
return /* @__PURE__ */ U("span", {
|
|
497
497
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", a && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
498
498
|
children: [/* @__PURE__ */ U("span", {
|
|
499
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
499
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", to[y]),
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
502
502
|
/* @__PURE__ */ H("input", {
|
|
@@ -508,25 +508,25 @@ function to({ className: t, label: n, size: r = "md", indeterminate: i = !1, dis
|
|
|
508
508
|
onChange: (e) => {
|
|
509
509
|
p || h(e.target.checked), c?.(e);
|
|
510
510
|
},
|
|
511
|
-
className: e(
|
|
511
|
+
className: e(eo({ size: y }), x && "aivex:border-border-danger", v && "aivex:border-transparent aivex:bg-bg-brand", t),
|
|
512
512
|
...d
|
|
513
513
|
}),
|
|
514
514
|
v && /* @__PURE__ */ H("span", {
|
|
515
515
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
516
|
-
children: H(i ?
|
|
516
|
+
children: H(i ? zr : In, { size: y })
|
|
517
517
|
})
|
|
518
518
|
]
|
|
519
519
|
}), n && /* @__PURE__ */ H("label", {
|
|
520
520
|
htmlFor: C,
|
|
521
|
-
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed",
|
|
521
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed", no[y]),
|
|
522
522
|
children: n
|
|
523
523
|
})]
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/Checkbox/ChipsCheckbox.tsx
|
|
528
|
-
function
|
|
529
|
-
let u = r !== void 0, [d, f] =
|
|
528
|
+
function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange: a, onClick: o, id: s, ref: c, ...l }) {
|
|
529
|
+
let u = r !== void 0, [d, f] = J(!!i), p = u ? !!r : d;
|
|
530
530
|
return /* @__PURE__ */ U("label", {
|
|
531
531
|
onClick: o,
|
|
532
532
|
className: e("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors", p ? "aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle" : "aivex:bg-bg-tertiary aivex:border-border-default", n && "aivex:opacity-disable aivex:pointer-events-none", t),
|
|
@@ -557,7 +557,7 @@ function no({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
557
557
|
}
|
|
558
558
|
//#endregion
|
|
559
559
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
560
|
-
var
|
|
560
|
+
var ao = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:border aivex:transition-colors aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:pointer-events-none aivex:disabled:opacity-disable", {
|
|
561
561
|
variants: {
|
|
562
562
|
shape: {
|
|
563
563
|
rectangle: "",
|
|
@@ -627,12 +627,12 @@ var ro = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex a
|
|
|
627
627
|
active: !1
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
function
|
|
631
|
-
let m = a !== void 0, [h, g] =
|
|
630
|
+
function oo({ className: t, shape: n, size: r, variant: i, active: a, defaultActive: o, startContent: s, endContent: c, children: l, ref: u, onClick: d, type: f = "button", ...p }) {
|
|
631
|
+
let m = a !== void 0, [h, g] = J(!!o);
|
|
632
632
|
return /* @__PURE__ */ U("button", {
|
|
633
633
|
ref: u,
|
|
634
634
|
type: f,
|
|
635
|
-
className: e(
|
|
635
|
+
className: e(ao({
|
|
636
636
|
shape: n,
|
|
637
637
|
size: r,
|
|
638
638
|
variant: i,
|
|
@@ -642,7 +642,7 @@ function io({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
642
642
|
m || g((e) => !e), d?.(e);
|
|
643
643
|
},
|
|
644
644
|
...p,
|
|
645
|
-
children: [/* @__PURE__ */ H(L, {}), s || c ? /* @__PURE__ */ U(
|
|
645
|
+
children: [/* @__PURE__ */ H(L, {}), s || c ? /* @__PURE__ */ U(Wi, { children: [
|
|
646
646
|
s && /* @__PURE__ */ H("span", {
|
|
647
647
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
648
648
|
children: s
|
|
@@ -660,8 +660,8 @@ function io({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
660
660
|
}
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region src/components/Chips/index.ts
|
|
663
|
-
var
|
|
664
|
-
function
|
|
663
|
+
var so = oo, co = ao, lo = e("aivex:flex aivex:w-[280px] aivex:max-h-[448px] aivex:flex-col aivex:gap-lg aivex:p-xl", "aivex:rounded-xl aivex:bg-static-gray aivex:text-text-on-color aivex:shadow-md", "aivex:z-50 aivex:outline-none", "aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out", "aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0", "aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95");
|
|
664
|
+
function uo({ button: t, variant: n, className: r }) {
|
|
665
665
|
let { children: i, ...a } = t;
|
|
666
666
|
return /* @__PURE__ */ H(R, {
|
|
667
667
|
variant: n,
|
|
@@ -672,25 +672,25 @@ function co({ button: t, variant: n, className: r }) {
|
|
|
672
672
|
children: i
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
return /* @__PURE__ */ H(
|
|
675
|
+
function fo(e) {
|
|
676
|
+
return /* @__PURE__ */ H(Y.Root, { ...e });
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
return /* @__PURE__ */ H(
|
|
678
|
+
function po({ ref: e, ...t }) {
|
|
679
|
+
return /* @__PURE__ */ H(Y.Trigger, {
|
|
680
680
|
ref: e,
|
|
681
681
|
...t
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return /* @__PURE__ */ H(
|
|
684
|
+
function mo(e) {
|
|
685
|
+
return /* @__PURE__ */ H(Y.Anchor, { ...e });
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryButton: a, secondaryButton: s, primaryButton: c, onClose: l, closeAriaLabel: u = "닫기", ref: d, ...f }) {
|
|
688
688
|
let p = !!(a || s || c);
|
|
689
|
-
return /* @__PURE__ */ H(
|
|
689
|
+
return /* @__PURE__ */ H(Y.Portal, { children: /* @__PURE__ */ U(Y.Content, {
|
|
690
690
|
ref: d,
|
|
691
691
|
sideOffset: n,
|
|
692
692
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
693
|
-
className: e(
|
|
693
|
+
className: e(lo, t),
|
|
694
694
|
...f,
|
|
695
695
|
children: [
|
|
696
696
|
(r != null || l != null) && /* @__PURE__ */ U("div", {
|
|
@@ -714,25 +714,25 @@ function po({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
714
714
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md",
|
|
715
715
|
children: [/* @__PURE__ */ H("div", {
|
|
716
716
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start",
|
|
717
|
-
children: a && /* @__PURE__ */ H(
|
|
717
|
+
children: a && /* @__PURE__ */ H(uo, {
|
|
718
718
|
button: a,
|
|
719
719
|
variant: "ghost",
|
|
720
720
|
className: "aivex:min-w-9"
|
|
721
721
|
})
|
|
722
722
|
}), /* @__PURE__ */ U("div", {
|
|
723
723
|
className: "aivex:flex aivex:items-start aivex:gap-md",
|
|
724
|
-
children: [s && /* @__PURE__ */ H(
|
|
724
|
+
children: [s && /* @__PURE__ */ H(uo, {
|
|
725
725
|
button: s,
|
|
726
726
|
variant: "ghost",
|
|
727
727
|
className: "aivex:min-w-[60px]"
|
|
728
|
-
}), c && /* @__PURE__ */ H(
|
|
728
|
+
}), c && /* @__PURE__ */ H(uo, {
|
|
729
729
|
button: c,
|
|
730
730
|
variant: "solid",
|
|
731
731
|
className: "aivex:min-w-[60px]"
|
|
732
732
|
})]
|
|
733
733
|
})]
|
|
734
734
|
}),
|
|
735
|
-
/* @__PURE__ */ H(
|
|
735
|
+
/* @__PURE__ */ H(Y.Arrow, {
|
|
736
736
|
width: 20,
|
|
737
737
|
height: 10,
|
|
738
738
|
className: "aivex:fill-static-gray"
|
|
@@ -740,14 +740,14 @@ function po({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
740
740
|
]
|
|
741
741
|
}) });
|
|
742
742
|
}
|
|
743
|
-
var
|
|
744
|
-
Trigger:
|
|
745
|
-
Anchor:
|
|
746
|
-
Content:
|
|
743
|
+
var go = Object.assign(fo, {
|
|
744
|
+
Trigger: po,
|
|
745
|
+
Anchor: mo,
|
|
746
|
+
Content: ho
|
|
747
747
|
});
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
750
|
-
function
|
|
750
|
+
function _o({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
751
751
|
return /* @__PURE__ */ H(n ? W : "div", {
|
|
752
752
|
ref: r,
|
|
753
753
|
"aria-hidden": "true",
|
|
@@ -757,33 +757,33 @@ function ho({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
|
757
757
|
}
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region src/components/ScrollArea/ScrollArea.tsx
|
|
760
|
-
function
|
|
760
|
+
function vo({ className: t, children: n, edgeFade: r, onViewportScroll: i, ref: a, scrollbars: o = "vertical", type: s = "hover", verticalScrollbarClassName: c, viewportClassName: l, viewportRef: u, ...d }) {
|
|
761
761
|
let f = o === "vertical" || o === "both", p = o === "horizontal" || o === "both";
|
|
762
|
-
return /* @__PURE__ */ U(
|
|
762
|
+
return /* @__PURE__ */ U(Da.Root, {
|
|
763
763
|
ref: a,
|
|
764
764
|
className: e("aivex:relative aivex:overflow-hidden aivex:scroll-sync-root", t),
|
|
765
765
|
type: s,
|
|
766
766
|
...d,
|
|
767
767
|
children: [
|
|
768
|
-
/* @__PURE__ */ H(
|
|
768
|
+
/* @__PURE__ */ H(Da.Viewport, {
|
|
769
769
|
ref: u,
|
|
770
770
|
className: e("aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport", r && "aivex:scroll-fade-y", l),
|
|
771
771
|
onScroll: i,
|
|
772
772
|
children: n
|
|
773
773
|
}),
|
|
774
|
-
f ? /* @__PURE__ */ H(
|
|
775
|
-
p ? /* @__PURE__ */ H(
|
|
776
|
-
/* @__PURE__ */ H(
|
|
774
|
+
f ? /* @__PURE__ */ H(yo, { className: c }) : null,
|
|
775
|
+
p ? /* @__PURE__ */ H(yo, { orientation: "horizontal" }) : null,
|
|
776
|
+
/* @__PURE__ */ H(Da.Corner, {})
|
|
777
777
|
]
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return /* @__PURE__ */ H(
|
|
780
|
+
function yo({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
781
|
+
return /* @__PURE__ */ H(Da.Scrollbar, {
|
|
782
782
|
ref: r,
|
|
783
783
|
orientation: n,
|
|
784
784
|
className: e("aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar", n === "vertical" && "aivex:h-full aivex:w-2.5", n === "horizontal" && "aivex:h-2.5 aivex:flex-col", t),
|
|
785
785
|
...i,
|
|
786
|
-
children: /* @__PURE__ */ U(
|
|
786
|
+
children: /* @__PURE__ */ U(Da.Thumb, {
|
|
787
787
|
className: e("aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary", n === "vertical" ? "aivex:scroll-sync-thumb-y" : "aivex:scroll-sync-thumb-x"),
|
|
788
788
|
children: [/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ H(L, { variant: "strong" })]
|
|
789
789
|
})
|
|
@@ -791,72 +791,72 @@ function _o({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
|
791
791
|
}
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/components/DataGrid/DataGridColumnSettings.tsx
|
|
794
|
-
var
|
|
795
|
-
function
|
|
794
|
+
var bo = 32, xo = 4, So = 200;
|
|
795
|
+
function Co(e) {
|
|
796
796
|
let { header: t, meta: n } = e.columnDef;
|
|
797
797
|
return n?.settingsLabel ? n.settingsLabel : typeof t == "string" ? t : e.id;
|
|
798
798
|
}
|
|
799
|
-
var
|
|
800
|
-
function
|
|
801
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
799
|
+
var wo = "aivex:group/item aivex:relative aivex:flex aivex:w-full aivex:min-w-[160px] aivex:shrink-0 aivex:select-none aivex:items-center aivex:gap-md aivex:overflow-hidden aivex:rounded-md aivex:p-md", To = "aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg aivex:text-text-primary", Eo = "aivex:group/handle aivex:relative aivex:flex aivex:size-2xl aivex:shrink-0 aivex:touch-none aivex:items-center aivex:justify-center aivex:text-icon-secondary aivex:outline-none", Do = "aivex:absolute aivex:-inset-xs aivex:rounded-sm aivex:bg-bg-inverse-strong aivex:transition-opacity";
|
|
800
|
+
function Oo({ column: t }) {
|
|
801
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Ca({ id: t.id });
|
|
802
802
|
return /* @__PURE__ */ U("div", {
|
|
803
803
|
ref: i,
|
|
804
804
|
style: {
|
|
805
|
-
transform:
|
|
805
|
+
transform: Ta.Transform.toString(a),
|
|
806
806
|
transition: o
|
|
807
807
|
},
|
|
808
|
-
className: e(
|
|
808
|
+
className: e(wo, s && "aivex:opacity-0"),
|
|
809
809
|
children: [
|
|
810
810
|
!s && /* @__PURE__ */ H("span", { className: "aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:transition-opacity aivex:group-hover/item:opacity-4 aivex:group-active/item:opacity-8" }),
|
|
811
|
-
/* @__PURE__ */ H(
|
|
811
|
+
/* @__PURE__ */ H(ro, {
|
|
812
812
|
size: "sm",
|
|
813
813
|
checked: t.getIsVisible(),
|
|
814
814
|
disabled: !t.getCanHide(),
|
|
815
815
|
onChange: t.getToggleVisibilityHandler()
|
|
816
816
|
}),
|
|
817
817
|
/* @__PURE__ */ H("span", {
|
|
818
|
-
className:
|
|
819
|
-
children:
|
|
818
|
+
className: To,
|
|
819
|
+
children: Co(t)
|
|
820
820
|
}),
|
|
821
821
|
/* @__PURE__ */ U("span", {
|
|
822
822
|
...n,
|
|
823
823
|
...r,
|
|
824
|
-
className: e(
|
|
825
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
824
|
+
className: e(Eo, "aivex:cursor-grab aivex:active:cursor-grabbing"),
|
|
825
|
+
children: [/* @__PURE__ */ H("span", { className: e(Do, "aivex:opacity-0 aivex:group-hover/handle:opacity-4 aivex:group-active/handle:opacity-8") }), /* @__PURE__ */ H(Bt, { size: 20 })]
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ko({ column: t }) {
|
|
831
831
|
return /* @__PURE__ */ U("div", {
|
|
832
|
-
className: e(
|
|
832
|
+
className: e(wo, "aivex:cursor-grabbing aivex:bg-bg-secondary aivex:shadow-xl"),
|
|
833
833
|
children: [
|
|
834
|
-
/* @__PURE__ */ H(
|
|
834
|
+
/* @__PURE__ */ H(ro, {
|
|
835
835
|
size: "sm",
|
|
836
836
|
checked: t.getIsVisible(),
|
|
837
837
|
disabled: !t.getCanHide(),
|
|
838
838
|
readOnly: !0
|
|
839
839
|
}),
|
|
840
840
|
/* @__PURE__ */ H("span", {
|
|
841
|
-
className:
|
|
842
|
-
children:
|
|
841
|
+
className: To,
|
|
842
|
+
children: Co(t)
|
|
843
843
|
}),
|
|
844
844
|
/* @__PURE__ */ U("span", {
|
|
845
|
-
className:
|
|
846
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
845
|
+
className: Eo,
|
|
846
|
+
children: [/* @__PURE__ */ H("span", { className: e(Do, "aivex:opacity-8") }), /* @__PURE__ */ H(Bt, { size: 20 })]
|
|
847
847
|
})
|
|
848
848
|
]
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
let [o, s] =
|
|
851
|
+
function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화", excludeColumnIds: i, triggerLabel: a = "컬럼 설정" }) {
|
|
852
|
+
let [o, s] = J(!1), [c, l] = J(!1), [u, d] = J(!1), f = u || c || o, p = q(null), [m, h] = J(null), g = q(void 0), _ = G(() => window.clearTimeout(g.current), []);
|
|
853
853
|
K(() => {
|
|
854
854
|
let e = p.current?.parentElement;
|
|
855
855
|
if (!e) return;
|
|
856
856
|
let t = (e) => e instanceof Element && !!e.closest("[data-datagrid-header]"), n = (e) => {
|
|
857
857
|
t(e.target) && (_(), d(!0));
|
|
858
858
|
}, r = (e) => {
|
|
859
|
-
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1),
|
|
859
|
+
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1), So));
|
|
860
860
|
};
|
|
861
861
|
return e.addEventListener("mouseover", n), e.addEventListener("mouseout", r), () => {
|
|
862
862
|
_(), e.removeEventListener("mouseover", n), e.removeEventListener("mouseout", r);
|
|
@@ -867,15 +867,15 @@ function Oo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
867
867
|
if (!e) return;
|
|
868
868
|
let t = e.getBoundingClientRect(), n = e.querySelector("[data-datagrid-header]")?.getBoundingClientRect();
|
|
869
869
|
h({
|
|
870
|
-
top: (n?.top ?? t.top) + ((n?.height ?? 48) -
|
|
871
|
-
left: t.left -
|
|
870
|
+
top: (n?.top ?? t.top) + ((n?.height ?? 48) - bo) / 2,
|
|
871
|
+
left: t.left - xo - bo
|
|
872
872
|
});
|
|
873
873
|
};
|
|
874
874
|
if (e(), f) return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
875
875
|
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
876
876
|
};
|
|
877
877
|
}, [f]);
|
|
878
|
-
let v =
|
|
878
|
+
let v = _a(ga(ma), ga(pa, { coordinateGetter: Sa })), y = t.getAllLeafColumns(), b = y.filter((e) => !i?.includes(e.id)), x = b.map((e) => e.id), [S, C] = J(null), w = m ? /* @__PURE__ */ H("div", {
|
|
879
879
|
style: {
|
|
880
880
|
position: "fixed",
|
|
881
881
|
top: m.top,
|
|
@@ -904,16 +904,16 @@ function Oo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
904
904
|
className: "aivex:shrink-0",
|
|
905
905
|
children: n
|
|
906
906
|
}),
|
|
907
|
-
/* @__PURE__ */ H(
|
|
907
|
+
/* @__PURE__ */ H(vo, {
|
|
908
908
|
scrollbars: "vertical",
|
|
909
909
|
className: "aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-col",
|
|
910
910
|
viewportClassName: "aivex:h-auto aivex:min-h-0",
|
|
911
911
|
children: /* @__PURE__ */ H("div", {
|
|
912
912
|
className: "aivex:flex aivex:w-full aivex:flex-col",
|
|
913
|
-
children: /* @__PURE__ */ U(
|
|
913
|
+
children: /* @__PURE__ */ U(da, {
|
|
914
914
|
sensors: v,
|
|
915
|
-
collisionDetection:
|
|
916
|
-
modifiers: [
|
|
915
|
+
collisionDetection: ha,
|
|
916
|
+
modifiers: [ya, va],
|
|
917
917
|
onDragStart: ({ active: e }) => {
|
|
918
918
|
C(b.find((t) => t.id === e.id) ?? null);
|
|
919
919
|
},
|
|
@@ -921,15 +921,15 @@ function Oo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
921
921
|
if (C(null), !n || e.id === n.id) return;
|
|
922
922
|
let r = x.indexOf(String(e.id)), a = x.indexOf(String(n.id));
|
|
923
923
|
if (r === -1 || a === -1) return;
|
|
924
|
-
let o =
|
|
924
|
+
let o = xa(x, r, a), s = 0;
|
|
925
925
|
t.setColumnOrder(y.map((e) => i?.includes(e.id) ? e.id : o[s++]));
|
|
926
926
|
},
|
|
927
927
|
onDragCancel: () => C(null),
|
|
928
|
-
children: [/* @__PURE__ */ H(
|
|
928
|
+
children: [/* @__PURE__ */ H(ba, {
|
|
929
929
|
items: x,
|
|
930
|
-
strategy:
|
|
931
|
-
children: b.map((e) => /* @__PURE__ */ H(
|
|
932
|
-
}),
|
|
930
|
+
strategy: wa,
|
|
931
|
+
children: b.map((e) => /* @__PURE__ */ H(Oo, { column: e }, e.id))
|
|
932
|
+
}), Ea(/* @__PURE__ */ H(fa, { children: S ? /* @__PURE__ */ H(ko, { column: S }) : null }), document.body)]
|
|
933
933
|
})
|
|
934
934
|
})
|
|
935
935
|
}),
|
|
@@ -951,141 +951,36 @@ function Oo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
951
951
|
return /* @__PURE__ */ H("span", {
|
|
952
952
|
className: "aivex:absolute aivex:top-0 aivex:left-0",
|
|
953
953
|
ref: p,
|
|
954
|
-
children: w ?
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
//#endregion
|
|
958
|
-
//#region src/components/Table/Table.tsx
|
|
959
|
-
var ko = {
|
|
960
|
-
sm: "aivex:h-10",
|
|
961
|
-
md: "aivex:h-12"
|
|
962
|
-
}, Ao = {
|
|
963
|
-
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
964
|
-
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
965
|
-
}, jo = ({ direction: e }) => H(e === "asc" ? un : e === "desc" ? Ci : jr, { size: 16 });
|
|
966
|
-
function Mo({ className: t, tableClassName: n, size: r = "md", children: i, ref: a, ...o }) {
|
|
967
|
-
return /* @__PURE__ */ H("div", {
|
|
968
|
-
ref: a,
|
|
969
|
-
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
970
|
-
...o,
|
|
971
|
-
children: /* @__PURE__ */ H("table", {
|
|
972
|
-
"data-size": r,
|
|
973
|
-
className: e("aivex:w-full aivex:border-separate aivex:border-spacing-0 aivex:text-body-md-regular", n),
|
|
974
|
-
children: i
|
|
975
|
-
})
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
function No({ className: e, children: t, ref: n, ...r }) {
|
|
979
|
-
return /* @__PURE__ */ H("thead", {
|
|
980
|
-
ref: n,
|
|
981
|
-
className: e,
|
|
982
|
-
...r,
|
|
983
|
-
children: t
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
function Po({ className: t, children: n, ref: r, ...i }) {
|
|
987
|
-
return /* @__PURE__ */ H("tfoot", {
|
|
988
|
-
ref: r,
|
|
989
|
-
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
990
|
-
...i,
|
|
991
|
-
children: n
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
function Fo({ className: t, children: n, ref: r, ...i }) {
|
|
995
|
-
return /* @__PURE__ */ H("caption", {
|
|
996
|
-
ref: r,
|
|
997
|
-
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
998
|
-
...i,
|
|
999
|
-
children: n
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
function Io({ className: e, children: t, ref: n, ...r }) {
|
|
1003
|
-
return /* @__PURE__ */ H("tbody", {
|
|
1004
|
-
ref: n,
|
|
1005
|
-
className: e,
|
|
1006
|
-
...r,
|
|
1007
|
-
children: t
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
function Lo({ className: t, children: n, size: r = "md", selected: i, disabled: a, interactive: o, asChild: s = !1, ref: c, onClick: l, onDoubleClick: u, onKeyDown: d, tabIndex: f, "aria-disabled": p, ...m }) {
|
|
1011
|
-
return /* @__PURE__ */ H(s ? W : "tr", {
|
|
1012
|
-
ref: c,
|
|
1013
|
-
className: e("aivex:transition-colors", ko[r], !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
1014
|
-
"aria-disabled": a || p || void 0,
|
|
1015
|
-
"data-disabled": a ? "" : void 0,
|
|
1016
|
-
"data-state": i ? "selected" : void 0,
|
|
1017
|
-
tabIndex: a ? -1 : f,
|
|
1018
|
-
onClick: a ? void 0 : l,
|
|
1019
|
-
onDoubleClick: a ? void 0 : u,
|
|
1020
|
-
onKeyDown: a ? void 0 : d,
|
|
1021
|
-
...m,
|
|
1022
|
-
children: n
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
function Ro({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
1026
|
-
return /* @__PURE__ */ H(s ? W : "th", {
|
|
1027
|
-
ref: c,
|
|
1028
|
-
className: e("aivex:text-left aivex:align-middle aivex:text-body-sm-medium aivex:text-text-secondary aivex:whitespace-nowrap", "aivex:bg-bg-secondary aivex:border-y aivex:border-border-subtle", "aivex:first:border-l aivex:first:rounded-l-md aivex:last:border-r aivex:last:rounded-r-md", Ao[r], t),
|
|
1029
|
-
...l,
|
|
1030
|
-
children: i ? /* @__PURE__ */ U("button", {
|
|
1031
|
-
type: "button",
|
|
1032
|
-
onClick: o,
|
|
1033
|
-
className: "aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:group aivex:text-text-secondary aivex:hover:text-text-primary aivex:transition-colors",
|
|
1034
|
-
children: [n, /* @__PURE__ */ H("span", {
|
|
1035
|
-
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
1036
|
-
children: /* @__PURE__ */ H(jo, { direction: a })
|
|
1037
|
-
})]
|
|
1038
|
-
}) : n
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
function zo({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
1042
|
-
return /* @__PURE__ */ H(i ? W : "td", {
|
|
1043
|
-
ref: a,
|
|
1044
|
-
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle", Ao[r], t),
|
|
1045
|
-
...o,
|
|
1046
|
-
children: n
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
function Bo({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
1050
|
-
return /* @__PURE__ */ H(Lo, { children: /* @__PURE__ */ H(zo, {
|
|
1051
|
-
ref: i,
|
|
1052
|
-
colSpan: r,
|
|
1053
|
-
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
1054
|
-
...a,
|
|
1055
|
-
children: n
|
|
1056
|
-
}) });
|
|
1057
|
-
}
|
|
1058
|
-
function Vo({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1059
|
-
return /* @__PURE__ */ H("tbody", {
|
|
1060
|
-
ref: r,
|
|
1061
|
-
className: e,
|
|
1062
|
-
...i,
|
|
1063
|
-
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(Lo, { children: /* @__PURE__ */ H(zo, {
|
|
1064
|
-
colSpan: t,
|
|
1065
|
-
children: /* @__PURE__ */ H(ho, { className: "aivex:h-5 aivex:w-full" })
|
|
1066
|
-
}) }, n))
|
|
954
|
+
children: w ? Ea(w, document.body) : null
|
|
1067
955
|
});
|
|
1068
956
|
}
|
|
1069
957
|
//#endregion
|
|
1070
958
|
//#region src/components/DataGrid/DataGridPrimitives.tsx
|
|
1071
|
-
var
|
|
959
|
+
var jo = {
|
|
1072
960
|
start: "aivex:justify-start aivex:text-left",
|
|
1073
961
|
center: "aivex:justify-center aivex:text-center",
|
|
1074
962
|
end: "aivex:justify-end aivex:text-right"
|
|
1075
|
-
};
|
|
1076
|
-
function
|
|
963
|
+
}, Mo = qi("basic");
|
|
964
|
+
function No() {
|
|
965
|
+
return Xi(Mo);
|
|
966
|
+
}
|
|
967
|
+
function Po(e, t, n) {
|
|
1077
968
|
return typeof e == "function" ? e(t, n) : e;
|
|
1078
969
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */ H(
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
970
|
+
function Fo({ className: t, children: n, variant: r = "basic", ref: i, ...a }) {
|
|
971
|
+
return /* @__PURE__ */ H(Mo.Provider, {
|
|
972
|
+
value: r,
|
|
973
|
+
children: /* @__PURE__ */ H("div", {
|
|
974
|
+
ref: i,
|
|
975
|
+
"data-variant": r,
|
|
976
|
+
className: e("aivex:flex aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0 aivex:flex-col aivex:text-body-md-regular aivex:text-text-primary", t),
|
|
977
|
+
...a,
|
|
978
|
+
children: n
|
|
979
|
+
})
|
|
1085
980
|
});
|
|
1086
981
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return /* @__PURE__ */ H(
|
|
982
|
+
function Io({ className: t, children: n, ref: r, scrollbars: i = "both", type: a = "always", verticalScrollbarClassName: o, ...s }) {
|
|
983
|
+
return /* @__PURE__ */ H(vo, {
|
|
1089
984
|
ref: r,
|
|
1090
985
|
scrollbars: i,
|
|
1091
986
|
type: a,
|
|
@@ -1095,17 +990,17 @@ function Go({ className: t, children: n, ref: r, scrollbars: i = "both", type: a
|
|
|
1095
990
|
children: n
|
|
1096
991
|
});
|
|
1097
992
|
}
|
|
1098
|
-
function
|
|
993
|
+
function Lo({ className: t, children: n, sticky: r = !0, ref: i, ...a }) {
|
|
1099
994
|
return /* @__PURE__ */ H("div", {
|
|
1100
995
|
ref: i,
|
|
1101
996
|
role: "row",
|
|
1102
997
|
"data-datagrid-header": "",
|
|
1103
|
-
className: e("aivex:flex aivex:h-
|
|
998
|
+
className: e("aivex:flex aivex:shrink-0 aivex:items-center", No() === "compact" ? "aivex:h-8 aivex:bg-bg-primary" : "aivex:h-12 aivex:rounded-md aivex:border aivex:border-border-subtle aivex:bg-bg-secondary", r && "aivex:sticky aivex:top-0 aivex:z-10", t),
|
|
1104
999
|
...a,
|
|
1105
1000
|
children: n
|
|
1106
1001
|
});
|
|
1107
1002
|
}
|
|
1108
|
-
function
|
|
1003
|
+
function Ro({ className: t, children: n, ref: r, ...i }) {
|
|
1109
1004
|
return /* @__PURE__ */ H("div", {
|
|
1110
1005
|
ref: r,
|
|
1111
1006
|
role: "rowgroup",
|
|
@@ -1114,52 +1009,41 @@ function qo({ className: t, children: n, ref: r, ...i }) {
|
|
|
1114
1009
|
children: n
|
|
1115
1010
|
});
|
|
1116
1011
|
}
|
|
1117
|
-
function
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
disabled: a,
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
tabIndex: a ? -1 : d,
|
|
1132
|
-
onClick: a ? void 0 : c,
|
|
1133
|
-
onDoubleClick: a ? void 0 : l,
|
|
1134
|
-
onKeyDown: a ? void 0 : u,
|
|
1135
|
-
...m,
|
|
1136
|
-
children: n
|
|
1137
|
-
})
|
|
1012
|
+
function zo({ className: t, children: n, asChild: r = !1, selected: i, disabled: a, interactive: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, role: f = "row", "aria-disabled": p, ...m }) {
|
|
1013
|
+
return /* @__PURE__ */ H(r ? W : "div", {
|
|
1014
|
+
ref: s,
|
|
1015
|
+
role: f,
|
|
1016
|
+
className: e("aivex:flex aivex:w-full aivex:shrink-0 aivex:text-text-primary aivex:transition-colors", No() === "compact" ? "aivex:min-h-9" : "aivex:min-h-12 aivex:border-b aivex:border-border-subtle aivex:last:border-b-0", o && !i && !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
1017
|
+
"aria-disabled": a || p || void 0,
|
|
1018
|
+
"data-disabled": a ? "" : void 0,
|
|
1019
|
+
"data-state": i ? "selected" : void 0,
|
|
1020
|
+
tabIndex: a ? -1 : d,
|
|
1021
|
+
onClick: a ? void 0 : c,
|
|
1022
|
+
onDoubleClick: a ? void 0 : l,
|
|
1023
|
+
onKeyDown: a ? void 0 : u,
|
|
1024
|
+
...m,
|
|
1025
|
+
children: n
|
|
1138
1026
|
});
|
|
1139
1027
|
}
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
className: e("aivex:flex aivex:
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
role: o,
|
|
1148
|
-
...s,
|
|
1149
|
-
children: n
|
|
1150
|
-
})
|
|
1028
|
+
function Bo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "cell", ...s }) {
|
|
1029
|
+
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1030
|
+
ref: a,
|
|
1031
|
+
role: o,
|
|
1032
|
+
className: e("aivex:flex aivex:min-w-0 aivex:self-stretch aivex:items-center aivex:gap-xs aivex:text-body-md-regular aivex:text-text-primary", No() === "compact" ? "aivex:min-h-9 aivex:px-md aivex:py-xs" : "aivex:min-h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl", jo[r], t),
|
|
1033
|
+
...s,
|
|
1034
|
+
children: n
|
|
1151
1035
|
});
|
|
1152
1036
|
}
|
|
1153
|
-
function
|
|
1037
|
+
function Vo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "columnheader", ...s }) {
|
|
1154
1038
|
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1155
1039
|
ref: a,
|
|
1156
1040
|
role: o,
|
|
1157
|
-
className: e("aivex:flex aivex:min-w-0 aivex:items-center aivex:gap-xs aivex:whitespace-nowrap", "aivex:px-md aivex:first:pl-xl aivex:last:pr-xl", "aivex:text-body-sm-medium aivex:text-text-secondary",
|
|
1041
|
+
className: e("aivex:flex aivex:min-w-0 aivex:items-center aivex:gap-xs aivex:whitespace-nowrap", No() === "compact" ? "aivex:h-full aivex:px-md aivex:py-xs" : "aivex:px-md aivex:first:pl-xl aivex:last:pr-xl", "aivex:text-body-sm-medium aivex:text-text-secondary", jo[r], t),
|
|
1158
1042
|
...s,
|
|
1159
1043
|
children: n
|
|
1160
1044
|
});
|
|
1161
1045
|
}
|
|
1162
|
-
function
|
|
1046
|
+
function Ho({ className: t, children: n, ref: r, ...i }) {
|
|
1163
1047
|
return /* @__PURE__ */ H("div", {
|
|
1164
1048
|
ref: r,
|
|
1165
1049
|
className: e("aivex:flex aivex:min-h-32 aivex:w-full aivex:flex-1 aivex:items-center aivex:justify-center aivex:p-xl aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
@@ -1167,18 +1051,18 @@ function Zo({ className: t, children: n, ref: r, ...i }) {
|
|
|
1167
1051
|
children: n
|
|
1168
1052
|
});
|
|
1169
1053
|
}
|
|
1170
|
-
function
|
|
1054
|
+
function Uo({ className: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1171
1055
|
return /* @__PURE__ */ H("div", {
|
|
1172
1056
|
ref: r,
|
|
1173
1057
|
className: e("aivex:flex aivex:flex-col", t),
|
|
1174
1058
|
...i,
|
|
1175
|
-
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(
|
|
1059
|
+
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(zo, { children: /* @__PURE__ */ H(Bo, {
|
|
1176
1060
|
className: "aivex:w-full",
|
|
1177
|
-
children: /* @__PURE__ */ H(
|
|
1061
|
+
children: /* @__PURE__ */ H(_o, { className: "aivex:h-5 aivex:w-full" })
|
|
1178
1062
|
}) }, t))
|
|
1179
1063
|
});
|
|
1180
1064
|
}
|
|
1181
|
-
function
|
|
1065
|
+
function Wo({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
1182
1066
|
return /* @__PURE__ */ H("div", {
|
|
1183
1067
|
ref: i,
|
|
1184
1068
|
role: "presentation",
|
|
@@ -1189,8 +1073,8 @@ function $o({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
|
1189
1073
|
}
|
|
1190
1074
|
//#endregion
|
|
1191
1075
|
//#region src/components/DataGrid/DataGridRows.tsx
|
|
1192
|
-
function
|
|
1193
|
-
let { original: y, id: b } = t, x = t.index, S =
|
|
1076
|
+
function Go({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interactive: a, selected: o, disabled: s, className: c, onRowClick: l, expandedContent: u, expandable: d, focusable: f, rowSelected: p, rowExpanded: m, cellRole: h, tabStop: g, onNavigate: _, onFocusRow: v }) {
|
|
1077
|
+
let { original: y, id: b } = t, x = t.index, S = Zi(), C = !!m, w = !!l && !s, T = r !== void 0, E = /* @__PURE__ */ H(zo, {
|
|
1194
1078
|
ref: T ? void 0 : i,
|
|
1195
1079
|
"data-datagrid-row-id": b,
|
|
1196
1080
|
"data-row-selected": p ? "" : void 0,
|
|
@@ -1221,11 +1105,11 @@ function es({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1221
1105
|
onFocus: f && v ? () => v(b) : void 0,
|
|
1222
1106
|
children: t.getVisibleCells().map((t) => {
|
|
1223
1107
|
let { meta: n } = t.column.columnDef;
|
|
1224
|
-
return /* @__PURE__ */ H(
|
|
1108
|
+
return /* @__PURE__ */ H(Bo, {
|
|
1225
1109
|
role: h,
|
|
1226
1110
|
align: n?.cellAlign ?? n?.align,
|
|
1227
|
-
className: e(n?.className,
|
|
1228
|
-
children:
|
|
1111
|
+
className: e(n?.className, Po(n?.cellClassName, y, x)),
|
|
1112
|
+
children: $i(t.column.columnDef.cell, t.getContext())
|
|
1229
1113
|
}, t.id);
|
|
1230
1114
|
})
|
|
1231
1115
|
}), D = u != null && /* @__PURE__ */ H("div", {
|
|
@@ -1251,15 +1135,15 @@ function es({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1251
1135
|
transform: `translateY(${r}px)`
|
|
1252
1136
|
},
|
|
1253
1137
|
children: [E, D]
|
|
1254
|
-
}) : /* @__PURE__ */ U(
|
|
1138
|
+
}) : /* @__PURE__ */ U(Wi, { children: [E, D] });
|
|
1255
1139
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1258
|
-
let [d, f] =
|
|
1140
|
+
var Ko = Yi(Go);
|
|
1141
|
+
function qo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, activeRowId: i, focusableRowIds: a, pendingFocusRowId: o, focusRowElement: s, onFocusSettled: c, scrollToRowRef: l, renderRow: u }) {
|
|
1142
|
+
let [d, f] = J(null);
|
|
1259
1143
|
K(() => {
|
|
1260
1144
|
f(t.current);
|
|
1261
1145
|
}, [t]);
|
|
1262
|
-
let p =
|
|
1146
|
+
let p = Oa({
|
|
1263
1147
|
count: e.length,
|
|
1264
1148
|
getScrollElement: () => d,
|
|
1265
1149
|
estimateSize: () => n ?? 48,
|
|
@@ -1287,71 +1171,77 @@ function ns({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, active
|
|
|
1287
1171
|
}
|
|
1288
1172
|
//#endregion
|
|
1289
1173
|
//#region src/components/DataGrid/DataGrid.tsx
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1292
|
-
|
|
1174
|
+
var Jo = ({ direction: e }) => H(e === "asc" ? ft : e === "desc" ? C : Nr, { size: 16 }), Yo = {
|
|
1175
|
+
basic: 48,
|
|
1176
|
+
compact: 36
|
|
1177
|
+
}, Xo = {
|
|
1178
|
+
basic: 48,
|
|
1179
|
+
compact: 32
|
|
1180
|
+
};
|
|
1181
|
+
function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i, empty: a, headerSticky: o, viewportClassName: s, contentClassName: c, headerClassName: l, bodyClassName: u, rowClassName: d, rowInteractive: f, isRowSelected: p, isRowDisabled: m, onRowClick: h, renderExpandedRow: g, loadingMore: _, loadingMoreContent: v, loadingMoreRowCount: y = 3, skeletonRowClassName: b, endContent: x, infiniteTriggerRef: S, infiniteTriggerClassName: C, columnSettings: w, virtualized: T = !1, estimateRowHeight: E, overscan: D, ref: O, getCoreRowModel: k, ...A }) {
|
|
1182
|
+
let j = ua({
|
|
1293
1183
|
enableSorting: !1,
|
|
1294
|
-
...
|
|
1295
|
-
getCoreRowModel:
|
|
1296
|
-
}),
|
|
1184
|
+
...A,
|
|
1185
|
+
getCoreRowModel: k ?? ta()
|
|
1186
|
+
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell", ne = w === !0 ? {} : w || void 0, P = q(null), F = j.getRowModel().rows, re = j.getHeaderGroups(), [ie, ae] = J(Xo[n]);
|
|
1297
1187
|
K(() => {
|
|
1298
|
-
if (!
|
|
1299
|
-
let e = P.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0,
|
|
1188
|
+
if (!M || !P.current) return;
|
|
1189
|
+
let e = P.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0, re.length), n = () => {
|
|
1300
1190
|
let e = t.reduce((e, t) => e + t.offsetHeight, 0);
|
|
1301
|
-
e > 0 &&
|
|
1191
|
+
e > 0 && ae(e);
|
|
1302
1192
|
}, r = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(n);
|
|
1303
1193
|
return n(), t.forEach((e) => {
|
|
1304
1194
|
r?.observe(e);
|
|
1305
1195
|
}), () => r?.disconnect();
|
|
1306
|
-
}, [
|
|
1307
|
-
let
|
|
1308
|
-
|
|
1309
|
-
let
|
|
1310
|
-
|
|
1311
|
-
let
|
|
1312
|
-
let t = !!
|
|
1196
|
+
}, [re.length, M]);
|
|
1197
|
+
let oe = q(h);
|
|
1198
|
+
oe.current = h;
|
|
1199
|
+
let se = G((e, t, n) => oe.current?.(e, t, n), []), ce = h ? se : void 0, [le, ue] = J(null), de = q(F);
|
|
1200
|
+
de.current = F;
|
|
1201
|
+
let fe = q(null), [pe, me] = J(null), he = G((e) => {
|
|
1202
|
+
let t = !!m?.(e.original, e.index), n = N && (e.getCanExpand() || e.getIsExpanded());
|
|
1313
1203
|
return !t && (ee || n);
|
|
1314
1204
|
}, [
|
|
1315
1205
|
ee,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
]), I =
|
|
1319
|
-
|
|
1320
|
-
let
|
|
1206
|
+
m,
|
|
1207
|
+
N
|
|
1208
|
+
]), I = Qi(() => new Set(F.filter(he).map((e) => e.id)), [he, F]), ge = q(I);
|
|
1209
|
+
ge.current = I;
|
|
1210
|
+
let _e = G((e) => {
|
|
1321
1211
|
let t = Array.from(P.current?.querySelectorAll("[data-datagrid-row-id]") ?? []).find((t) => t.dataset.datagridRowId === e);
|
|
1322
1212
|
return t?.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" }), t != null;
|
|
1323
1213
|
}, []);
|
|
1324
1214
|
K(() => {
|
|
1325
|
-
|
|
1215
|
+
T || pe == null || (_e(pe), me(null));
|
|
1326
1216
|
}, [
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1217
|
+
_e,
|
|
1218
|
+
pe,
|
|
1219
|
+
T
|
|
1330
1220
|
]);
|
|
1331
|
-
let
|
|
1332
|
-
let n =
|
|
1221
|
+
let ve = G((e, t) => {
|
|
1222
|
+
let n = de.current, r = n.findIndex((t) => t.id === e);
|
|
1333
1223
|
if (r === -1) return;
|
|
1334
1224
|
let i = r + t;
|
|
1335
|
-
for (; i >= 0 && i < n.length && !
|
|
1225
|
+
for (; i >= 0 && i < n.length && !ge.current.has(n[i].id);) i += t;
|
|
1336
1226
|
let a = n[i];
|
|
1337
|
-
a && (
|
|
1338
|
-
}, []),
|
|
1339
|
-
className:
|
|
1340
|
-
children:
|
|
1227
|
+
a && (fe.current?.(i), me(a.id), ue(a.id));
|
|
1228
|
+
}, []), ye = G((e) => ue(e), []), be = G(() => me(null), []), xe = le != null && I.has(le) ? le : null, Se = xe ?? F.find((e) => I.has(e.id))?.id, Ce = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ H(zo, {
|
|
1229
|
+
className: b,
|
|
1230
|
+
children: j.getVisibleLeafColumns().map((e) => {
|
|
1341
1231
|
let { meta: t } = e.columnDef;
|
|
1342
|
-
return /* @__PURE__ */ H(
|
|
1232
|
+
return /* @__PURE__ */ H(Bo, {
|
|
1343
1233
|
role: te,
|
|
1344
1234
|
align: t?.cellAlign ?? t?.align,
|
|
1345
1235
|
className: t?.className,
|
|
1346
|
-
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(
|
|
1236
|
+
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(_o, { className: "aivex:h-4 aivex:w-full aivex:max-w-40" }) : t.skeleton
|
|
1347
1237
|
}, e.id);
|
|
1348
1238
|
})
|
|
1349
|
-
}, `${t}-${n}`)),
|
|
1239
|
+
}, `${t}-${n}`)), we = (t) => re.map((n) => /* @__PURE__ */ H(Lo, {
|
|
1350
1240
|
sticky: t,
|
|
1351
|
-
className:
|
|
1241
|
+
className: l,
|
|
1352
1242
|
children: n.headers.map((t) => {
|
|
1353
|
-
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null :
|
|
1354
|
-
return /* @__PURE__ */ H(
|
|
1243
|
+
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null : $i(t.column.columnDef.header, t.getContext());
|
|
1244
|
+
return /* @__PURE__ */ H(Vo, {
|
|
1355
1245
|
align: n?.headerAlign ?? n?.align,
|
|
1356
1246
|
className: e(n?.className, n?.headerClassName),
|
|
1357
1247
|
"aria-sort": o,
|
|
@@ -1364,115 +1254,116 @@ function is({ className: t, loading: n, loadingRowCount: r, empty: i, headerStic
|
|
|
1364
1254
|
children: s
|
|
1365
1255
|
}), /* @__PURE__ */ H("span", {
|
|
1366
1256
|
className: "aivex:shrink-0 aivex:text-text-tertiary",
|
|
1367
|
-
children: /* @__PURE__ */ H(
|
|
1257
|
+
children: /* @__PURE__ */ H(Jo, { direction: a })
|
|
1368
1258
|
})]
|
|
1369
1259
|
}) : s
|
|
1370
1260
|
}, t.id);
|
|
1371
1261
|
})
|
|
1372
|
-
}, n.id)),
|
|
1373
|
-
let { original: a } = t, o = t.index, s = !!
|
|
1374
|
-
return /* @__PURE__ */ H(
|
|
1262
|
+
}, n.id)), Te = j.getVisibleLeafColumns().map((e) => e.id).join(","), Ee = (t, n, r, i = !0) => {
|
|
1263
|
+
let { original: a } = t, o = t.index, s = !!m?.(a, o), c = N && (t.getCanExpand() || t.getIsExpanded());
|
|
1264
|
+
return /* @__PURE__ */ H(Ko, {
|
|
1375
1265
|
row: t,
|
|
1376
1266
|
virtualIndex: n?.index,
|
|
1377
1267
|
virtualStart: n?.start,
|
|
1378
1268
|
measureRef: r,
|
|
1379
|
-
interactive:
|
|
1380
|
-
selected:
|
|
1269
|
+
interactive: Po(f, a, o) ?? !!h,
|
|
1270
|
+
selected: p?.(a, o),
|
|
1381
1271
|
disabled: s,
|
|
1382
|
-
className: e(n && "aivex:last:border-b",
|
|
1383
|
-
onRowClick:
|
|
1384
|
-
expandedContent:
|
|
1272
|
+
className: e(n && "aivex:last:border-b", Po(d, a, o)),
|
|
1273
|
+
onRowClick: ce,
|
|
1274
|
+
expandedContent: g && t.getIsExpanded() ? g(t) : void 0,
|
|
1385
1275
|
expandable: c,
|
|
1386
1276
|
focusable: I.has(t.id),
|
|
1387
1277
|
rowSelected: t.getIsSelected(),
|
|
1388
1278
|
rowExpanded: t.getIsExpanded(),
|
|
1389
|
-
columns:
|
|
1390
|
-
visibleColumnKey:
|
|
1279
|
+
columns: A.columns,
|
|
1280
|
+
visibleColumnKey: Te,
|
|
1391
1281
|
cellRole: te,
|
|
1392
1282
|
tabStop: i,
|
|
1393
|
-
onNavigate:
|
|
1394
|
-
onFocusRow:
|
|
1283
|
+
onNavigate: ve,
|
|
1284
|
+
onFocusRow: ye
|
|
1395
1285
|
}, t.id);
|
|
1396
|
-
},
|
|
1397
|
-
ref:
|
|
1398
|
-
|
|
1399
|
-
|
|
1286
|
+
}, De = /* @__PURE__ */ H(Fo, {
|
|
1287
|
+
ref: O,
|
|
1288
|
+
variant: n,
|
|
1289
|
+
className: ne ? void 0 : t,
|
|
1290
|
+
children: /* @__PURE__ */ H(Io, {
|
|
1400
1291
|
scrollbars: "both",
|
|
1401
|
-
className:
|
|
1402
|
-
viewportClassName:
|
|
1403
|
-
style: { "--datagrid-sticky-header-height": `${
|
|
1404
|
-
verticalScrollbarClassName:
|
|
1292
|
+
className: s,
|
|
1293
|
+
viewportClassName: M ? "aivex:[scroll-padding-top:var(--datagrid-sticky-header-height)]" : void 0,
|
|
1294
|
+
style: { "--datagrid-sticky-header-height": `${ie}px` },
|
|
1295
|
+
verticalScrollbarClassName: M ? "aivex:top-[var(--datagrid-sticky-header-height)]! aivex:bottom-0! aivex:h-auto!" : void 0,
|
|
1405
1296
|
viewportRef: P,
|
|
1406
1297
|
children: /* @__PURE__ */ U("div", {
|
|
1407
|
-
role:
|
|
1408
|
-
className: e("aivex:flex aivex:min-w-full aivex:flex-col",
|
|
1409
|
-
children: [
|
|
1410
|
-
className:
|
|
1411
|
-
children:
|
|
1412
|
-
}) : /* @__PURE__ */ U(
|
|
1413
|
-
className:
|
|
1298
|
+
role: N ? "treegrid" : "table",
|
|
1299
|
+
className: e("aivex:flex aivex:min-w-full aivex:flex-col", c),
|
|
1300
|
+
children: [we(M), r ? /* @__PURE__ */ H(Ro, {
|
|
1301
|
+
className: u,
|
|
1302
|
+
children: Ce(i ?? 5, "loading")
|
|
1303
|
+
}) : /* @__PURE__ */ U(Ro, {
|
|
1304
|
+
className: u,
|
|
1414
1305
|
children: [
|
|
1415
|
-
F.length === 0 &&
|
|
1306
|
+
F.length === 0 && a !== void 0 ? /* @__PURE__ */ H(Ho, { children: a }) : T ? /* @__PURE__ */ H(qo, {
|
|
1416
1307
|
rows: F,
|
|
1417
1308
|
viewportRef: P,
|
|
1418
|
-
estimateRowHeight:
|
|
1419
|
-
overscan:
|
|
1420
|
-
activeRowId:
|
|
1309
|
+
estimateRowHeight: E ?? Yo[n],
|
|
1310
|
+
overscan: D,
|
|
1311
|
+
activeRowId: xe,
|
|
1421
1312
|
focusableRowIds: I,
|
|
1422
|
-
pendingFocusRowId:
|
|
1423
|
-
focusRowElement:
|
|
1424
|
-
onFocusSettled:
|
|
1425
|
-
scrollToRowRef:
|
|
1426
|
-
renderRow:
|
|
1427
|
-
}) : F.map((e) =>
|
|
1428
|
-
/* @__PURE__ */ H(
|
|
1429
|
-
ref:
|
|
1430
|
-
loading:
|
|
1431
|
-
className:
|
|
1432
|
-
children:
|
|
1313
|
+
pendingFocusRowId: pe,
|
|
1314
|
+
focusRowElement: _e,
|
|
1315
|
+
onFocusSettled: be,
|
|
1316
|
+
scrollToRowRef: fe,
|
|
1317
|
+
renderRow: Ee
|
|
1318
|
+
}) : F.map((e) => Ee(e, void 0, void 0, e.id === Se)),
|
|
1319
|
+
/* @__PURE__ */ H(Wo, {
|
|
1320
|
+
ref: S,
|
|
1321
|
+
loading: _,
|
|
1322
|
+
className: C,
|
|
1323
|
+
children: v ?? /* @__PURE__ */ H("div", {
|
|
1433
1324
|
className: "aivex:w-full",
|
|
1434
|
-
children:
|
|
1325
|
+
children: Ce(y, "loading-more")
|
|
1435
1326
|
})
|
|
1436
1327
|
}),
|
|
1437
|
-
!
|
|
1328
|
+
!_ && x != null && /* @__PURE__ */ H("div", {
|
|
1438
1329
|
role: "presentation",
|
|
1439
1330
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:py-lg aivex:text-body-sm-regular aivex:text-text-tertiary",
|
|
1440
|
-
children:
|
|
1331
|
+
children: x
|
|
1441
1332
|
})
|
|
1442
1333
|
]
|
|
1443
1334
|
})]
|
|
1444
1335
|
})
|
|
1445
1336
|
})
|
|
1446
1337
|
});
|
|
1447
|
-
return
|
|
1338
|
+
return ne ? /* @__PURE__ */ U("div", {
|
|
1448
1339
|
className: e("aivex:relative aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0", t),
|
|
1449
|
-
children: [
|
|
1450
|
-
table:
|
|
1451
|
-
...
|
|
1340
|
+
children: [De, /* @__PURE__ */ H(Ao, {
|
|
1341
|
+
table: j,
|
|
1342
|
+
...ne
|
|
1452
1343
|
})]
|
|
1453
|
-
}) :
|
|
1344
|
+
}) : De;
|
|
1454
1345
|
}
|
|
1455
1346
|
//#endregion
|
|
1456
1347
|
//#region src/components/Overlay/Overlay.tsx
|
|
1457
|
-
var
|
|
1348
|
+
var Qo = V("aivex:fixed aivex:inset-0 aivex:z-50", {
|
|
1458
1349
|
variants: { type: {
|
|
1459
1350
|
dim: "aivex:bg-black/50",
|
|
1460
1351
|
frost: "aivex:backdrop-blur-sm aivex:bg-white/30"
|
|
1461
1352
|
} },
|
|
1462
1353
|
defaultVariants: { type: "dim" }
|
|
1463
1354
|
});
|
|
1464
|
-
function
|
|
1355
|
+
function $o({ className: t, type: n = "dim", ref: r, ...i }) {
|
|
1465
1356
|
return /* @__PURE__ */ H("div", {
|
|
1466
1357
|
ref: r,
|
|
1467
1358
|
"aria-hidden": "true",
|
|
1468
|
-
className: e(
|
|
1359
|
+
className: e(Qo({ type: n }), t),
|
|
1469
1360
|
...i
|
|
1470
1361
|
});
|
|
1471
1362
|
}
|
|
1472
1363
|
//#endregion
|
|
1473
1364
|
//#region src/utils/useModalAutoFocus.ts
|
|
1474
|
-
function
|
|
1475
|
-
let n =
|
|
1365
|
+
function es(e, t) {
|
|
1366
|
+
let n = q(null);
|
|
1476
1367
|
return {
|
|
1477
1368
|
onOpenAutoFocus(t) {
|
|
1478
1369
|
n.current = t.target.ownerDocument.activeElement, e?.(t);
|
|
@@ -1486,18 +1377,18 @@ function ss(e, t) {
|
|
|
1486
1377
|
}
|
|
1487
1378
|
//#endregion
|
|
1488
1379
|
//#region src/components/Dialog/Dialog.tsx
|
|
1489
|
-
var
|
|
1380
|
+
var ts = {
|
|
1490
1381
|
default: {
|
|
1491
1382
|
component: yn,
|
|
1492
1383
|
className: "aivex:text-icon-success"
|
|
1493
1384
|
},
|
|
1494
1385
|
warning: {
|
|
1495
|
-
component:
|
|
1386
|
+
component: dr,
|
|
1496
1387
|
className: "aivex:text-icon-warning"
|
|
1497
1388
|
}
|
|
1498
1389
|
};
|
|
1499
|
-
function
|
|
1500
|
-
let p =
|
|
1390
|
+
function ns({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default", title: a, description: o, children: s, cancelButton: c, confirmButton: l, showIcon: u = !1, ref: d, ...f }) {
|
|
1391
|
+
let p = es(), m = ts[i], h = u ? m.component : null, g = !!h, _ = i === "warning" ? "danger" : "primary";
|
|
1501
1392
|
return /* @__PURE__ */ H(X.Root, {
|
|
1502
1393
|
open: t,
|
|
1503
1394
|
defaultOpen: n,
|
|
@@ -1505,7 +1396,7 @@ function ls({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1505
1396
|
...f,
|
|
1506
1397
|
children: /* @__PURE__ */ U(X.Portal, { children: [/* @__PURE__ */ H(X.Overlay, {
|
|
1507
1398
|
asChild: !0,
|
|
1508
|
-
children: /* @__PURE__ */ H(
|
|
1399
|
+
children: /* @__PURE__ */ H($o, { type: "dim" })
|
|
1509
1400
|
}), /* @__PURE__ */ H(X.Content, {
|
|
1510
1401
|
ref: d,
|
|
1511
1402
|
...p,
|
|
@@ -1532,7 +1423,7 @@ function ls({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1532
1423
|
]
|
|
1533
1424
|
}), (c || l) && /* @__PURE__ */ U("div", {
|
|
1534
1425
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
1535
|
-
children: [c && /* @__PURE__ */ H(
|
|
1426
|
+
children: [c && /* @__PURE__ */ H(rs, { ...c }), l && /* @__PURE__ */ H(is, {
|
|
1536
1427
|
...l,
|
|
1537
1428
|
defaultColor: _
|
|
1538
1429
|
})]
|
|
@@ -1541,7 +1432,7 @@ function ls({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1541
1432
|
})] })
|
|
1542
1433
|
});
|
|
1543
1434
|
}
|
|
1544
|
-
function
|
|
1435
|
+
function rs({ children: e, onClick: t, ...n }) {
|
|
1545
1436
|
return /* @__PURE__ */ H(X.Cancel, {
|
|
1546
1437
|
asChild: !0,
|
|
1547
1438
|
children: /* @__PURE__ */ H(R, {
|
|
@@ -1557,7 +1448,7 @@ function us({ children: e, onClick: t, ...n }) {
|
|
|
1557
1448
|
})
|
|
1558
1449
|
});
|
|
1559
1450
|
}
|
|
1560
|
-
function
|
|
1451
|
+
function is({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1561
1452
|
return /* @__PURE__ */ H(R, {
|
|
1562
1453
|
variant: "solid",
|
|
1563
1454
|
color: t,
|
|
@@ -1572,8 +1463,8 @@ function ds({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1572
1463
|
}
|
|
1573
1464
|
//#endregion
|
|
1574
1465
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1575
|
-
function
|
|
1576
|
-
let o =
|
|
1466
|
+
function as({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1467
|
+
let o = q(null), s = q({
|
|
1577
1468
|
isDragging: !1,
|
|
1578
1469
|
startX: 0,
|
|
1579
1470
|
scrollLeft: 0
|
|
@@ -1610,11 +1501,11 @@ function fs({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll:
|
|
|
1610
1501
|
}
|
|
1611
1502
|
//#endregion
|
|
1612
1503
|
//#region src/components/Drawer/Drawer.tsx
|
|
1613
|
-
var
|
|
1504
|
+
var os = {
|
|
1614
1505
|
left: "aivex:left-0 aivex:border-r",
|
|
1615
1506
|
right: "aivex:right-0 aivex:border-l"
|
|
1616
1507
|
};
|
|
1617
|
-
function
|
|
1508
|
+
function ss({ open: t, onOpenChange: n, title: r, children: i, side: a = "right", modal: o = !1, className: s, style: c, onExitComplete: l, onOpenAutoFocus: u, onCloseAutoFocus: d, onEscapeKeyDown: f, onKeyDown: p, onInteractOutside: m, ref: h }) {
|
|
1618
1509
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1619
1510
|
modal: o,
|
|
1620
1511
|
open: t,
|
|
@@ -1623,7 +1514,7 @@ function ms({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1623
1514
|
ref: h,
|
|
1624
1515
|
"aria-describedby": void 0,
|
|
1625
1516
|
"data-side": a,
|
|
1626
|
-
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none",
|
|
1517
|
+
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none", os[a], s),
|
|
1627
1518
|
style: c,
|
|
1628
1519
|
onAnimationEnd: (e) => {
|
|
1629
1520
|
!t && e.target === e.currentTarget && l?.();
|
|
@@ -1642,40 +1533,40 @@ function ms({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1642
1533
|
}
|
|
1643
1534
|
//#endregion
|
|
1644
1535
|
//#region src/components/Field/Field.tsx
|
|
1645
|
-
var
|
|
1646
|
-
function
|
|
1647
|
-
let e =
|
|
1536
|
+
var cs = qi(null);
|
|
1537
|
+
function ls() {
|
|
1538
|
+
let e = Xi(cs);
|
|
1648
1539
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1649
1540
|
return e;
|
|
1650
1541
|
}
|
|
1651
|
-
var
|
|
1542
|
+
var us = V("aivex:flex aivex:w-full", {
|
|
1652
1543
|
variants: { orientation: {
|
|
1653
1544
|
vertical: "aivex:flex-col aivex:gap-xs",
|
|
1654
1545
|
horizontal: "aivex:flex-row aivex:items-center aivex:gap-sm aivex:has-[[data-slot=field-content]]:items-start"
|
|
1655
1546
|
} },
|
|
1656
1547
|
defaultVariants: { orientation: "vertical" }
|
|
1657
1548
|
});
|
|
1658
|
-
function
|
|
1659
|
-
let c =
|
|
1549
|
+
function ds({ className: t, orientation: n, fieldId: r, invalid: i = !1, disabled: a = !1, ref: o, ...s }) {
|
|
1550
|
+
let c = Zi(), l = r ?? c, u = {
|
|
1660
1551
|
controlId: l,
|
|
1661
1552
|
descriptionId: `${l}-description`,
|
|
1662
1553
|
errorId: `${l}-error`,
|
|
1663
1554
|
invalid: i,
|
|
1664
1555
|
disabled: a
|
|
1665
1556
|
};
|
|
1666
|
-
return /* @__PURE__ */ H(
|
|
1557
|
+
return /* @__PURE__ */ H(cs.Provider, {
|
|
1667
1558
|
value: u,
|
|
1668
1559
|
children: /* @__PURE__ */ H("div", {
|
|
1669
1560
|
ref: o,
|
|
1670
|
-
className: e(
|
|
1561
|
+
className: e(us({ orientation: n }), t),
|
|
1671
1562
|
"data-invalid": i || void 0,
|
|
1672
1563
|
"data-disabled": a || void 0,
|
|
1673
1564
|
...s
|
|
1674
1565
|
})
|
|
1675
1566
|
});
|
|
1676
1567
|
}
|
|
1677
|
-
function
|
|
1678
|
-
let { controlId: i, invalid: a, disabled: o } =
|
|
1568
|
+
function fs({ className: t, ref: n, ...r }) {
|
|
1569
|
+
let { controlId: i, invalid: a, disabled: o } = ls();
|
|
1679
1570
|
return /* @__PURE__ */ H("label", {
|
|
1680
1571
|
ref: n,
|
|
1681
1572
|
htmlFor: i,
|
|
@@ -1683,7 +1574,7 @@ function ys({ className: t, ref: n, ...r }) {
|
|
|
1683
1574
|
...r
|
|
1684
1575
|
});
|
|
1685
1576
|
}
|
|
1686
|
-
function
|
|
1577
|
+
function ps({ className: t, ref: n, ...r }) {
|
|
1687
1578
|
return /* @__PURE__ */ H("div", {
|
|
1688
1579
|
ref: n,
|
|
1689
1580
|
"data-slot": "field-content",
|
|
@@ -1691,8 +1582,8 @@ function bs({ className: t, ref: n, ...r }) {
|
|
|
1691
1582
|
...r
|
|
1692
1583
|
});
|
|
1693
1584
|
}
|
|
1694
|
-
function
|
|
1695
|
-
let { controlId: t, descriptionId: n, errorId: r, invalid: i } =
|
|
1585
|
+
function ms({ children: e }) {
|
|
1586
|
+
let { controlId: t, descriptionId: n, errorId: r, invalid: i } = ls();
|
|
1696
1587
|
return /* @__PURE__ */ H(W, {
|
|
1697
1588
|
id: t,
|
|
1698
1589
|
"aria-describedby": i ? `${n} ${r}` : n,
|
|
@@ -1700,8 +1591,8 @@ function xs({ children: e }) {
|
|
|
1700
1591
|
children: e
|
|
1701
1592
|
});
|
|
1702
1593
|
}
|
|
1703
|
-
function
|
|
1704
|
-
let { descriptionId: i, disabled: a } =
|
|
1594
|
+
function hs({ className: t, ref: n, ...r }) {
|
|
1595
|
+
let { descriptionId: i, disabled: a } = ls();
|
|
1705
1596
|
return /* @__PURE__ */ H("p", {
|
|
1706
1597
|
ref: n,
|
|
1707
1598
|
id: i,
|
|
@@ -1709,8 +1600,8 @@ function Ss({ className: t, ref: n, ...r }) {
|
|
|
1709
1600
|
...r
|
|
1710
1601
|
});
|
|
1711
1602
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let { errorId: a, invalid: o } =
|
|
1603
|
+
function gs({ className: t, children: n, ref: r, ...i }) {
|
|
1604
|
+
let { errorId: a, invalid: o } = ls();
|
|
1714
1605
|
return !o && !n ? null : /* @__PURE__ */ H("p", {
|
|
1715
1606
|
ref: r,
|
|
1716
1607
|
id: a,
|
|
@@ -1722,15 +1613,15 @@ function Cs({ className: t, children: n, ref: r, ...i }) {
|
|
|
1722
1613
|
}
|
|
1723
1614
|
//#endregion
|
|
1724
1615
|
//#region src/components/Modal/Modal.tsx
|
|
1725
|
-
var
|
|
1616
|
+
var _s = qi(!1), vs = {
|
|
1726
1617
|
sm: "aivex:max-w-modal-sm",
|
|
1727
1618
|
md: "aivex:max-w-modal-md",
|
|
1728
1619
|
lg: "aivex:max-w-modal-lg",
|
|
1729
1620
|
xl: "aivex:max-w-[960px]",
|
|
1730
1621
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
1731
|
-
},
|
|
1732
|
-
function
|
|
1733
|
-
let l =
|
|
1622
|
+
}, ys = e("aivex:flex aivex:max-h-[80dvh] aivex:w-[85vw] aivex:flex-col aivex:gap-2xl aivex:overflow-hidden aivex:p-2xl", "aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none"), bs = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
1623
|
+
function xs({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: s, ...c }) {
|
|
1624
|
+
let l = Xi(_s), u = /* @__PURE__ */ H("h2", {
|
|
1734
1625
|
...t ? { id: t } : {},
|
|
1735
1626
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
1736
1627
|
children: e
|
|
@@ -1743,10 +1634,10 @@ function Os({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1743
1634
|
className: "aivex:shrink-0",
|
|
1744
1635
|
"aria-label": a,
|
|
1745
1636
|
children: /* @__PURE__ */ H(z, { size: 24 })
|
|
1746
|
-
}), p = r ? /* @__PURE__ */ H(
|
|
1637
|
+
}), p = r ? /* @__PURE__ */ H(Ss, { button: r }) : null;
|
|
1747
1638
|
return /* @__PURE__ */ U("div", {
|
|
1748
1639
|
ref: s,
|
|
1749
|
-
className:
|
|
1640
|
+
className: bs,
|
|
1750
1641
|
...c,
|
|
1751
1642
|
children: [/* @__PURE__ */ U("div", {
|
|
1752
1643
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
@@ -1770,7 +1661,7 @@ function Os({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1770
1661
|
}) : d]
|
|
1771
1662
|
});
|
|
1772
1663
|
}
|
|
1773
|
-
function
|
|
1664
|
+
function Ss({ button: e }) {
|
|
1774
1665
|
let { children: t, ...n } = e;
|
|
1775
1666
|
return /* @__PURE__ */ H(o, {
|
|
1776
1667
|
size: "md",
|
|
@@ -1779,7 +1670,7 @@ function ks({ button: e }) {
|
|
|
1779
1670
|
children: t
|
|
1780
1671
|
});
|
|
1781
1672
|
}
|
|
1782
|
-
function
|
|
1673
|
+
function Cs({ children: e, ref: t, ...n }) {
|
|
1783
1674
|
return /* @__PURE__ */ H("div", {
|
|
1784
1675
|
ref: t,
|
|
1785
1676
|
className: "aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto",
|
|
@@ -1787,14 +1678,14 @@ function As({ children: e, ref: t, ...n }) {
|
|
|
1787
1678
|
children: e
|
|
1788
1679
|
});
|
|
1789
1680
|
}
|
|
1790
|
-
function
|
|
1681
|
+
function ws({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1791
1682
|
return /* @__PURE__ */ U("div", {
|
|
1792
1683
|
ref: r,
|
|
1793
1684
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1794
1685
|
...i,
|
|
1795
1686
|
children: [/* @__PURE__ */ H("div", {
|
|
1796
1687
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1797
|
-
children: e && /* @__PURE__ */ H(
|
|
1688
|
+
children: e && /* @__PURE__ */ H(Ts, {
|
|
1798
1689
|
button: e,
|
|
1799
1690
|
variant: "ghost",
|
|
1800
1691
|
color: "secondary",
|
|
@@ -1802,12 +1693,12 @@ function js({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1802
1693
|
})
|
|
1803
1694
|
}), /* @__PURE__ */ U("div", {
|
|
1804
1695
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1805
|
-
children: [t && /* @__PURE__ */ H(
|
|
1696
|
+
children: [t && /* @__PURE__ */ H(Ts, {
|
|
1806
1697
|
button: t,
|
|
1807
1698
|
variant: "solid",
|
|
1808
1699
|
color: "secondary",
|
|
1809
1700
|
className: "aivex:min-w-[84px]"
|
|
1810
|
-
}), n && /* @__PURE__ */ H(
|
|
1701
|
+
}), n && /* @__PURE__ */ H(Ts, {
|
|
1811
1702
|
button: n,
|
|
1812
1703
|
variant: "solid",
|
|
1813
1704
|
color: "primary",
|
|
@@ -1816,7 +1707,7 @@ function js({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1816
1707
|
})]
|
|
1817
1708
|
});
|
|
1818
1709
|
}
|
|
1819
|
-
function
|
|
1710
|
+
function Ts({ button: e, variant: t, color: n, className: r }) {
|
|
1820
1711
|
let { children: i, ...a } = e;
|
|
1821
1712
|
return /* @__PURE__ */ H(R, {
|
|
1822
1713
|
variant: t,
|
|
@@ -1827,15 +1718,15 @@ function Ms({ button: e, variant: t, color: n, className: r }) {
|
|
|
1827
1718
|
children: i
|
|
1828
1719
|
});
|
|
1829
1720
|
}
|
|
1830
|
-
function
|
|
1831
|
-
let m =
|
|
1721
|
+
function Es({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "md", closeOnInteractOutside: o = !0, onOpenAutoFocus: s, onCloseAutoFocus: c, onInteractOutside: l, onKeyDown: u, onKeyUp: d, ref: f, ...p }) {
|
|
1722
|
+
let m = es(s, c);
|
|
1832
1723
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1833
1724
|
open: t,
|
|
1834
1725
|
defaultOpen: n,
|
|
1835
1726
|
onOpenChange: r,
|
|
1836
1727
|
children: /* @__PURE__ */ U(Z.Portal, { children: [/* @__PURE__ */ H(Z.Overlay, { className: "aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ H(Z.Content, {
|
|
1837
1728
|
ref: f,
|
|
1838
|
-
className: e("aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50", "aivex:-translate-x-1/2 aivex:-translate-y-1/2",
|
|
1729
|
+
className: e("aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50", "aivex:-translate-x-1/2 aivex:-translate-y-1/2", ys, vs[a]),
|
|
1839
1730
|
onInteractOutside: (e) => {
|
|
1840
1731
|
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1841
1732
|
},
|
|
@@ -1843,23 +1734,23 @@ function Ns({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "
|
|
|
1843
1734
|
onKeyDown: u,
|
|
1844
1735
|
onKeyUp: d,
|
|
1845
1736
|
...p,
|
|
1846
|
-
children: /* @__PURE__ */ H(
|
|
1737
|
+
children: /* @__PURE__ */ H(_s.Provider, {
|
|
1847
1738
|
value: !0,
|
|
1848
1739
|
children: i
|
|
1849
1740
|
})
|
|
1850
1741
|
})] })
|
|
1851
1742
|
});
|
|
1852
1743
|
}
|
|
1853
|
-
function
|
|
1854
|
-
let f =
|
|
1744
|
+
function Ds({ title: t, description: n, headingButton: r, children: i, tertiaryButton: a, secondaryButton: o, primaryButton: s, size: c = "md", onClose: l, closeAriaLabel: u, ref: d }) {
|
|
1745
|
+
let f = Zi(), p = !!(a || o || s);
|
|
1855
1746
|
return /* @__PURE__ */ U("div", {
|
|
1856
1747
|
ref: d,
|
|
1857
1748
|
role: "dialog",
|
|
1858
1749
|
"aria-modal": "true",
|
|
1859
1750
|
"aria-labelledby": f,
|
|
1860
|
-
className: e(
|
|
1751
|
+
className: e(ys, vs[c]),
|
|
1861
1752
|
children: [
|
|
1862
|
-
/* @__PURE__ */ H(
|
|
1753
|
+
/* @__PURE__ */ H(xs, {
|
|
1863
1754
|
title: t,
|
|
1864
1755
|
titleId: f,
|
|
1865
1756
|
description: n,
|
|
@@ -1867,8 +1758,8 @@ function Ps({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1867
1758
|
onClose: l,
|
|
1868
1759
|
closeAriaLabel: u
|
|
1869
1760
|
}),
|
|
1870
|
-
i && /* @__PURE__ */ H(
|
|
1871
|
-
p && /* @__PURE__ */ H(
|
|
1761
|
+
i && /* @__PURE__ */ H(Cs, { children: i }),
|
|
1762
|
+
p && /* @__PURE__ */ H(ws, {
|
|
1872
1763
|
tertiaryButton: a,
|
|
1873
1764
|
secondaryButton: o,
|
|
1874
1765
|
primaryButton: s
|
|
@@ -1876,9 +1767,9 @@ function Ps({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1876
1767
|
]
|
|
1877
1768
|
});
|
|
1878
1769
|
}
|
|
1879
|
-
function
|
|
1770
|
+
function Os({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i, headingButton: a, children: o, tertiaryButton: s, secondaryButton: c, primaryButton: l, size: u, closeOnInteractOutside: d, onOpenAutoFocus: f, closeAriaLabel: p }) {
|
|
1880
1771
|
let m = !!(s || c || l);
|
|
1881
|
-
return /* @__PURE__ */ U(
|
|
1772
|
+
return /* @__PURE__ */ U(Es, {
|
|
1882
1773
|
open: e,
|
|
1883
1774
|
defaultOpen: t,
|
|
1884
1775
|
onOpenChange: n,
|
|
@@ -1887,14 +1778,14 @@ function Fs({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1887
1778
|
onOpenAutoFocus: f,
|
|
1888
1779
|
...i ? {} : { "aria-describedby": void 0 },
|
|
1889
1780
|
children: [
|
|
1890
|
-
/* @__PURE__ */ H(
|
|
1781
|
+
/* @__PURE__ */ H(xs, {
|
|
1891
1782
|
title: r,
|
|
1892
1783
|
description: i,
|
|
1893
1784
|
headingButton: a,
|
|
1894
1785
|
closeAriaLabel: p
|
|
1895
1786
|
}),
|
|
1896
|
-
o && /* @__PURE__ */ H(
|
|
1897
|
-
m && /* @__PURE__ */ H(
|
|
1787
|
+
o && /* @__PURE__ */ H(Cs, { children: o }),
|
|
1788
|
+
m && /* @__PURE__ */ H(ws, {
|
|
1898
1789
|
tertiaryButton: s,
|
|
1899
1790
|
secondaryButton: c,
|
|
1900
1791
|
primaryButton: l
|
|
@@ -1904,8 +1795,8 @@ function Fs({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1904
1795
|
}
|
|
1905
1796
|
//#endregion
|
|
1906
1797
|
//#region src/components/Modal/ModalBase.tsx
|
|
1907
|
-
function
|
|
1908
|
-
let f =
|
|
1798
|
+
function ks({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0, className: o, onOpenAutoFocus: s, onCloseAutoFocus: c, onEscapeKeyDown: l, onInteractOutside: u, ref: d }) {
|
|
1799
|
+
let f = es(s, c);
|
|
1909
1800
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1910
1801
|
open: t,
|
|
1911
1802
|
defaultOpen: n,
|
|
@@ -1921,10 +1812,10 @@ function Is({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0
|
|
|
1921
1812
|
})] })
|
|
1922
1813
|
});
|
|
1923
1814
|
}
|
|
1924
|
-
var
|
|
1815
|
+
var As = Object.assign(ks, {
|
|
1925
1816
|
Title: Z.Title,
|
|
1926
1817
|
Close: Z.Close
|
|
1927
|
-
}),
|
|
1818
|
+
}), js = V("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
1928
1819
|
variants: {
|
|
1929
1820
|
size: {
|
|
1930
1821
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1940,10 +1831,10 @@ var Ls = Object.assign(Is, {
|
|
|
1940
1831
|
type: "default"
|
|
1941
1832
|
}
|
|
1942
1833
|
});
|
|
1943
|
-
function
|
|
1834
|
+
function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i, showIcon: a = !1, disabled: s = !1, onRemove: c, children: l, ref: u, ...d }) {
|
|
1944
1835
|
return /* @__PURE__ */ U("div", {
|
|
1945
1836
|
ref: u,
|
|
1946
|
-
className: e(
|
|
1837
|
+
className: e(js({
|
|
1947
1838
|
size: n,
|
|
1948
1839
|
type: r
|
|
1949
1840
|
}), s && "aivex:opacity-disable", t),
|
|
@@ -1954,7 +1845,7 @@ function zs({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1954
1845
|
children: i
|
|
1955
1846
|
}) : a ? /* @__PURE__ */ H("span", {
|
|
1956
1847
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1957
|
-
children: /* @__PURE__ */ H(
|
|
1848
|
+
children: /* @__PURE__ */ H(xr, { size: 16 })
|
|
1958
1849
|
}) : null,
|
|
1959
1850
|
/* @__PURE__ */ H("span", {
|
|
1960
1851
|
className: e("aivex:px-[2px] aivex:truncate", n === "sm" ? "aivex:text-label-md aivex:max-w-[160px]" : "aivex:text-label-lg aivex:max-w-[180px]"),
|
|
@@ -1975,8 +1866,8 @@ function zs({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1975
1866
|
}
|
|
1976
1867
|
//#endregion
|
|
1977
1868
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
1978
|
-
var
|
|
1979
|
-
let [l, u] =
|
|
1869
|
+
var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps = Yi(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
1870
|
+
let [l, u] = J(i), d = q(null), [f, p] = J(!1), m = G(() => {
|
|
1980
1871
|
let e = d.current;
|
|
1981
1872
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
1982
1873
|
}, []), h = ({ groupValue: e, optionValue: t }) => r.find((t) => t.groupValue === e)?.options.find((e) => e.value === t), g = l.map((e) => {
|
|
@@ -2012,7 +1903,7 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2012
1903
|
r,
|
|
2013
1904
|
e,
|
|
2014
1905
|
m
|
|
2015
|
-
]), /* @__PURE__ */ H(
|
|
1906
|
+
]), /* @__PURE__ */ H(Os, {
|
|
2016
1907
|
open: e,
|
|
2017
1908
|
onOpenChange: (e) => {
|
|
2018
1909
|
e || t();
|
|
@@ -2035,8 +1926,8 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2035
1926
|
onScroll: m,
|
|
2036
1927
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
2037
1928
|
style: f ? {
|
|
2038
|
-
maskImage:
|
|
2039
|
-
WebkitMaskImage:
|
|
1929
|
+
maskImage: Ns,
|
|
1930
|
+
WebkitMaskImage: Ns
|
|
2040
1931
|
} : void 0,
|
|
2041
1932
|
children: r.map((e) => /* @__PURE__ */ H("div", {
|
|
2042
1933
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -2047,7 +1938,7 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2047
1938
|
children: e.groupLabel
|
|
2048
1939
|
}), e.options.length > 0 ? /* @__PURE__ */ H("div", {
|
|
2049
1940
|
className: "aivex:flex aivex:flex-wrap aivex:gap-md",
|
|
2050
|
-
children: e.options.map((t) => /* @__PURE__ */ H(
|
|
1941
|
+
children: e.options.map((t) => /* @__PURE__ */ H(oo, {
|
|
2051
1942
|
active: l.some((n) => n.groupValue === e.groupValue && n.optionValue === t.value),
|
|
2052
1943
|
shape: "rounded",
|
|
2053
1944
|
size: "md",
|
|
@@ -2065,12 +1956,12 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2065
1956
|
})]
|
|
2066
1957
|
})
|
|
2067
1958
|
}, e.groupValue))
|
|
2068
|
-
}), l.length > 0 && /* @__PURE__ */ H(
|
|
1959
|
+
}), l.length > 0 && /* @__PURE__ */ H(as, {
|
|
2069
1960
|
autoScrollToEnd: !0,
|
|
2070
1961
|
className: "aivex:shrink-0",
|
|
2071
1962
|
children: /* @__PURE__ */ H("div", {
|
|
2072
1963
|
className: "aivex:flex aivex:gap-md",
|
|
2073
|
-
children: g.map((e) => /* @__PURE__ */ H(
|
|
1964
|
+
children: g.map((e) => /* @__PURE__ */ H(Ms, {
|
|
2074
1965
|
size: "md",
|
|
2075
1966
|
startContent: e.icon,
|
|
2076
1967
|
onRemove: () => b(e.value),
|
|
@@ -2081,7 +1972,7 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2081
1972
|
})]
|
|
2082
1973
|
})
|
|
2083
1974
|
});
|
|
2084
|
-
}),
|
|
1975
|
+
}), Fs = V("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
2085
1976
|
variants: {
|
|
2086
1977
|
state: {
|
|
2087
1978
|
default: "aivex:border-border-default",
|
|
@@ -2138,10 +2029,10 @@ var Bs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Vs =
|
|
|
2138
2029
|
layout: "inline"
|
|
2139
2030
|
}
|
|
2140
2031
|
});
|
|
2141
|
-
function
|
|
2032
|
+
function Is({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layout: o = "inline", startContent: s, endContent: c, className: l, children: u }) {
|
|
2142
2033
|
let d = n ? "disabled" : t ? "error" : r ? "focused" : i ? "filled" : "default", f = e("aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs", a === "sm" ? "aivex:size-4 aivex:[&_svg]:size-4" : "aivex:size-5 aivex:[&_svg]:size-5", d === "disabled" ? "aivex:text-text-disabled" : d === "default" ? "aivex:text-icon-tertiary" : "aivex:text-icon-secondary");
|
|
2143
2034
|
return /* @__PURE__ */ U("div", {
|
|
2144
|
-
className: e(
|
|
2035
|
+
className: e(Fs({
|
|
2145
2036
|
state: d,
|
|
2146
2037
|
size: a,
|
|
2147
2038
|
layout: o
|
|
@@ -2161,15 +2052,15 @@ function Us({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layo
|
|
|
2161
2052
|
}
|
|
2162
2053
|
//#endregion
|
|
2163
2054
|
//#region src/components/Logo/index.tsx
|
|
2164
|
-
function
|
|
2165
|
-
if (!
|
|
2055
|
+
function Ls(e, t) {
|
|
2056
|
+
if (!Ji(e)) return;
|
|
2166
2057
|
let n = e.props;
|
|
2167
2058
|
typeof n.id == "string" && t.add(n.id);
|
|
2168
2059
|
let r = n.children;
|
|
2169
|
-
if (r != null) for (let e of Array.isArray(r) ? r : [r])
|
|
2060
|
+
if (r != null) for (let e of Array.isArray(r) ? r : [r]) Ls(e, t);
|
|
2170
2061
|
}
|
|
2171
|
-
function
|
|
2172
|
-
if (!
|
|
2062
|
+
function Rs(e, t) {
|
|
2063
|
+
if (!Ji(e)) return e;
|
|
2173
2064
|
let n = { ...e.props };
|
|
2174
2065
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
2175
2066
|
for (let e of Object.keys(n)) {
|
|
@@ -2181,20 +2072,20 @@ function Gs(e, t) {
|
|
|
2181
2072
|
}
|
|
2182
2073
|
let r = n.children;
|
|
2183
2074
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2184
|
-
let r =
|
|
2185
|
-
return
|
|
2186
|
-
})),
|
|
2075
|
+
let r = Rs(e, t);
|
|
2076
|
+
return Ji(r) && r.key == null ? Ki(r, { key: n }) : r;
|
|
2077
|
+
})), Ki(e, n);
|
|
2187
2078
|
}
|
|
2188
2079
|
function $(e) {
|
|
2189
2080
|
return (t) => {
|
|
2190
|
-
let n =
|
|
2191
|
-
if (
|
|
2081
|
+
let n = Zi().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2082
|
+
if (Ls(r, i), i.size === 0) return r;
|
|
2192
2083
|
let a = /* @__PURE__ */ new Map();
|
|
2193
2084
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2194
|
-
return
|
|
2085
|
+
return Rs(r, a);
|
|
2195
2086
|
};
|
|
2196
2087
|
}
|
|
2197
|
-
var
|
|
2088
|
+
var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2198
2089
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2199
2090
|
viewBox: "0 0 251.366 52",
|
|
2200
2091
|
width: "251.366",
|
|
@@ -2235,7 +2126,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2235
2126
|
fill: e
|
|
2236
2127
|
})
|
|
2237
2128
|
]
|
|
2238
|
-
}),
|
|
2129
|
+
}), Bs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2239
2130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2240
2131
|
viewBox: "0 0 105 24",
|
|
2241
2132
|
width: "105",
|
|
@@ -2395,7 +2286,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2395
2286
|
})
|
|
2396
2287
|
] })
|
|
2397
2288
|
]
|
|
2398
|
-
}),
|
|
2289
|
+
}), Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2399
2290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2400
2291
|
viewBox: "0 0 127 24",
|
|
2401
2292
|
width: "127",
|
|
@@ -2605,7 +2496,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2605
2496
|
})
|
|
2606
2497
|
] })
|
|
2607
2498
|
]
|
|
2608
|
-
}),
|
|
2499
|
+
}), Hs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2609
2500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2610
2501
|
viewBox: "0 0 127 24",
|
|
2611
2502
|
width: "127",
|
|
@@ -2773,7 +2664,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2773
2664
|
})
|
|
2774
2665
|
] })
|
|
2775
2666
|
]
|
|
2776
|
-
}),
|
|
2667
|
+
}), Us = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2777
2668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2778
2669
|
viewBox: "0 0 133 24",
|
|
2779
2670
|
width: "133",
|
|
@@ -2941,7 +2832,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2941
2832
|
})
|
|
2942
2833
|
] })
|
|
2943
2834
|
]
|
|
2944
|
-
}),
|
|
2835
|
+
}), Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2945
2836
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2946
2837
|
viewBox: "0 0 24 24",
|
|
2947
2838
|
width: "24",
|
|
@@ -3056,7 +2947,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3056
2947
|
})
|
|
3057
2948
|
] })
|
|
3058
2949
|
]
|
|
3059
|
-
}),
|
|
2950
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3060
2951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3061
2952
|
viewBox: "0 0 108 24",
|
|
3062
2953
|
width: "108",
|
|
@@ -3205,7 +3096,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3205
3096
|
})
|
|
3206
3097
|
] })
|
|
3207
3098
|
]
|
|
3208
|
-
}),
|
|
3099
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3209
3100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3210
3101
|
viewBox: "0 0 100 24",
|
|
3211
3102
|
width: "100",
|
|
@@ -3344,7 +3235,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3344
3235
|
})
|
|
3345
3236
|
] })
|
|
3346
3237
|
]
|
|
3347
|
-
}),
|
|
3238
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3348
3239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3349
3240
|
viewBox: "0 0 81 24",
|
|
3350
3241
|
width: "81",
|
|
@@ -3448,7 +3339,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3448
3339
|
]
|
|
3449
3340
|
})] })
|
|
3450
3341
|
]
|
|
3451
|
-
}),
|
|
3342
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3452
3343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3453
3344
|
viewBox: "0 0 95 24",
|
|
3454
3345
|
width: "95",
|
|
@@ -3648,7 +3539,7 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3648
3539
|
})
|
|
3649
3540
|
] })
|
|
3650
3541
|
]
|
|
3651
|
-
}),
|
|
3542
|
+
}), Ys = $(zs), Xs = $(Bs), Zs = $(Vs), Qs = $(Hs), $s = $(Us), ec = $(Gs), tc = $(Ws), nc = $(Ks), rc = $(qs), ic = $(Js), ac = V("aivex:inline-flex aivex:max-w-full aivex:items-start aivex:gap-md aivex:rounded-md aivex:border aivex:px-lg aivex:py-xs", {
|
|
3652
3543
|
variants: { type: {
|
|
3653
3544
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3654
3545
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3657,34 +3548,34 @@ var Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3657
3548
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3658
3549
|
} },
|
|
3659
3550
|
defaultVariants: { type: "basic" }
|
|
3660
|
-
}),
|
|
3551
|
+
}), oc = {
|
|
3661
3552
|
basic: {
|
|
3662
|
-
Icon:
|
|
3553
|
+
Icon: ct,
|
|
3663
3554
|
className: "aivex:text-icon-secondary"
|
|
3664
3555
|
},
|
|
3665
3556
|
info: {
|
|
3666
|
-
Icon:
|
|
3557
|
+
Icon: ct,
|
|
3667
3558
|
className: "aivex:text-icon-info"
|
|
3668
3559
|
},
|
|
3669
3560
|
success: {
|
|
3670
|
-
Icon:
|
|
3561
|
+
Icon: hr,
|
|
3671
3562
|
className: "aivex:text-icon-success"
|
|
3672
3563
|
},
|
|
3673
3564
|
warning: {
|
|
3674
|
-
Icon:
|
|
3565
|
+
Icon: hn,
|
|
3675
3566
|
className: "aivex:text-icon-warning"
|
|
3676
3567
|
},
|
|
3677
3568
|
danger: {
|
|
3678
|
-
Icon:
|
|
3569
|
+
Icon: li,
|
|
3679
3570
|
className: "aivex:text-icon-danger"
|
|
3680
3571
|
}
|
|
3681
3572
|
};
|
|
3682
|
-
function
|
|
3683
|
-
let { Icon: u, className: d } =
|
|
3573
|
+
function sc({ className: t, type: n = "basic", message: r, subText: i, children: a, onClose: s, ref: c, ...l }) {
|
|
3574
|
+
let { Icon: u, className: d } = oc[n ?? "basic"];
|
|
3684
3575
|
return /* @__PURE__ */ H("div", {
|
|
3685
3576
|
ref: c,
|
|
3686
3577
|
role: "status",
|
|
3687
|
-
className: e(
|
|
3578
|
+
className: e(ac({ type: n }), t),
|
|
3688
3579
|
...l,
|
|
3689
3580
|
children: /* @__PURE__ */ U("div", {
|
|
3690
3581
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
@@ -3723,20 +3614,20 @@ function mc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3723
3614
|
}
|
|
3724
3615
|
//#endregion
|
|
3725
3616
|
//#region src/components/Nav/Nav.tsx
|
|
3726
|
-
var
|
|
3617
|
+
var cc = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:flex-col aivex:items-center aivex:w-14 aivex:px-0.5 aivex:py-1 aivex:rounded-[6px] aivex:transition-colors aivex:cursor-pointer aivex:select-none", {
|
|
3727
3618
|
variants: { active: {
|
|
3728
3619
|
true: "aivex:bg-bg-brand-subtle",
|
|
3729
3620
|
false: "aivex:bg-transparent"
|
|
3730
3621
|
} },
|
|
3731
3622
|
defaultVariants: { active: !1 }
|
|
3732
3623
|
});
|
|
3733
|
-
function
|
|
3624
|
+
function lc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3734
3625
|
let s = n ?? !1;
|
|
3735
3626
|
return /* @__PURE__ */ U("button", {
|
|
3736
3627
|
ref: a,
|
|
3737
3628
|
type: "button",
|
|
3738
3629
|
"aria-pressed": s,
|
|
3739
|
-
className: e(
|
|
3630
|
+
className: e(cc({ active: n }), t),
|
|
3740
3631
|
...o,
|
|
3741
3632
|
children: [
|
|
3742
3633
|
/* @__PURE__ */ H(L, {}),
|
|
@@ -3754,19 +3645,19 @@ function gc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3754
3645
|
]
|
|
3755
3646
|
});
|
|
3756
3647
|
}
|
|
3757
|
-
var
|
|
3648
|
+
var uc = V("aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:min-h-10 aivex:w-full aivex:items-center aivex:gap-md aivex:px-lg aivex:py-md aivex:rounded-md aivex:text-body-lg-medium aivex:leading-6 aivex:text-left aivex:transition-colors aivex:cursor-pointer", {
|
|
3758
3649
|
variants: { active: {
|
|
3759
3650
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3760
3651
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3761
3652
|
} },
|
|
3762
3653
|
defaultVariants: { active: !1 }
|
|
3763
3654
|
});
|
|
3764
|
-
function
|
|
3655
|
+
function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3765
3656
|
return /* @__PURE__ */ U("button", {
|
|
3766
3657
|
ref: a,
|
|
3767
3658
|
type: "button",
|
|
3768
3659
|
"aria-current": n ? "page" : void 0,
|
|
3769
|
-
className: e(
|
|
3660
|
+
className: e(uc({ active: n }), t),
|
|
3770
3661
|
...o,
|
|
3771
3662
|
children: [
|
|
3772
3663
|
/* @__PURE__ */ H(L, {}),
|
|
@@ -3778,7 +3669,7 @@ function vc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3778
3669
|
]
|
|
3779
3670
|
});
|
|
3780
3671
|
}
|
|
3781
|
-
function
|
|
3672
|
+
function fc({ className: t, children: n, ref: r, ...i }) {
|
|
3782
3673
|
return /* @__PURE__ */ H("nav", {
|
|
3783
3674
|
ref: r,
|
|
3784
3675
|
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
@@ -3788,8 +3679,8 @@ function yc({ className: t, children: n, ref: r, ...i }) {
|
|
|
3788
3679
|
}
|
|
3789
3680
|
//#endregion
|
|
3790
3681
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3791
|
-
function
|
|
3792
|
-
let [h, g] =
|
|
3682
|
+
function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open: a = !1, disabled: o, className: s, ref: c, onFocus: l, onBlur: u, type: d = "button", "aria-expanded": f, children: p, ...m }) {
|
|
3683
|
+
let [h, g] = J(!1), _ = r === "sm" ? 16 : 20;
|
|
3793
3684
|
return /* @__PURE__ */ H("button", {
|
|
3794
3685
|
ref: c,
|
|
3795
3686
|
type: d,
|
|
@@ -3803,7 +3694,7 @@ function bc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3803
3694
|
},
|
|
3804
3695
|
className: e("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", o && "aivex:cursor-not-allowed", s),
|
|
3805
3696
|
...m,
|
|
3806
|
-
children: /* @__PURE__ */ U(
|
|
3697
|
+
children: /* @__PURE__ */ U(Is, {
|
|
3807
3698
|
disabled: o,
|
|
3808
3699
|
focused: a || h,
|
|
3809
3700
|
error: i,
|
|
@@ -3823,8 +3714,8 @@ function bc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3823
3714
|
}
|
|
3824
3715
|
//#endregion
|
|
3825
3716
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3826
|
-
function
|
|
3827
|
-
let [p, m] =
|
|
3717
|
+
function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size: a = "md", onChange: o, renderValue: s, className: c, error: l, id: u, "aria-describedby": d, "aria-invalid": f }) {
|
|
3718
|
+
let [p, m] = J(!1), h = l || f === !0 || f === "true", g = (() => {
|
|
3828
3719
|
for (let e of t) {
|
|
3829
3720
|
let t = e.options.find((e) => e.value === n);
|
|
3830
3721
|
if (t) return s ? s(t, e) : t.label;
|
|
@@ -3839,7 +3730,7 @@ function xc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3839
3730
|
children: [/* @__PURE__ */ H(Q.Trigger, {
|
|
3840
3731
|
asChild: !0,
|
|
3841
3732
|
"aria-invalid": h || void 0,
|
|
3842
|
-
children: /* @__PURE__ */ H(
|
|
3733
|
+
children: /* @__PURE__ */ H(pc, {
|
|
3843
3734
|
id: u,
|
|
3844
3735
|
"aria-describedby": d,
|
|
3845
3736
|
value: g,
|
|
@@ -3856,11 +3747,11 @@ function xc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3856
3747
|
className: e("aivex:z-50 aivex:min-w-[var(--radix-select-trigger-width)] aivex:max-w-[var(--radix-select-trigger-width)]", "aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle", "aivex:overflow-hidden", "aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95", "aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95"),
|
|
3857
3748
|
children: /* @__PURE__ */ H(Q.Viewport, {
|
|
3858
3749
|
style: { overflow: "visible" },
|
|
3859
|
-
children: /* @__PURE__ */ H(
|
|
3750
|
+
children: /* @__PURE__ */ H(vo, {
|
|
3860
3751
|
type: "auto",
|
|
3861
3752
|
className: "aivex:w-full",
|
|
3862
3753
|
viewportClassName: "aivex:max-h-[312px] aivex:p-xs",
|
|
3863
|
-
children: t.map((t, n) => /* @__PURE__ */ U(
|
|
3754
|
+
children: t.map((t, n) => /* @__PURE__ */ U(Gi, { children: [n > 0 && /* @__PURE__ */ H(Q.Separator, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ U(Q.Group, { children: [t.title && /* @__PURE__ */ H(Q.Label, {
|
|
3864
3755
|
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
3865
3756
|
children: t.title
|
|
3866
3757
|
}), t.options.map((t) => /* @__PURE__ */ U(Q.Item, {
|
|
@@ -3879,7 +3770,7 @@ function xc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3879
3770
|
}
|
|
3880
3771
|
//#endregion
|
|
3881
3772
|
//#region src/components/Pagination/Pagination.tsx
|
|
3882
|
-
function
|
|
3773
|
+
function hc({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3883
3774
|
return /* @__PURE__ */ U("button", {
|
|
3884
3775
|
type: "button",
|
|
3885
3776
|
"aria-label": n,
|
|
@@ -3889,7 +3780,7 @@ function Sc({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
|
3889
3780
|
children: [/* @__PURE__ */ H(L, { variant: "default" }), r]
|
|
3890
3781
|
});
|
|
3891
3782
|
}
|
|
3892
|
-
function
|
|
3783
|
+
function gc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3893
3784
|
return /* @__PURE__ */ U("button", {
|
|
3894
3785
|
type: "button",
|
|
3895
3786
|
"aria-label": `Page ${t}`,
|
|
@@ -3903,8 +3794,8 @@ function Cc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
|
3903
3794
|
})]
|
|
3904
3795
|
});
|
|
3905
3796
|
}
|
|
3906
|
-
function
|
|
3907
|
-
let d =
|
|
3797
|
+
function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3798
|
+
let d = q(void 0);
|
|
3908
3799
|
n != null && (d.current = n);
|
|
3909
3800
|
let f = n ?? d.current;
|
|
3910
3801
|
if (f == null) return null;
|
|
@@ -3923,12 +3814,12 @@ function wc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3923
3814
|
children: [
|
|
3924
3815
|
/* @__PURE__ */ U("div", {
|
|
3925
3816
|
className: "aivex:flex aivex:gap-2",
|
|
3926
|
-
children: [/* @__PURE__ */ H(
|
|
3817
|
+
children: [/* @__PURE__ */ H(hc, {
|
|
3927
3818
|
"aria-label": "First page",
|
|
3928
3819
|
disabled: a || y,
|
|
3929
3820
|
onClick: () => s(1),
|
|
3930
3821
|
children: /* @__PURE__ */ H(x, { size: 16 })
|
|
3931
|
-
}), /* @__PURE__ */ H(
|
|
3822
|
+
}), /* @__PURE__ */ H(hc, {
|
|
3932
3823
|
"aria-label": "Previous page group",
|
|
3933
3824
|
disabled: a || y,
|
|
3934
3825
|
onClick: () => s(g - 10),
|
|
@@ -3937,7 +3828,7 @@ function wc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3937
3828
|
}),
|
|
3938
3829
|
/* @__PURE__ */ H("div", {
|
|
3939
3830
|
className: "aivex:flex aivex:gap-2",
|
|
3940
|
-
children: v.map((e) => /* @__PURE__ */ H(
|
|
3831
|
+
children: v.map((e) => /* @__PURE__ */ H(gc, {
|
|
3941
3832
|
page: e,
|
|
3942
3833
|
isActive: e === m,
|
|
3943
3834
|
disabled: a,
|
|
@@ -3946,12 +3837,12 @@ function wc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3946
3837
|
}),
|
|
3947
3838
|
/* @__PURE__ */ U("div", {
|
|
3948
3839
|
className: "aivex:flex aivex:gap-2",
|
|
3949
|
-
children: [/* @__PURE__ */ H(
|
|
3840
|
+
children: [/* @__PURE__ */ H(hc, {
|
|
3950
3841
|
"aria-label": "Next page group",
|
|
3951
3842
|
disabled: a || b,
|
|
3952
3843
|
onClick: () => s(_ + 1),
|
|
3953
3844
|
children: /* @__PURE__ */ H(ue, { size: 16 })
|
|
3954
|
-
}), /* @__PURE__ */ H(
|
|
3845
|
+
}), /* @__PURE__ */ H(hc, {
|
|
3955
3846
|
"aria-label": "Last page",
|
|
3956
3847
|
disabled: a || b,
|
|
3957
3848
|
onClick: () => s(p),
|
|
@@ -3962,7 +3853,7 @@ function wc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3962
3853
|
}),
|
|
3963
3854
|
/* @__PURE__ */ H("div", {
|
|
3964
3855
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
3965
|
-
children: o && /* @__PURE__ */ H(
|
|
3856
|
+
children: o && /* @__PURE__ */ H(mc, {
|
|
3966
3857
|
size: "sm",
|
|
3967
3858
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
3968
3859
|
value: String(i),
|
|
@@ -3979,14 +3870,14 @@ function wc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3979
3870
|
}
|
|
3980
3871
|
//#endregion
|
|
3981
3872
|
//#region src/components/Panel/Panel.tsx
|
|
3982
|
-
var
|
|
3873
|
+
var vc = {
|
|
3983
3874
|
left: "aivex:left-0 aivex:border-r",
|
|
3984
3875
|
right: "aivex:right-0 aivex:border-l"
|
|
3985
|
-
},
|
|
3876
|
+
}, yc = {
|
|
3986
3877
|
md: "aivex:w-[384px]",
|
|
3987
3878
|
lg: "aivex:w-[450px]"
|
|
3988
3879
|
};
|
|
3989
|
-
function
|
|
3880
|
+
function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a, side: o = "right", size: s = "md", ref: c }) {
|
|
3990
3881
|
return /* @__PURE__ */ H(Z.Root, {
|
|
3991
3882
|
open: t,
|
|
3992
3883
|
onOpenChange: n,
|
|
@@ -3994,7 +3885,7 @@ function Dc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3994
3885
|
ref: c,
|
|
3995
3886
|
"data-side": o,
|
|
3996
3887
|
"aria-describedby": void 0,
|
|
3997
|
-
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none",
|
|
3888
|
+
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none", vc[o], yc[s]),
|
|
3998
3889
|
onKeyDown: (e) => {
|
|
3999
3890
|
e.stopPropagation();
|
|
4000
3891
|
},
|
|
@@ -4024,14 +3915,14 @@ function Dc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
4024
3915
|
}
|
|
4025
3916
|
//#endregion
|
|
4026
3917
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
4027
|
-
var
|
|
3918
|
+
var xc = {
|
|
4028
3919
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
4029
3920
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
4030
3921
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
4031
3922
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
4032
|
-
},
|
|
4033
|
-
function
|
|
4034
|
-
let d =
|
|
3923
|
+
}, Sc = (e) => typeof e == "number" ? `${e}px` : e, Cc = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
3924
|
+
function wc({ className: t, current: n, total: r, color: i = "success", width: a = "100%", height: o = 6, isProgressing: s = !1, ref: c, style: l, ...u }) {
|
|
3925
|
+
let d = Cc(n, r), f = Sc(a), p = Sc(o), m = xc[i], h = s ? {
|
|
4035
3926
|
width: "100%",
|
|
4036
3927
|
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
4037
3928
|
} : {
|
|
@@ -4059,28 +3950,28 @@ function jc({ className: t, current: n, total: r, color: i = "success", width: a
|
|
|
4059
3950
|
}
|
|
4060
3951
|
//#endregion
|
|
4061
3952
|
//#region src/components/Radio/Radio.tsx
|
|
4062
|
-
var
|
|
3953
|
+
var Tc = V("aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand", {
|
|
4063
3954
|
variants: { size: {
|
|
4064
3955
|
sm: "aivex:w-4 aivex:h-4",
|
|
4065
3956
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
4066
3957
|
} },
|
|
4067
3958
|
defaultVariants: { size: "md" }
|
|
4068
|
-
}),
|
|
3959
|
+
}), Ec = {
|
|
4069
3960
|
sm: "aivex:w-5 aivex:h-5",
|
|
4070
3961
|
md: "aivex:w-6 aivex:h-6"
|
|
4071
|
-
},
|
|
3962
|
+
}, Dc = {
|
|
4072
3963
|
sm: "aivex:h-5",
|
|
4073
3964
|
md: "aivex:h-6"
|
|
4074
3965
|
};
|
|
4075
|
-
function
|
|
3966
|
+
function Oc({ className: t, label: n, size: r = "md", disabled: i, checked: a, id: o, ref: s, ...c }) {
|
|
4076
3967
|
let l = r ?? "md", u = {
|
|
4077
3968
|
sm: "aivex:w-2 aivex:h-2",
|
|
4078
3969
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
4079
|
-
}[l], d =
|
|
3970
|
+
}[l], d = Zi(), f = o ?? d;
|
|
4080
3971
|
return /* @__PURE__ */ U("span", {
|
|
4081
3972
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
4082
3973
|
children: [/* @__PURE__ */ U("span", {
|
|
4083
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
3974
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", Ec[l]),
|
|
4084
3975
|
children: [
|
|
4085
3976
|
/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
4086
3977
|
/* @__PURE__ */ H("input", {
|
|
@@ -4089,21 +3980,21 @@ function Fc({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
4089
3980
|
type: "radio",
|
|
4090
3981
|
disabled: i,
|
|
4091
3982
|
checked: a,
|
|
4092
|
-
className: e(
|
|
3983
|
+
className: e(Tc({ size: l }), t),
|
|
4093
3984
|
...c
|
|
4094
3985
|
}),
|
|
4095
3986
|
/* @__PURE__ */ H("span", { className: e("aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100", u) })
|
|
4096
3987
|
]
|
|
4097
3988
|
}), n && /* @__PURE__ */ H("label", {
|
|
4098
3989
|
htmlFor: f,
|
|
4099
|
-
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", i && "aivex:cursor-not-allowed",
|
|
3990
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", i && "aivex:cursor-not-allowed", Dc[l]),
|
|
4100
3991
|
children: n
|
|
4101
3992
|
})]
|
|
4102
3993
|
});
|
|
4103
3994
|
}
|
|
4104
3995
|
//#endregion
|
|
4105
3996
|
//#region src/components/Segmented/Segmented.tsx
|
|
4106
|
-
var
|
|
3997
|
+
var kc = qi({ size: "md" }), Ac = {
|
|
4107
3998
|
sm: "aivex:h-7",
|
|
4108
3999
|
md: "aivex:h-8",
|
|
4109
4000
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4111,27 +4002,27 @@ var Ic = Gi({ size: "md" }), Lc = {
|
|
|
4111
4002
|
"icon-md": "aivex:h-8",
|
|
4112
4003
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4113
4004
|
};
|
|
4114
|
-
function
|
|
4115
|
-
let u = r !== void 0, [d, f] =
|
|
4116
|
-
return /* @__PURE__ */ H(
|
|
4005
|
+
function jc({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4006
|
+
let u = r !== void 0, [d, f] = J(i ?? r ?? ""), p = u ? r : d;
|
|
4007
|
+
return /* @__PURE__ */ H(kc.Provider, {
|
|
4117
4008
|
value: {
|
|
4118
4009
|
size: n,
|
|
4119
4010
|
fullWidth: o
|
|
4120
4011
|
},
|
|
4121
|
-
children: /* @__PURE__ */ H(
|
|
4012
|
+
children: /* @__PURE__ */ H(ka.Root, {
|
|
4122
4013
|
ref: c,
|
|
4123
4014
|
type: "single",
|
|
4124
4015
|
value: p,
|
|
4125
4016
|
onValueChange: (e) => {
|
|
4126
4017
|
e && (u || f(e), a?.(e));
|
|
4127
4018
|
},
|
|
4128
|
-
className: e("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", o ? "aivex:w-full" : "aivex:w-fit",
|
|
4019
|
+
className: e("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", o ? "aivex:w-full" : "aivex:w-fit", Ac[n], t),
|
|
4129
4020
|
...l,
|
|
4130
4021
|
children: s
|
|
4131
4022
|
})
|
|
4132
4023
|
});
|
|
4133
4024
|
}
|
|
4134
|
-
var
|
|
4025
|
+
var Mc = {
|
|
4135
4026
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4136
4027
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4137
4028
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4139,36 +4030,36 @@ var zc = {
|
|
|
4139
4030
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4140
4031
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4141
4032
|
};
|
|
4142
|
-
function
|
|
4143
|
-
let { size: a, fullWidth: o } =
|
|
4144
|
-
return /* @__PURE__ */ H(
|
|
4033
|
+
function Nc({ className: t, children: n, ref: r, ...i }) {
|
|
4034
|
+
let { size: a, fullWidth: o } = Xi(kc);
|
|
4035
|
+
return /* @__PURE__ */ H(ka.Item, {
|
|
4145
4036
|
ref: r,
|
|
4146
|
-
className: e("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled",
|
|
4037
|
+
className: e("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled", Mc[a], o && "aivex:flex-1", t),
|
|
4147
4038
|
...i,
|
|
4148
4039
|
children: n
|
|
4149
4040
|
});
|
|
4150
4041
|
}
|
|
4151
4042
|
//#endregion
|
|
4152
4043
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4153
|
-
function
|
|
4044
|
+
function Pc(e) {
|
|
4154
4045
|
return typeof e != "string";
|
|
4155
4046
|
}
|
|
4156
|
-
function
|
|
4047
|
+
function Fc({ className: t, keys: n, ref: r, ...i }) {
|
|
4157
4048
|
return /* @__PURE__ */ H("span", {
|
|
4158
4049
|
ref: r,
|
|
4159
4050
|
className: e("aivex:inline-flex aivex:items-start aivex:gap-xs", t),
|
|
4160
4051
|
...i,
|
|
4161
4052
|
children: n.map((t, n) => /* @__PURE__ */ H("kbd", {
|
|
4162
|
-
className: e("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none",
|
|
4053
|
+
className: e("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none", Pc(t) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
4163
4054
|
children: t
|
|
4164
4055
|
}, n))
|
|
4165
4056
|
});
|
|
4166
4057
|
}
|
|
4167
4058
|
//#endregion
|
|
4168
4059
|
//#region src/components/Spinner/Spinner.tsx
|
|
4169
|
-
var
|
|
4170
|
-
function
|
|
4171
|
-
let c = Math.max(1, n *
|
|
4060
|
+
var Ic = 1.2 / 15.8;
|
|
4061
|
+
function Lc({ className: t, size: n = 20, color: r, label: i = "로딩 중", style: a, ref: o, ...s }) {
|
|
4062
|
+
let c = Math.max(1, n * Ic);
|
|
4172
4063
|
return /* @__PURE__ */ H("div", {
|
|
4173
4064
|
ref: o,
|
|
4174
4065
|
...i === null ? { "aria-hidden": !0 } : {
|
|
@@ -4187,53 +4078,165 @@ function Wc({ className: t, size: n = 20, color: r, label: i = "로딩 중", sty
|
|
|
4187
4078
|
}
|
|
4188
4079
|
//#endregion
|
|
4189
4080
|
//#region src/components/Tab/Tab.tsx
|
|
4190
|
-
function
|
|
4191
|
-
return /* @__PURE__ */ H(
|
|
4081
|
+
function Rc({ className: t, ref: n, ...r }) {
|
|
4082
|
+
return /* @__PURE__ */ H(Aa.Root, {
|
|
4192
4083
|
ref: n,
|
|
4193
4084
|
className: e("aivex:flex aivex:flex-col", t),
|
|
4194
4085
|
...r
|
|
4195
4086
|
});
|
|
4196
4087
|
}
|
|
4197
|
-
var
|
|
4198
|
-
function
|
|
4199
|
-
return /* @__PURE__ */ H(
|
|
4088
|
+
var zc = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
4089
|
+
function Bc({ className: t, ref: n, ...r }) {
|
|
4090
|
+
return /* @__PURE__ */ H(Aa.List, {
|
|
4200
4091
|
ref: n,
|
|
4201
|
-
className: e(
|
|
4092
|
+
className: e(zc, t),
|
|
4202
4093
|
...r
|
|
4203
4094
|
});
|
|
4204
4095
|
}
|
|
4205
|
-
var
|
|
4206
|
-
function
|
|
4207
|
-
return /* @__PURE__ */ H(
|
|
4096
|
+
var Vc = "aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:disabled:cursor-not-allowed aivex:disabled:opacity-40 aivex:data-[state=active]:after:absolute aivex:data-[state=active]:after:bottom-0 aivex:data-[state=active]:after:left-0 aivex:data-[state=active]:after:right-0 aivex:data-[state=active]:after:h-0.5 aivex:data-[state=active]:after:bg-bg-inverse aivex:data-[state=active]:after:content-['']";
|
|
4097
|
+
function Hc({ className: t, ref: n, ...r }) {
|
|
4098
|
+
return /* @__PURE__ */ H(Aa.Trigger, {
|
|
4208
4099
|
ref: n,
|
|
4209
|
-
className: e(
|
|
4100
|
+
className: e(Vc, t),
|
|
4210
4101
|
...r
|
|
4211
4102
|
});
|
|
4212
4103
|
}
|
|
4213
|
-
function
|
|
4214
|
-
return /* @__PURE__ */ H(
|
|
4104
|
+
function Uc({ className: t, ref: n, ...r }) {
|
|
4105
|
+
return /* @__PURE__ */ H(Aa.Content, {
|
|
4215
4106
|
ref: n,
|
|
4216
4107
|
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
4217
4108
|
...r
|
|
4218
4109
|
});
|
|
4219
4110
|
}
|
|
4220
4111
|
//#endregion
|
|
4112
|
+
//#region src/components/Table/Table.tsx
|
|
4113
|
+
var Wc = {
|
|
4114
|
+
sm: "aivex:h-10",
|
|
4115
|
+
md: "aivex:h-12"
|
|
4116
|
+
}, Gc = {
|
|
4117
|
+
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
4118
|
+
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
4119
|
+
}, Kc = ({ direction: e }) => H(e === "asc" ? ft : e === "desc" ? C : Nr, { size: 16 });
|
|
4120
|
+
function qc({ className: t, tableClassName: n, size: r = "md", children: i, ref: a, ...o }) {
|
|
4121
|
+
return /* @__PURE__ */ H("div", {
|
|
4122
|
+
ref: a,
|
|
4123
|
+
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
4124
|
+
...o,
|
|
4125
|
+
children: /* @__PURE__ */ H("table", {
|
|
4126
|
+
"data-size": r,
|
|
4127
|
+
className: e("aivex:w-full aivex:border-separate aivex:border-spacing-0 aivex:text-body-md-regular", n),
|
|
4128
|
+
children: i
|
|
4129
|
+
})
|
|
4130
|
+
});
|
|
4131
|
+
}
|
|
4132
|
+
function Jc({ className: e, children: t, ref: n, ...r }) {
|
|
4133
|
+
return /* @__PURE__ */ H("thead", {
|
|
4134
|
+
ref: n,
|
|
4135
|
+
className: e,
|
|
4136
|
+
...r,
|
|
4137
|
+
children: t
|
|
4138
|
+
});
|
|
4139
|
+
}
|
|
4140
|
+
function Yc({ className: t, children: n, ref: r, ...i }) {
|
|
4141
|
+
return /* @__PURE__ */ H("tfoot", {
|
|
4142
|
+
ref: r,
|
|
4143
|
+
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
4144
|
+
...i,
|
|
4145
|
+
children: n
|
|
4146
|
+
});
|
|
4147
|
+
}
|
|
4148
|
+
function Xc({ className: t, children: n, ref: r, ...i }) {
|
|
4149
|
+
return /* @__PURE__ */ H("caption", {
|
|
4150
|
+
ref: r,
|
|
4151
|
+
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
4152
|
+
...i,
|
|
4153
|
+
children: n
|
|
4154
|
+
});
|
|
4155
|
+
}
|
|
4156
|
+
function Zc({ className: e, children: t, ref: n, ...r }) {
|
|
4157
|
+
return /* @__PURE__ */ H("tbody", {
|
|
4158
|
+
ref: n,
|
|
4159
|
+
className: e,
|
|
4160
|
+
...r,
|
|
4161
|
+
children: t
|
|
4162
|
+
});
|
|
4163
|
+
}
|
|
4164
|
+
function Qc({ className: t, children: n, size: r = "md", selected: i, disabled: a, interactive: o, asChild: s = !1, ref: c, onClick: l, onDoubleClick: u, onKeyDown: d, tabIndex: f, "aria-disabled": p, ...m }) {
|
|
4165
|
+
return /* @__PURE__ */ H(s ? W : "tr", {
|
|
4166
|
+
ref: c,
|
|
4167
|
+
className: e("aivex:transition-colors", Wc[r], !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
4168
|
+
"aria-disabled": a || p || void 0,
|
|
4169
|
+
"data-disabled": a ? "" : void 0,
|
|
4170
|
+
"data-state": i ? "selected" : void 0,
|
|
4171
|
+
tabIndex: a ? -1 : f,
|
|
4172
|
+
onClick: a ? void 0 : l,
|
|
4173
|
+
onDoubleClick: a ? void 0 : u,
|
|
4174
|
+
onKeyDown: a ? void 0 : d,
|
|
4175
|
+
...m,
|
|
4176
|
+
children: n
|
|
4177
|
+
});
|
|
4178
|
+
}
|
|
4179
|
+
function $c({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
4180
|
+
return /* @__PURE__ */ H(s ? W : "th", {
|
|
4181
|
+
ref: c,
|
|
4182
|
+
className: e("aivex:text-left aivex:align-middle aivex:text-body-sm-medium aivex:text-text-secondary aivex:whitespace-nowrap", "aivex:bg-bg-secondary aivex:border-y aivex:border-border-subtle", "aivex:first:border-l aivex:first:rounded-l-md aivex:last:border-r aivex:last:rounded-r-md", Gc[r], t),
|
|
4183
|
+
...l,
|
|
4184
|
+
children: i ? /* @__PURE__ */ U("button", {
|
|
4185
|
+
type: "button",
|
|
4186
|
+
onClick: o,
|
|
4187
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:group aivex:text-text-secondary aivex:hover:text-text-primary aivex:transition-colors",
|
|
4188
|
+
children: [n, /* @__PURE__ */ H("span", {
|
|
4189
|
+
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
4190
|
+
children: /* @__PURE__ */ H(Kc, { direction: a })
|
|
4191
|
+
})]
|
|
4192
|
+
}) : n
|
|
4193
|
+
});
|
|
4194
|
+
}
|
|
4195
|
+
function el({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
4196
|
+
return /* @__PURE__ */ H(i ? W : "td", {
|
|
4197
|
+
ref: a,
|
|
4198
|
+
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle", Gc[r], t),
|
|
4199
|
+
...o,
|
|
4200
|
+
children: n
|
|
4201
|
+
});
|
|
4202
|
+
}
|
|
4203
|
+
function tl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
4204
|
+
return /* @__PURE__ */ H(Qc, { children: /* @__PURE__ */ H(el, {
|
|
4205
|
+
ref: i,
|
|
4206
|
+
colSpan: r,
|
|
4207
|
+
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
4208
|
+
...a,
|
|
4209
|
+
children: n
|
|
4210
|
+
}) });
|
|
4211
|
+
}
|
|
4212
|
+
function nl({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
4213
|
+
return /* @__PURE__ */ H("tbody", {
|
|
4214
|
+
ref: r,
|
|
4215
|
+
className: e,
|
|
4216
|
+
...i,
|
|
4217
|
+
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(Qc, { children: /* @__PURE__ */ H(el, {
|
|
4218
|
+
colSpan: t,
|
|
4219
|
+
children: /* @__PURE__ */ H(_o, { className: "aivex:h-5 aivex:w-full" })
|
|
4220
|
+
}) }, n))
|
|
4221
|
+
});
|
|
4222
|
+
}
|
|
4223
|
+
//#endregion
|
|
4221
4224
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4222
|
-
function
|
|
4223
|
-
let S = o !== void 0, [C, w] =
|
|
4225
|
+
function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a, value: o, defaultValue: s = [], onChange: c, parsePaste: l, validate: u, renderTag: d, placeholder: f, id: p, ref: m, onBlur: h, onCompositionEnd: g, onCompositionStart: _, onFocus: v, onKeyDown: y, onPaste: b, ...x }) {
|
|
4226
|
+
let S = o !== void 0, [C, w] = J(s), T = S ? o : C, [E, D] = J(""), O = q(!1), [k, A] = J(!1), j = k && !a, M = x["aria-invalid"], ee = u ? T.some((e) => !u(e)) : !1, N = r || M === !0 || M === "true" || ee, te = (e) => {
|
|
4224
4227
|
let t = e.trim();
|
|
4225
4228
|
if (!t) return;
|
|
4226
4229
|
let n = [...T, t];
|
|
4227
4230
|
S || w(n), c?.(n), D("");
|
|
4228
|
-
},
|
|
4231
|
+
}, ne = (e) => {
|
|
4229
4232
|
let t = T.filter((t, n) => n !== e);
|
|
4230
4233
|
S || w(t), c?.(t);
|
|
4231
|
-
},
|
|
4234
|
+
}, P = (e) => {
|
|
4232
4235
|
if (y?.(e), !e.defaultPrevented && !a) if (e.key === "Enter") {
|
|
4233
4236
|
if (O.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
4234
|
-
e.preventDefault(), E &&
|
|
4235
|
-
} else e.key === "Backspace" && !E && T.length > 0 &&
|
|
4236
|
-
},
|
|
4237
|
+
e.preventDefault(), E && te(E);
|
|
4238
|
+
} else e.key === "Backspace" && !E && T.length > 0 && ne(T.length - 1);
|
|
4239
|
+
}, F = (e) => {
|
|
4237
4240
|
if (b?.(e), e.defaultPrevented || a || !l) return;
|
|
4238
4241
|
e.preventDefault();
|
|
4239
4242
|
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
@@ -4243,13 +4246,13 @@ function Zc({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4243
4246
|
}
|
|
4244
4247
|
D("");
|
|
4245
4248
|
}, re = T.map((e, t) => {
|
|
4246
|
-
let r = () =>
|
|
4247
|
-
return d ? /* @__PURE__ */ H(
|
|
4249
|
+
let r = () => ne(t), a = u ? u(e) ? "default" : "error" : N ? "error" : "default";
|
|
4250
|
+
return d ? /* @__PURE__ */ H(Gi, { children: d(e, t, {
|
|
4248
4251
|
remove: r,
|
|
4249
4252
|
size: n,
|
|
4250
4253
|
disabled: i,
|
|
4251
4254
|
type: a
|
|
4252
|
-
}) }, `${e}-${t}`) : /* @__PURE__ */ H(
|
|
4255
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ H(Ms, {
|
|
4253
4256
|
size: n === "md" ? "md" : "sm",
|
|
4254
4257
|
type: a,
|
|
4255
4258
|
disabled: i,
|
|
@@ -4266,8 +4269,8 @@ function Zc({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4266
4269
|
onChange: (e) => {
|
|
4267
4270
|
a || D(e.target.value);
|
|
4268
4271
|
},
|
|
4269
|
-
onKeyDown:
|
|
4270
|
-
onPaste:
|
|
4272
|
+
onKeyDown: P,
|
|
4273
|
+
onPaste: F,
|
|
4271
4274
|
onCompositionStart: (e) => {
|
|
4272
4275
|
O.current = !0, _?.(e);
|
|
4273
4276
|
},
|
|
@@ -4278,13 +4281,13 @@ function Zc({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4278
4281
|
a || A(!0), v?.(e);
|
|
4279
4282
|
},
|
|
4280
4283
|
onBlur: (e) => {
|
|
4281
|
-
A(!1), h?.(e), !a && !O.current && E &&
|
|
4284
|
+
A(!1), h?.(e), !a && !O.current && E && te(E);
|
|
4282
4285
|
},
|
|
4283
4286
|
className: e("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1", a && "aivex:cursor-default", n === "sm" ? "aivex:text-body-md-regular aivex:h-6" : "aivex:text-body-lg-regular aivex:h-8"),
|
|
4284
4287
|
...x
|
|
4285
4288
|
});
|
|
4286
|
-
return /* @__PURE__ */ U(
|
|
4287
|
-
error:
|
|
4289
|
+
return /* @__PURE__ */ U(Is, {
|
|
4290
|
+
error: N,
|
|
4288
4291
|
disabled: i,
|
|
4289
4292
|
focused: j,
|
|
4290
4293
|
size: n,
|
|
@@ -4295,8 +4298,8 @@ function Zc({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4295
4298
|
}
|
|
4296
4299
|
//#endregion
|
|
4297
4300
|
//#region src/components/Textarea/Textarea.tsx
|
|
4298
|
-
function
|
|
4299
|
-
let [v, y] =
|
|
4301
|
+
function il({ className: t, error: n, disabled: r, size: i = "md", minHeight: a, fixedHeight: o, startContent: s, endContent: c, id: l, ref: u, onFocus: d, onBlur: f, maxCount: p, value: m, defaultValue: h, onChange: g, ..._ }) {
|
|
4302
|
+
let [v, y] = J(!1), b = p != null, x = (e) => e == null ? 0 : String(e).length, [S, C] = J(() => x(m ?? h)), w = m == null ? S : x(m), T = _["aria-invalid"], E = !!(n || T === !0 || T === "true") || b && w > p, D = (e) => {
|
|
4300
4303
|
C(e.target.value.length), g?.(e);
|
|
4301
4304
|
}, O = {};
|
|
4302
4305
|
a !== void 0 && (O.minHeight = typeof a == "number" ? `${a}px` : a), o && a !== void 0 && (O.height = O.minHeight, O.maxHeight = O.minHeight);
|
|
@@ -4317,7 +4320,7 @@ function Qc({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4317
4320
|
},
|
|
4318
4321
|
..._
|
|
4319
4322
|
});
|
|
4320
|
-
return /* @__PURE__ */ H(
|
|
4323
|
+
return /* @__PURE__ */ H(Is, {
|
|
4321
4324
|
error: E,
|
|
4322
4325
|
disabled: r,
|
|
4323
4326
|
focused: v,
|
|
@@ -4342,10 +4345,10 @@ function Qc({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4342
4345
|
}
|
|
4343
4346
|
//#endregion
|
|
4344
4347
|
//#region src/components/Textbox/Textbox.tsx
|
|
4345
|
-
function
|
|
4346
|
-
let [_, v] =
|
|
4348
|
+
function al({ className: t, error: n, disabled: r, clearable: i, startContent: a, endContent: s, size: c = "md", id: l, ref: u, value: d, defaultValue: f, onChange: p, onFocus: m, onBlur: h, ...g }) {
|
|
4349
|
+
let [_, v] = J(!1), y = q(null), [b, x] = J(typeof f == "string" ? f : f?.toString() ?? ""), S = d !== void 0, C = S ? String(d ?? "") : b, w = i && C.length > 0, T = (e) => {
|
|
4347
4350
|
S || x(e.target.value), p?.(e);
|
|
4348
|
-
}, E =
|
|
4351
|
+
}, E = ja(u, y), D = /* @__PURE__ */ U(Wi, { children: [s, w && /* @__PURE__ */ H(o, {
|
|
4349
4352
|
size: c === "sm" ? "xs" : "sm",
|
|
4350
4353
|
onClick: () => {
|
|
4351
4354
|
S || x(""), p?.({ target: { value: "" } }), y.current?.focus();
|
|
@@ -4356,7 +4359,7 @@ function $c({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4356
4359
|
"aria-label": "입력값 삭제",
|
|
4357
4360
|
children: /* @__PURE__ */ H(z, { size: c === "sm" ? 14 : 16 })
|
|
4358
4361
|
})] }), O = s || w, k = g["aria-invalid"];
|
|
4359
|
-
return /* @__PURE__ */ H(
|
|
4362
|
+
return /* @__PURE__ */ H(Is, {
|
|
4360
4363
|
error: n || k === !0 || k === "true",
|
|
4361
4364
|
disabled: r,
|
|
4362
4365
|
focused: _,
|
|
@@ -4385,7 +4388,7 @@ function $c({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4385
4388
|
}
|
|
4386
4389
|
//#endregion
|
|
4387
4390
|
//#region src/components/Toast/Toast.tsx
|
|
4388
|
-
var
|
|
4391
|
+
var ol = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aivex:justify-center aivex:gap-md aivex:rounded-xs aivex:bg-static-gray aivex:px-xl aivex:py-xs", {
|
|
4389
4392
|
variants: { type: {
|
|
4390
4393
|
default: "",
|
|
4391
4394
|
success: "",
|
|
@@ -4393,14 +4396,14 @@ var el = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4393
4396
|
} },
|
|
4394
4397
|
defaultVariants: { type: "default" }
|
|
4395
4398
|
});
|
|
4396
|
-
function
|
|
4399
|
+
function sl({ className: t, type: n = "default", open: r = !0, message: i, action: a, onClose: s, closeAriaLabel: c = "닫기", ref: l, ...u }) {
|
|
4397
4400
|
if (!r) return null;
|
|
4398
4401
|
let { children: d, ...f } = a ?? {};
|
|
4399
4402
|
return /* @__PURE__ */ U("div", {
|
|
4400
4403
|
ref: l,
|
|
4401
4404
|
role: "status",
|
|
4402
4405
|
"aria-live": "polite",
|
|
4403
|
-
className: e(
|
|
4406
|
+
className: e(ol({ type: n }), t),
|
|
4404
4407
|
...u,
|
|
4405
4408
|
children: [
|
|
4406
4409
|
/* @__PURE__ */ H("p", {
|
|
@@ -4426,9 +4429,9 @@ function tl({ className: t, type: n = "default", open: r = !0, message: i, actio
|
|
|
4426
4429
|
]
|
|
4427
4430
|
});
|
|
4428
4431
|
}
|
|
4429
|
-
function
|
|
4432
|
+
function cl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r = 3, gap: i = 8, style: a, toastOptions: o, ...s }) {
|
|
4430
4433
|
let c = t.endsWith("center");
|
|
4431
|
-
return /* @__PURE__ */ H(
|
|
4434
|
+
return /* @__PURE__ */ H(Ma, {
|
|
4432
4435
|
position: t,
|
|
4433
4436
|
duration: n,
|
|
4434
4437
|
visibleToasts: r,
|
|
@@ -4440,7 +4443,7 @@ function nl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4440
4443
|
toastOptions: {
|
|
4441
4444
|
...o,
|
|
4442
4445
|
unstyled: !0,
|
|
4443
|
-
className: e(
|
|
4446
|
+
className: e(ol({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4444
4447
|
classNames: {
|
|
4445
4448
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4446
4449
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -4455,7 +4458,7 @@ function nl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4455
4458
|
}
|
|
4456
4459
|
//#endregion
|
|
4457
4460
|
//#region src/components/Typography/Typography.tsx
|
|
4458
|
-
var
|
|
4461
|
+
var ll = V("", {
|
|
4459
4462
|
variants: { variant: {
|
|
4460
4463
|
"display-lg": "aivex:text-display-lg",
|
|
4461
4464
|
"display-md": "aivex:text-display-md",
|
|
@@ -4477,7 +4480,7 @@ var rl = V("", {
|
|
|
4477
4480
|
"caption-md": "aivex:text-caption-md"
|
|
4478
4481
|
} },
|
|
4479
4482
|
defaultVariants: { variant: "body-md-regular" }
|
|
4480
|
-
}),
|
|
4483
|
+
}), ul = {
|
|
4481
4484
|
"display-lg": "h1",
|
|
4482
4485
|
"display-md": "h1",
|
|
4483
4486
|
"heading-xl": "h1",
|
|
@@ -4497,23 +4500,23 @@ var rl = V("", {
|
|
|
4497
4500
|
"label-sm": "span",
|
|
4498
4501
|
"caption-md": "span"
|
|
4499
4502
|
};
|
|
4500
|
-
function
|
|
4501
|
-
return /* @__PURE__ */ H(t ??
|
|
4503
|
+
function dl({ as: t, variant: n = "body-md-regular", className: r, children: i, ref: a, ...o }) {
|
|
4504
|
+
return /* @__PURE__ */ H(t ?? ul[n], {
|
|
4502
4505
|
ref: a,
|
|
4503
|
-
className: e(
|
|
4506
|
+
className: e(ll({ variant: n }), r),
|
|
4504
4507
|
...o,
|
|
4505
4508
|
children: i
|
|
4506
4509
|
});
|
|
4507
4510
|
}
|
|
4508
4511
|
//#endregion
|
|
4509
4512
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4510
|
-
function
|
|
4513
|
+
function fl({ className: t, formats: n = [
|
|
4511
4514
|
"jpg",
|
|
4512
4515
|
"bmp",
|
|
4513
4516
|
"png",
|
|
4514
4517
|
"json"
|
|
4515
4518
|
], maxSize: r = "800MB", accept: i, title: a = "Drag and drop here", formatsLabel: o = "Formats", maxSizeLabel: s = "Max size", fileButtonLabel: c = "File", folderButtonLabel: l = "Folder", showFolder: u = !0, onFileSelect: d, onFolderSelect: f, ref: p, ...m }) {
|
|
4516
|
-
let [h, g] =
|
|
4519
|
+
let [h, g] = J(!1), _ = q(null), v = q(null), y = q(0);
|
|
4517
4520
|
return /* @__PURE__ */ U("div", {
|
|
4518
4521
|
ref: p,
|
|
4519
4522
|
className: e("aivex:flex aivex:flex-col aivex:items-center aivex:justify-center aivex:p-[48px] aivex:rounded-[8px] aivex:border-2 aivex:border-dashed aivex:transition-colors", h ? "aivex:bg-[rgba(0,86,216,0.08)] aivex:border-[#99bef6]" : "aivex:border-[#c1c3d2]", t),
|
|
@@ -4563,7 +4566,7 @@ function ol({ className: t, formats: n = [
|
|
|
4563
4566
|
variant: "outline",
|
|
4564
4567
|
color: "secondary",
|
|
4565
4568
|
size: "md",
|
|
4566
|
-
startContent: /* @__PURE__ */ H(
|
|
4569
|
+
startContent: /* @__PURE__ */ H(jr, { size: 16 }),
|
|
4567
4570
|
onClick: () => _.current?.click(),
|
|
4568
4571
|
children: c
|
|
4569
4572
|
}), u && /* @__PURE__ */ H(R, {
|
|
@@ -4597,6 +4600,6 @@ function ol({ className: t, formats: n = [
|
|
|
4597
4600
|
});
|
|
4598
4601
|
}
|
|
4599
4602
|
//#endregion
|
|
4600
|
-
export {
|
|
4603
|
+
export { Gr as AddFolderIcon, Jn as AddPointIcon, nn as AdjustIcon, Or as AiSparkleGradientIcon, Zr as AiSparkleIcon, mn as AiVDataIcon, ec as AiVDataLogo, tc as AiVDataSymbol, ur as AiVOpsIcon, nc as AiVOpsLogo, ci as AiViewIcon, ic as AiViewLogo, bn as AiVisionIcon, Xs as AiVisionLogo, $s as AiVisionMLogo, Qs as AiVisionSLogo, Zs as AiVisionTLogo, jn as AiVotIcon, rc as AiVotLogo, Ys as AivexLogo, Pr as AlignCenterIcon, gr as AlignLeftIcon, Hn as AlignRightIcon, Ln as AngleIcon, Zt as ApertureIcon, mi as ArchiveIcon, Oi as ArrowCircleDownFilledIcon, ln as ArrowCircleDownIcon, wi as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, S as ArrowCircleRightFilledIcon, yi as ArrowCircleRightIcon, gt as ArrowCircleUpFilledIcon, M as ArrowCircleUpIcon, D as ArrowControlIcon, Ge as ArrowCornerLeftTopIcon, ar as ArrowDownIcon, f as ArrowElbowDownLeftIcon, er as ArrowElbowDownRightIcon, Fe as ArrowFlowIcon, Be as ArrowGoingDownIcon, Xe as ArrowGoingUpIcon, P as ArrowLeftDownIcon, I as ArrowLeftIcon, Ae as ArrowLeftRightIcon, ot as ArrowLeftUpIcon, Ni as ArrowRightDownIcon, _ as ArrowRightIcon, Et as ArrowRightUpIcon, de as ArrowUpDownIcon, xt as ArrowUpIcon, jt as AssistantPolyIcon, oe as AssistantRectIcon, Te as AtIcon, a as Avatar, Ia as Badge, Br as BarcodeIcon, be as BellIcon, Vt as BookmarkFilledIcon, It as BookmarkIcon, Kt as BoundingBoxIcon, Ha as BreadCrumb, tt as BrightIcon, R as Button, s as CSVFileIcon, Za as Calendar, An as CalendarIcon, si as CameraIcon, $a as Card, Dr as CaretLineDownIcon, Xr as CaretLineLeftIcon, $n as CaretLineRightIcon, cn as CaretLineUpIcon, Nr as CaretUpDownIcon, ni as ChatIcon, yn as CheckCircleFilledIcon, hr as CheckCircleIcon, pi as CheckDoubleIcon, Tn as CheckIcon, ro as Checkbox, In as CheckboxCheckIcon, zr as CheckboxIndeterminateIcon, so as Chips, io as ChipsCheckbox, xr as CircleDashedIcon, qn as CircleFilledIcon, Vn as CircleOutlineIcon, tn as ClipIcon, vi as ClipboardIcon, Mi as CloseCircleFilledIcon, pn as CloseCircleIcon, z as CloseIcon, ht as ClosedEyesIcon, go as Coachmark, E as CodeIcon, Ci as CompareIcon, bt as ConfirmIcon, ne as ConnectedIcon, j as ContrastIcon, Ye as Copy1Icon, lr as Copy2Icon, g as CopyIcon, ir as CpuIcon, ze as CreditCardIcon, We as CropIcon, et as CuttingIcon, Zo as DataGrid, Ro as DataGridBody, Bo as DataGridCell, Ao as DataGridColumnSettings, Ho as DataGridEmpty, Lo as DataGridHeader, Vo as DataGridHeaderCell, Wo as DataGridInfiniteTrigger, Uo as DataGridLoading, Fo as DataGridRoot, zo as DataGridRow, Io as DataGridViewport, ae as DatabaseIcon, ye as DefectGeneratorIcon, Pe as DeleteIcon, ut as DeletePointIcon, ns as Dialog, Li as DirectionDoubleDownIcon, x as DirectionDoubleLeftIcon, At as DirectionDoubleRightIcon, he as DirectionDoubleUpIcon, Tt as DirectionDownIcon, Ft as DirectionLeftIcon, ue as DirectionRightIcon, ke as DirectionUpIcon, Wr as DisconnectedIcon, Ri as Divider, Ra as Dot, we as DotIcon, Gt as DownloadIcon, Bt as DragHandleIcon, as as DraggableScroll, ss as Drawer, Xt as EditIcon, at as EmptyIcon, d as EnglishIcon, On as EqualIcon, ai as EraserIcon, Tr as ExpandIcon, Jr as ExperimentIcon, Zn as ExportIcon, on as FailedIcon, ds as Field, ps as FieldContent, ms as FieldControl, hs as FieldDescription, gs as FieldError, fs as FieldLabel, jr as FileIcon, ei as FilterFilledIcon, _n as FilterIcon, Ps as FilterModal, pr as FitIcon, di as FloppyDiskIcon, Cn as FolderCloseIcon, Pn as FolderOpenIcon, Lr as GalleryViewLargeIcon, yr as GalleryViewMediumIcon, Gn as GalleryViewSmallIcon, zn as GitBranchIcon, $t as GitCommitIcon, gi as GlobalIcon, Ai as GpuIcon, dn as GraphIcon, Ei as GraphPieIcon, pt as GraphScatterIcon, w as GridIcon, xi as GuideHandleIcon, vt as GuideLineIcon, N as HamburgerIcon, k as HandIcon, qe as HeadphonesIcon, sr as HelpIcon, m as HistoryIcon, nr as HomeIcon, Le as HourglassIcon, o as IconButton, He as ImageBrokenIcon, Qe as ImageIcon, re as ImagesIcon, _e as ImportIcon, Me as InfoFilledIcon, ct as InfoIcon, Is as InputBase, L as InteractionLayer, Fi as KebabIcon, y as KeyDeleteIcon, Ot as KeyIcon, pe as KeyReturnIcon, Ct as KeyboardIcon, Nt as KoreanIcon, ce as LabelPointIcon, De as LanguageIcon, Hr as LightbulbIcon, Se as LightingFilledIcon, Ut as LightingIcon, Rt as LineIcon, Jt as LineLinkIcon, rt as LinkIcon, l as LinkedInIcon, kn as ListIcon, oi as ListPlayIcon, Er as LockIcon, Yr as LoginIcon, Qn as LogoutIcon, sn as MagicWandIcon, Mr as MailIcon, ti as MapIcon, vn as MapPinIcon, mr as MeatballIcon, zi as Menu, sc as Messagebox, fi as MicroscopeIcon, wn as MinimizeIcon, Fn as MinimizeWindowIcon, Rr as MinusCircleFilledIcon, br as MinusCircleIcon, Kn as MinusIcon, Os as Modal, As as ModalBase, Ds as ModalSurface, Bn as ModelIcon, en as MonitorIcon, _i as MouseClickLeftIcon, ji as MouseClickRightIcon, fn as MoveFolderIcon, Di as MoveIcon, mt as MultiSelectionIcon, T as MuteIcon, fc as Nav, dc as NavItem, lc as NavTile, Si as NewTabIcon, yt as NotEqualIcon, te as OpenEyesIcon, A as OpenedMailIcon, $o as Overlay, Je as PackageIcon, cr as PageIcon, _c as Pagination, bc as Panel, h as PasteIcon, rr as PauseCircleFilledIcon, Re as PauseCircleIcon, Ue as PauseIcon, $e as PenIcon, ie as PencilIcon, ve as PhoneIcon, Ne as PinIcon, lt as PipelineIcon, Ii as PixelIcon, b as PlayCircleFilledIcon, kt as PlayCircleIcon, me as PlayIcon, wt as PlayProgressIcon, Pt as PlusCircleFilledIcon, le as PlusCircleIcon, Oe as PlusIcon, Ur as PointEditIcon, Ce as PointIcon, B as Popover, wc as ProgressBar, Wt as PushPinFilledIcon, zt as PushPinIcon, Yt as QuestionIcon, Oc as Radio, it as RectDashedIcon, u as RectIcon, Dn as RedoIcon, ii as RefreshIcon, wr as RepeatIcon, qr as RepeatOnceIcon, Xn as RequestStatusIcon, an as RocketIcon, Ar as RotateRectIcon, $r as RotateRectOCRIcon, gn as RulerIcon, fr as ScaleLeftBottomIcon, ui as ScaleLeftTopIcon, Sn as ScaleRightBottomIcon, Nn as ScaleRightTopIcon, vo as ScrollArea, yo as ScrollBar, Ir as SearchIcon, Nc as SegmentedItem, jc as SegmentedRoot, mc as SelectBox, pc as SelectButton, vr as SendIcon, Wn as SettingIcon, Rn as ShapesIcon, Fc as Shortcut, Qt as ShrinkIcon, hi as ShuffleIcon, ki as SidebarIcon, un as SimplificationIcon, _o as Skeleton, Bi as Slider, Ti as SmoothIcon, ft as SortAscendingIcon, C as SortDescendingIcon, bi as SoundIcon, _t as SpecificAreaIcon, Lc as Spinner, ee as StarFilledIcon, O as StarIcon, Ke as StopCircleFilledIcon, or as StopCircleIcon, p as StopIcon, tr as StorageIcon, Ie as StrokeIcon, Ui as Switch, Uc as TabContent, Bc as TabList, Rc as TabRoot, Hc as TabTrigger, qc as Table, Zc as TableBody, Xc as TableCaption, el as TableCell, tl as TableEmpty, Yc as TableFooter, $c as TableHead, Jc as TableHeader, nl as TableLoading, Qc as TableRow, Ms as Tag, Ve as TagFilledIcon, Ze as TagFilledOpacityIcon, F as TagIcon, rl as Tagbox, ge as TargetIcon, je as TaskQueueIcon, st as TeamIcon, Pi as TempIcon, v as TestIcon, Dt as TextBoldIcon, fe as TextH1Icon, St as TextH2Icon, Mt as TextH3Icon, se as TextIcon, Ee as TextItalicIcon, Vr as TextStrikethroughIcon, xe as TextUnderlineIcon, il as Textarea, al as Textbox, Ht as ThumbsDownFilledIcon, Lt as ThumbsDownIcon, qt as ThumbsUpIcon, nt as TimeIcon, sl as Toast, cl as ToastToaster, oo as ToggleButton, c as ToolIcon, t as Tooltip, En as TriangleDashedIcon, dl as Typography, ri as UndoIcon, Cr as UneditableIcon, Kr as UnlockIcon, Yn as UnreadIcon, fl as UploadArea, rn as UploadIcon, kr as UserIcon, Qr as WarningCircleFilledIcon, hn as WarningCircleIcon, dr as WarningTriangleFilledIcon, li as WarningTriangleIcon, xn as WheelIcon, Mn as WorkspaceIcon, Fr as Zoom100Icon, _r as ZoomInIcon, Un as ZoomOutIcon, n as avatarVariants, Pa as badgeVariants, Sr as buttonVariants, eo as checkboxVariants, co as chipsVariants, e as cn, Hi as dividerVariants, La as dotVariants, us as fieldVariants, ea as getCoreRowModel, na as getExpandedRowModel, ra as getFacetedMinMaxValues, ia as getFacetedRowModel, aa as getFacetedUniqueValues, oa as getFilteredRowModel, sa as getGroupedRowModel, ca as getPaginationRowModel, la as getSortedRowModel, r as iconButtonVariants, Fs as inputContainerVariants, Fs as inputWrapperVariants, Vi as isShortcutTarget, ac as messageboxVariants, uc as navItemVariants, cc as navTileVariants, Qo as overlayVariants, Tc as radioVariants, js as tagVariants, Na as toast, ol as toastVariants, ao as toggleButtonVariants, i as tooltipContentVariants, ll as typographyVariants };
|
|
4601
4604
|
|
|
4602
4605
|
//# sourceMappingURL=index.js.map
|