@aivex/ui 1.2.0-dev.45 → 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 +343 -333
- 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,7 +1680,7 @@ 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": "",
|
|
@@ -1679,14 +1689,14 @@ function Cs({ children: e, ref: t, ...n }) {
|
|
|
1679
1689
|
children: e
|
|
1680
1690
|
});
|
|
1681
1691
|
}
|
|
1682
|
-
function
|
|
1692
|
+
function Es({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1683
1693
|
return /* @__PURE__ */ U("div", {
|
|
1684
1694
|
ref: r,
|
|
1685
1695
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1686
1696
|
...i,
|
|
1687
1697
|
children: [/* @__PURE__ */ H("div", {
|
|
1688
1698
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1689
|
-
children: e && /* @__PURE__ */ H(
|
|
1699
|
+
children: e && /* @__PURE__ */ H(Ds, {
|
|
1690
1700
|
button: e,
|
|
1691
1701
|
variant: "ghost",
|
|
1692
1702
|
color: "secondary",
|
|
@@ -1694,12 +1704,12 @@ function ws({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1694
1704
|
})
|
|
1695
1705
|
}), /* @__PURE__ */ U("div", {
|
|
1696
1706
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1697
|
-
children: [t && /* @__PURE__ */ H(
|
|
1707
|
+
children: [t && /* @__PURE__ */ H(Ds, {
|
|
1698
1708
|
button: t,
|
|
1699
1709
|
variant: "solid",
|
|
1700
1710
|
color: "secondary",
|
|
1701
1711
|
className: "aivex:min-w-[84px]"
|
|
1702
|
-
}), n && /* @__PURE__ */ H(
|
|
1712
|
+
}), n && /* @__PURE__ */ H(Ds, {
|
|
1703
1713
|
button: n,
|
|
1704
1714
|
variant: "solid",
|
|
1705
1715
|
color: "primary",
|
|
@@ -1708,9 +1718,9 @@ function ws({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1708
1718
|
})]
|
|
1709
1719
|
});
|
|
1710
1720
|
}
|
|
1711
|
-
function
|
|
1721
|
+
function Ds({ button: e, variant: t, color: n, className: r }) {
|
|
1712
1722
|
let { children: i, ...a } = e;
|
|
1713
|
-
return /* @__PURE__ */ H(
|
|
1723
|
+
return /* @__PURE__ */ H(z, {
|
|
1714
1724
|
variant: t,
|
|
1715
1725
|
color: n,
|
|
1716
1726
|
size: "lg",
|
|
@@ -1719,15 +1729,15 @@ function Ts({ button: e, variant: t, color: n, className: r }) {
|
|
|
1719
1729
|
children: i
|
|
1720
1730
|
});
|
|
1721
1731
|
}
|
|
1722
|
-
function
|
|
1723
|
-
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);
|
|
1724
1734
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1725
1735
|
open: t,
|
|
1726
1736
|
defaultOpen: n,
|
|
1727
1737
|
onOpenChange: r,
|
|
1728
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, {
|
|
1729
1739
|
ref: f,
|
|
1730
|
-
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]),
|
|
1731
1741
|
onInteractOutside: (e) => {
|
|
1732
1742
|
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1733
1743
|
},
|
|
@@ -1735,23 +1745,23 @@ function Es({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "
|
|
|
1735
1745
|
onKeyDown: u,
|
|
1736
1746
|
onKeyUp: d,
|
|
1737
1747
|
...p,
|
|
1738
|
-
children: /* @__PURE__ */ H(
|
|
1748
|
+
children: /* @__PURE__ */ H(ys.Provider, {
|
|
1739
1749
|
value: !0,
|
|
1740
1750
|
children: i
|
|
1741
1751
|
})
|
|
1742
1752
|
})] })
|
|
1743
1753
|
});
|
|
1744
1754
|
}
|
|
1745
|
-
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 }) {
|
|
1746
1756
|
let f = Zi(), p = !!(a || o || s);
|
|
1747
1757
|
return /* @__PURE__ */ U("div", {
|
|
1748
1758
|
ref: d,
|
|
1749
1759
|
role: "dialog",
|
|
1750
1760
|
"aria-modal": "true",
|
|
1751
1761
|
"aria-labelledby": f,
|
|
1752
|
-
className: e(
|
|
1762
|
+
className: e(xs, bs[c]),
|
|
1753
1763
|
children: [
|
|
1754
|
-
/* @__PURE__ */ H(
|
|
1764
|
+
/* @__PURE__ */ H(Cs, {
|
|
1755
1765
|
title: t,
|
|
1756
1766
|
titleId: f,
|
|
1757
1767
|
description: n,
|
|
@@ -1759,8 +1769,8 @@ function Ds({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1759
1769
|
onClose: l,
|
|
1760
1770
|
closeAriaLabel: u
|
|
1761
1771
|
}),
|
|
1762
|
-
i && /* @__PURE__ */ H(
|
|
1763
|
-
p && /* @__PURE__ */ H(
|
|
1772
|
+
i && /* @__PURE__ */ H(Ts, { children: i }),
|
|
1773
|
+
p && /* @__PURE__ */ H(Es, {
|
|
1764
1774
|
tertiaryButton: a,
|
|
1765
1775
|
secondaryButton: o,
|
|
1766
1776
|
primaryButton: s
|
|
@@ -1768,9 +1778,9 @@ function Ds({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1768
1778
|
]
|
|
1769
1779
|
});
|
|
1770
1780
|
}
|
|
1771
|
-
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 }) {
|
|
1772
1782
|
let m = !!(s || c || l);
|
|
1773
|
-
return /* @__PURE__ */ U(
|
|
1783
|
+
return /* @__PURE__ */ U(Os, {
|
|
1774
1784
|
open: e,
|
|
1775
1785
|
defaultOpen: t,
|
|
1776
1786
|
onOpenChange: n,
|
|
@@ -1779,14 +1789,14 @@ function Os({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1779
1789
|
onOpenAutoFocus: f,
|
|
1780
1790
|
...i ? {} : { "aria-describedby": void 0 },
|
|
1781
1791
|
children: [
|
|
1782
|
-
/* @__PURE__ */ H(
|
|
1792
|
+
/* @__PURE__ */ H(Cs, {
|
|
1783
1793
|
title: r,
|
|
1784
1794
|
description: i,
|
|
1785
1795
|
headingButton: a,
|
|
1786
1796
|
closeAriaLabel: p
|
|
1787
1797
|
}),
|
|
1788
|
-
o && /* @__PURE__ */ H(
|
|
1789
|
-
m && /* @__PURE__ */ H(
|
|
1798
|
+
o && /* @__PURE__ */ H(Ts, { children: o }),
|
|
1799
|
+
m && /* @__PURE__ */ H(Es, {
|
|
1790
1800
|
tertiaryButton: s,
|
|
1791
1801
|
secondaryButton: c,
|
|
1792
1802
|
primaryButton: l
|
|
@@ -1796,8 +1806,8 @@ function Os({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1796
1806
|
}
|
|
1797
1807
|
//#endregion
|
|
1798
1808
|
//#region src/components/Modal/ModalBase.tsx
|
|
1799
|
-
function
|
|
1800
|
-
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);
|
|
1801
1811
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1802
1812
|
open: t,
|
|
1803
1813
|
defaultOpen: n,
|
|
@@ -1813,10 +1823,10 @@ function ks({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0
|
|
|
1813
1823
|
})] })
|
|
1814
1824
|
});
|
|
1815
1825
|
}
|
|
1816
|
-
var
|
|
1826
|
+
var Ms = Object.assign(js, {
|
|
1817
1827
|
Title: Z.Title,
|
|
1818
1828
|
Close: Z.Close
|
|
1819
|
-
}),
|
|
1829
|
+
}), Ns = V("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
1820
1830
|
variants: {
|
|
1821
1831
|
size: {
|
|
1822
1832
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1832,10 +1842,10 @@ var As = Object.assign(ks, {
|
|
|
1832
1842
|
type: "default"
|
|
1833
1843
|
}
|
|
1834
1844
|
});
|
|
1835
|
-
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 }) {
|
|
1836
1846
|
return /* @__PURE__ */ U("div", {
|
|
1837
1847
|
ref: u,
|
|
1838
|
-
className: e(
|
|
1848
|
+
className: e(Ns({
|
|
1839
1849
|
size: n,
|
|
1840
1850
|
type: r
|
|
1841
1851
|
}), s && "aivex:opacity-disable", t),
|
|
@@ -1846,7 +1856,7 @@ function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1846
1856
|
children: i
|
|
1847
1857
|
}) : a ? /* @__PURE__ */ H("span", {
|
|
1848
1858
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1849
|
-
children: /* @__PURE__ */ H(
|
|
1859
|
+
children: /* @__PURE__ */ H(br, { size: 16 })
|
|
1850
1860
|
}) : null,
|
|
1851
1861
|
/* @__PURE__ */ H("span", {
|
|
1852
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]"),
|
|
@@ -1860,14 +1870,14 @@ function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1860
1870
|
},
|
|
1861
1871
|
className: "aivex:shrink-0",
|
|
1862
1872
|
"aria-label": "태그 삭제",
|
|
1863
|
-
children: /* @__PURE__ */ H(
|
|
1873
|
+
children: /* @__PURE__ */ H(B, { size: 12 })
|
|
1864
1874
|
})
|
|
1865
1875
|
]
|
|
1866
1876
|
});
|
|
1867
1877
|
}
|
|
1868
1878
|
//#endregion
|
|
1869
1879
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
1870
|
-
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 }) {
|
|
1871
1881
|
let [l, u] = J(i), d = q(null), [f, p] = J(!1), m = G(() => {
|
|
1872
1882
|
let e = d.current;
|
|
1873
1883
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
@@ -1904,7 +1914,7 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1904
1914
|
r,
|
|
1905
1915
|
e,
|
|
1906
1916
|
m
|
|
1907
|
-
]), /* @__PURE__ */ H(
|
|
1917
|
+
]), /* @__PURE__ */ H(As, {
|
|
1908
1918
|
open: e,
|
|
1909
1919
|
onOpenChange: (e) => {
|
|
1910
1920
|
e || t();
|
|
@@ -1927,8 +1937,8 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1927
1937
|
onScroll: m,
|
|
1928
1938
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
1929
1939
|
style: f ? {
|
|
1930
|
-
maskImage:
|
|
1931
|
-
WebkitMaskImage:
|
|
1940
|
+
maskImage: Fs,
|
|
1941
|
+
WebkitMaskImage: Fs
|
|
1932
1942
|
} : void 0,
|
|
1933
1943
|
children: r.map((e) => /* @__PURE__ */ H("div", {
|
|
1934
1944
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -1957,12 +1967,12 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1957
1967
|
})]
|
|
1958
1968
|
})
|
|
1959
1969
|
}, e.groupValue))
|
|
1960
|
-
}), l.length > 0 && /* @__PURE__ */ H(
|
|
1970
|
+
}), l.length > 0 && /* @__PURE__ */ H(ss, {
|
|
1961
1971
|
autoScrollToEnd: !0,
|
|
1962
1972
|
className: "aivex:shrink-0",
|
|
1963
1973
|
children: /* @__PURE__ */ H("div", {
|
|
1964
1974
|
className: "aivex:flex aivex:gap-md",
|
|
1965
|
-
children: g.map((e) => /* @__PURE__ */ H(
|
|
1975
|
+
children: g.map((e) => /* @__PURE__ */ H(Ps, {
|
|
1966
1976
|
size: "md",
|
|
1967
1977
|
startContent: e.icon,
|
|
1968
1978
|
onRemove: () => b(e.value),
|
|
@@ -1973,7 +1983,7 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1973
1983
|
})]
|
|
1974
1984
|
})
|
|
1975
1985
|
});
|
|
1976
|
-
}),
|
|
1986
|
+
}), Ls = V("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
1977
1987
|
variants: {
|
|
1978
1988
|
state: {
|
|
1979
1989
|
default: "aivex:border-border-default",
|
|
@@ -2030,10 +2040,10 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
2030
2040
|
layout: "inline"
|
|
2031
2041
|
}
|
|
2032
2042
|
});
|
|
2033
|
-
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 }) {
|
|
2034
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");
|
|
2035
2045
|
return /* @__PURE__ */ U("div", {
|
|
2036
|
-
className: e(
|
|
2046
|
+
className: e(Ls({
|
|
2037
2047
|
state: d,
|
|
2038
2048
|
size: a,
|
|
2039
2049
|
layout: o
|
|
@@ -2053,14 +2063,14 @@ function Is({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layo
|
|
|
2053
2063
|
}
|
|
2054
2064
|
//#endregion
|
|
2055
2065
|
//#region src/components/Logo/index.tsx
|
|
2056
|
-
function
|
|
2066
|
+
function zs(e, t) {
|
|
2057
2067
|
if (!Ji(e)) return;
|
|
2058
2068
|
let n = e.props;
|
|
2059
2069
|
typeof n.id == "string" && t.add(n.id);
|
|
2060
2070
|
let r = n.children;
|
|
2061
|
-
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);
|
|
2062
2072
|
}
|
|
2063
|
-
function
|
|
2073
|
+
function Bs(e, t) {
|
|
2064
2074
|
if (!Ji(e)) return e;
|
|
2065
2075
|
let n = { ...e.props };
|
|
2066
2076
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
@@ -2073,20 +2083,20 @@ function Rs(e, t) {
|
|
|
2073
2083
|
}
|
|
2074
2084
|
let r = n.children;
|
|
2075
2085
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2076
|
-
let r =
|
|
2086
|
+
let r = Bs(e, t);
|
|
2077
2087
|
return Ji(r) && r.key == null ? Ki(r, { key: n }) : r;
|
|
2078
2088
|
})), Ki(e, n);
|
|
2079
2089
|
}
|
|
2080
2090
|
function $(e) {
|
|
2081
2091
|
return (t) => {
|
|
2082
2092
|
let n = Zi().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2083
|
-
if (
|
|
2093
|
+
if (zs(r, i), i.size === 0) return r;
|
|
2084
2094
|
let a = /* @__PURE__ */ new Map();
|
|
2085
2095
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2086
|
-
return
|
|
2096
|
+
return Bs(r, a);
|
|
2087
2097
|
};
|
|
2088
2098
|
}
|
|
2089
|
-
var
|
|
2099
|
+
var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2090
2100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2091
2101
|
viewBox: "0 0 251.366 52",
|
|
2092
2102
|
width: "251.366",
|
|
@@ -2127,7 +2137,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2127
2137
|
fill: e
|
|
2128
2138
|
})
|
|
2129
2139
|
]
|
|
2130
|
-
}),
|
|
2140
|
+
}), Hs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2131
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2132
2142
|
viewBox: "0 0 105 24",
|
|
2133
2143
|
width: "105",
|
|
@@ -2287,7 +2297,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2287
2297
|
})
|
|
2288
2298
|
] })
|
|
2289
2299
|
]
|
|
2290
|
-
}),
|
|
2300
|
+
}), Us = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2291
2301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2292
2302
|
viewBox: "0 0 127 24",
|
|
2293
2303
|
width: "127",
|
|
@@ -2497,7 +2507,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2497
2507
|
})
|
|
2498
2508
|
] })
|
|
2499
2509
|
]
|
|
2500
|
-
}),
|
|
2510
|
+
}), Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2501
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2502
2512
|
viewBox: "0 0 127 24",
|
|
2503
2513
|
width: "127",
|
|
@@ -2665,7 +2675,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2665
2675
|
})
|
|
2666
2676
|
] })
|
|
2667
2677
|
]
|
|
2668
|
-
}),
|
|
2678
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2669
2679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2670
2680
|
viewBox: "0 0 133 24",
|
|
2671
2681
|
width: "133",
|
|
@@ -2833,7 +2843,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2833
2843
|
})
|
|
2834
2844
|
] })
|
|
2835
2845
|
]
|
|
2836
|
-
}),
|
|
2846
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2837
2847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2838
2848
|
viewBox: "0 0 24 24",
|
|
2839
2849
|
width: "24",
|
|
@@ -2948,7 +2958,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2948
2958
|
})
|
|
2949
2959
|
] })
|
|
2950
2960
|
]
|
|
2951
|
-
}),
|
|
2961
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2952
2962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2953
2963
|
viewBox: "0 0 108 24",
|
|
2954
2964
|
width: "108",
|
|
@@ -3097,7 +3107,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3097
3107
|
})
|
|
3098
3108
|
] })
|
|
3099
3109
|
]
|
|
3100
|
-
}),
|
|
3110
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3101
3111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3102
3112
|
viewBox: "0 0 100 24",
|
|
3103
3113
|
width: "100",
|
|
@@ -3236,7 +3246,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3236
3246
|
})
|
|
3237
3247
|
] })
|
|
3238
3248
|
]
|
|
3239
|
-
}),
|
|
3249
|
+
}), Ys = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3240
3250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3241
3251
|
viewBox: "0 0 81 24",
|
|
3242
3252
|
width: "81",
|
|
@@ -3340,7 +3350,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3340
3350
|
]
|
|
3341
3351
|
})] })
|
|
3342
3352
|
]
|
|
3343
|
-
}),
|
|
3353
|
+
}), Xs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3344
3354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3345
3355
|
viewBox: "0 0 95 24",
|
|
3346
3356
|
width: "95",
|
|
@@ -3540,7 +3550,7 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3540
3550
|
})
|
|
3541
3551
|
] })
|
|
3542
3552
|
]
|
|
3543
|
-
}),
|
|
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", {
|
|
3544
3554
|
variants: { type: {
|
|
3545
3555
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3546
3556
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3549,34 +3559,34 @@ var zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3549
3559
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3550
3560
|
} },
|
|
3551
3561
|
defaultVariants: { type: "basic" }
|
|
3552
|
-
}),
|
|
3562
|
+
}), cc = {
|
|
3553
3563
|
basic: {
|
|
3554
|
-
Icon:
|
|
3564
|
+
Icon: st,
|
|
3555
3565
|
className: "aivex:text-icon-secondary"
|
|
3556
3566
|
},
|
|
3557
3567
|
info: {
|
|
3558
|
-
Icon:
|
|
3568
|
+
Icon: st,
|
|
3559
3569
|
className: "aivex:text-icon-info"
|
|
3560
3570
|
},
|
|
3561
3571
|
success: {
|
|
3562
|
-
Icon:
|
|
3572
|
+
Icon: mr,
|
|
3563
3573
|
className: "aivex:text-icon-success"
|
|
3564
3574
|
},
|
|
3565
3575
|
warning: {
|
|
3566
|
-
Icon:
|
|
3576
|
+
Icon: mn,
|
|
3567
3577
|
className: "aivex:text-icon-warning"
|
|
3568
3578
|
},
|
|
3569
3579
|
danger: {
|
|
3570
|
-
Icon:
|
|
3580
|
+
Icon: ci,
|
|
3571
3581
|
className: "aivex:text-icon-danger"
|
|
3572
3582
|
}
|
|
3573
3583
|
};
|
|
3574
|
-
function
|
|
3575
|
-
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"];
|
|
3576
3586
|
return /* @__PURE__ */ H("div", {
|
|
3577
3587
|
ref: c,
|
|
3578
3588
|
role: "status",
|
|
3579
|
-
className: e(
|
|
3589
|
+
className: e(sc({ type: n }), t),
|
|
3580
3590
|
...l,
|
|
3581
3591
|
children: /* @__PURE__ */ U("div", {
|
|
3582
3592
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
@@ -3607,7 +3617,7 @@ function sc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3607
3617
|
className: "aivex:shrink-0 aivex:text-icon-secondary",
|
|
3608
3618
|
onClick: s,
|
|
3609
3619
|
"aria-label": "닫기",
|
|
3610
|
-
children: /* @__PURE__ */ H(
|
|
3620
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
3611
3621
|
})
|
|
3612
3622
|
]
|
|
3613
3623
|
})
|
|
@@ -3615,23 +3625,23 @@ function sc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3615
3625
|
}
|
|
3616
3626
|
//#endregion
|
|
3617
3627
|
//#region src/components/Nav/Nav.tsx
|
|
3618
|
-
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", {
|
|
3619
3629
|
variants: { active: {
|
|
3620
3630
|
true: "aivex:bg-bg-brand-subtle",
|
|
3621
3631
|
false: "aivex:bg-transparent"
|
|
3622
3632
|
} },
|
|
3623
3633
|
defaultVariants: { active: !1 }
|
|
3624
3634
|
});
|
|
3625
|
-
function
|
|
3635
|
+
function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3626
3636
|
let s = n ?? !1;
|
|
3627
3637
|
return /* @__PURE__ */ U("button", {
|
|
3628
3638
|
ref: a,
|
|
3629
3639
|
type: "button",
|
|
3630
3640
|
"aria-pressed": s,
|
|
3631
|
-
className: e(
|
|
3641
|
+
className: e(uc({ active: n }), t),
|
|
3632
3642
|
...o,
|
|
3633
3643
|
children: [
|
|
3634
|
-
/* @__PURE__ */ H(
|
|
3644
|
+
/* @__PURE__ */ H(R, {}),
|
|
3635
3645
|
r && /* @__PURE__ */ H("span", {
|
|
3636
3646
|
className: e("aivex:flex aivex:items-center aivex:justify-center aivex:p-1", s ? "aivex:text-text-brand" : "aivex:text-text-secondary"),
|
|
3637
3647
|
children: /* @__PURE__ */ H("span", {
|
|
@@ -3646,22 +3656,22 @@ function lc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3646
3656
|
]
|
|
3647
3657
|
});
|
|
3648
3658
|
}
|
|
3649
|
-
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", {
|
|
3650
3660
|
variants: { active: {
|
|
3651
3661
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3652
3662
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3653
3663
|
} },
|
|
3654
3664
|
defaultVariants: { active: !1 }
|
|
3655
3665
|
});
|
|
3656
|
-
function
|
|
3666
|
+
function pc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3657
3667
|
return /* @__PURE__ */ U("button", {
|
|
3658
3668
|
ref: a,
|
|
3659
3669
|
type: "button",
|
|
3660
3670
|
"aria-current": n ? "page" : void 0,
|
|
3661
|
-
className: e(
|
|
3671
|
+
className: e(fc({ active: n }), t),
|
|
3662
3672
|
...o,
|
|
3663
3673
|
children: [
|
|
3664
|
-
/* @__PURE__ */ H(
|
|
3674
|
+
/* @__PURE__ */ H(R, {}),
|
|
3665
3675
|
r && /* @__PURE__ */ H("span", {
|
|
3666
3676
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5",
|
|
3667
3677
|
children: r
|
|
@@ -3670,7 +3680,7 @@ function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3670
3680
|
]
|
|
3671
3681
|
});
|
|
3672
3682
|
}
|
|
3673
|
-
function
|
|
3683
|
+
function mc({ className: t, children: n, ref: r, ...i }) {
|
|
3674
3684
|
return /* @__PURE__ */ H("nav", {
|
|
3675
3685
|
ref: r,
|
|
3676
3686
|
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
@@ -3680,7 +3690,7 @@ function fc({ className: t, children: n, ref: r, ...i }) {
|
|
|
3680
3690
|
}
|
|
3681
3691
|
//#endregion
|
|
3682
3692
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3683
|
-
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 }) {
|
|
3684
3694
|
let [h, g] = J(!1), _ = r === "sm" ? 16 : 20;
|
|
3685
3695
|
return /* @__PURE__ */ H("button", {
|
|
3686
3696
|
ref: c,
|
|
@@ -3695,7 +3705,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3695
3705
|
},
|
|
3696
3706
|
className: e("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", o && "aivex:cursor-not-allowed", s),
|
|
3697
3707
|
...m,
|
|
3698
|
-
children: /* @__PURE__ */ U(
|
|
3708
|
+
children: /* @__PURE__ */ U(Rs, {
|
|
3699
3709
|
disabled: o,
|
|
3700
3710
|
focused: a || h,
|
|
3701
3711
|
error: i,
|
|
@@ -3704,7 +3714,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3704
3714
|
layout: "inline",
|
|
3705
3715
|
endContent: /* @__PURE__ */ H("span", {
|
|
3706
3716
|
className: e("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", a && "aivex:rotate-180"),
|
|
3707
|
-
children: /* @__PURE__ */ H(
|
|
3717
|
+
children: /* @__PURE__ */ H(wt, { size: _ })
|
|
3708
3718
|
}),
|
|
3709
3719
|
children: [/* @__PURE__ */ H("span", {
|
|
3710
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"),
|
|
@@ -3715,7 +3725,7 @@ function pc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3715
3725
|
}
|
|
3716
3726
|
//#endregion
|
|
3717
3727
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3718
|
-
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 }) {
|
|
3719
3729
|
let [p, m] = J(!1), h = l || f === !0 || f === "true", g = (() => {
|
|
3720
3730
|
for (let e of t) {
|
|
3721
3731
|
let t = e.options.find((e) => e.value === n);
|
|
@@ -3731,7 +3741,7 @@ function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3731
3741
|
children: [/* @__PURE__ */ H(Q.Trigger, {
|
|
3732
3742
|
asChild: !0,
|
|
3733
3743
|
"aria-invalid": h || void 0,
|
|
3734
|
-
children: /* @__PURE__ */ H(
|
|
3744
|
+
children: /* @__PURE__ */ H(hc, {
|
|
3735
3745
|
id: u,
|
|
3736
3746
|
"aria-describedby": d,
|
|
3737
3747
|
value: g,
|
|
@@ -3771,17 +3781,17 @@ function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3771
3781
|
}
|
|
3772
3782
|
//#endregion
|
|
3773
3783
|
//#region src/components/Pagination/Pagination.tsx
|
|
3774
|
-
function
|
|
3784
|
+
function _c({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3775
3785
|
return /* @__PURE__ */ U("button", {
|
|
3776
3786
|
type: "button",
|
|
3777
3787
|
"aria-label": n,
|
|
3778
3788
|
disabled: t,
|
|
3779
3789
|
onClick: e,
|
|
3780
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",
|
|
3781
|
-
children: [/* @__PURE__ */ H(
|
|
3791
|
+
children: [/* @__PURE__ */ H(R, { variant: "default" }), r]
|
|
3782
3792
|
});
|
|
3783
3793
|
}
|
|
3784
|
-
function
|
|
3794
|
+
function vc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3785
3795
|
return /* @__PURE__ */ U("button", {
|
|
3786
3796
|
type: "button",
|
|
3787
3797
|
"aria-label": `Page ${t}`,
|
|
@@ -3789,13 +3799,13 @@ function gc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
|
3789
3799
|
disabled: r,
|
|
3790
3800
|
onClick: i,
|
|
3791
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"),
|
|
3792
|
-
children: [/* @__PURE__ */ H(
|
|
3802
|
+
children: [/* @__PURE__ */ H(R, { variant: n ? "strong" : "default" }), /* @__PURE__ */ H("span", {
|
|
3793
3803
|
className: "aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg",
|
|
3794
3804
|
children: t
|
|
3795
3805
|
})]
|
|
3796
3806
|
});
|
|
3797
3807
|
}
|
|
3798
|
-
function
|
|
3808
|
+
function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3799
3809
|
let d = q(void 0);
|
|
3800
3810
|
n != null && (d.current = n);
|
|
3801
3811
|
let f = n ?? d.current;
|
|
@@ -3815,21 +3825,21 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3815
3825
|
children: [
|
|
3816
3826
|
/* @__PURE__ */ U("div", {
|
|
3817
3827
|
className: "aivex:flex aivex:gap-2",
|
|
3818
|
-
children: [/* @__PURE__ */ H(
|
|
3828
|
+
children: [/* @__PURE__ */ H(_c, {
|
|
3819
3829
|
"aria-label": "First page",
|
|
3820
3830
|
disabled: a || y,
|
|
3821
3831
|
onClick: () => s(1),
|
|
3822
3832
|
children: /* @__PURE__ */ H(x, { size: 16 })
|
|
3823
|
-
}), /* @__PURE__ */ H(
|
|
3833
|
+
}), /* @__PURE__ */ H(_c, {
|
|
3824
3834
|
"aria-label": "Previous page group",
|
|
3825
3835
|
disabled: a || y,
|
|
3826
3836
|
onClick: () => s(g - 10),
|
|
3827
|
-
children: /* @__PURE__ */ H(
|
|
3837
|
+
children: /* @__PURE__ */ H(Pt, { size: 16 })
|
|
3828
3838
|
})]
|
|
3829
3839
|
}),
|
|
3830
3840
|
/* @__PURE__ */ H("div", {
|
|
3831
3841
|
className: "aivex:flex aivex:gap-2",
|
|
3832
|
-
children: v.map((e) => /* @__PURE__ */ H(
|
|
3842
|
+
children: v.map((e) => /* @__PURE__ */ H(vc, {
|
|
3833
3843
|
page: e,
|
|
3834
3844
|
isActive: e === m,
|
|
3835
3845
|
disabled: a,
|
|
@@ -3838,23 +3848,23 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3838
3848
|
}),
|
|
3839
3849
|
/* @__PURE__ */ U("div", {
|
|
3840
3850
|
className: "aivex:flex aivex:gap-2",
|
|
3841
|
-
children: [/* @__PURE__ */ H(
|
|
3851
|
+
children: [/* @__PURE__ */ H(_c, {
|
|
3842
3852
|
"aria-label": "Next page group",
|
|
3843
3853
|
disabled: a || b,
|
|
3844
3854
|
onClick: () => s(_ + 1),
|
|
3845
|
-
children: /* @__PURE__ */ H(
|
|
3846
|
-
}), /* @__PURE__ */ H(
|
|
3855
|
+
children: /* @__PURE__ */ H(le, { size: 16 })
|
|
3856
|
+
}), /* @__PURE__ */ H(_c, {
|
|
3847
3857
|
"aria-label": "Last page",
|
|
3848
3858
|
disabled: a || b,
|
|
3849
3859
|
onClick: () => s(p),
|
|
3850
|
-
children: /* @__PURE__ */ H(
|
|
3860
|
+
children: /* @__PURE__ */ H(kt, { size: 16 })
|
|
3851
3861
|
})]
|
|
3852
3862
|
})
|
|
3853
3863
|
]
|
|
3854
3864
|
}),
|
|
3855
3865
|
/* @__PURE__ */ H("div", {
|
|
3856
3866
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
3857
|
-
children: o && /* @__PURE__ */ H(
|
|
3867
|
+
children: o && /* @__PURE__ */ H(gc, {
|
|
3858
3868
|
size: "sm",
|
|
3859
3869
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
3860
3870
|
value: String(i),
|
|
@@ -3871,14 +3881,14 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3871
3881
|
}
|
|
3872
3882
|
//#endregion
|
|
3873
3883
|
//#region src/components/Panel/Panel.tsx
|
|
3874
|
-
var
|
|
3884
|
+
var bc = {
|
|
3875
3885
|
left: "aivex:left-0 aivex:border-r",
|
|
3876
3886
|
right: "aivex:right-0 aivex:border-l"
|
|
3877
|
-
},
|
|
3887
|
+
}, xc = {
|
|
3878
3888
|
md: "aivex:w-[384px]",
|
|
3879
3889
|
lg: "aivex:w-[450px]"
|
|
3880
3890
|
};
|
|
3881
|
-
function
|
|
3891
|
+
function Sc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a, side: o = "right", size: s = "md", ref: c }) {
|
|
3882
3892
|
return /* @__PURE__ */ H(Z.Root, {
|
|
3883
3893
|
open: t,
|
|
3884
3894
|
onOpenChange: n,
|
|
@@ -3886,7 +3896,7 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3886
3896
|
ref: c,
|
|
3887
3897
|
"data-side": o,
|
|
3888
3898
|
"aria-describedby": void 0,
|
|
3889
|
-
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]),
|
|
3890
3900
|
onKeyDown: (e) => {
|
|
3891
3901
|
e.stopPropagation();
|
|
3892
3902
|
},
|
|
@@ -3903,7 +3913,7 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3903
3913
|
type: "button",
|
|
3904
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"),
|
|
3905
3915
|
"aria-label": "Close panel",
|
|
3906
|
-
children: /* @__PURE__ */ H(
|
|
3916
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
3907
3917
|
})
|
|
3908
3918
|
})]
|
|
3909
3919
|
})]
|
|
@@ -3916,14 +3926,14 @@ function bc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3916
3926
|
}
|
|
3917
3927
|
//#endregion
|
|
3918
3928
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
3919
|
-
var
|
|
3929
|
+
var Cc = {
|
|
3920
3930
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
3921
3931
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
3922
3932
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
3923
3933
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
3924
|
-
},
|
|
3925
|
-
function
|
|
3926
|
-
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 ? {
|
|
3927
3937
|
width: "100%",
|
|
3928
3938
|
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
3929
3939
|
} : {
|
|
@@ -3951,20 +3961,20 @@ function wc({ className: t, current: n, total: r, color: i = "success", width: a
|
|
|
3951
3961
|
}
|
|
3952
3962
|
//#endregion
|
|
3953
3963
|
//#region src/components/Radio/Radio.tsx
|
|
3954
|
-
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", {
|
|
3955
3965
|
variants: { size: {
|
|
3956
3966
|
sm: "aivex:w-4 aivex:h-4",
|
|
3957
3967
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
3958
3968
|
} },
|
|
3959
3969
|
defaultVariants: { size: "md" }
|
|
3960
|
-
}),
|
|
3970
|
+
}), Oc = {
|
|
3961
3971
|
sm: "aivex:w-5 aivex:h-5",
|
|
3962
3972
|
md: "aivex:w-6 aivex:h-6"
|
|
3963
|
-
},
|
|
3973
|
+
}, kc = {
|
|
3964
3974
|
sm: "aivex:h-5",
|
|
3965
3975
|
md: "aivex:h-6"
|
|
3966
3976
|
};
|
|
3967
|
-
function
|
|
3977
|
+
function Ac({ className: t, label: n, size: r = "md", disabled: i, checked: a, id: o, ref: s, ...c }) {
|
|
3968
3978
|
let l = r ?? "md", u = {
|
|
3969
3979
|
sm: "aivex:w-2 aivex:h-2",
|
|
3970
3980
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
@@ -3972,7 +3982,7 @@ function Oc({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
3972
3982
|
return /* @__PURE__ */ U("span", {
|
|
3973
3983
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
3974
3984
|
children: [/* @__PURE__ */ U("span", {
|
|
3975
|
-
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]),
|
|
3976
3986
|
children: [
|
|
3977
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" }),
|
|
3978
3988
|
/* @__PURE__ */ H("input", {
|
|
@@ -3981,21 +3991,21 @@ function Oc({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
3981
3991
|
type: "radio",
|
|
3982
3992
|
disabled: i,
|
|
3983
3993
|
checked: a,
|
|
3984
|
-
className: e(
|
|
3994
|
+
className: e(Dc({ size: l }), t),
|
|
3985
3995
|
...c
|
|
3986
3996
|
}),
|
|
3987
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) })
|
|
3988
3998
|
]
|
|
3989
3999
|
}), n && /* @__PURE__ */ H("label", {
|
|
3990
4000
|
htmlFor: f,
|
|
3991
|
-
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]),
|
|
3992
4002
|
children: n
|
|
3993
4003
|
})]
|
|
3994
4004
|
});
|
|
3995
4005
|
}
|
|
3996
4006
|
//#endregion
|
|
3997
4007
|
//#region src/components/Segmented/Segmented.tsx
|
|
3998
|
-
var
|
|
4008
|
+
var jc = qi({ size: "md" }), Mc = {
|
|
3999
4009
|
sm: "aivex:h-7",
|
|
4000
4010
|
md: "aivex:h-8",
|
|
4001
4011
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4003,9 +4013,9 @@ var kc = qi({ size: "md" }), Ac = {
|
|
|
4003
4013
|
"icon-md": "aivex:h-8",
|
|
4004
4014
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4005
4015
|
};
|
|
4006
|
-
function
|
|
4016
|
+
function Nc({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4007
4017
|
let u = r !== void 0, [d, f] = J(i ?? r ?? ""), p = u ? r : d;
|
|
4008
|
-
return /* @__PURE__ */ H(
|
|
4018
|
+
return /* @__PURE__ */ H(jc.Provider, {
|
|
4009
4019
|
value: {
|
|
4010
4020
|
size: n,
|
|
4011
4021
|
fullWidth: o
|
|
@@ -4017,13 +4027,13 @@ function jc({ className: t, size: n = "md", value: r, defaultValue: i, onValueCh
|
|
|
4017
4027
|
onValueChange: (e) => {
|
|
4018
4028
|
e && (u || f(e), a?.(e));
|
|
4019
4029
|
},
|
|
4020
|
-
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),
|
|
4021
4031
|
...l,
|
|
4022
4032
|
children: s
|
|
4023
4033
|
})
|
|
4024
4034
|
});
|
|
4025
4035
|
}
|
|
4026
|
-
var
|
|
4036
|
+
var Pc = {
|
|
4027
4037
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4028
4038
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4029
4039
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4031,36 +4041,36 @@ var Mc = {
|
|
|
4031
4041
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4032
4042
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4033
4043
|
};
|
|
4034
|
-
function
|
|
4035
|
-
let { size: a, fullWidth: o } = Xi(
|
|
4044
|
+
function Fc({ className: t, children: n, ref: r, ...i }) {
|
|
4045
|
+
let { size: a, fullWidth: o } = Xi(jc);
|
|
4036
4046
|
return /* @__PURE__ */ H(ka.Item, {
|
|
4037
4047
|
ref: r,
|
|
4038
|
-
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),
|
|
4039
4049
|
...i,
|
|
4040
4050
|
children: n
|
|
4041
4051
|
});
|
|
4042
4052
|
}
|
|
4043
4053
|
//#endregion
|
|
4044
4054
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4045
|
-
function
|
|
4055
|
+
function Ic(e) {
|
|
4046
4056
|
return typeof e != "string";
|
|
4047
4057
|
}
|
|
4048
|
-
function
|
|
4058
|
+
function Lc({ className: t, keys: n, ref: r, ...i }) {
|
|
4049
4059
|
return /* @__PURE__ */ H("span", {
|
|
4050
4060
|
ref: r,
|
|
4051
4061
|
className: e("aivex:inline-flex aivex:items-start aivex:gap-xs", t),
|
|
4052
4062
|
...i,
|
|
4053
4063
|
children: n.map((t, n) => /* @__PURE__ */ H("kbd", {
|
|
4054
|
-
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"),
|
|
4055
4065
|
children: t
|
|
4056
4066
|
}, n))
|
|
4057
4067
|
});
|
|
4058
4068
|
}
|
|
4059
4069
|
//#endregion
|
|
4060
4070
|
//#region src/components/Spinner/Spinner.tsx
|
|
4061
|
-
var
|
|
4062
|
-
function
|
|
4063
|
-
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);
|
|
4064
4074
|
return /* @__PURE__ */ H("div", {
|
|
4065
4075
|
ref: o,
|
|
4066
4076
|
...i === null ? { "aria-hidden": !0 } : {
|
|
@@ -4079,30 +4089,30 @@ function Lc({ className: t, size: n = 20, color: r, label: i = "로딩 중", sty
|
|
|
4079
4089
|
}
|
|
4080
4090
|
//#endregion
|
|
4081
4091
|
//#region src/components/Tab/Tab.tsx
|
|
4082
|
-
function
|
|
4092
|
+
function Bc({ className: t, ref: n, ...r }) {
|
|
4083
4093
|
return /* @__PURE__ */ H(Aa.Root, {
|
|
4084
4094
|
ref: n,
|
|
4085
4095
|
className: e("aivex:flex aivex:flex-col", t),
|
|
4086
4096
|
...r
|
|
4087
4097
|
});
|
|
4088
4098
|
}
|
|
4089
|
-
var
|
|
4090
|
-
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 }) {
|
|
4091
4101
|
return /* @__PURE__ */ H(Aa.List, {
|
|
4092
4102
|
ref: n,
|
|
4093
|
-
className: e(
|
|
4103
|
+
className: e(Vc, t),
|
|
4094
4104
|
...r
|
|
4095
4105
|
});
|
|
4096
4106
|
}
|
|
4097
|
-
var
|
|
4098
|
-
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 }) {
|
|
4099
4109
|
return /* @__PURE__ */ H(Aa.Trigger, {
|
|
4100
4110
|
ref: n,
|
|
4101
|
-
className: e(
|
|
4111
|
+
className: e(Uc, t),
|
|
4102
4112
|
...r
|
|
4103
4113
|
});
|
|
4104
4114
|
}
|
|
4105
|
-
function
|
|
4115
|
+
function Gc({ className: t, ref: n, ...r }) {
|
|
4106
4116
|
return /* @__PURE__ */ H(Aa.Content, {
|
|
4107
4117
|
ref: n,
|
|
4108
4118
|
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
@@ -4111,14 +4121,14 @@ function Uc({ className: t, ref: n, ...r }) {
|
|
|
4111
4121
|
}
|
|
4112
4122
|
//#endregion
|
|
4113
4123
|
//#region src/components/Table/Table.tsx
|
|
4114
|
-
var
|
|
4124
|
+
var Kc = {
|
|
4115
4125
|
sm: "aivex:h-10",
|
|
4116
4126
|
md: "aivex:h-12"
|
|
4117
|
-
},
|
|
4127
|
+
}, qc = {
|
|
4118
4128
|
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
4119
4129
|
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
4120
|
-
},
|
|
4121
|
-
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 }) {
|
|
4122
4132
|
return /* @__PURE__ */ H("div", {
|
|
4123
4133
|
ref: a,
|
|
4124
4134
|
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
@@ -4130,7 +4140,7 @@ function qc({ className: t, tableClassName: n, size: r = "md", children: i, ref:
|
|
|
4130
4140
|
})
|
|
4131
4141
|
});
|
|
4132
4142
|
}
|
|
4133
|
-
function
|
|
4143
|
+
function Xc({ className: e, children: t, ref: n, ...r }) {
|
|
4134
4144
|
return /* @__PURE__ */ H("thead", {
|
|
4135
4145
|
ref: n,
|
|
4136
4146
|
className: e,
|
|
@@ -4138,7 +4148,7 @@ function Jc({ className: e, children: t, ref: n, ...r }) {
|
|
|
4138
4148
|
children: t
|
|
4139
4149
|
});
|
|
4140
4150
|
}
|
|
4141
|
-
function
|
|
4151
|
+
function Zc({ className: t, children: n, ref: r, ...i }) {
|
|
4142
4152
|
return /* @__PURE__ */ H("tfoot", {
|
|
4143
4153
|
ref: r,
|
|
4144
4154
|
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
@@ -4146,7 +4156,7 @@ function Yc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4146
4156
|
children: n
|
|
4147
4157
|
});
|
|
4148
4158
|
}
|
|
4149
|
-
function
|
|
4159
|
+
function Qc({ className: t, children: n, ref: r, ...i }) {
|
|
4150
4160
|
return /* @__PURE__ */ H("caption", {
|
|
4151
4161
|
ref: r,
|
|
4152
4162
|
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
@@ -4154,7 +4164,7 @@ function Xc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4154
4164
|
children: n
|
|
4155
4165
|
});
|
|
4156
4166
|
}
|
|
4157
|
-
function
|
|
4167
|
+
function $c({ className: e, children: t, ref: n, ...r }) {
|
|
4158
4168
|
return /* @__PURE__ */ H("tbody", {
|
|
4159
4169
|
ref: n,
|
|
4160
4170
|
className: e,
|
|
@@ -4162,10 +4172,10 @@ function Zc({ className: e, children: t, ref: n, ...r }) {
|
|
|
4162
4172
|
children: t
|
|
4163
4173
|
});
|
|
4164
4174
|
}
|
|
4165
|
-
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 }) {
|
|
4166
4176
|
return /* @__PURE__ */ H(s ? W : "tr", {
|
|
4167
4177
|
ref: c,
|
|
4168
|
-
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),
|
|
4169
4179
|
"aria-disabled": a || p || void 0,
|
|
4170
4180
|
"data-disabled": a ? "" : void 0,
|
|
4171
4181
|
"data-state": i ? "selected" : void 0,
|
|
@@ -4177,10 +4187,10 @@ function Qc({ className: t, children: n, size: r = "md", selected: i, disabled:
|
|
|
4177
4187
|
children: n
|
|
4178
4188
|
});
|
|
4179
4189
|
}
|
|
4180
|
-
function
|
|
4190
|
+
function tl({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
4181
4191
|
return /* @__PURE__ */ H(s ? W : "th", {
|
|
4182
4192
|
ref: c,
|
|
4183
|
-
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),
|
|
4184
4194
|
...l,
|
|
4185
4195
|
children: i ? /* @__PURE__ */ U("button", {
|
|
4186
4196
|
type: "button",
|
|
@@ -4188,21 +4198,21 @@ function $c({ className: t, children: n, size: r = "md", sortable: i, sortDirect
|
|
|
4188
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",
|
|
4189
4199
|
children: [n, /* @__PURE__ */ H("span", {
|
|
4190
4200
|
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
4191
|
-
children: /* @__PURE__ */ H(
|
|
4201
|
+
children: /* @__PURE__ */ H(Jc, { direction: a })
|
|
4192
4202
|
})]
|
|
4193
4203
|
}) : n
|
|
4194
4204
|
});
|
|
4195
4205
|
}
|
|
4196
|
-
function
|
|
4206
|
+
function nl({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
4197
4207
|
return /* @__PURE__ */ H(i ? W : "td", {
|
|
4198
4208
|
ref: a,
|
|
4199
|
-
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),
|
|
4200
4210
|
...o,
|
|
4201
4211
|
children: n
|
|
4202
4212
|
});
|
|
4203
4213
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return /* @__PURE__ */ H(
|
|
4214
|
+
function rl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
4215
|
+
return /* @__PURE__ */ H(el, { children: /* @__PURE__ */ H(nl, {
|
|
4206
4216
|
ref: i,
|
|
4207
4217
|
colSpan: r,
|
|
4208
4218
|
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
@@ -4210,12 +4220,12 @@ function tl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
|
4210
4220
|
children: n
|
|
4211
4221
|
}) });
|
|
4212
4222
|
}
|
|
4213
|
-
function
|
|
4223
|
+
function il({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
4214
4224
|
return /* @__PURE__ */ H("tbody", {
|
|
4215
4225
|
ref: r,
|
|
4216
4226
|
className: e,
|
|
4217
4227
|
...i,
|
|
4218
|
-
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, {
|
|
4219
4229
|
colSpan: t,
|
|
4220
4230
|
children: /* @__PURE__ */ H(_o, { className: "aivex:h-5 aivex:w-full" })
|
|
4221
4231
|
}) }, n))
|
|
@@ -4223,21 +4233,21 @@ function nl({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
|
4223
4233
|
}
|
|
4224
4234
|
//#endregion
|
|
4225
4235
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4226
|
-
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 }) {
|
|
4227
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) => {
|
|
4228
4238
|
let t = e.trim();
|
|
4229
4239
|
if (!t) return;
|
|
4230
4240
|
let n = [...T, t];
|
|
4231
4241
|
S || w(n), c?.(n), D("");
|
|
4232
|
-
},
|
|
4242
|
+
}, P = (e) => {
|
|
4233
4243
|
let t = T.filter((t, n) => n !== e);
|
|
4234
4244
|
S || w(t), c?.(t);
|
|
4235
|
-
},
|
|
4245
|
+
}, F = (e) => {
|
|
4236
4246
|
if (y?.(e), !e.defaultPrevented && !a) if (e.key === "Enter") {
|
|
4237
4247
|
if (O.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
4238
4248
|
e.preventDefault(), E && te(E);
|
|
4239
|
-
} else e.key === "Backspace" && !E && T.length > 0 &&
|
|
4240
|
-
},
|
|
4249
|
+
} else e.key === "Backspace" && !E && T.length > 0 && P(T.length - 1);
|
|
4250
|
+
}, I = (e) => {
|
|
4241
4251
|
if (b?.(e), e.defaultPrevented || a || !l) return;
|
|
4242
4252
|
e.preventDefault();
|
|
4243
4253
|
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
@@ -4246,21 +4256,21 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4246
4256
|
S || w(e), c?.(e);
|
|
4247
4257
|
}
|
|
4248
4258
|
D("");
|
|
4249
|
-
},
|
|
4250
|
-
let r = () =>
|
|
4259
|
+
}, ne = T.map((e, t) => {
|
|
4260
|
+
let r = () => P(t), a = u ? u(e) ? "default" : "error" : N ? "error" : "default";
|
|
4251
4261
|
return d ? /* @__PURE__ */ H(Gi, { children: d(e, t, {
|
|
4252
4262
|
remove: r,
|
|
4253
4263
|
size: n,
|
|
4254
4264
|
disabled: i,
|
|
4255
4265
|
type: a
|
|
4256
|
-
}) }, `${e}-${t}`) : /* @__PURE__ */ H(
|
|
4266
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ H(Ps, {
|
|
4257
4267
|
size: n === "md" ? "md" : "sm",
|
|
4258
4268
|
type: a,
|
|
4259
4269
|
disabled: i,
|
|
4260
4270
|
onRemove: r,
|
|
4261
4271
|
children: e
|
|
4262
4272
|
}, `${e}-${t}`);
|
|
4263
|
-
}),
|
|
4273
|
+
}), re = /* @__PURE__ */ H("input", {
|
|
4264
4274
|
ref: m,
|
|
4265
4275
|
id: p,
|
|
4266
4276
|
value: E,
|
|
@@ -4270,8 +4280,8 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4270
4280
|
onChange: (e) => {
|
|
4271
4281
|
a || D(e.target.value);
|
|
4272
4282
|
},
|
|
4273
|
-
onKeyDown:
|
|
4274
|
-
onPaste:
|
|
4283
|
+
onKeyDown: F,
|
|
4284
|
+
onPaste: I,
|
|
4275
4285
|
onCompositionStart: (e) => {
|
|
4276
4286
|
O.current = !0, _?.(e);
|
|
4277
4287
|
},
|
|
@@ -4287,19 +4297,19 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4287
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"),
|
|
4288
4298
|
...x
|
|
4289
4299
|
});
|
|
4290
|
-
return /* @__PURE__ */ U(
|
|
4300
|
+
return /* @__PURE__ */ U(Rs, {
|
|
4291
4301
|
error: N,
|
|
4292
4302
|
disabled: i,
|
|
4293
4303
|
focused: j,
|
|
4294
4304
|
size: n,
|
|
4295
4305
|
layout: "wrap",
|
|
4296
4306
|
className: e(t, a && "aivex:cursor-default"),
|
|
4297
|
-
children: [
|
|
4307
|
+
children: [ne, re]
|
|
4298
4308
|
});
|
|
4299
4309
|
}
|
|
4300
4310
|
//#endregion
|
|
4301
4311
|
//#region src/components/Textarea/Textarea.tsx
|
|
4302
|
-
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, ..._ }) {
|
|
4303
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) => {
|
|
4304
4314
|
C(e.target.value.length), g?.(e);
|
|
4305
4315
|
}, O = {};
|
|
@@ -4321,7 +4331,7 @@ function il({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4321
4331
|
},
|
|
4322
4332
|
..._
|
|
4323
4333
|
});
|
|
4324
|
-
return /* @__PURE__ */ H(
|
|
4334
|
+
return /* @__PURE__ */ H(Rs, {
|
|
4325
4335
|
error: E,
|
|
4326
4336
|
disabled: r,
|
|
4327
4337
|
focused: v,
|
|
@@ -4346,7 +4356,7 @@ function il({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4346
4356
|
}
|
|
4347
4357
|
//#endregion
|
|
4348
4358
|
//#region src/components/Textbox/Textbox.tsx
|
|
4349
|
-
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 }) {
|
|
4350
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) => {
|
|
4351
4361
|
S || x(e.target.value), p?.(e);
|
|
4352
4362
|
}, E = ja(u, y), D = /* @__PURE__ */ U(Wi, { children: [s, w && /* @__PURE__ */ H(o, {
|
|
@@ -4358,9 +4368,9 @@ function al({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4358
4368
|
tabIndex: -1,
|
|
4359
4369
|
className: "aivex:shrink-0",
|
|
4360
4370
|
"aria-label": "입력값 삭제",
|
|
4361
|
-
children: /* @__PURE__ */ H(
|
|
4371
|
+
children: /* @__PURE__ */ H(B, { size: c === "sm" ? 14 : 16 })
|
|
4362
4372
|
})] }), O = s || w, k = g["aria-invalid"];
|
|
4363
|
-
return /* @__PURE__ */ H(
|
|
4373
|
+
return /* @__PURE__ */ H(Rs, {
|
|
4364
4374
|
error: n || k === !0 || k === "true",
|
|
4365
4375
|
disabled: r,
|
|
4366
4376
|
focused: _,
|
|
@@ -4389,7 +4399,7 @@ function al({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4389
4399
|
}
|
|
4390
4400
|
//#endregion
|
|
4391
4401
|
//#region src/components/Toast/Toast.tsx
|
|
4392
|
-
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", {
|
|
4393
4403
|
variants: { type: {
|
|
4394
4404
|
default: "",
|
|
4395
4405
|
success: "",
|
|
@@ -4397,21 +4407,21 @@ var ol = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4397
4407
|
} },
|
|
4398
4408
|
defaultVariants: { type: "default" }
|
|
4399
4409
|
});
|
|
4400
|
-
function
|
|
4410
|
+
function ll({ className: t, type: n = "default", open: r = !0, message: i, action: a, onClose: s, closeAriaLabel: c = "닫기", ref: l, ...u }) {
|
|
4401
4411
|
if (!r) return null;
|
|
4402
4412
|
let { children: d, ...f } = a ?? {};
|
|
4403
4413
|
return /* @__PURE__ */ U("div", {
|
|
4404
4414
|
ref: l,
|
|
4405
4415
|
role: "status",
|
|
4406
4416
|
"aria-live": "polite",
|
|
4407
|
-
className: e(
|
|
4417
|
+
className: e(cl({ type: n }), t),
|
|
4408
4418
|
...u,
|
|
4409
4419
|
children: [
|
|
4410
4420
|
/* @__PURE__ */ H("p", {
|
|
4411
4421
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4412
4422
|
children: i
|
|
4413
4423
|
}),
|
|
4414
|
-
a && /* @__PURE__ */ H(
|
|
4424
|
+
a && /* @__PURE__ */ H(z, {
|
|
4415
4425
|
variant: "ghost",
|
|
4416
4426
|
color: "primary",
|
|
4417
4427
|
size: "md",
|
|
@@ -4425,12 +4435,12 @@ function sl({ className: t, type: n = "default", open: r = !0, message: i, actio
|
|
|
4425
4435
|
size: "sm",
|
|
4426
4436
|
className: "aivex:shrink-0",
|
|
4427
4437
|
onClick: s,
|
|
4428
|
-
children: /* @__PURE__ */ H(
|
|
4438
|
+
children: /* @__PURE__ */ H(B, { size: 20 })
|
|
4429
4439
|
})
|
|
4430
4440
|
]
|
|
4431
4441
|
});
|
|
4432
4442
|
}
|
|
4433
|
-
function
|
|
4443
|
+
function ul({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r = 3, gap: i = 8, style: a, toastOptions: o, ...s }) {
|
|
4434
4444
|
let c = t.endsWith("center");
|
|
4435
4445
|
return /* @__PURE__ */ H(Ma, {
|
|
4436
4446
|
position: t,
|
|
@@ -4444,7 +4454,7 @@ function cl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4444
4454
|
toastOptions: {
|
|
4445
4455
|
...o,
|
|
4446
4456
|
unstyled: !0,
|
|
4447
|
-
className: e(
|
|
4457
|
+
className: e(cl({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4448
4458
|
classNames: {
|
|
4449
4459
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4450
4460
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -4459,7 +4469,7 @@ function cl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4459
4469
|
}
|
|
4460
4470
|
//#endregion
|
|
4461
4471
|
//#region src/components/Typography/Typography.tsx
|
|
4462
|
-
var
|
|
4472
|
+
var dl = V("", {
|
|
4463
4473
|
variants: { variant: {
|
|
4464
4474
|
"display-lg": "aivex:text-display-lg",
|
|
4465
4475
|
"display-md": "aivex:text-display-md",
|
|
@@ -4481,7 +4491,7 @@ var ll = V("", {
|
|
|
4481
4491
|
"caption-md": "aivex:text-caption-md"
|
|
4482
4492
|
} },
|
|
4483
4493
|
defaultVariants: { variant: "body-md-regular" }
|
|
4484
|
-
}),
|
|
4494
|
+
}), fl = {
|
|
4485
4495
|
"display-lg": "h1",
|
|
4486
4496
|
"display-md": "h1",
|
|
4487
4497
|
"heading-xl": "h1",
|
|
@@ -4501,17 +4511,17 @@ var ll = V("", {
|
|
|
4501
4511
|
"label-sm": "span",
|
|
4502
4512
|
"caption-md": "span"
|
|
4503
4513
|
};
|
|
4504
|
-
function
|
|
4505
|
-
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], {
|
|
4506
4516
|
ref: a,
|
|
4507
|
-
className: e(
|
|
4517
|
+
className: e(dl({ variant: n }), r),
|
|
4508
4518
|
...o,
|
|
4509
4519
|
children: i
|
|
4510
4520
|
});
|
|
4511
4521
|
}
|
|
4512
4522
|
//#endregion
|
|
4513
4523
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4514
|
-
function
|
|
4524
|
+
function ml({ className: t, formats: n = [
|
|
4515
4525
|
"jpg",
|
|
4516
4526
|
"bmp",
|
|
4517
4527
|
"png",
|
|
@@ -4539,7 +4549,7 @@ function fl({ className: t, formats: n = [
|
|
|
4539
4549
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-6",
|
|
4540
4550
|
children: [/* @__PURE__ */ U("div", {
|
|
4541
4551
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3",
|
|
4542
|
-
children: [/* @__PURE__ */ H(
|
|
4552
|
+
children: [/* @__PURE__ */ H(ht, {
|
|
4543
4553
|
size: 28,
|
|
4544
4554
|
color: "var(--aivex-icon-tertiary)"
|
|
4545
4555
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -4562,20 +4572,20 @@ function fl({ className: t, formats: n = [
|
|
|
4562
4572
|
})]
|
|
4563
4573
|
}), /* @__PURE__ */ U("div", {
|
|
4564
4574
|
className: "aivex:flex aivex:gap-2",
|
|
4565
|
-
children: [/* @__PURE__ */ H(
|
|
4575
|
+
children: [/* @__PURE__ */ H(z, {
|
|
4566
4576
|
type: "button",
|
|
4567
4577
|
variant: "outline",
|
|
4568
4578
|
color: "secondary",
|
|
4569
4579
|
size: "md",
|
|
4570
|
-
startContent: /* @__PURE__ */ H(
|
|
4580
|
+
startContent: /* @__PURE__ */ H(Ar, { size: 16 }),
|
|
4571
4581
|
onClick: () => _.current?.click(),
|
|
4572
4582
|
children: c
|
|
4573
|
-
}), u && /* @__PURE__ */ H(
|
|
4583
|
+
}), u && /* @__PURE__ */ H(z, {
|
|
4574
4584
|
type: "button",
|
|
4575
4585
|
variant: "outline",
|
|
4576
4586
|
color: "secondary",
|
|
4577
4587
|
size: "md",
|
|
4578
|
-
startContent: /* @__PURE__ */ H(
|
|
4588
|
+
startContent: /* @__PURE__ */ H(Sn, { size: 16 }),
|
|
4579
4589
|
onClick: () => v.current?.click(),
|
|
4580
4590
|
children: l
|
|
4581
4591
|
})]
|
|
@@ -4601,6 +4611,6 @@ function fl({ className: t, formats: n = [
|
|
|
4601
4611
|
});
|
|
4602
4612
|
}
|
|
4603
4613
|
//#endregion
|
|
4604
|
-
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 };
|
|
4605
4615
|
|
|
4606
4616
|
//# sourceMappingURL=index.js.map
|