@aivex/ui 1.2.0-dev.44 → 1.2.0-dev.46
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +345 -334
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
import { cn as e } from "./utils.js";
|
|
4
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
|
|
6
|
-
import { a as
|
|
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 P, F, Fi as I, Fn as ne, Fr as re, Ft as ie, G as ae, Gi as oe, Gn as se, Gr as ce, Gt as le, H as ue, Hi as de, Hn as fe, Hr as pe, Ht as me, I as L, Ii as he, In as ge, Ir as _e, It as ve, J as ye, Ji as be, Jn as xe, Jr as Se, Jt as Ce, K as we, Ki as Te, Kn as Ee, Kr as De, Kt as Oe, L as ke, Li as Ae, Ln as je, Lr as Me, Lt as Ne, M as Pe, Mi as Fe, Mn as Ie, Mr as Le, Mt as Re, N as ze, Ni as Be, Nn as Ve, Nr as He, Nt as Ue, O as We, Oi as Ge, On as Ke, Or as qe, Ot as Je, P as Ye, Pi as Xe, Pn as Ze, Pr as Qe, Pt as $e, Q as et, Qi as tt, Qn as nt, Qr as rt, Qt as it, R as at, Ri as ot, Rn as st, Rr as ct, Rt as lt, S as ut, Si as dt, Sn as ft, Sr as pt, St as mt, T as ht, Ti as gt, Tn as _t, Tr as vt, Tt as yt, U as bt, Ui as xt, Un as St, Ur as Ct, Ut as wt, V as Tt, Vi as Et, Vn as Dt, Vr as Ot, Vt as kt, W as At, Wi as jt, Wn as Mt, Wr as Nt, Wt as Pt, X as Ft, Xi as It, Xn as Lt, Xr as Rt, Xt as zt, Y as Bt, Yi as Vt, Yn as Ht, Yr as Ut, Yt as Wt, Z as Gt, Zi as Kt, Zn as qt, Zr as Jt, Zt as Yt, _ as Xt, _i as Zt, _n as Qt, _r as $t, _t as en, a as tn, aa as nn, ai as rn, an, ar as on, at as sn, b as cn, bi as ln, bn as un, br as dn, bt as fn, c as pn, ca as mn, ci as hn, cn as gn, cr as _n, ct as vn, d as yn, da as bn, di as xn, dn as Sn, dr as Cn, dt as wn, ea as Tn, ei as En, en as Dn, er as On, et as kn, f as An, fa as jn, fi as Mn, fn as Nn, fr as Pn, ft as Fn, g as In, ga as R, gi as Ln, gn as Rn, gr as zn, gt as Bn, h as Vn, ha as Hn, hi as Un, hn as Wn, hr as Gn, ht as Kn, i as qn, ia as Jn, ii as Yn, in as Xn, ir as Zn, it as Qn, j as $n, ji as er, jn as tr, jr as nr, jt as rr, k as ir, ki as ar, kn as or, kr as sr, kt as cr, l as lr, la as ur, li as dr, ln as fr, lr as pr, lt as mr, m as hr, ma as gr, mi as _r, mn as vr, mr as yr, mt as br, n as xr, na as Sr, ni as Cr, nn as wr, nr as Tr, nt as Er, o as Dr, oa as Or, oi as kr, on as Ar, or as jr, ot as Mr, p as Nr, pa as Pr, pi as Fr, pn as Ir, pr as Lr, pt as Rr, q as zr, qi as Br, qn as Vr, qr as Hr, qt as Ur, r as Wr, ra as Gr, ri as Kr, rn as qr, rr as Jr, rt as Yr, s as Xr, sa as Zr, si as Qr, sn as $r, sr as ei, st as ti, t as z, ta as ni, ti as ri, tn as ii, tr as ai, tt as oi, u as si, ua as ci, ui as li, un as ui, ur as di, ut as fi, v as pi, vi as mi, vn as hi, vr as gi, vt as _i, w as vi, wi as yi, wn as bi, wr as xi, wt as Si, x as Ci, xi as wi, xn as Ti, xr as Ei, xt as B, y as Di, yi as Oi, yn as ki, yr as Ai, yt as ji, z as Mi, zi as Ni, zn as Pi, zr as Fi, zt as Ii } from "./Button-CH_7RCR4.js";
|
|
6
|
+
import { a as Li, c as Ri, i as zi, n as Bi, o as Vi, r as Hi, s as Ui } from "./keyboard-CnteNNEc.js";
|
|
7
7
|
import { cva as V } from "class-variance-authority";
|
|
8
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";
|
|
@@ -262,7 +262,7 @@ function za({ item: e, isCurrent: t }) {
|
|
|
262
262
|
onClick: e.onClick,
|
|
263
263
|
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors",
|
|
264
264
|
...r,
|
|
265
|
-
children: [/* @__PURE__ */ H(
|
|
265
|
+
children: [/* @__PURE__ */ H(R, { variant: "default" }), e.label]
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
function Ba() {
|
|
@@ -273,26 +273,26 @@ function Ba() {
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function Va({ items: e }) {
|
|
276
|
-
return /* @__PURE__ */ U(
|
|
276
|
+
return /* @__PURE__ */ U(Ri, { children: [/* @__PURE__ */ H(Ri.Trigger, {
|
|
277
277
|
asChild: !0,
|
|
278
278
|
children: /* @__PURE__ */ U("button", {
|
|
279
279
|
type: "button",
|
|
280
280
|
"aria-label": "숨겨진 경로 보기",
|
|
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
|
-
children: [/* @__PURE__ */ H(
|
|
282
|
+
children: [/* @__PURE__ */ H(R, { variant: "default" }), "···"]
|
|
283
283
|
})
|
|
284
|
-
}), /* @__PURE__ */ H(
|
|
284
|
+
}), /* @__PURE__ */ H(Ri.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(Ri.Item, {
|
|
290
290
|
asChild: !0,
|
|
291
291
|
children: /* @__PURE__ */ U(n, {
|
|
292
292
|
href: e.href,
|
|
293
293
|
onClick: e.onClick,
|
|
294
294
|
...r,
|
|
295
|
-
children: [/* @__PURE__ */ H(
|
|
295
|
+
children: [/* @__PURE__ */ H(R, { variant: "default" }), /* @__PURE__ */ H("span", {
|
|
296
296
|
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
297
297
|
children: e.label
|
|
298
298
|
})]
|
|
@@ -391,25 +391,25 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
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(Qa, { children: m && /* @__PURE__ */ H(
|
|
394
|
+
/* @__PURE__ */ H(Qa, { children: m && /* @__PURE__ */ H(z, {
|
|
395
395
|
variant: "outline",
|
|
396
396
|
color: "secondary",
|
|
397
397
|
size: "icon-md",
|
|
398
398
|
"aria-label": r ?? y.format(Ja(a, -1)),
|
|
399
399
|
onClick: m,
|
|
400
|
-
children: /* @__PURE__ */ H(
|
|
400
|
+
children: /* @__PURE__ */ H(Pt, { size: 20 })
|
|
401
401
|
}) }),
|
|
402
402
|
/* @__PURE__ */ H("span", {
|
|
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(Qa, { children: h && /* @__PURE__ */ H(
|
|
406
|
+
/* @__PURE__ */ H(Qa, { children: h && /* @__PURE__ */ H(z, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
color: "secondary",
|
|
409
409
|
size: "icon-md",
|
|
410
410
|
"aria-label": i ?? y.format(Ja(a, 1)),
|
|
411
411
|
onClick: h,
|
|
412
|
-
children: /* @__PURE__ */ H(
|
|
412
|
+
children: /* @__PURE__ */ H(le, { size: 20 })
|
|
413
413
|
}) })
|
|
414
414
|
]
|
|
415
415
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -434,7 +434,7 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
434
434
|
children: [
|
|
435
435
|
s && /* @__PURE__ */ H("span", { className: e("aivex:absolute aivex:inset-x-0 aivex:top-1/2 aivex:h-9 aivex:-translate-y-1/2 aivex:bg-bg-tertiary", i && "aivex:rounded-l-full", a && "aivex:rounded-r-full") }),
|
|
436
436
|
o && /* @__PURE__ */ H("span", { className: "aivex:absolute aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md aivex:bg-bg-brand" }),
|
|
437
|
-
!r && /* @__PURE__ */ H(
|
|
437
|
+
!r && /* @__PURE__ */ H(R, {
|
|
438
438
|
fill: !1,
|
|
439
439
|
className: "aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md"
|
|
440
440
|
}),
|
|
@@ -513,7 +513,7 @@ function ro({ className: t, label: n, size: r = "md", indeterminate: i = !1, dis
|
|
|
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 ? Rr : Fn, { size: y })
|
|
517
517
|
})
|
|
518
518
|
]
|
|
519
519
|
}), n && /* @__PURE__ */ H("label", {
|
|
@@ -531,7 +531,7 @@ function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
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),
|
|
533
533
|
children: [
|
|
534
|
-
/* @__PURE__ */ H(
|
|
534
|
+
/* @__PURE__ */ H(R, {}),
|
|
535
535
|
/* @__PURE__ */ H("input", {
|
|
536
536
|
ref: c,
|
|
537
537
|
id: s,
|
|
@@ -549,7 +549,7 @@ function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
549
549
|
className: "aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0",
|
|
550
550
|
children: [/* @__PURE__ */ H("span", { className: e("aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors", p ? "aivex:bg-bg-brand aivex:border-transparent" : "aivex:bg-bg-primary aivex:border-border-default") }), p && /* @__PURE__ */ H("span", {
|
|
551
551
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
552
|
-
children: /* @__PURE__ */ H(
|
|
552
|
+
children: /* @__PURE__ */ H(Fn, { size: "sm" })
|
|
553
553
|
})]
|
|
554
554
|
})
|
|
555
555
|
]
|
|
@@ -642,7 +642,7 @@ function oo({ 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(
|
|
645
|
+
children: [/* @__PURE__ */ H(R, {}), 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
|
|
@@ -663,7 +663,7 @@ function oo({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
663
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
664
|
function uo({ button: t, variant: n, className: r }) {
|
|
665
665
|
let { children: i, ...a } = t;
|
|
666
|
-
return /* @__PURE__ */ H(
|
|
666
|
+
return /* @__PURE__ */ H(z, {
|
|
667
667
|
variant: n,
|
|
668
668
|
color: "primary",
|
|
669
669
|
size: "md",
|
|
@@ -703,7 +703,7 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
703
703
|
color: "white",
|
|
704
704
|
size: "xs",
|
|
705
705
|
onClick: l,
|
|
706
|
-
children: /* @__PURE__ */ H(
|
|
706
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
707
707
|
})]
|
|
708
708
|
}),
|
|
709
709
|
/* @__PURE__ */ H("div", {
|
|
@@ -785,7 +785,7 @@ function yo({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
|
785
785
|
...i,
|
|
786
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
|
-
children: [/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ H(
|
|
788
|
+
children: [/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ H(R, { variant: "strong" })]
|
|
789
789
|
})
|
|
790
790
|
});
|
|
791
791
|
}
|
|
@@ -822,7 +822,7 @@ function Oo({ column: t }) {
|
|
|
822
822
|
...n,
|
|
823
823
|
...r,
|
|
824
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(
|
|
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(zt, { size: 20 })]
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
});
|
|
@@ -843,7 +843,7 @@ function ko({ column: t }) {
|
|
|
843
843
|
}),
|
|
844
844
|
/* @__PURE__ */ U("span", {
|
|
845
845
|
className: Eo,
|
|
846
|
-
children: [/* @__PURE__ */ H("span", { className: e(Do, "aivex:opacity-8") }), /* @__PURE__ */ H(
|
|
846
|
+
children: [/* @__PURE__ */ H("span", { className: e(Do, "aivex:opacity-8") }), /* @__PURE__ */ H(zt, { size: 20 })]
|
|
847
847
|
})
|
|
848
848
|
]
|
|
849
849
|
});
|
|
@@ -886,21 +886,21 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
886
886
|
_(), l(!0);
|
|
887
887
|
},
|
|
888
888
|
onMouseLeave: () => l(!1),
|
|
889
|
-
children: /* @__PURE__ */ U(
|
|
889
|
+
children: /* @__PURE__ */ U(Ui, {
|
|
890
890
|
open: o,
|
|
891
891
|
onOpenChange: s,
|
|
892
|
-
children: [/* @__PURE__ */ H(
|
|
892
|
+
children: [/* @__PURE__ */ H(Ui.Trigger, {
|
|
893
893
|
asChild: !0,
|
|
894
|
-
children: /* @__PURE__ */ H(
|
|
894
|
+
children: /* @__PURE__ */ H(z, {
|
|
895
895
|
size: "icon-md",
|
|
896
896
|
variant: "outline",
|
|
897
897
|
color: "secondary",
|
|
898
898
|
"aria-label": a,
|
|
899
899
|
className: "aivex:bg-bg-primary aivex:shadow-md",
|
|
900
|
-
children: /* @__PURE__ */ H(
|
|
900
|
+
children: /* @__PURE__ */ H(tn, { size: 20 })
|
|
901
901
|
})
|
|
902
|
-
}), /* @__PURE__ */ U(
|
|
903
|
-
/* @__PURE__ */ H(
|
|
902
|
+
}), /* @__PURE__ */ U(Ui.Content, { children: [
|
|
903
|
+
/* @__PURE__ */ H(Ui.Title, {
|
|
904
904
|
className: "aivex:shrink-0",
|
|
905
905
|
children: n
|
|
906
906
|
}),
|
|
@@ -933,9 +933,9 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
933
933
|
})
|
|
934
934
|
})
|
|
935
935
|
}),
|
|
936
|
-
/* @__PURE__ */ H(
|
|
936
|
+
/* @__PURE__ */ H(Ui.Footer, {
|
|
937
937
|
className: "aivex:shrink-0",
|
|
938
|
-
children: /* @__PURE__ */ H(
|
|
938
|
+
children: /* @__PURE__ */ H(z, {
|
|
939
939
|
size: "md",
|
|
940
940
|
variant: "solid",
|
|
941
941
|
color: "secondary",
|
|
@@ -1025,25 +1025,35 @@ function zo({ className: t, children: n, asChild: r = !1, selected: i, disabled:
|
|
|
1025
1025
|
children: n
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1028
|
+
var Bo = "aivex:[overflow:clip] aivex:[overflow-clip-margin:4px]";
|
|
1029
|
+
function Vo(e, t) {
|
|
1030
|
+
let n = (e) => typeof e == "string" || typeof e == "number";
|
|
1031
|
+
return t || !(Array.isArray(e) ? e.every(n) : n(e)) ? e : /* @__PURE__ */ H("span", {
|
|
1032
|
+
className: "aivex:min-w-0 aivex:truncate",
|
|
1033
|
+
children: e
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
function Ho({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "cell", ...s }) {
|
|
1029
1037
|
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1038
|
+
"data-aivex-grid-cell": "",
|
|
1030
1039
|
ref: a,
|
|
1031
1040
|
role: o,
|
|
1032
|
-
className: e("aivex:flex aivex:
|
|
1041
|
+
className: e("aivex:flex aivex:self-stretch aivex:items-center aivex:gap-xs aivex:text-body-md-regular aivex:text-text-primary", Bo, 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
1042
|
...s,
|
|
1034
1043
|
children: n
|
|
1035
1044
|
});
|
|
1036
1045
|
}
|
|
1037
|
-
function
|
|
1046
|
+
function Uo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "columnheader", ...s }) {
|
|
1038
1047
|
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1048
|
+
"data-aivex-grid-cell": "",
|
|
1039
1049
|
ref: a,
|
|
1040
1050
|
role: o,
|
|
1041
|
-
className: e("aivex:flex aivex:
|
|
1051
|
+
className: e("aivex:flex aivex:items-center aivex:gap-xs aivex:whitespace-nowrap", Bo, 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),
|
|
1042
1052
|
...s,
|
|
1043
|
-
children: n
|
|
1053
|
+
children: Vo(n, i)
|
|
1044
1054
|
});
|
|
1045
1055
|
}
|
|
1046
|
-
function
|
|
1056
|
+
function Wo({ className: t, children: n, ref: r, ...i }) {
|
|
1047
1057
|
return /* @__PURE__ */ H("div", {
|
|
1048
1058
|
ref: r,
|
|
1049
1059
|
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),
|
|
@@ -1051,18 +1061,18 @@ function Ho({ className: t, children: n, ref: r, ...i }) {
|
|
|
1051
1061
|
children: n
|
|
1052
1062
|
});
|
|
1053
1063
|
}
|
|
1054
|
-
function
|
|
1064
|
+
function Go({ className: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1055
1065
|
return /* @__PURE__ */ H("div", {
|
|
1056
1066
|
ref: r,
|
|
1057
1067
|
className: e("aivex:flex aivex:flex-col", t),
|
|
1058
1068
|
...i,
|
|
1059
|
-
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(zo, { children: /* @__PURE__ */ H(
|
|
1069
|
+
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(zo, { children: /* @__PURE__ */ H(Ho, {
|
|
1060
1070
|
className: "aivex:w-full",
|
|
1061
1071
|
children: /* @__PURE__ */ H(_o, { className: "aivex:h-5 aivex:w-full" })
|
|
1062
1072
|
}) }, t))
|
|
1063
1073
|
});
|
|
1064
1074
|
}
|
|
1065
|
-
function
|
|
1075
|
+
function Ko({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
1066
1076
|
return /* @__PURE__ */ H("div", {
|
|
1067
1077
|
ref: i,
|
|
1068
1078
|
role: "presentation",
|
|
@@ -1073,7 +1083,7 @@ function Wo({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
|
1073
1083
|
}
|
|
1074
1084
|
//#endregion
|
|
1075
1085
|
//#region src/components/DataGrid/DataGridRows.tsx
|
|
1076
|
-
function
|
|
1086
|
+
function qo({ 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
1087
|
let { original: y, id: b } = t, x = t.index, S = Zi(), C = !!m, w = !!l && !s, T = r !== void 0, E = /* @__PURE__ */ H(zo, {
|
|
1078
1088
|
ref: T ? void 0 : i,
|
|
1079
1089
|
"data-datagrid-row-id": b,
|
|
@@ -1105,7 +1115,7 @@ function Go({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1105
1115
|
onFocus: f && v ? () => v(b) : void 0,
|
|
1106
1116
|
children: t.getVisibleCells().map((t) => {
|
|
1107
1117
|
let { meta: n } = t.column.columnDef;
|
|
1108
|
-
return /* @__PURE__ */ H(
|
|
1118
|
+
return /* @__PURE__ */ H(Ho, {
|
|
1109
1119
|
role: h,
|
|
1110
1120
|
align: n?.cellAlign ?? n?.align,
|
|
1111
1121
|
className: e(n?.className, Po(n?.cellClassName, y, x)),
|
|
@@ -1137,8 +1147,8 @@ function Go({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1137
1147
|
children: [E, D]
|
|
1138
1148
|
}) : /* @__PURE__ */ U(Wi, { children: [E, D] });
|
|
1139
1149
|
}
|
|
1140
|
-
var
|
|
1141
|
-
function
|
|
1150
|
+
var Jo = Yi(qo);
|
|
1151
|
+
function Yo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, activeRowId: i, focusableRowIds: a, pendingFocusRowId: o, focusRowElement: s, onFocusSettled: c, scrollToRowRef: l, renderRow: u }) {
|
|
1142
1152
|
let [d, f] = J(null);
|
|
1143
1153
|
K(() => {
|
|
1144
1154
|
f(t.current);
|
|
@@ -1171,77 +1181,77 @@ function qo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, active
|
|
|
1171
1181
|
}
|
|
1172
1182
|
//#endregion
|
|
1173
1183
|
//#region src/components/DataGrid/DataGrid.tsx
|
|
1174
|
-
var
|
|
1184
|
+
var Xo = ({ direction: e }) => H(e === "asc" ? dt : e === "desc" ? C : Mr, { size: 16 }), Zo = {
|
|
1175
1185
|
basic: 48,
|
|
1176
1186
|
compact: 36
|
|
1177
|
-
},
|
|
1187
|
+
}, Qo = {
|
|
1178
1188
|
basic: 48,
|
|
1179
1189
|
compact: 32
|
|
1180
1190
|
};
|
|
1181
|
-
function
|
|
1191
|
+
function $o({ 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
1192
|
let j = ua({
|
|
1183
1193
|
enableSorting: !1,
|
|
1184
1194
|
...A,
|
|
1185
1195
|
getCoreRowModel: k ?? ta()
|
|
1186
|
-
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell",
|
|
1196
|
+
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell", P = w === !0 ? {} : w || void 0, F = q(null), I = j.getRowModel().rows, ne = j.getHeaderGroups(), [re, ie] = J(Qo[n]);
|
|
1187
1197
|
K(() => {
|
|
1188
|
-
if (!M || !
|
|
1189
|
-
let e =
|
|
1198
|
+
if (!M || !F.current) return;
|
|
1199
|
+
let e = F.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0, ne.length), n = () => {
|
|
1190
1200
|
let e = t.reduce((e, t) => e + t.offsetHeight, 0);
|
|
1191
|
-
e > 0 &&
|
|
1201
|
+
e > 0 && ie(e);
|
|
1192
1202
|
}, r = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(n);
|
|
1193
1203
|
return n(), t.forEach((e) => {
|
|
1194
1204
|
r?.observe(e);
|
|
1195
1205
|
}), () => r?.disconnect();
|
|
1196
|
-
}, [
|
|
1197
|
-
let
|
|
1198
|
-
|
|
1199
|
-
let
|
|
1200
|
-
|
|
1201
|
-
let
|
|
1206
|
+
}, [ne.length, M]);
|
|
1207
|
+
let ae = q(h);
|
|
1208
|
+
ae.current = h;
|
|
1209
|
+
let oe = G((e, t, n) => ae.current?.(e, t, n), []), se = h ? oe : void 0, [ce, le] = J(null), ue = q(I);
|
|
1210
|
+
ue.current = I;
|
|
1211
|
+
let de = q(null), [fe, pe] = J(null), me = G((e) => {
|
|
1202
1212
|
let t = !!m?.(e.original, e.index), n = N && (e.getCanExpand() || e.getIsExpanded());
|
|
1203
1213
|
return !t && (ee || n);
|
|
1204
1214
|
}, [
|
|
1205
1215
|
ee,
|
|
1206
1216
|
m,
|
|
1207
1217
|
N
|
|
1208
|
-
]),
|
|
1209
|
-
|
|
1210
|
-
let
|
|
1211
|
-
let t = Array.from(
|
|
1218
|
+
]), L = Qi(() => new Set(I.filter(me).map((e) => e.id)), [me, I]), he = q(L);
|
|
1219
|
+
he.current = L;
|
|
1220
|
+
let ge = G((e) => {
|
|
1221
|
+
let t = Array.from(F.current?.querySelectorAll("[data-datagrid-row-id]") ?? []).find((t) => t.dataset.datagridRowId === e);
|
|
1212
1222
|
return t?.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" }), t != null;
|
|
1213
1223
|
}, []);
|
|
1214
1224
|
K(() => {
|
|
1215
|
-
T ||
|
|
1225
|
+
T || fe == null || (ge(fe), pe(null));
|
|
1216
1226
|
}, [
|
|
1217
|
-
|
|
1218
|
-
|
|
1227
|
+
ge,
|
|
1228
|
+
fe,
|
|
1219
1229
|
T
|
|
1220
1230
|
]);
|
|
1221
|
-
let
|
|
1222
|
-
let n =
|
|
1231
|
+
let _e = G((e, t) => {
|
|
1232
|
+
let n = ue.current, r = n.findIndex((t) => t.id === e);
|
|
1223
1233
|
if (r === -1) return;
|
|
1224
1234
|
let i = r + t;
|
|
1225
|
-
for (; i >= 0 && i < n.length && !
|
|
1235
|
+
for (; i >= 0 && i < n.length && !he.current.has(n[i].id);) i += t;
|
|
1226
1236
|
let a = n[i];
|
|
1227
|
-
a && (
|
|
1228
|
-
}, []),
|
|
1237
|
+
a && (de.current?.(i), pe(a.id), le(a.id));
|
|
1238
|
+
}, []), ve = G((e) => le(e), []), ye = G(() => pe(null), []), be = ce != null && L.has(ce) ? ce : null, xe = be ?? I.find((e) => L.has(e.id))?.id, Se = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ H(zo, {
|
|
1229
1239
|
className: b,
|
|
1230
1240
|
children: j.getVisibleLeafColumns().map((e) => {
|
|
1231
1241
|
let { meta: t } = e.columnDef;
|
|
1232
|
-
return /* @__PURE__ */ H(
|
|
1242
|
+
return /* @__PURE__ */ H(Ho, {
|
|
1233
1243
|
role: te,
|
|
1234
1244
|
align: t?.cellAlign ?? t?.align,
|
|
1235
1245
|
className: t?.className,
|
|
1236
1246
|
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(_o, { className: "aivex:h-4 aivex:w-full aivex:max-w-40" }) : t.skeleton
|
|
1237
1247
|
}, e.id);
|
|
1238
1248
|
})
|
|
1239
|
-
}, `${t}-${n}`)),
|
|
1249
|
+
}, `${t}-${n}`)), Ce = (t) => ne.map((n) => /* @__PURE__ */ H(Lo, {
|
|
1240
1250
|
sticky: t,
|
|
1241
1251
|
className: l,
|
|
1242
1252
|
children: n.headers.map((t) => {
|
|
1243
1253
|
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(
|
|
1254
|
+
return /* @__PURE__ */ H(Uo, {
|
|
1245
1255
|
align: n?.headerAlign ?? n?.align,
|
|
1246
1256
|
className: e(n?.className, n?.headerClassName),
|
|
1247
1257
|
"aria-sort": o,
|
|
@@ -1254,14 +1264,14 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1254
1264
|
children: s
|
|
1255
1265
|
}), /* @__PURE__ */ H("span", {
|
|
1256
1266
|
className: "aivex:shrink-0 aivex:text-text-tertiary",
|
|
1257
|
-
children: /* @__PURE__ */ H(
|
|
1267
|
+
children: /* @__PURE__ */ H(Xo, { direction: a })
|
|
1258
1268
|
})]
|
|
1259
1269
|
}) : s
|
|
1260
1270
|
}, t.id);
|
|
1261
1271
|
})
|
|
1262
|
-
}, n.id)),
|
|
1272
|
+
}, n.id)), we = j.getVisibleLeafColumns().map((e) => e.id).join(","), Te = (t, n, r, i = !0) => {
|
|
1263
1273
|
let { original: a } = t, o = t.index, s = !!m?.(a, o), c = N && (t.getCanExpand() || t.getIsExpanded());
|
|
1264
|
-
return /* @__PURE__ */ H(
|
|
1274
|
+
return /* @__PURE__ */ H(Jo, {
|
|
1265
1275
|
row: t,
|
|
1266
1276
|
virtualIndex: n?.index,
|
|
1267
1277
|
virtualStart: n?.start,
|
|
@@ -1270,59 +1280,59 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1270
1280
|
selected: p?.(a, o),
|
|
1271
1281
|
disabled: s,
|
|
1272
1282
|
className: e(n && "aivex:last:border-b", Po(d, a, o)),
|
|
1273
|
-
onRowClick:
|
|
1283
|
+
onRowClick: se,
|
|
1274
1284
|
expandedContent: g && t.getIsExpanded() ? g(t) : void 0,
|
|
1275
1285
|
expandable: c,
|
|
1276
|
-
focusable:
|
|
1286
|
+
focusable: L.has(t.id),
|
|
1277
1287
|
rowSelected: t.getIsSelected(),
|
|
1278
1288
|
rowExpanded: t.getIsExpanded(),
|
|
1279
1289
|
columns: A.columns,
|
|
1280
|
-
visibleColumnKey:
|
|
1290
|
+
visibleColumnKey: we,
|
|
1281
1291
|
cellRole: te,
|
|
1282
1292
|
tabStop: i,
|
|
1283
|
-
onNavigate:
|
|
1284
|
-
onFocusRow:
|
|
1293
|
+
onNavigate: _e,
|
|
1294
|
+
onFocusRow: ve
|
|
1285
1295
|
}, t.id);
|
|
1286
|
-
},
|
|
1296
|
+
}, Ee = /* @__PURE__ */ H(Fo, {
|
|
1287
1297
|
ref: O,
|
|
1288
1298
|
variant: n,
|
|
1289
|
-
className:
|
|
1299
|
+
className: P ? void 0 : t,
|
|
1290
1300
|
children: /* @__PURE__ */ H(Io, {
|
|
1291
1301
|
scrollbars: "both",
|
|
1292
1302
|
className: s,
|
|
1293
1303
|
viewportClassName: M ? "aivex:[scroll-padding-top:var(--datagrid-sticky-header-height)]" : void 0,
|
|
1294
|
-
style: { "--datagrid-sticky-header-height": `${
|
|
1304
|
+
style: { "--datagrid-sticky-header-height": `${re}px` },
|
|
1295
1305
|
verticalScrollbarClassName: M ? "aivex:top-[var(--datagrid-sticky-header-height)]! aivex:bottom-0! aivex:h-auto!" : void 0,
|
|
1296
|
-
viewportRef:
|
|
1306
|
+
viewportRef: F,
|
|
1297
1307
|
children: /* @__PURE__ */ U("div", {
|
|
1298
1308
|
role: N ? "treegrid" : "table",
|
|
1299
1309
|
className: e("aivex:flex aivex:min-w-full aivex:flex-col", c),
|
|
1300
|
-
children: [
|
|
1310
|
+
children: [Ce(M), r ? /* @__PURE__ */ H(Ro, {
|
|
1301
1311
|
className: u,
|
|
1302
|
-
children:
|
|
1312
|
+
children: Se(i ?? 5, "loading")
|
|
1303
1313
|
}) : /* @__PURE__ */ U(Ro, {
|
|
1304
1314
|
className: u,
|
|
1305
1315
|
children: [
|
|
1306
|
-
|
|
1307
|
-
rows:
|
|
1308
|
-
viewportRef:
|
|
1309
|
-
estimateRowHeight: E ??
|
|
1316
|
+
I.length === 0 && a !== void 0 ? /* @__PURE__ */ H(Wo, { children: a }) : T ? /* @__PURE__ */ H(Yo, {
|
|
1317
|
+
rows: I,
|
|
1318
|
+
viewportRef: F,
|
|
1319
|
+
estimateRowHeight: E ?? Zo[n],
|
|
1310
1320
|
overscan: D,
|
|
1311
|
-
activeRowId:
|
|
1312
|
-
focusableRowIds:
|
|
1313
|
-
pendingFocusRowId:
|
|
1314
|
-
focusRowElement:
|
|
1315
|
-
onFocusSettled:
|
|
1316
|
-
scrollToRowRef:
|
|
1317
|
-
renderRow:
|
|
1318
|
-
}) :
|
|
1319
|
-
/* @__PURE__ */ H(
|
|
1321
|
+
activeRowId: be,
|
|
1322
|
+
focusableRowIds: L,
|
|
1323
|
+
pendingFocusRowId: fe,
|
|
1324
|
+
focusRowElement: ge,
|
|
1325
|
+
onFocusSettled: ye,
|
|
1326
|
+
scrollToRowRef: de,
|
|
1327
|
+
renderRow: Te
|
|
1328
|
+
}) : I.map((e) => Te(e, void 0, void 0, e.id === xe)),
|
|
1329
|
+
/* @__PURE__ */ H(Ko, {
|
|
1320
1330
|
ref: S,
|
|
1321
1331
|
loading: _,
|
|
1322
1332
|
className: C,
|
|
1323
1333
|
children: v ?? /* @__PURE__ */ H("div", {
|
|
1324
1334
|
className: "aivex:w-full",
|
|
1325
|
-
children:
|
|
1335
|
+
children: Se(y, "loading-more")
|
|
1326
1336
|
})
|
|
1327
1337
|
}),
|
|
1328
1338
|
!_ && x != null && /* @__PURE__ */ H("div", {
|
|
@@ -1335,34 +1345,34 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1335
1345
|
})
|
|
1336
1346
|
})
|
|
1337
1347
|
});
|
|
1338
|
-
return
|
|
1348
|
+
return P ? /* @__PURE__ */ U("div", {
|
|
1339
1349
|
className: e("aivex:relative aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0", t),
|
|
1340
|
-
children: [
|
|
1350
|
+
children: [Ee, /* @__PURE__ */ H(Ao, {
|
|
1341
1351
|
table: j,
|
|
1342
|
-
...
|
|
1352
|
+
...P
|
|
1343
1353
|
})]
|
|
1344
|
-
}) :
|
|
1354
|
+
}) : Ee;
|
|
1345
1355
|
}
|
|
1346
1356
|
//#endregion
|
|
1347
1357
|
//#region src/components/Overlay/Overlay.tsx
|
|
1348
|
-
var
|
|
1358
|
+
var es = V("aivex:fixed aivex:inset-0 aivex:z-50", {
|
|
1349
1359
|
variants: { type: {
|
|
1350
1360
|
dim: "aivex:bg-black/50",
|
|
1351
1361
|
frost: "aivex:backdrop-blur-sm aivex:bg-white/30"
|
|
1352
1362
|
} },
|
|
1353
1363
|
defaultVariants: { type: "dim" }
|
|
1354
1364
|
});
|
|
1355
|
-
function
|
|
1365
|
+
function ts({ className: t, type: n = "dim", ref: r, ...i }) {
|
|
1356
1366
|
return /* @__PURE__ */ H("div", {
|
|
1357
1367
|
ref: r,
|
|
1358
1368
|
"aria-hidden": "true",
|
|
1359
|
-
className: e(
|
|
1369
|
+
className: e(es({ type: n }), t),
|
|
1360
1370
|
...i
|
|
1361
1371
|
});
|
|
1362
1372
|
}
|
|
1363
1373
|
//#endregion
|
|
1364
1374
|
//#region src/utils/useModalAutoFocus.ts
|
|
1365
|
-
function
|
|
1375
|
+
function ns(e, t) {
|
|
1366
1376
|
let n = q(null);
|
|
1367
1377
|
return {
|
|
1368
1378
|
onOpenAutoFocus(t) {
|
|
@@ -1377,18 +1387,18 @@ function es(e, t) {
|
|
|
1377
1387
|
}
|
|
1378
1388
|
//#endregion
|
|
1379
1389
|
//#region src/components/Dialog/Dialog.tsx
|
|
1380
|
-
var
|
|
1390
|
+
var rs = {
|
|
1381
1391
|
default: {
|
|
1382
|
-
component:
|
|
1392
|
+
component: vn,
|
|
1383
1393
|
className: "aivex:text-icon-success"
|
|
1384
1394
|
},
|
|
1385
1395
|
warning: {
|
|
1386
|
-
component:
|
|
1396
|
+
component: ur,
|
|
1387
1397
|
className: "aivex:text-icon-warning"
|
|
1388
1398
|
}
|
|
1389
1399
|
};
|
|
1390
|
-
function
|
|
1391
|
-
let p =
|
|
1400
|
+
function is({ 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 }) {
|
|
1401
|
+
let p = ns(), m = rs[i], h = u ? m.component : null, g = !!h, _ = i === "warning" ? "danger" : "primary";
|
|
1392
1402
|
return /* @__PURE__ */ H(X.Root, {
|
|
1393
1403
|
open: t,
|
|
1394
1404
|
defaultOpen: n,
|
|
@@ -1396,7 +1406,7 @@ function ns({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1396
1406
|
...f,
|
|
1397
1407
|
children: /* @__PURE__ */ U(X.Portal, { children: [/* @__PURE__ */ H(X.Overlay, {
|
|
1398
1408
|
asChild: !0,
|
|
1399
|
-
children: /* @__PURE__ */ H(
|
|
1409
|
+
children: /* @__PURE__ */ H(ts, { type: "dim" })
|
|
1400
1410
|
}), /* @__PURE__ */ H(X.Content, {
|
|
1401
1411
|
ref: d,
|
|
1402
1412
|
...p,
|
|
@@ -1423,7 +1433,7 @@ function ns({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1423
1433
|
]
|
|
1424
1434
|
}), (c || l) && /* @__PURE__ */ U("div", {
|
|
1425
1435
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
1426
|
-
children: [c && /* @__PURE__ */ H(
|
|
1436
|
+
children: [c && /* @__PURE__ */ H(as, { ...c }), l && /* @__PURE__ */ H(os, {
|
|
1427
1437
|
...l,
|
|
1428
1438
|
defaultColor: _
|
|
1429
1439
|
})]
|
|
@@ -1432,10 +1442,10 @@ function ns({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1432
1442
|
})] })
|
|
1433
1443
|
});
|
|
1434
1444
|
}
|
|
1435
|
-
function
|
|
1445
|
+
function as({ children: e, onClick: t, ...n }) {
|
|
1436
1446
|
return /* @__PURE__ */ H(X.Cancel, {
|
|
1437
1447
|
asChild: !0,
|
|
1438
|
-
children: /* @__PURE__ */ H(
|
|
1448
|
+
children: /* @__PURE__ */ H(z, {
|
|
1439
1449
|
variant: "solid",
|
|
1440
1450
|
color: "secondary",
|
|
1441
1451
|
size: "lg",
|
|
@@ -1448,8 +1458,8 @@ function rs({ children: e, onClick: t, ...n }) {
|
|
|
1448
1458
|
})
|
|
1449
1459
|
});
|
|
1450
1460
|
}
|
|
1451
|
-
function
|
|
1452
|
-
return /* @__PURE__ */ H(
|
|
1461
|
+
function os({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1462
|
+
return /* @__PURE__ */ H(z, {
|
|
1453
1463
|
variant: "solid",
|
|
1454
1464
|
color: t,
|
|
1455
1465
|
size: "lg",
|
|
@@ -1463,7 +1473,7 @@ function is({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1463
1473
|
}
|
|
1464
1474
|
//#endregion
|
|
1465
1475
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1466
|
-
function
|
|
1476
|
+
function ss({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1467
1477
|
let o = q(null), s = q({
|
|
1468
1478
|
isDragging: !1,
|
|
1469
1479
|
startX: 0,
|
|
@@ -1501,11 +1511,11 @@ function as({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll:
|
|
|
1501
1511
|
}
|
|
1502
1512
|
//#endregion
|
|
1503
1513
|
//#region src/components/Drawer/Drawer.tsx
|
|
1504
|
-
var
|
|
1514
|
+
var cs = {
|
|
1505
1515
|
left: "aivex:left-0 aivex:border-r",
|
|
1506
1516
|
right: "aivex:right-0 aivex:border-l"
|
|
1507
1517
|
};
|
|
1508
|
-
function
|
|
1518
|
+
function ls({ 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 }) {
|
|
1509
1519
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1510
1520
|
modal: o,
|
|
1511
1521
|
open: t,
|
|
@@ -1514,7 +1524,7 @@ function ss({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1514
1524
|
ref: h,
|
|
1515
1525
|
"aria-describedby": void 0,
|
|
1516
1526
|
"data-side": a,
|
|
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",
|
|
1527
|
+
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", cs[a], s),
|
|
1518
1528
|
style: c,
|
|
1519
1529
|
onAnimationEnd: (e) => {
|
|
1520
1530
|
!t && e.target === e.currentTarget && l?.();
|
|
@@ -1533,20 +1543,20 @@ function ss({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1533
1543
|
}
|
|
1534
1544
|
//#endregion
|
|
1535
1545
|
//#region src/components/Field/Field.tsx
|
|
1536
|
-
var
|
|
1537
|
-
function
|
|
1538
|
-
let e = Xi(
|
|
1546
|
+
var us = qi(null);
|
|
1547
|
+
function ds() {
|
|
1548
|
+
let e = Xi(us);
|
|
1539
1549
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1540
1550
|
return e;
|
|
1541
1551
|
}
|
|
1542
|
-
var
|
|
1552
|
+
var fs = V("aivex:flex aivex:w-full", {
|
|
1543
1553
|
variants: { orientation: {
|
|
1544
1554
|
vertical: "aivex:flex-col aivex:gap-xs",
|
|
1545
1555
|
horizontal: "aivex:flex-row aivex:items-center aivex:gap-sm aivex:has-[[data-slot=field-content]]:items-start"
|
|
1546
1556
|
} },
|
|
1547
1557
|
defaultVariants: { orientation: "vertical" }
|
|
1548
1558
|
});
|
|
1549
|
-
function
|
|
1559
|
+
function ps({ className: t, orientation: n, fieldId: r, invalid: i = !1, disabled: a = !1, ref: o, ...s }) {
|
|
1550
1560
|
let c = Zi(), l = r ?? c, u = {
|
|
1551
1561
|
controlId: l,
|
|
1552
1562
|
descriptionId: `${l}-description`,
|
|
@@ -1554,19 +1564,19 @@ function ds({ className: t, orientation: n, fieldId: r, invalid: i = !1, disable
|
|
|
1554
1564
|
invalid: i,
|
|
1555
1565
|
disabled: a
|
|
1556
1566
|
};
|
|
1557
|
-
return /* @__PURE__ */ H(
|
|
1567
|
+
return /* @__PURE__ */ H(us.Provider, {
|
|
1558
1568
|
value: u,
|
|
1559
1569
|
children: /* @__PURE__ */ H("div", {
|
|
1560
1570
|
ref: o,
|
|
1561
|
-
className: e(
|
|
1571
|
+
className: e(fs({ orientation: n }), t),
|
|
1562
1572
|
"data-invalid": i || void 0,
|
|
1563
1573
|
"data-disabled": a || void 0,
|
|
1564
1574
|
...s
|
|
1565
1575
|
})
|
|
1566
1576
|
});
|
|
1567
1577
|
}
|
|
1568
|
-
function
|
|
1569
|
-
let { controlId: i, invalid: a, disabled: o } =
|
|
1578
|
+
function ms({ className: t, ref: n, ...r }) {
|
|
1579
|
+
let { controlId: i, invalid: a, disabled: o } = ds();
|
|
1570
1580
|
return /* @__PURE__ */ H("label", {
|
|
1571
1581
|
ref: n,
|
|
1572
1582
|
htmlFor: i,
|
|
@@ -1574,7 +1584,7 @@ function fs({ className: t, ref: n, ...r }) {
|
|
|
1574
1584
|
...r
|
|
1575
1585
|
});
|
|
1576
1586
|
}
|
|
1577
|
-
function
|
|
1587
|
+
function hs({ className: t, ref: n, ...r }) {
|
|
1578
1588
|
return /* @__PURE__ */ H("div", {
|
|
1579
1589
|
ref: n,
|
|
1580
1590
|
"data-slot": "field-content",
|
|
@@ -1582,8 +1592,8 @@ function ps({ className: t, ref: n, ...r }) {
|
|
|
1582
1592
|
...r
|
|
1583
1593
|
});
|
|
1584
1594
|
}
|
|
1585
|
-
function
|
|
1586
|
-
let { controlId: t, descriptionId: n, errorId: r, invalid: i } =
|
|
1595
|
+
function gs({ children: e }) {
|
|
1596
|
+
let { controlId: t, descriptionId: n, errorId: r, invalid: i } = ds();
|
|
1587
1597
|
return /* @__PURE__ */ H(W, {
|
|
1588
1598
|
id: t,
|
|
1589
1599
|
"aria-describedby": i ? `${n} ${r}` : n,
|
|
@@ -1591,8 +1601,8 @@ function ms({ children: e }) {
|
|
|
1591
1601
|
children: e
|
|
1592
1602
|
});
|
|
1593
1603
|
}
|
|
1594
|
-
function
|
|
1595
|
-
let { descriptionId: i, disabled: a } =
|
|
1604
|
+
function _s({ className: t, ref: n, ...r }) {
|
|
1605
|
+
let { descriptionId: i, disabled: a } = ds();
|
|
1596
1606
|
return /* @__PURE__ */ H("p", {
|
|
1597
1607
|
ref: n,
|
|
1598
1608
|
id: i,
|
|
@@ -1600,8 +1610,8 @@ function hs({ className: t, ref: n, ...r }) {
|
|
|
1600
1610
|
...r
|
|
1601
1611
|
});
|
|
1602
1612
|
}
|
|
1603
|
-
function
|
|
1604
|
-
let { errorId: a, invalid: o } =
|
|
1613
|
+
function vs({ className: t, children: n, ref: r, ...i }) {
|
|
1614
|
+
let { errorId: a, invalid: o } = ds();
|
|
1605
1615
|
return !o && !n ? null : /* @__PURE__ */ H("p", {
|
|
1606
1616
|
ref: r,
|
|
1607
1617
|
id: a,
|
|
@@ -1613,15 +1623,15 @@ function gs({ className: t, children: n, ref: r, ...i }) {
|
|
|
1613
1623
|
}
|
|
1614
1624
|
//#endregion
|
|
1615
1625
|
//#region src/components/Modal/Modal.tsx
|
|
1616
|
-
var
|
|
1626
|
+
var ys = qi(!1), bs = {
|
|
1617
1627
|
sm: "aivex:max-w-modal-sm",
|
|
1618
1628
|
md: "aivex:max-w-modal-md",
|
|
1619
1629
|
lg: "aivex:max-w-modal-lg",
|
|
1620
1630
|
xl: "aivex:max-w-[960px]",
|
|
1621
1631
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
1622
|
-
},
|
|
1623
|
-
function
|
|
1624
|
-
let l = Xi(
|
|
1632
|
+
}, xs = 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"), Ss = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
1633
|
+
function Cs({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: s, ...c }) {
|
|
1634
|
+
let l = Xi(ys), u = /* @__PURE__ */ H("h2", {
|
|
1625
1635
|
...t ? { id: t } : {},
|
|
1626
1636
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
1627
1637
|
children: e
|
|
@@ -1633,11 +1643,11 @@ function xs({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1633
1643
|
onClick: i,
|
|
1634
1644
|
className: "aivex:shrink-0",
|
|
1635
1645
|
"aria-label": a,
|
|
1636
|
-
children: /* @__PURE__ */ H(
|
|
1637
|
-
}), p = r ? /* @__PURE__ */ H(
|
|
1646
|
+
children: /* @__PURE__ */ H(B, { size: 24 })
|
|
1647
|
+
}), p = r ? /* @__PURE__ */ H(ws, { button: r }) : null;
|
|
1638
1648
|
return /* @__PURE__ */ U("div", {
|
|
1639
1649
|
ref: s,
|
|
1640
|
-
className:
|
|
1650
|
+
className: Ss,
|
|
1641
1651
|
...c,
|
|
1642
1652
|
children: [/* @__PURE__ */ U("div", {
|
|
1643
1653
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
@@ -1661,7 +1671,7 @@ function xs({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1661
1671
|
}) : d]
|
|
1662
1672
|
});
|
|
1663
1673
|
}
|
|
1664
|
-
function
|
|
1674
|
+
function ws({ button: e }) {
|
|
1665
1675
|
let { children: t, ...n } = e;
|
|
1666
1676
|
return /* @__PURE__ */ H(o, {
|
|
1667
1677
|
size: "md",
|
|
@@ -1670,22 +1680,23 @@ function Ss({ button: e }) {
|
|
|
1670
1680
|
children: t
|
|
1671
1681
|
});
|
|
1672
1682
|
}
|
|
1673
|
-
function
|
|
1683
|
+
function Ts({ children: e, ref: t, ...n }) {
|
|
1674
1684
|
return /* @__PURE__ */ H("div", {
|
|
1675
1685
|
ref: t,
|
|
1676
|
-
|
|
1686
|
+
"data-aivex-modal-body": "",
|
|
1687
|
+
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto",
|
|
1677
1688
|
...n,
|
|
1678
1689
|
children: e
|
|
1679
1690
|
});
|
|
1680
1691
|
}
|
|
1681
|
-
function
|
|
1692
|
+
function Es({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1682
1693
|
return /* @__PURE__ */ U("div", {
|
|
1683
1694
|
ref: r,
|
|
1684
1695
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1685
1696
|
...i,
|
|
1686
1697
|
children: [/* @__PURE__ */ H("div", {
|
|
1687
1698
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1688
|
-
children: e && /* @__PURE__ */ H(
|
|
1699
|
+
children: e && /* @__PURE__ */ H(Ds, {
|
|
1689
1700
|
button: e,
|
|
1690
1701
|
variant: "ghost",
|
|
1691
1702
|
color: "secondary",
|
|
@@ -1693,12 +1704,12 @@ function ws({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1693
1704
|
})
|
|
1694
1705
|
}), /* @__PURE__ */ U("div", {
|
|
1695
1706
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1696
|
-
children: [t && /* @__PURE__ */ H(
|
|
1707
|
+
children: [t && /* @__PURE__ */ H(Ds, {
|
|
1697
1708
|
button: t,
|
|
1698
1709
|
variant: "solid",
|
|
1699
1710
|
color: "secondary",
|
|
1700
1711
|
className: "aivex:min-w-[84px]"
|
|
1701
|
-
}), n && /* @__PURE__ */ H(
|
|
1712
|
+
}), n && /* @__PURE__ */ H(Ds, {
|
|
1702
1713
|
button: n,
|
|
1703
1714
|
variant: "solid",
|
|
1704
1715
|
color: "primary",
|
|
@@ -1707,9 +1718,9 @@ function ws({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1707
1718
|
})]
|
|
1708
1719
|
});
|
|
1709
1720
|
}
|
|
1710
|
-
function
|
|
1721
|
+
function Ds({ button: e, variant: t, color: n, className: r }) {
|
|
1711
1722
|
let { children: i, ...a } = e;
|
|
1712
|
-
return /* @__PURE__ */ H(
|
|
1723
|
+
return /* @__PURE__ */ H(z, {
|
|
1713
1724
|
variant: t,
|
|
1714
1725
|
color: n,
|
|
1715
1726
|
size: "lg",
|
|
@@ -1718,15 +1729,15 @@ function Ts({ button: e, variant: t, color: n, className: r }) {
|
|
|
1718
1729
|
children: i
|
|
1719
1730
|
});
|
|
1720
1731
|
}
|
|
1721
|
-
function
|
|
1722
|
-
let m =
|
|
1732
|
+
function Os({ 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 }) {
|
|
1733
|
+
let m = ns(s, c);
|
|
1723
1734
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1724
1735
|
open: t,
|
|
1725
1736
|
defaultOpen: n,
|
|
1726
1737
|
onOpenChange: r,
|
|
1727
1738
|
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, {
|
|
1728
1739
|
ref: f,
|
|
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",
|
|
1740
|
+
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", xs, bs[a]),
|
|
1730
1741
|
onInteractOutside: (e) => {
|
|
1731
1742
|
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1732
1743
|
},
|
|
@@ -1734,23 +1745,23 @@ function Es({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "
|
|
|
1734
1745
|
onKeyDown: u,
|
|
1735
1746
|
onKeyUp: d,
|
|
1736
1747
|
...p,
|
|
1737
|
-
children: /* @__PURE__ */ H(
|
|
1748
|
+
children: /* @__PURE__ */ H(ys.Provider, {
|
|
1738
1749
|
value: !0,
|
|
1739
1750
|
children: i
|
|
1740
1751
|
})
|
|
1741
1752
|
})] })
|
|
1742
1753
|
});
|
|
1743
1754
|
}
|
|
1744
|
-
function
|
|
1755
|
+
function ks({ title: t, description: n, headingButton: r, children: i, tertiaryButton: a, secondaryButton: o, primaryButton: s, size: c = "md", onClose: l, closeAriaLabel: u, ref: d }) {
|
|
1745
1756
|
let f = Zi(), p = !!(a || o || s);
|
|
1746
1757
|
return /* @__PURE__ */ U("div", {
|
|
1747
1758
|
ref: d,
|
|
1748
1759
|
role: "dialog",
|
|
1749
1760
|
"aria-modal": "true",
|
|
1750
1761
|
"aria-labelledby": f,
|
|
1751
|
-
className: e(
|
|
1762
|
+
className: e(xs, bs[c]),
|
|
1752
1763
|
children: [
|
|
1753
|
-
/* @__PURE__ */ H(
|
|
1764
|
+
/* @__PURE__ */ H(Cs, {
|
|
1754
1765
|
title: t,
|
|
1755
1766
|
titleId: f,
|
|
1756
1767
|
description: n,
|
|
@@ -1758,8 +1769,8 @@ function Ds({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1758
1769
|
onClose: l,
|
|
1759
1770
|
closeAriaLabel: u
|
|
1760
1771
|
}),
|
|
1761
|
-
i && /* @__PURE__ */ H(
|
|
1762
|
-
p && /* @__PURE__ */ H(
|
|
1772
|
+
i && /* @__PURE__ */ H(Ts, { children: i }),
|
|
1773
|
+
p && /* @__PURE__ */ H(Es, {
|
|
1763
1774
|
tertiaryButton: a,
|
|
1764
1775
|
secondaryButton: o,
|
|
1765
1776
|
primaryButton: s
|
|
@@ -1767,9 +1778,9 @@ function Ds({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1767
1778
|
]
|
|
1768
1779
|
});
|
|
1769
1780
|
}
|
|
1770
|
-
function
|
|
1781
|
+
function As({ 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 }) {
|
|
1771
1782
|
let m = !!(s || c || l);
|
|
1772
|
-
return /* @__PURE__ */ U(
|
|
1783
|
+
return /* @__PURE__ */ U(Os, {
|
|
1773
1784
|
open: e,
|
|
1774
1785
|
defaultOpen: t,
|
|
1775
1786
|
onOpenChange: n,
|
|
@@ -1778,14 +1789,14 @@ function Os({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1778
1789
|
onOpenAutoFocus: f,
|
|
1779
1790
|
...i ? {} : { "aria-describedby": void 0 },
|
|
1780
1791
|
children: [
|
|
1781
|
-
/* @__PURE__ */ H(
|
|
1792
|
+
/* @__PURE__ */ H(Cs, {
|
|
1782
1793
|
title: r,
|
|
1783
1794
|
description: i,
|
|
1784
1795
|
headingButton: a,
|
|
1785
1796
|
closeAriaLabel: p
|
|
1786
1797
|
}),
|
|
1787
|
-
o && /* @__PURE__ */ H(
|
|
1788
|
-
m && /* @__PURE__ */ H(
|
|
1798
|
+
o && /* @__PURE__ */ H(Ts, { children: o }),
|
|
1799
|
+
m && /* @__PURE__ */ H(Es, {
|
|
1789
1800
|
tertiaryButton: s,
|
|
1790
1801
|
secondaryButton: c,
|
|
1791
1802
|
primaryButton: l
|
|
@@ -1795,8 +1806,8 @@ function Os({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1795
1806
|
}
|
|
1796
1807
|
//#endregion
|
|
1797
1808
|
//#region src/components/Modal/ModalBase.tsx
|
|
1798
|
-
function
|
|
1799
|
-
let f =
|
|
1809
|
+
function js({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0, className: o, onOpenAutoFocus: s, onCloseAutoFocus: c, onEscapeKeyDown: l, onInteractOutside: u, ref: d }) {
|
|
1810
|
+
let f = ns(s, c);
|
|
1800
1811
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1801
1812
|
open: t,
|
|
1802
1813
|
defaultOpen: n,
|
|
@@ -1812,10 +1823,10 @@ function ks({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0
|
|
|
1812
1823
|
})] })
|
|
1813
1824
|
});
|
|
1814
1825
|
}
|
|
1815
|
-
var
|
|
1826
|
+
var Ms = Object.assign(js, {
|
|
1816
1827
|
Title: Z.Title,
|
|
1817
1828
|
Close: Z.Close
|
|
1818
|
-
}),
|
|
1829
|
+
}), Ns = V("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
1819
1830
|
variants: {
|
|
1820
1831
|
size: {
|
|
1821
1832
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1831,10 +1842,10 @@ var As = Object.assign(ks, {
|
|
|
1831
1842
|
type: "default"
|
|
1832
1843
|
}
|
|
1833
1844
|
});
|
|
1834
|
-
function
|
|
1845
|
+
function Ps({ className: t, size: n = "sm", type: r = "default", startContent: i, showIcon: a = !1, disabled: s = !1, onRemove: c, children: l, ref: u, ...d }) {
|
|
1835
1846
|
return /* @__PURE__ */ U("div", {
|
|
1836
1847
|
ref: u,
|
|
1837
|
-
className: e(
|
|
1848
|
+
className: e(Ns({
|
|
1838
1849
|
size: n,
|
|
1839
1850
|
type: r
|
|
1840
1851
|
}), s && "aivex:opacity-disable", t),
|
|
@@ -1845,7 +1856,7 @@ function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1845
1856
|
children: i
|
|
1846
1857
|
}) : a ? /* @__PURE__ */ H("span", {
|
|
1847
1858
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1848
|
-
children: /* @__PURE__ */ H(
|
|
1859
|
+
children: /* @__PURE__ */ H(br, { size: 16 })
|
|
1849
1860
|
}) : null,
|
|
1850
1861
|
/* @__PURE__ */ H("span", {
|
|
1851
1862
|
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]"),
|
|
@@ -1859,14 +1870,14 @@ function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1859
1870
|
},
|
|
1860
1871
|
className: "aivex:shrink-0",
|
|
1861
1872
|
"aria-label": "태그 삭제",
|
|
1862
|
-
children: /* @__PURE__ */ H(
|
|
1873
|
+
children: /* @__PURE__ */ H(B, { size: 12 })
|
|
1863
1874
|
})
|
|
1864
1875
|
]
|
|
1865
1876
|
});
|
|
1866
1877
|
}
|
|
1867
1878
|
//#endregion
|
|
1868
1879
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
1869
|
-
var
|
|
1880
|
+
var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is = Yi(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
1870
1881
|
let [l, u] = J(i), d = q(null), [f, p] = J(!1), m = G(() => {
|
|
1871
1882
|
let e = d.current;
|
|
1872
1883
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
@@ -1903,7 +1914,7 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1903
1914
|
r,
|
|
1904
1915
|
e,
|
|
1905
1916
|
m
|
|
1906
|
-
]), /* @__PURE__ */ H(
|
|
1917
|
+
]), /* @__PURE__ */ H(As, {
|
|
1907
1918
|
open: e,
|
|
1908
1919
|
onOpenChange: (e) => {
|
|
1909
1920
|
e || t();
|
|
@@ -1926,8 +1937,8 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1926
1937
|
onScroll: m,
|
|
1927
1938
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
1928
1939
|
style: f ? {
|
|
1929
|
-
maskImage:
|
|
1930
|
-
WebkitMaskImage:
|
|
1940
|
+
maskImage: Fs,
|
|
1941
|
+
WebkitMaskImage: Fs
|
|
1931
1942
|
} : void 0,
|
|
1932
1943
|
children: r.map((e) => /* @__PURE__ */ H("div", {
|
|
1933
1944
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -1956,12 +1967,12 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1956
1967
|
})]
|
|
1957
1968
|
})
|
|
1958
1969
|
}, e.groupValue))
|
|
1959
|
-
}), l.length > 0 && /* @__PURE__ */ H(
|
|
1970
|
+
}), l.length > 0 && /* @__PURE__ */ H(ss, {
|
|
1960
1971
|
autoScrollToEnd: !0,
|
|
1961
1972
|
className: "aivex:shrink-0",
|
|
1962
1973
|
children: /* @__PURE__ */ H("div", {
|
|
1963
1974
|
className: "aivex:flex aivex:gap-md",
|
|
1964
|
-
children: g.map((e) => /* @__PURE__ */ H(
|
|
1975
|
+
children: g.map((e) => /* @__PURE__ */ H(Ps, {
|
|
1965
1976
|
size: "md",
|
|
1966
1977
|
startContent: e.icon,
|
|
1967
1978
|
onRemove: () => b(e.value),
|
|
@@ -1972,7 +1983,7 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1972
1983
|
})]
|
|
1973
1984
|
})
|
|
1974
1985
|
});
|
|
1975
|
-
}),
|
|
1986
|
+
}), Ls = V("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
1976
1987
|
variants: {
|
|
1977
1988
|
state: {
|
|
1978
1989
|
default: "aivex:border-border-default",
|
|
@@ -2029,10 +2040,10 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
2029
2040
|
layout: "inline"
|
|
2030
2041
|
}
|
|
2031
2042
|
});
|
|
2032
|
-
function
|
|
2043
|
+
function Rs({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layout: o = "inline", startContent: s, endContent: c, className: l, children: u }) {
|
|
2033
2044
|
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");
|
|
2034
2045
|
return /* @__PURE__ */ U("div", {
|
|
2035
|
-
className: e(
|
|
2046
|
+
className: e(Ls({
|
|
2036
2047
|
state: d,
|
|
2037
2048
|
size: a,
|
|
2038
2049
|
layout: o
|
|
@@ -2052,14 +2063,14 @@ function Is({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layo
|
|
|
2052
2063
|
}
|
|
2053
2064
|
//#endregion
|
|
2054
2065
|
//#region src/components/Logo/index.tsx
|
|
2055
|
-
function
|
|
2066
|
+
function zs(e, t) {
|
|
2056
2067
|
if (!Ji(e)) return;
|
|
2057
2068
|
let n = e.props;
|
|
2058
2069
|
typeof n.id == "string" && t.add(n.id);
|
|
2059
2070
|
let r = n.children;
|
|
2060
|
-
if (r != null) for (let e of Array.isArray(r) ? r : [r])
|
|
2071
|
+
if (r != null) for (let e of Array.isArray(r) ? r : [r]) zs(e, t);
|
|
2061
2072
|
}
|
|
2062
|
-
function
|
|
2073
|
+
function Bs(e, t) {
|
|
2063
2074
|
if (!Ji(e)) return e;
|
|
2064
2075
|
let n = { ...e.props };
|
|
2065
2076
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
@@ -2072,20 +2083,20 @@ function Rs(e, t) {
|
|
|
2072
2083
|
}
|
|
2073
2084
|
let r = n.children;
|
|
2074
2085
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2075
|
-
let r =
|
|
2086
|
+
let r = Bs(e, t);
|
|
2076
2087
|
return Ji(r) && r.key == null ? Ki(r, { key: n }) : r;
|
|
2077
2088
|
})), Ki(e, n);
|
|
2078
2089
|
}
|
|
2079
2090
|
function $(e) {
|
|
2080
2091
|
return (t) => {
|
|
2081
2092
|
let n = Zi().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2082
|
-
if (
|
|
2093
|
+
if (zs(r, i), i.size === 0) return r;
|
|
2083
2094
|
let a = /* @__PURE__ */ new Map();
|
|
2084
2095
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2085
|
-
return
|
|
2096
|
+
return Bs(r, a);
|
|
2086
2097
|
};
|
|
2087
2098
|
}
|
|
2088
|
-
var
|
|
2099
|
+
var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2089
2100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2090
2101
|
viewBox: "0 0 251.366 52",
|
|
2091
2102
|
width: "251.366",
|
|
@@ -2126,7 +2137,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2126
2137
|
fill: e
|
|
2127
2138
|
})
|
|
2128
2139
|
]
|
|
2129
|
-
}),
|
|
2140
|
+
}), Hs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2130
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2131
2142
|
viewBox: "0 0 105 24",
|
|
2132
2143
|
width: "105",
|
|
@@ -2286,7 +2297,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2286
2297
|
})
|
|
2287
2298
|
] })
|
|
2288
2299
|
]
|
|
2289
|
-
}),
|
|
2300
|
+
}), Us = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2290
2301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2291
2302
|
viewBox: "0 0 127 24",
|
|
2292
2303
|
width: "127",
|
|
@@ -2496,7 +2507,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2496
2507
|
})
|
|
2497
2508
|
] })
|
|
2498
2509
|
]
|
|
2499
|
-
}),
|
|
2510
|
+
}), Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2500
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2501
2512
|
viewBox: "0 0 127 24",
|
|
2502
2513
|
width: "127",
|
|
@@ -2664,7 +2675,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2664
2675
|
})
|
|
2665
2676
|
] })
|
|
2666
2677
|
]
|
|
2667
|
-
}),
|
|
2678
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2668
2679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2669
2680
|
viewBox: "0 0 133 24",
|
|
2670
2681
|
width: "133",
|
|
@@ -2832,7 +2843,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2832
2843
|
})
|
|
2833
2844
|
] })
|
|
2834
2845
|
]
|
|
2835
|
-
}),
|
|
2846
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2836
2847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2837
2848
|
viewBox: "0 0 24 24",
|
|
2838
2849
|
width: "24",
|
|
@@ -2947,7 +2958,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2947
2958
|
})
|
|
2948
2959
|
] })
|
|
2949
2960
|
]
|
|
2950
|
-
}),
|
|
2961
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2951
2962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2952
2963
|
viewBox: "0 0 108 24",
|
|
2953
2964
|
width: "108",
|
|
@@ -3096,7 +3107,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3096
3107
|
})
|
|
3097
3108
|
] })
|
|
3098
3109
|
]
|
|
3099
|
-
}),
|
|
3110
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3100
3111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3101
3112
|
viewBox: "0 0 100 24",
|
|
3102
3113
|
width: "100",
|
|
@@ -3235,7 +3246,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3235
3246
|
})
|
|
3236
3247
|
] })
|
|
3237
3248
|
]
|
|
3238
|
-
}),
|
|
3249
|
+
}), Ys = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3239
3250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3240
3251
|
viewBox: "0 0 81 24",
|
|
3241
3252
|
width: "81",
|
|
@@ -3339,7 +3350,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3339
3350
|
]
|
|
3340
3351
|
})] })
|
|
3341
3352
|
]
|
|
3342
|
-
}),
|
|
3353
|
+
}), Xs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3343
3354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3344
3355
|
viewBox: "0 0 95 24",
|
|
3345
3356
|
width: "95",
|
|
@@ -3539,7 +3550,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3539
3550
|
})
|
|
3540
3551
|
] })
|
|
3541
3552
|
]
|
|
3542
|
-
}),
|
|
3553
|
+
}), Zs = $(Vs), Qs = $(Hs), $s = $(Us), ec = $(Ws), tc = $(Gs), nc = $(qs), rc = $(Ks), ic = $(Js), ac = $(Ys), oc = $(Xs), sc = 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", {
|
|
3543
3554
|
variants: { type: {
|
|
3544
3555
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3545
3556
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3548,34 +3559,34 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3548
3559
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3549
3560
|
} },
|
|
3550
3561
|
defaultVariants: { type: "basic" }
|
|
3551
|
-
}),
|
|
3562
|
+
}), cc = {
|
|
3552
3563
|
basic: {
|
|
3553
|
-
Icon:
|
|
3564
|
+
Icon: st,
|
|
3554
3565
|
className: "aivex:text-icon-secondary"
|
|
3555
3566
|
},
|
|
3556
3567
|
info: {
|
|
3557
|
-
Icon:
|
|
3568
|
+
Icon: st,
|
|
3558
3569
|
className: "aivex:text-icon-info"
|
|
3559
3570
|
},
|
|
3560
3571
|
success: {
|
|
3561
|
-
Icon:
|
|
3572
|
+
Icon: mr,
|
|
3562
3573
|
className: "aivex:text-icon-success"
|
|
3563
3574
|
},
|
|
3564
3575
|
warning: {
|
|
3565
|
-
Icon:
|
|
3576
|
+
Icon: mn,
|
|
3566
3577
|
className: "aivex:text-icon-warning"
|
|
3567
3578
|
},
|
|
3568
3579
|
danger: {
|
|
3569
|
-
Icon:
|
|
3580
|
+
Icon: ci,
|
|
3570
3581
|
className: "aivex:text-icon-danger"
|
|
3571
3582
|
}
|
|
3572
3583
|
};
|
|
3573
|
-
function
|
|
3574
|
-
let { Icon: u, className: d } =
|
|
3584
|
+
function lc({ className: t, type: n = "basic", message: r, subText: i, children: a, onClose: s, ref: c, ...l }) {
|
|
3585
|
+
let { Icon: u, className: d } = cc[n ?? "basic"];
|
|
3575
3586
|
return /* @__PURE__ */ H("div", {
|
|
3576
3587
|
ref: c,
|
|
3577
3588
|
role: "status",
|
|
3578
|
-
className: e(
|
|
3589
|
+
className: e(sc({ type: n }), t),
|
|
3579
3590
|
...l,
|
|
3580
3591
|
children: /* @__PURE__ */ U("div", {
|
|
3581
3592
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
@@ -3606,7 +3617,7 @@ function sc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3606
3617
|
className: "aivex:shrink-0 aivex:text-icon-secondary",
|
|
3607
3618
|
onClick: s,
|
|
3608
3619
|
"aria-label": "닫기",
|
|
3609
|
-
children: /* @__PURE__ */ H(
|
|
3620
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
3610
3621
|
})
|
|
3611
3622
|
]
|
|
3612
3623
|
})
|
|
@@ -3614,23 +3625,23 @@ function sc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3614
3625
|
}
|
|
3615
3626
|
//#endregion
|
|
3616
3627
|
//#region src/components/Nav/Nav.tsx
|
|
3617
|
-
var
|
|
3628
|
+
var uc = 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", {
|
|
3618
3629
|
variants: { active: {
|
|
3619
3630
|
true: "aivex:bg-bg-brand-subtle",
|
|
3620
3631
|
false: "aivex:bg-transparent"
|
|
3621
3632
|
} },
|
|
3622
3633
|
defaultVariants: { active: !1 }
|
|
3623
3634
|
});
|
|
3624
|
-
function
|
|
3635
|
+
function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3625
3636
|
let s = n ?? !1;
|
|
3626
3637
|
return /* @__PURE__ */ U("button", {
|
|
3627
3638
|
ref: a,
|
|
3628
3639
|
type: "button",
|
|
3629
3640
|
"aria-pressed": s,
|
|
3630
|
-
className: e(
|
|
3641
|
+
className: e(uc({ active: n }), t),
|
|
3631
3642
|
...o,
|
|
3632
3643
|
children: [
|
|
3633
|
-
/* @__PURE__ */ H(
|
|
3644
|
+
/* @__PURE__ */ H(R, {}),
|
|
3634
3645
|
r && /* @__PURE__ */ H("span", {
|
|
3635
3646
|
className: e("aivex:flex aivex:items-center aivex:justify-center aivex:p-1", s ? "aivex:text-text-brand" : "aivex:text-text-secondary"),
|
|
3636
3647
|
children: /* @__PURE__ */ H("span", {
|
|
@@ -3645,22 +3656,22 @@ function lc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3645
3656
|
]
|
|
3646
3657
|
});
|
|
3647
3658
|
}
|
|
3648
|
-
var
|
|
3659
|
+
var fc = 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", {
|
|
3649
3660
|
variants: { active: {
|
|
3650
3661
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3651
3662
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3652
3663
|
} },
|
|
3653
3664
|
defaultVariants: { active: !1 }
|
|
3654
3665
|
});
|
|
3655
|
-
function
|
|
3666
|
+
function pc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3656
3667
|
return /* @__PURE__ */ U("button", {
|
|
3657
3668
|
ref: a,
|
|
3658
3669
|
type: "button",
|
|
3659
3670
|
"aria-current": n ? "page" : void 0,
|
|
3660
|
-
className: e(
|
|
3671
|
+
className: e(fc({ active: n }), t),
|
|
3661
3672
|
...o,
|
|
3662
3673
|
children: [
|
|
3663
|
-
/* @__PURE__ */ H(
|
|
3674
|
+
/* @__PURE__ */ H(R, {}),
|
|
3664
3675
|
r && /* @__PURE__ */ H("span", {
|
|
3665
3676
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5",
|
|
3666
3677
|
children: r
|
|
@@ -3669,7 +3680,7 @@ function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3669
3680
|
]
|
|
3670
3681
|
});
|
|
3671
3682
|
}
|
|
3672
|
-
function
|
|
3683
|
+
function mc({ className: t, children: n, ref: r, ...i }) {
|
|
3673
3684
|
return /* @__PURE__ */ H("nav", {
|
|
3674
3685
|
ref: r,
|
|
3675
3686
|
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
@@ -3679,7 +3690,7 @@ function fc({ className: t, children: n, ref: r, ...i }) {
|
|
|
3679
3690
|
}
|
|
3680
3691
|
//#endregion
|
|
3681
3692
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3682
|
-
function
|
|
3693
|
+
function hc({ 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
3694
|
let [h, g] = J(!1), _ = r === "sm" ? 16 : 20;
|
|
3684
3695
|
return /* @__PURE__ */ H("button", {
|
|
3685
3696
|
ref: c,
|
|
@@ -3694,7 +3705,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3694
3705
|
},
|
|
3695
3706
|
className: e("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", o && "aivex:cursor-not-allowed", s),
|
|
3696
3707
|
...m,
|
|
3697
|
-
children: /* @__PURE__ */ U(
|
|
3708
|
+
children: /* @__PURE__ */ U(Rs, {
|
|
3698
3709
|
disabled: o,
|
|
3699
3710
|
focused: a || h,
|
|
3700
3711
|
error: i,
|
|
@@ -3703,7 +3714,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3703
3714
|
layout: "inline",
|
|
3704
3715
|
endContent: /* @__PURE__ */ H("span", {
|
|
3705
3716
|
className: e("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", a && "aivex:rotate-180"),
|
|
3706
|
-
children: /* @__PURE__ */ H(
|
|
3717
|
+
children: /* @__PURE__ */ H(wt, { size: _ })
|
|
3707
3718
|
}),
|
|
3708
3719
|
children: [/* @__PURE__ */ H("span", {
|
|
3709
3720
|
className: e("aivex:flex-1 aivex:min-w-0 aivex:truncate", r === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", t != null && t !== "" ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
@@ -3714,7 +3725,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3714
3725
|
}
|
|
3715
3726
|
//#endregion
|
|
3716
3727
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3717
|
-
function
|
|
3728
|
+
function gc({ 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
3729
|
let [p, m] = J(!1), h = l || f === !0 || f === "true", g = (() => {
|
|
3719
3730
|
for (let e of t) {
|
|
3720
3731
|
let t = e.options.find((e) => e.value === n);
|
|
@@ -3730,7 +3741,7 @@ function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3730
3741
|
children: [/* @__PURE__ */ H(Q.Trigger, {
|
|
3731
3742
|
asChild: !0,
|
|
3732
3743
|
"aria-invalid": h || void 0,
|
|
3733
|
-
children: /* @__PURE__ */ H(
|
|
3744
|
+
children: /* @__PURE__ */ H(hc, {
|
|
3734
3745
|
id: u,
|
|
3735
3746
|
"aria-describedby": d,
|
|
3736
3747
|
value: g,
|
|
@@ -3770,17 +3781,17 @@ function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3770
3781
|
}
|
|
3771
3782
|
//#endregion
|
|
3772
3783
|
//#region src/components/Pagination/Pagination.tsx
|
|
3773
|
-
function
|
|
3784
|
+
function _c({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3774
3785
|
return /* @__PURE__ */ U("button", {
|
|
3775
3786
|
type: "button",
|
|
3776
3787
|
"aria-label": n,
|
|
3777
3788
|
disabled: t,
|
|
3778
3789
|
onClick: e,
|
|
3779
3790
|
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:w-8 aivex:items-center aivex:justify-center aivex:rounded-sm aivex:text-text-secondary aivex:disabled:opacity-disable aivex:disabled:pointer-events-none aivex:transition-colors",
|
|
3780
|
-
children: [/* @__PURE__ */ H(
|
|
3791
|
+
children: [/* @__PURE__ */ H(R, { variant: "default" }), r]
|
|
3781
3792
|
});
|
|
3782
3793
|
}
|
|
3783
|
-
function
|
|
3794
|
+
function vc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3784
3795
|
return /* @__PURE__ */ U("button", {
|
|
3785
3796
|
type: "button",
|
|
3786
3797
|
"aria-label": `Page ${t}`,
|
|
@@ -3788,13 +3799,13 @@ function gc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
|
3788
3799
|
disabled: r,
|
|
3789
3800
|
onClick: i,
|
|
3790
3801
|
className: e("aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:px-xs aivex:items-center aivex:justify-center aivex:rounded-full aivex:transition-colors aivex:disabled:opacity-disable aivex:disabled:pointer-events-none", n ? "aivex:bg-bg-brand-subtle aivex:text-text-brand" : "aivex:text-text-secondary"),
|
|
3791
|
-
children: [/* @__PURE__ */ H(
|
|
3802
|
+
children: [/* @__PURE__ */ H(R, { variant: n ? "strong" : "default" }), /* @__PURE__ */ H("span", {
|
|
3792
3803
|
className: "aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg",
|
|
3793
3804
|
children: t
|
|
3794
3805
|
})]
|
|
3795
3806
|
});
|
|
3796
3807
|
}
|
|
3797
|
-
function
|
|
3808
|
+
function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3798
3809
|
let d = q(void 0);
|
|
3799
3810
|
n != null && (d.current = n);
|
|
3800
3811
|
let f = n ?? d.current;
|
|
@@ -3814,21 +3825,21 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3814
3825
|
children: [
|
|
3815
3826
|
/* @__PURE__ */ U("div", {
|
|
3816
3827
|
className: "aivex:flex aivex:gap-2",
|
|
3817
|
-
children: [/* @__PURE__ */ H(
|
|
3828
|
+
children: [/* @__PURE__ */ H(_c, {
|
|
3818
3829
|
"aria-label": "First page",
|
|
3819
3830
|
disabled: a || y,
|
|
3820
3831
|
onClick: () => s(1),
|
|
3821
3832
|
children: /* @__PURE__ */ H(x, { size: 16 })
|
|
3822
|
-
}), /* @__PURE__ */ H(
|
|
3833
|
+
}), /* @__PURE__ */ H(_c, {
|
|
3823
3834
|
"aria-label": "Previous page group",
|
|
3824
3835
|
disabled: a || y,
|
|
3825
3836
|
onClick: () => s(g - 10),
|
|
3826
|
-
children: /* @__PURE__ */ H(
|
|
3837
|
+
children: /* @__PURE__ */ H(Pt, { size: 16 })
|
|
3827
3838
|
})]
|
|
3828
3839
|
}),
|
|
3829
3840
|
/* @__PURE__ */ H("div", {
|
|
3830
3841
|
className: "aivex:flex aivex:gap-2",
|
|
3831
|
-
children: v.map((e) => /* @__PURE__ */ H(
|
|
3842
|
+
children: v.map((e) => /* @__PURE__ */ H(vc, {
|
|
3832
3843
|
page: e,
|
|
3833
3844
|
isActive: e === m,
|
|
3834
3845
|
disabled: a,
|
|
@@ -3837,23 +3848,23 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3837
3848
|
}),
|
|
3838
3849
|
/* @__PURE__ */ U("div", {
|
|
3839
3850
|
className: "aivex:flex aivex:gap-2",
|
|
3840
|
-
children: [/* @__PURE__ */ H(
|
|
3851
|
+
children: [/* @__PURE__ */ H(_c, {
|
|
3841
3852
|
"aria-label": "Next page group",
|
|
3842
3853
|
disabled: a || b,
|
|
3843
3854
|
onClick: () => s(_ + 1),
|
|
3844
|
-
children: /* @__PURE__ */ H(
|
|
3845
|
-
}), /* @__PURE__ */ H(
|
|
3855
|
+
children: /* @__PURE__ */ H(le, { size: 16 })
|
|
3856
|
+
}), /* @__PURE__ */ H(_c, {
|
|
3846
3857
|
"aria-label": "Last page",
|
|
3847
3858
|
disabled: a || b,
|
|
3848
3859
|
onClick: () => s(p),
|
|
3849
|
-
children: /* @__PURE__ */ H(
|
|
3860
|
+
children: /* @__PURE__ */ H(kt, { size: 16 })
|
|
3850
3861
|
})]
|
|
3851
3862
|
})
|
|
3852
3863
|
]
|
|
3853
3864
|
}),
|
|
3854
3865
|
/* @__PURE__ */ H("div", {
|
|
3855
3866
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
3856
|
-
children: o && /* @__PURE__ */ H(
|
|
3867
|
+
children: o && /* @__PURE__ */ H(gc, {
|
|
3857
3868
|
size: "sm",
|
|
3858
3869
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
3859
3870
|
value: String(i),
|
|
@@ -3870,14 +3881,14 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3870
3881
|
}
|
|
3871
3882
|
//#endregion
|
|
3872
3883
|
//#region src/components/Panel/Panel.tsx
|
|
3873
|
-
var
|
|
3884
|
+
var bc = {
|
|
3874
3885
|
left: "aivex:left-0 aivex:border-r",
|
|
3875
3886
|
right: "aivex:right-0 aivex:border-l"
|
|
3876
|
-
},
|
|
3887
|
+
}, xc = {
|
|
3877
3888
|
md: "aivex:w-[384px]",
|
|
3878
3889
|
lg: "aivex:w-[450px]"
|
|
3879
3890
|
};
|
|
3880
|
-
function
|
|
3891
|
+
function Sc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a, side: o = "right", size: s = "md", ref: c }) {
|
|
3881
3892
|
return /* @__PURE__ */ H(Z.Root, {
|
|
3882
3893
|
open: t,
|
|
3883
3894
|
onOpenChange: n,
|
|
@@ -3885,7 +3896,7 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3885
3896
|
ref: c,
|
|
3886
3897
|
"data-side": o,
|
|
3887
3898
|
"aria-describedby": void 0,
|
|
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",
|
|
3899
|
+
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", bc[o], xc[s]),
|
|
3889
3900
|
onKeyDown: (e) => {
|
|
3890
3901
|
e.stopPropagation();
|
|
3891
3902
|
},
|
|
@@ -3902,7 +3913,7 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3902
3913
|
type: "button",
|
|
3903
3914
|
className: e("aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm", "aivex:text-icon-secondary aivex:transition-colors", "aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand"),
|
|
3904
3915
|
"aria-label": "Close panel",
|
|
3905
|
-
children: /* @__PURE__ */ H(
|
|
3916
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
3906
3917
|
})
|
|
3907
3918
|
})]
|
|
3908
3919
|
})]
|
|
@@ -3915,14 +3926,14 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3915
3926
|
}
|
|
3916
3927
|
//#endregion
|
|
3917
3928
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
3918
|
-
var
|
|
3929
|
+
var Cc = {
|
|
3919
3930
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
3920
3931
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
3921
3932
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
3922
3933
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
3923
|
-
},
|
|
3924
|
-
function
|
|
3925
|
-
let d =
|
|
3934
|
+
}, wc = (e) => typeof e == "number" ? `${e}px` : e, Tc = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
3935
|
+
function Ec({ className: t, current: n, total: r, color: i = "success", width: a = "100%", height: o = 6, isProgressing: s = !1, ref: c, style: l, ...u }) {
|
|
3936
|
+
let d = Tc(n, r), f = wc(a), p = wc(o), m = Cc[i], h = s ? {
|
|
3926
3937
|
width: "100%",
|
|
3927
3938
|
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
3928
3939
|
} : {
|
|
@@ -3950,20 +3961,20 @@ function wc({ className: t, current: n, total: r, color: i = "success", width: a
|
|
|
3950
3961
|
}
|
|
3951
3962
|
//#endregion
|
|
3952
3963
|
//#region src/components/Radio/Radio.tsx
|
|
3953
|
-
var
|
|
3964
|
+
var Dc = 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", {
|
|
3954
3965
|
variants: { size: {
|
|
3955
3966
|
sm: "aivex:w-4 aivex:h-4",
|
|
3956
3967
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
3957
3968
|
} },
|
|
3958
3969
|
defaultVariants: { size: "md" }
|
|
3959
|
-
}),
|
|
3970
|
+
}), Oc = {
|
|
3960
3971
|
sm: "aivex:w-5 aivex:h-5",
|
|
3961
3972
|
md: "aivex:w-6 aivex:h-6"
|
|
3962
|
-
},
|
|
3973
|
+
}, kc = {
|
|
3963
3974
|
sm: "aivex:h-5",
|
|
3964
3975
|
md: "aivex:h-6"
|
|
3965
3976
|
};
|
|
3966
|
-
function
|
|
3977
|
+
function Ac({ className: t, label: n, size: r = "md", disabled: i, checked: a, id: o, ref: s, ...c }) {
|
|
3967
3978
|
let l = r ?? "md", u = {
|
|
3968
3979
|
sm: "aivex:w-2 aivex:h-2",
|
|
3969
3980
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
@@ -3971,7 +3982,7 @@ function Oc({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
3971
3982
|
return /* @__PURE__ */ U("span", {
|
|
3972
3983
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
3973
3984
|
children: [/* @__PURE__ */ U("span", {
|
|
3974
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
3985
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", Oc[l]),
|
|
3975
3986
|
children: [
|
|
3976
3987
|
/* @__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" }),
|
|
3977
3988
|
/* @__PURE__ */ H("input", {
|
|
@@ -3980,21 +3991,21 @@ function Oc({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
3980
3991
|
type: "radio",
|
|
3981
3992
|
disabled: i,
|
|
3982
3993
|
checked: a,
|
|
3983
|
-
className: e(
|
|
3994
|
+
className: e(Dc({ size: l }), t),
|
|
3984
3995
|
...c
|
|
3985
3996
|
}),
|
|
3986
3997
|
/* @__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) })
|
|
3987
3998
|
]
|
|
3988
3999
|
}), n && /* @__PURE__ */ H("label", {
|
|
3989
4000
|
htmlFor: f,
|
|
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",
|
|
4001
|
+
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", kc[l]),
|
|
3991
4002
|
children: n
|
|
3992
4003
|
})]
|
|
3993
4004
|
});
|
|
3994
4005
|
}
|
|
3995
4006
|
//#endregion
|
|
3996
4007
|
//#region src/components/Segmented/Segmented.tsx
|
|
3997
|
-
var
|
|
4008
|
+
var jc = qi({ size: "md" }), Mc = {
|
|
3998
4009
|
sm: "aivex:h-7",
|
|
3999
4010
|
md: "aivex:h-8",
|
|
4000
4011
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4002,9 +4013,9 @@ var kc = qi({ size: "md" }), Ac = {
|
|
|
4002
4013
|
"icon-md": "aivex:h-8",
|
|
4003
4014
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4004
4015
|
};
|
|
4005
|
-
function
|
|
4016
|
+
function Nc({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4006
4017
|
let u = r !== void 0, [d, f] = J(i ?? r ?? ""), p = u ? r : d;
|
|
4007
|
-
return /* @__PURE__ */ H(
|
|
4018
|
+
return /* @__PURE__ */ H(jc.Provider, {
|
|
4008
4019
|
value: {
|
|
4009
4020
|
size: n,
|
|
4010
4021
|
fullWidth: o
|
|
@@ -4016,13 +4027,13 @@ function jc({ className: t, size: n = "md", value: r, defaultValue: i, onValueCh
|
|
|
4016
4027
|
onValueChange: (e) => {
|
|
4017
4028
|
e && (u || f(e), a?.(e));
|
|
4018
4029
|
},
|
|
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",
|
|
4030
|
+
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", Mc[n], t),
|
|
4020
4031
|
...l,
|
|
4021
4032
|
children: s
|
|
4022
4033
|
})
|
|
4023
4034
|
});
|
|
4024
4035
|
}
|
|
4025
|
-
var
|
|
4036
|
+
var Pc = {
|
|
4026
4037
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4027
4038
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4028
4039
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4030,36 +4041,36 @@ var Mc = {
|
|
|
4030
4041
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4031
4042
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4032
4043
|
};
|
|
4033
|
-
function
|
|
4034
|
-
let { size: a, fullWidth: o } = Xi(
|
|
4044
|
+
function Fc({ className: t, children: n, ref: r, ...i }) {
|
|
4045
|
+
let { size: a, fullWidth: o } = Xi(jc);
|
|
4035
4046
|
return /* @__PURE__ */ H(ka.Item, {
|
|
4036
4047
|
ref: r,
|
|
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",
|
|
4048
|
+
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", Pc[a], o && "aivex:flex-1", t),
|
|
4038
4049
|
...i,
|
|
4039
4050
|
children: n
|
|
4040
4051
|
});
|
|
4041
4052
|
}
|
|
4042
4053
|
//#endregion
|
|
4043
4054
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4044
|
-
function
|
|
4055
|
+
function Ic(e) {
|
|
4045
4056
|
return typeof e != "string";
|
|
4046
4057
|
}
|
|
4047
|
-
function
|
|
4058
|
+
function Lc({ className: t, keys: n, ref: r, ...i }) {
|
|
4048
4059
|
return /* @__PURE__ */ H("span", {
|
|
4049
4060
|
ref: r,
|
|
4050
4061
|
className: e("aivex:inline-flex aivex:items-start aivex:gap-xs", t),
|
|
4051
4062
|
...i,
|
|
4052
4063
|
children: n.map((t, n) => /* @__PURE__ */ H("kbd", {
|
|
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",
|
|
4064
|
+
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", Ic(t) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
4054
4065
|
children: t
|
|
4055
4066
|
}, n))
|
|
4056
4067
|
});
|
|
4057
4068
|
}
|
|
4058
4069
|
//#endregion
|
|
4059
4070
|
//#region src/components/Spinner/Spinner.tsx
|
|
4060
|
-
var
|
|
4061
|
-
function
|
|
4062
|
-
let c = Math.max(1, n *
|
|
4071
|
+
var Rc = 1.2 / 15.8;
|
|
4072
|
+
function zc({ className: t, size: n = 20, color: r, label: i = "로딩 중", style: a, ref: o, ...s }) {
|
|
4073
|
+
let c = Math.max(1, n * Rc);
|
|
4063
4074
|
return /* @__PURE__ */ H("div", {
|
|
4064
4075
|
ref: o,
|
|
4065
4076
|
...i === null ? { "aria-hidden": !0 } : {
|
|
@@ -4078,30 +4089,30 @@ function Lc({ className: t, size: n = 20, color: r, label: i = "로딩 중", sty
|
|
|
4078
4089
|
}
|
|
4079
4090
|
//#endregion
|
|
4080
4091
|
//#region src/components/Tab/Tab.tsx
|
|
4081
|
-
function
|
|
4092
|
+
function Bc({ className: t, ref: n, ...r }) {
|
|
4082
4093
|
return /* @__PURE__ */ H(Aa.Root, {
|
|
4083
4094
|
ref: n,
|
|
4084
4095
|
className: e("aivex:flex aivex:flex-col", t),
|
|
4085
4096
|
...r
|
|
4086
4097
|
});
|
|
4087
4098
|
}
|
|
4088
|
-
var
|
|
4089
|
-
function
|
|
4099
|
+
var Vc = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
4100
|
+
function Hc({ className: t, ref: n, ...r }) {
|
|
4090
4101
|
return /* @__PURE__ */ H(Aa.List, {
|
|
4091
4102
|
ref: n,
|
|
4092
|
-
className: e(
|
|
4103
|
+
className: e(Vc, t),
|
|
4093
4104
|
...r
|
|
4094
4105
|
});
|
|
4095
4106
|
}
|
|
4096
|
-
var
|
|
4097
|
-
function
|
|
4107
|
+
var Uc = "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-['']";
|
|
4108
|
+
function Wc({ className: t, ref: n, ...r }) {
|
|
4098
4109
|
return /* @__PURE__ */ H(Aa.Trigger, {
|
|
4099
4110
|
ref: n,
|
|
4100
|
-
className: e(
|
|
4111
|
+
className: e(Uc, t),
|
|
4101
4112
|
...r
|
|
4102
4113
|
});
|
|
4103
4114
|
}
|
|
4104
|
-
function
|
|
4115
|
+
function Gc({ className: t, ref: n, ...r }) {
|
|
4105
4116
|
return /* @__PURE__ */ H(Aa.Content, {
|
|
4106
4117
|
ref: n,
|
|
4107
4118
|
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
@@ -4110,14 +4121,14 @@ function Uc({ className: t, ref: n, ...r }) {
|
|
|
4110
4121
|
}
|
|
4111
4122
|
//#endregion
|
|
4112
4123
|
//#region src/components/Table/Table.tsx
|
|
4113
|
-
var
|
|
4124
|
+
var Kc = {
|
|
4114
4125
|
sm: "aivex:h-10",
|
|
4115
4126
|
md: "aivex:h-12"
|
|
4116
|
-
},
|
|
4127
|
+
}, qc = {
|
|
4117
4128
|
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
4118
4129
|
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
4119
|
-
},
|
|
4120
|
-
function
|
|
4130
|
+
}, Jc = ({ direction: e }) => H(e === "asc" ? dt : e === "desc" ? C : Mr, { size: 16 });
|
|
4131
|
+
function Yc({ className: t, tableClassName: n, size: r = "md", children: i, ref: a, ...o }) {
|
|
4121
4132
|
return /* @__PURE__ */ H("div", {
|
|
4122
4133
|
ref: a,
|
|
4123
4134
|
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
@@ -4129,7 +4140,7 @@ function qc({ className: t, tableClassName: n, size: r = "md", children: i, ref:
|
|
|
4129
4140
|
})
|
|
4130
4141
|
});
|
|
4131
4142
|
}
|
|
4132
|
-
function
|
|
4143
|
+
function Xc({ className: e, children: t, ref: n, ...r }) {
|
|
4133
4144
|
return /* @__PURE__ */ H("thead", {
|
|
4134
4145
|
ref: n,
|
|
4135
4146
|
className: e,
|
|
@@ -4137,7 +4148,7 @@ function Jc({ className: e, children: t, ref: n, ...r }) {
|
|
|
4137
4148
|
children: t
|
|
4138
4149
|
});
|
|
4139
4150
|
}
|
|
4140
|
-
function
|
|
4151
|
+
function Zc({ className: t, children: n, ref: r, ...i }) {
|
|
4141
4152
|
return /* @__PURE__ */ H("tfoot", {
|
|
4142
4153
|
ref: r,
|
|
4143
4154
|
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
@@ -4145,7 +4156,7 @@ function Yc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4145
4156
|
children: n
|
|
4146
4157
|
});
|
|
4147
4158
|
}
|
|
4148
|
-
function
|
|
4159
|
+
function Qc({ className: t, children: n, ref: r, ...i }) {
|
|
4149
4160
|
return /* @__PURE__ */ H("caption", {
|
|
4150
4161
|
ref: r,
|
|
4151
4162
|
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
@@ -4153,7 +4164,7 @@ function Xc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4153
4164
|
children: n
|
|
4154
4165
|
});
|
|
4155
4166
|
}
|
|
4156
|
-
function
|
|
4167
|
+
function $c({ className: e, children: t, ref: n, ...r }) {
|
|
4157
4168
|
return /* @__PURE__ */ H("tbody", {
|
|
4158
4169
|
ref: n,
|
|
4159
4170
|
className: e,
|
|
@@ -4161,10 +4172,10 @@ function Zc({ className: e, children: t, ref: n, ...r }) {
|
|
|
4161
4172
|
children: t
|
|
4162
4173
|
});
|
|
4163
4174
|
}
|
|
4164
|
-
function
|
|
4175
|
+
function el({ 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
4176
|
return /* @__PURE__ */ H(s ? W : "tr", {
|
|
4166
4177
|
ref: c,
|
|
4167
|
-
className: e("aivex:transition-colors",
|
|
4178
|
+
className: e("aivex:transition-colors", Kc[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
4179
|
"aria-disabled": a || p || void 0,
|
|
4169
4180
|
"data-disabled": a ? "" : void 0,
|
|
4170
4181
|
"data-state": i ? "selected" : void 0,
|
|
@@ -4176,10 +4187,10 @@ function Qc({ className: t, children: n, size: r = "md", selected: i, disabled:
|
|
|
4176
4187
|
children: n
|
|
4177
4188
|
});
|
|
4178
4189
|
}
|
|
4179
|
-
function
|
|
4190
|
+
function tl({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
4180
4191
|
return /* @__PURE__ */ H(s ? W : "th", {
|
|
4181
4192
|
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",
|
|
4193
|
+
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", qc[r], t),
|
|
4183
4194
|
...l,
|
|
4184
4195
|
children: i ? /* @__PURE__ */ U("button", {
|
|
4185
4196
|
type: "button",
|
|
@@ -4187,21 +4198,21 @@ function $c({ className: t, children: n, size: r = "md", sortable: i, sortDirect
|
|
|
4187
4198
|
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
4199
|
children: [n, /* @__PURE__ */ H("span", {
|
|
4189
4200
|
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
4190
|
-
children: /* @__PURE__ */ H(
|
|
4201
|
+
children: /* @__PURE__ */ H(Jc, { direction: a })
|
|
4191
4202
|
})]
|
|
4192
4203
|
}) : n
|
|
4193
4204
|
});
|
|
4194
4205
|
}
|
|
4195
|
-
function
|
|
4206
|
+
function nl({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
4196
4207
|
return /* @__PURE__ */ H(i ? W : "td", {
|
|
4197
4208
|
ref: a,
|
|
4198
|
-
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle",
|
|
4209
|
+
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle", qc[r], t),
|
|
4199
4210
|
...o,
|
|
4200
4211
|
children: n
|
|
4201
4212
|
});
|
|
4202
4213
|
}
|
|
4203
|
-
function
|
|
4204
|
-
return /* @__PURE__ */ H(
|
|
4214
|
+
function rl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
4215
|
+
return /* @__PURE__ */ H(el, { children: /* @__PURE__ */ H(nl, {
|
|
4205
4216
|
ref: i,
|
|
4206
4217
|
colSpan: r,
|
|
4207
4218
|
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
@@ -4209,12 +4220,12 @@ function tl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
|
4209
4220
|
children: n
|
|
4210
4221
|
}) });
|
|
4211
4222
|
}
|
|
4212
|
-
function
|
|
4223
|
+
function il({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
4213
4224
|
return /* @__PURE__ */ H("tbody", {
|
|
4214
4225
|
ref: r,
|
|
4215
4226
|
className: e,
|
|
4216
4227
|
...i,
|
|
4217
|
-
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(
|
|
4228
|
+
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(el, { children: /* @__PURE__ */ H(nl, {
|
|
4218
4229
|
colSpan: t,
|
|
4219
4230
|
children: /* @__PURE__ */ H(_o, { className: "aivex:h-5 aivex:w-full" })
|
|
4220
4231
|
}) }, n))
|
|
@@ -4222,21 +4233,21 @@ function nl({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
|
4222
4233
|
}
|
|
4223
4234
|
//#endregion
|
|
4224
4235
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4225
|
-
function
|
|
4236
|
+
function al({ 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
4237
|
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) => {
|
|
4227
4238
|
let t = e.trim();
|
|
4228
4239
|
if (!t) return;
|
|
4229
4240
|
let n = [...T, t];
|
|
4230
4241
|
S || w(n), c?.(n), D("");
|
|
4231
|
-
},
|
|
4242
|
+
}, P = (e) => {
|
|
4232
4243
|
let t = T.filter((t, n) => n !== e);
|
|
4233
4244
|
S || w(t), c?.(t);
|
|
4234
|
-
},
|
|
4245
|
+
}, F = (e) => {
|
|
4235
4246
|
if (y?.(e), !e.defaultPrevented && !a) if (e.key === "Enter") {
|
|
4236
4247
|
if (O.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
4237
4248
|
e.preventDefault(), E && te(E);
|
|
4238
|
-
} else e.key === "Backspace" && !E && T.length > 0 &&
|
|
4239
|
-
},
|
|
4249
|
+
} else e.key === "Backspace" && !E && T.length > 0 && P(T.length - 1);
|
|
4250
|
+
}, I = (e) => {
|
|
4240
4251
|
if (b?.(e), e.defaultPrevented || a || !l) return;
|
|
4241
4252
|
e.preventDefault();
|
|
4242
4253
|
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
@@ -4245,21 +4256,21 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4245
4256
|
S || w(e), c?.(e);
|
|
4246
4257
|
}
|
|
4247
4258
|
D("");
|
|
4248
|
-
},
|
|
4249
|
-
let r = () =>
|
|
4259
|
+
}, ne = T.map((e, t) => {
|
|
4260
|
+
let r = () => P(t), a = u ? u(e) ? "default" : "error" : N ? "error" : "default";
|
|
4250
4261
|
return d ? /* @__PURE__ */ H(Gi, { children: d(e, t, {
|
|
4251
4262
|
remove: r,
|
|
4252
4263
|
size: n,
|
|
4253
4264
|
disabled: i,
|
|
4254
4265
|
type: a
|
|
4255
|
-
}) }, `${e}-${t}`) : /* @__PURE__ */ H(
|
|
4266
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ H(Ps, {
|
|
4256
4267
|
size: n === "md" ? "md" : "sm",
|
|
4257
4268
|
type: a,
|
|
4258
4269
|
disabled: i,
|
|
4259
4270
|
onRemove: r,
|
|
4260
4271
|
children: e
|
|
4261
4272
|
}, `${e}-${t}`);
|
|
4262
|
-
}),
|
|
4273
|
+
}), re = /* @__PURE__ */ H("input", {
|
|
4263
4274
|
ref: m,
|
|
4264
4275
|
id: p,
|
|
4265
4276
|
value: E,
|
|
@@ -4269,8 +4280,8 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4269
4280
|
onChange: (e) => {
|
|
4270
4281
|
a || D(e.target.value);
|
|
4271
4282
|
},
|
|
4272
|
-
onKeyDown:
|
|
4273
|
-
onPaste:
|
|
4283
|
+
onKeyDown: F,
|
|
4284
|
+
onPaste: I,
|
|
4274
4285
|
onCompositionStart: (e) => {
|
|
4275
4286
|
O.current = !0, _?.(e);
|
|
4276
4287
|
},
|
|
@@ -4286,19 +4297,19 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4286
4297
|
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"),
|
|
4287
4298
|
...x
|
|
4288
4299
|
});
|
|
4289
|
-
return /* @__PURE__ */ U(
|
|
4300
|
+
return /* @__PURE__ */ U(Rs, {
|
|
4290
4301
|
error: N,
|
|
4291
4302
|
disabled: i,
|
|
4292
4303
|
focused: j,
|
|
4293
4304
|
size: n,
|
|
4294
4305
|
layout: "wrap",
|
|
4295
4306
|
className: e(t, a && "aivex:cursor-default"),
|
|
4296
|
-
children: [
|
|
4307
|
+
children: [ne, re]
|
|
4297
4308
|
});
|
|
4298
4309
|
}
|
|
4299
4310
|
//#endregion
|
|
4300
4311
|
//#region src/components/Textarea/Textarea.tsx
|
|
4301
|
-
function
|
|
4312
|
+
function ol({ 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
4313
|
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) => {
|
|
4303
4314
|
C(e.target.value.length), g?.(e);
|
|
4304
4315
|
}, O = {};
|
|
@@ -4320,7 +4331,7 @@ function il({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4320
4331
|
},
|
|
4321
4332
|
..._
|
|
4322
4333
|
});
|
|
4323
|
-
return /* @__PURE__ */ H(
|
|
4334
|
+
return /* @__PURE__ */ H(Rs, {
|
|
4324
4335
|
error: E,
|
|
4325
4336
|
disabled: r,
|
|
4326
4337
|
focused: v,
|
|
@@ -4345,7 +4356,7 @@ function il({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4345
4356
|
}
|
|
4346
4357
|
//#endregion
|
|
4347
4358
|
//#region src/components/Textbox/Textbox.tsx
|
|
4348
|
-
function
|
|
4359
|
+
function sl({ 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
4360
|
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) => {
|
|
4350
4361
|
S || x(e.target.value), p?.(e);
|
|
4351
4362
|
}, E = ja(u, y), D = /* @__PURE__ */ U(Wi, { children: [s, w && /* @__PURE__ */ H(o, {
|
|
@@ -4357,9 +4368,9 @@ function al({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4357
4368
|
tabIndex: -1,
|
|
4358
4369
|
className: "aivex:shrink-0",
|
|
4359
4370
|
"aria-label": "입력값 삭제",
|
|
4360
|
-
children: /* @__PURE__ */ H(
|
|
4371
|
+
children: /* @__PURE__ */ H(B, { size: c === "sm" ? 14 : 16 })
|
|
4361
4372
|
})] }), O = s || w, k = g["aria-invalid"];
|
|
4362
|
-
return /* @__PURE__ */ H(
|
|
4373
|
+
return /* @__PURE__ */ H(Rs, {
|
|
4363
4374
|
error: n || k === !0 || k === "true",
|
|
4364
4375
|
disabled: r,
|
|
4365
4376
|
focused: _,
|
|
@@ -4388,7 +4399,7 @@ function al({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4388
4399
|
}
|
|
4389
4400
|
//#endregion
|
|
4390
4401
|
//#region src/components/Toast/Toast.tsx
|
|
4391
|
-
var
|
|
4402
|
+
var cl = 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", {
|
|
4392
4403
|
variants: { type: {
|
|
4393
4404
|
default: "",
|
|
4394
4405
|
success: "",
|
|
@@ -4396,21 +4407,21 @@ var ol = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4396
4407
|
} },
|
|
4397
4408
|
defaultVariants: { type: "default" }
|
|
4398
4409
|
});
|
|
4399
|
-
function
|
|
4410
|
+
function ll({ className: t, type: n = "default", open: r = !0, message: i, action: a, onClose: s, closeAriaLabel: c = "닫기", ref: l, ...u }) {
|
|
4400
4411
|
if (!r) return null;
|
|
4401
4412
|
let { children: d, ...f } = a ?? {};
|
|
4402
4413
|
return /* @__PURE__ */ U("div", {
|
|
4403
4414
|
ref: l,
|
|
4404
4415
|
role: "status",
|
|
4405
4416
|
"aria-live": "polite",
|
|
4406
|
-
className: e(
|
|
4417
|
+
className: e(cl({ type: n }), t),
|
|
4407
4418
|
...u,
|
|
4408
4419
|
children: [
|
|
4409
4420
|
/* @__PURE__ */ H("p", {
|
|
4410
4421
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4411
4422
|
children: i
|
|
4412
4423
|
}),
|
|
4413
|
-
a && /* @__PURE__ */ H(
|
|
4424
|
+
a && /* @__PURE__ */ H(z, {
|
|
4414
4425
|
variant: "ghost",
|
|
4415
4426
|
color: "primary",
|
|
4416
4427
|
size: "md",
|
|
@@ -4424,12 +4435,12 @@ function sl({ className: t, type: n = "default", open: r = !0, message: i, actio
|
|
|
4424
4435
|
size: "sm",
|
|
4425
4436
|
className: "aivex:shrink-0",
|
|
4426
4437
|
onClick: s,
|
|
4427
|
-
children: /* @__PURE__ */ H(
|
|
4438
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
4428
4439
|
})
|
|
4429
4440
|
]
|
|
4430
4441
|
});
|
|
4431
4442
|
}
|
|
4432
|
-
function
|
|
4443
|
+
function ul({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r = 3, gap: i = 8, style: a, toastOptions: o, ...s }) {
|
|
4433
4444
|
let c = t.endsWith("center");
|
|
4434
4445
|
return /* @__PURE__ */ H(Ma, {
|
|
4435
4446
|
position: t,
|
|
@@ -4443,7 +4454,7 @@ function cl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4443
4454
|
toastOptions: {
|
|
4444
4455
|
...o,
|
|
4445
4456
|
unstyled: !0,
|
|
4446
|
-
className: e(
|
|
4457
|
+
className: e(cl({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4447
4458
|
classNames: {
|
|
4448
4459
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4449
4460
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -4458,7 +4469,7 @@ function cl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4458
4469
|
}
|
|
4459
4470
|
//#endregion
|
|
4460
4471
|
//#region src/components/Typography/Typography.tsx
|
|
4461
|
-
var
|
|
4472
|
+
var dl = V("", {
|
|
4462
4473
|
variants: { variant: {
|
|
4463
4474
|
"display-lg": "aivex:text-display-lg",
|
|
4464
4475
|
"display-md": "aivex:text-display-md",
|
|
@@ -4480,7 +4491,7 @@ var ll = V("", {
|
|
|
4480
4491
|
"caption-md": "aivex:text-caption-md"
|
|
4481
4492
|
} },
|
|
4482
4493
|
defaultVariants: { variant: "body-md-regular" }
|
|
4483
|
-
}),
|
|
4494
|
+
}), fl = {
|
|
4484
4495
|
"display-lg": "h1",
|
|
4485
4496
|
"display-md": "h1",
|
|
4486
4497
|
"heading-xl": "h1",
|
|
@@ -4500,17 +4511,17 @@ var ll = V("", {
|
|
|
4500
4511
|
"label-sm": "span",
|
|
4501
4512
|
"caption-md": "span"
|
|
4502
4513
|
};
|
|
4503
|
-
function
|
|
4504
|
-
return /* @__PURE__ */ H(t ??
|
|
4514
|
+
function pl({ as: t, variant: n = "body-md-regular", className: r, children: i, ref: a, ...o }) {
|
|
4515
|
+
return /* @__PURE__ */ H(t ?? fl[n], {
|
|
4505
4516
|
ref: a,
|
|
4506
|
-
className: e(
|
|
4517
|
+
className: e(dl({ variant: n }), r),
|
|
4507
4518
|
...o,
|
|
4508
4519
|
children: i
|
|
4509
4520
|
});
|
|
4510
4521
|
}
|
|
4511
4522
|
//#endregion
|
|
4512
4523
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4513
|
-
function
|
|
4524
|
+
function ml({ className: t, formats: n = [
|
|
4514
4525
|
"jpg",
|
|
4515
4526
|
"bmp",
|
|
4516
4527
|
"png",
|
|
@@ -4538,7 +4549,7 @@ function fl({ className: t, formats: n = [
|
|
|
4538
4549
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-6",
|
|
4539
4550
|
children: [/* @__PURE__ */ U("div", {
|
|
4540
4551
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3",
|
|
4541
|
-
children: [/* @__PURE__ */ H(
|
|
4552
|
+
children: [/* @__PURE__ */ H(ht, {
|
|
4542
4553
|
size: 28,
|
|
4543
4554
|
color: "var(--aivex-icon-tertiary)"
|
|
4544
4555
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -4561,20 +4572,20 @@ function fl({ className: t, formats: n = [
|
|
|
4561
4572
|
})]
|
|
4562
4573
|
}), /* @__PURE__ */ U("div", {
|
|
4563
4574
|
className: "aivex:flex aivex:gap-2",
|
|
4564
|
-
children: [/* @__PURE__ */ H(
|
|
4575
|
+
children: [/* @__PURE__ */ H(z, {
|
|
4565
4576
|
type: "button",
|
|
4566
4577
|
variant: "outline",
|
|
4567
4578
|
color: "secondary",
|
|
4568
4579
|
size: "md",
|
|
4569
|
-
startContent: /* @__PURE__ */ H(
|
|
4580
|
+
startContent: /* @__PURE__ */ H(Ar, { size: 16 }),
|
|
4570
4581
|
onClick: () => _.current?.click(),
|
|
4571
4582
|
children: c
|
|
4572
|
-
}), u && /* @__PURE__ */ H(
|
|
4583
|
+
}), u && /* @__PURE__ */ H(z, {
|
|
4573
4584
|
type: "button",
|
|
4574
4585
|
variant: "outline",
|
|
4575
4586
|
color: "secondary",
|
|
4576
4587
|
size: "md",
|
|
4577
|
-
startContent: /* @__PURE__ */ H(
|
|
4588
|
+
startContent: /* @__PURE__ */ H(Sn, { size: 16 }),
|
|
4578
4589
|
onClick: () => v.current?.click(),
|
|
4579
4590
|
children: l
|
|
4580
4591
|
})]
|
|
@@ -4600,6 +4611,6 @@ function fl({ className: t, formats: n = [
|
|
|
4600
4611
|
});
|
|
4601
4612
|
}
|
|
4602
4613
|
//#endregion
|
|
4603
|
-
export {
|
|
4614
|
+
export { Wr as AddFolderIcon, qn as AddPointIcon, tn as AdjustIcon, Dr as AiSparkleGradientIcon, Xr as AiSparkleIcon, pn as AiVDataIcon, nc as AiVDataLogo, rc as AiVDataSymbol, lr as AiVOpsIcon, ic as AiVOpsLogo, si as AiViewIcon, oc as AiViewLogo, yn as AiVisionIcon, Qs as AiVisionLogo, tc as AiVisionMLogo, ec as AiVisionSLogo, $s as AiVisionTLogo, An as AiVotIcon, ac as AiVotLogo, Zs as AivexLogo, Nr as AlignCenterIcon, hr as AlignLeftIcon, Vn as AlignRightIcon, In as AngleIcon, Xt as ApertureIcon, pi as ArchiveIcon, Di as ArrowCircleDownFilledIcon, cn as ArrowCircleDownIcon, Ci as ArrowCircleLeftFilledIcon, ut as ArrowCircleLeftIcon, S as ArrowCircleRightFilledIcon, vi as ArrowCircleRightIcon, ht as ArrowCircleUpFilledIcon, M as ArrowCircleUpIcon, D as ArrowControlIcon, We as ArrowCornerLeftTopIcon, ir as ArrowDownIcon, f as ArrowElbowDownLeftIcon, $n as ArrowElbowDownRightIcon, Pe as ArrowFlowIcon, ze as ArrowGoingDownIcon, Ye as ArrowGoingUpIcon, F as ArrowLeftDownIcon, L as ArrowLeftIcon, ke as ArrowLeftRightIcon, at as ArrowLeftUpIcon, Mi as ArrowRightDownIcon, _ as ArrowRightIcon, Tt as ArrowRightUpIcon, ue as ArrowUpDownIcon, bt as ArrowUpIcon, At as AssistantPolyIcon, ae as AssistantRectIcon, we as AtIcon, a as Avatar, Ia as Badge, zr as BarcodeIcon, ye as BellIcon, Bt as BookmarkFilledIcon, Ft as BookmarkIcon, Gt as BoundingBoxIcon, Ha as BreadCrumb, et as BrightIcon, z as Button, s as CSVFileIcon, Za as Calendar, kn as CalendarIcon, oi as CameraIcon, $a as Card, Er as CaretLineDownIcon, Yr as CaretLineLeftIcon, Qn as CaretLineRightIcon, sn as CaretLineUpIcon, Mr as CaretUpDownIcon, ti as ChatIcon, vn as CheckCircleFilledIcon, mr as CheckCircleIcon, fi as CheckDoubleIcon, wn as CheckIcon, ro as Checkbox, Fn as CheckboxCheckIcon, Rr as CheckboxIndeterminateIcon, so as Chips, io as ChipsCheckbox, br as CircleDashedIcon, Kn as CircleFilledIcon, Bn as CircleOutlineIcon, en as ClipIcon, _i as ClipboardIcon, ji as CloseCircleFilledIcon, fn as CloseCircleIcon, B as CloseIcon, mt as ClosedEyesIcon, go as Coachmark, E as CodeIcon, Si as CompareIcon, yt as ConfirmIcon, P as ConnectedIcon, j as ContrastIcon, Je as Copy1Icon, cr as Copy2Icon, g as CopyIcon, rr as CpuIcon, Re as CreditCardIcon, Ue as CropIcon, $e as CuttingIcon, $o as DataGrid, Ro as DataGridBody, Ho as DataGridCell, Ao as DataGridColumnSettings, Wo as DataGridEmpty, Lo as DataGridHeader, Uo as DataGridHeaderCell, Ko as DataGridInfiniteTrigger, Go as DataGridLoading, Fo as DataGridRoot, zo as DataGridRow, Io as DataGridViewport, ie as DatabaseIcon, ve as DefectGeneratorIcon, Ne as DeleteIcon, lt as DeletePointIcon, is as Dialog, Ii as DirectionDoubleDownIcon, x as DirectionDoubleLeftIcon, kt as DirectionDoubleRightIcon, me as DirectionDoubleUpIcon, wt as DirectionDownIcon, Pt as DirectionLeftIcon, le as DirectionRightIcon, Oe as DirectionUpIcon, Ur as DisconnectedIcon, Li as Divider, Ra as Dot, Ce as DotIcon, Wt as DownloadIcon, zt as DragHandleIcon, ss as DraggableScroll, ls as Drawer, Yt as EditIcon, it as EmptyIcon, d as EnglishIcon, Dn as EqualIcon, ii as EraserIcon, wr as ExpandIcon, qr as ExperimentIcon, Xn as ExportIcon, an as FailedIcon, ps as Field, hs as FieldContent, gs as FieldControl, _s as FieldDescription, vs as FieldError, ms as FieldLabel, Ar as FileIcon, $r as FilterFilledIcon, gn as FilterIcon, Is as FilterModal, fr as FitIcon, ui as FloppyDiskIcon, Sn as FolderCloseIcon, Nn as FolderOpenIcon, Ir as GalleryViewLargeIcon, vr as GalleryViewMediumIcon, Wn as GalleryViewSmallIcon, Rn as GitBranchIcon, Qt as GitCommitIcon, hi as GlobalIcon, ki as GpuIcon, un as GraphIcon, Ti as GraphPieIcon, ft as GraphScatterIcon, w as GridIcon, bi as GuideHandleIcon, _t as GuideLineIcon, N as HamburgerIcon, k as HandIcon, Ke as HeadphonesIcon, or as HelpIcon, m as HistoryIcon, tr as HomeIcon, Ie as HourglassIcon, o as IconButton, Ve as ImageBrokenIcon, Ze as ImageIcon, ne as ImagesIcon, ge as ImportIcon, je as InfoFilledIcon, st as InfoIcon, Rs as InputBase, R as InteractionLayer, Pi as KebabIcon, y as KeyDeleteIcon, Dt as KeyIcon, fe as KeyReturnIcon, St as KeyboardIcon, Mt as KoreanIcon, se as LabelPointIcon, Ee as LanguageIcon, Vr as LightbulbIcon, xe as LightingFilledIcon, Ht as LightingIcon, Lt as LineIcon, qt as LineLinkIcon, nt as LinkIcon, l as LinkedInIcon, On as ListIcon, ai as ListPlayIcon, Tr as LockIcon, Jr as LoginIcon, Zn as LogoutIcon, on as MagicWandIcon, jr as MailIcon, ei as MapIcon, _n as MapPinIcon, pr as MeatballIcon, Ri as Menu, lc as Messagebox, di as MicroscopeIcon, Cn as MinimizeIcon, Pn as MinimizeWindowIcon, Lr as MinusCircleFilledIcon, yr as MinusCircleIcon, Gn as MinusIcon, As as Modal, Ms as ModalBase, ks as ModalSurface, zn as ModelIcon, $t as MonitorIcon, gi as MouseClickLeftIcon, Ai as MouseClickRightIcon, dn as MoveFolderIcon, Ei as MoveIcon, pt as MultiSelectionIcon, T as MuteIcon, mc as Nav, pc as NavItem, dc as NavTile, xi as NewTabIcon, vt as NotEqualIcon, te as OpenEyesIcon, A as OpenedMailIcon, ts as Overlay, qe as PackageIcon, sr as PageIcon, yc as Pagination, Sc as Panel, h as PasteIcon, nr as PauseCircleFilledIcon, Le as PauseCircleIcon, He as PauseIcon, Qe as PenIcon, re as PencilIcon, _e as PhoneIcon, Me as PinIcon, ct as PipelineIcon, Fi as PixelIcon, b as PlayCircleFilledIcon, Ot as PlayCircleIcon, pe as PlayIcon, Ct as PlayProgressIcon, Nt as PlusCircleFilledIcon, ce as PlusCircleIcon, De as PlusIcon, Hr as PointEditIcon, Se as PointIcon, Ui as Popover, Ec as ProgressBar, Ut as PushPinFilledIcon, Rt as PushPinIcon, Jt as QuestionIcon, Ac as Radio, rt as RectDashedIcon, u as RectIcon, En as RedoIcon, ri as RefreshIcon, Cr as RepeatIcon, Kr as RepeatOnceIcon, Yn as RequestStatusIcon, rn as RocketIcon, kr as RotateRectIcon, Qr as RotateRectOCRIcon, hn as RulerIcon, dr as ScaleLeftBottomIcon, li as ScaleLeftTopIcon, xn as ScaleRightBottomIcon, Mn as ScaleRightTopIcon, vo as ScrollArea, yo as ScrollBar, Fr as SearchIcon, Fc as SegmentedItem, Nc as SegmentedRoot, gc as SelectBox, hc as SelectButton, _r as SendIcon, Un as SettingIcon, Ln as ShapesIcon, Lc as Shortcut, Zt as ShrinkIcon, mi as ShuffleIcon, Oi as SidebarIcon, ln as SimplificationIcon, _o as Skeleton, zi as Slider, wi as SmoothIcon, dt as SortAscendingIcon, C as SortDescendingIcon, yi as SoundIcon, gt as SpecificAreaIcon, zc as Spinner, ee as StarFilledIcon, O as StarIcon, Ge as StopCircleFilledIcon, ar as StopCircleIcon, p as StopIcon, er as StorageIcon, Fe as StrokeIcon, Hi as Switch, Gc as TabContent, Hc as TabList, Bc as TabRoot, Wc as TabTrigger, Yc as Table, $c as TableBody, Qc as TableCaption, nl as TableCell, rl as TableEmpty, Zc as TableFooter, tl as TableHead, Xc as TableHeader, il as TableLoading, el as TableRow, Ps as Tag, Be as TagFilledIcon, Xe as TagFilledOpacityIcon, I as TagIcon, al as Tagbox, he as TargetIcon, Ae as TaskQueueIcon, ot as TeamIcon, Ni as TempIcon, v as TestIcon, Et as TextBoldIcon, de as TextH1Icon, xt as TextH2Icon, jt as TextH3Icon, oe as TextIcon, Te as TextItalicIcon, Br as TextStrikethroughIcon, be as TextUnderlineIcon, ol as Textarea, sl as Textbox, Vt as ThumbsDownFilledIcon, It as ThumbsDownIcon, Kt as ThumbsUpIcon, tt as TimeIcon, ll as Toast, ul as ToastToaster, oo as ToggleButton, c as ToolIcon, t as Tooltip, Tn as TriangleDashedIcon, pl as Typography, ni as UndoIcon, Sr as UneditableIcon, Gr as UnlockIcon, Jn as UnreadIcon, ml as UploadArea, nn as UploadIcon, Or as UserIcon, Zr as WarningCircleFilledIcon, mn as WarningCircleIcon, ur as WarningTriangleFilledIcon, ci as WarningTriangleIcon, bn as WheelIcon, jn as WorkspaceIcon, Pr as Zoom100Icon, gr as ZoomInIcon, Hn as ZoomOutIcon, n as avatarVariants, Pa as badgeVariants, xr as buttonVariants, eo as checkboxVariants, co as chipsVariants, e as cn, Vi as dividerVariants, La as dotVariants, fs 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, Ls as inputContainerVariants, Ls as inputWrapperVariants, Bi as isShortcutTarget, sc as messageboxVariants, fc as navItemVariants, uc as navTileVariants, es as overlayVariants, Dc as radioVariants, Ns as tagVariants, Na as toast, cl as toastVariants, ao as toggleButtonVariants, i as tooltipContentVariants, dl as typographyVariants };
|
|
4604
4615
|
|
|
4605
4616
|
//# sourceMappingURL=index.js.map
|