@aivex/ui 1.2.0-dev.45 → 1.2.0-dev.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-CH_7RCR4.js → Button-CNdJSINB.js} +267 -239
- package/dist/Button-CNdJSINB.js.map +1 -0
- package/dist/Button-DI8Fzb0u.cjs +2 -0
- package/dist/Button-DI8Fzb0u.cjs.map +1 -0
- package/dist/{IconButton-7v0vHj6O.js → IconButton-CQyt0J6s.js} +2 -2
- package/dist/{IconButton-7v0vHj6O.js.map → IconButton-CQyt0J6s.js.map} +1 -1
- package/dist/{IconButton-DwhPDE1m.cjs → IconButton-bfbqZDue.cjs} +2 -2
- package/dist/{IconButton-DwhPDE1m.cjs.map → IconButton-bfbqZDue.cjs.map} +1 -1
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +2 -2
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +475 -465
- package/dist/index.js.map +1 -1
- package/dist/{keyboard-CnteNNEc.js → keyboard-B4NpK7Sx.js} +2 -2
- package/dist/{keyboard-CnteNNEc.js.map → keyboard-B4NpK7Sx.js.map} +1 -1
- package/dist/{keyboard-GVlhOfI6.cjs → keyboard-D3yExFth.cjs} +2 -2
- package/dist/{keyboard-GVlhOfI6.cjs.map → keyboard-D3yExFth.cjs.map} +1 -1
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.js +51 -51
- package/dist/styles.css +2 -2
- package/dist/utils.cjs +1 -1
- package/package.json +1 -1
- package/dist/Button-CH_7RCR4.js.map +0 -1
- package/dist/Button-D6MqxX_7.cjs +0 -2
- package/dist/Button-D6MqxX_7.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
import { cn as e } from "./utils.js";
|
|
4
|
-
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-
|
|
5
|
-
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as M, Ei as ee, En as N, Er as te, Et as ne, F as P, Fi as F, Fn as re, Fr as ie, Ft as ae, G as oe, Gi as se, Gn as ce, Gr as le, Gt as ue, H as de, Hi as fe, Hn as pe, Hr as me, Ht as he, I, Ii as ge, In as _e, Ir as ve, It as ye, J as be, Ji as xe, Jn as Se, Jr as Ce, Jt as we, K as Te, Ki as Ee, Kn as De, Kr as Oe, Kt as ke, L as Ae, Li as je, Ln as Me, Lr as Ne, Lt as Pe, M as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oi as Ke, On as qe, Or as Je, Ot as Ye, P as Xe, Pi as Ze, Pn as Qe, Pr as $e, Pt as et, Q as tt, Qi as nt, Qn as rt, Qr as it, Qt as at, R as ot, Ri as st, Rn as ct, Rr as lt, Rt as ut, S as dt, Si as ft, Sn as pt, Sr as mt, St as ht, T as gt, Ti as _t, Tn as vt, Tr as yt, Tt as bt, U as xt, Ui as St, Un as Ct, Ur as wt, Ut as Tt, V as Et, Vi as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wi as Mt, Wn as Nt, Wr as Pt, Wt as Ft, X as It, Xi as Lt, Xn as Rt, Xr as zt, Xt as Bt, Y as Vt, Yi as Ht, Yn as Ut, Yr as Wt, Yt as Gt, Z as Kt, Zi as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt,
|
|
6
|
-
import { a as
|
|
4
|
+
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-CQyt0J6s.js";
|
|
5
|
+
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as M, Ei as ee, En as N, Er as te, Et as ne, F as P, Fi as F, Fn as re, Fr as ie, Ft as ae, G as oe, Gi as se, Gn as ce, Gr as le, Gt as ue, H as de, Hi as fe, Hn as pe, Hr as me, Ht as he, I, Ii as ge, In as _e, Ir as ve, It as ye, J as be, Ji as xe, Jn as Se, Jr as Ce, Jt as we, K as Te, Ki as Ee, Kn as De, Kr as Oe, Kt as ke, L as Ae, Li as je, Ln as Me, Lr as Ne, Lt as Pe, M as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oi as Ke, On as qe, Or as Je, Ot as Ye, P as Xe, Pi as Ze, Pn as Qe, Pr as $e, Pt as et, Q as tt, Qi as nt, Qn as rt, Qr as it, Qt as at, R as ot, Ri as st, Rn as ct, Rr as lt, Rt as ut, S as dt, Si as ft, Sn as pt, Sr as mt, St as ht, T as gt, Ti as _t, Tn as vt, Tr as yt, Tt as bt, U as xt, Ui as St, Un as Ct, Ur as wt, Ut as Tt, V as Et, Vi as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wi as Mt, Wn as Nt, Wr as Pt, Wt as Ft, X as It, Xi as Lt, Xn as Rt, Xr as zt, Xt as Bt, Y as Vt, Yi as Ht, Yn as Ut, Yr as Wt, Yt as Gt, Z as Kt, Zi as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _a as Qt, _i as $t, _n as en, _r as tn, _t as nn, a as rn, aa as an, ai as on, an as sn, ar as cn, at as ln, b as un, bi as dn, bn as fn, br as pn, bt as mn, c as hn, ca as gn, ci as _n, cn as vn, cr as yn, ct as bn, d as xn, da as Sn, di as Cn, dn as wn, dr as Tn, dt as En, ea as Dn, ei as On, en as kn, er as An, et as jn, f as Mn, fa as Nn, fi as Pn, fn as Fn, fr as In, ft as Ln, g as Rn, ga as zn, gi as Bn, gn as Vn, gr as Hn, gt as Un, h as Wn, ha as Gn, hi as Kn, hn as qn, hr as Jn, ht as Yn, i as Xn, ia as Zn, ii as Qn, in as $n, ir as er, it as tr, j as nr, ji as rr, jn as ir, jr as ar, jt as or, k as sr, ki as cr, kn as lr, kr as ur, kt as dr, l as fr, la as pr, li as mr, ln as hr, lr as gr, lt as _r, m as vr, ma as yr, mi as br, mn as xr, mr as Sr, mt as Cr, n as wr, na as Tr, ni as Er, nn as Dr, nr as Or, nt as kr, o as Ar, oa as jr, oi as Mr, on as Nr, or as Pr, ot as Fr, p as Ir, pa as Lr, pi as Rr, pn as zr, pr as Br, pt as Vr, q as Hr, qi as Ur, qn as Wr, qr as Gr, qt as Kr, r as qr, ra as Jr, ri as Yr, rn as Xr, rr as Zr, rt as Qr, s as $r, sa as ei, si as ti, sn as ni, sr as ri, st as ii, t as L, ta as ai, ti as oi, tn as si, tr as ci, tt as li, u as ui, ua as di, ui as fi, un as pi, ur as mi, ut as hi, v as gi, va as R, vi as _i, vn as vi, vr as yi, vt as bi, w as xi, wi as Si, wn as Ci, wr as wi, wt as Ti, x as Ei, xi as Di, xn as Oi, xr as ki, xt as z, y as Ai, yi as ji, yn as Mi, yr as Ni, yt as Pi, z as Fi, zi as Ii, zn as Li, zr as Ri, zt as zi } from "./Button-CNdJSINB.js";
|
|
6
|
+
import { a as Bi, c as Vi, i as Hi, n as Ui, o as Wi, r as Gi, s as B } from "./keyboard-B4NpK7Sx.js";
|
|
7
7
|
import { cva as V } from "class-variance-authority";
|
|
8
|
-
import { Fragment as
|
|
8
|
+
import { Fragment as Ki, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
9
9
|
import { Slot as W } from "@radix-ui/react-slot";
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import * as
|
|
12
|
-
import { flexRender as
|
|
13
|
-
import { DndContext as
|
|
14
|
-
import { restrictToFirstScrollableAncestor as
|
|
15
|
-
import { SortableContext as
|
|
16
|
-
import { CSS as
|
|
17
|
-
import { createPortal as
|
|
18
|
-
import * as
|
|
19
|
-
import { useVirtualizer as
|
|
10
|
+
import { Fragment as qi, cloneElement as Ji, createContext as Yi, isValidElement as Xi, memo as Zi, useCallback as G, useContext as Qi, useEffect as K, useId as q, useMemo as $i, useRef as J, useState as Y } from "react";
|
|
11
|
+
import * as ea from "@radix-ui/react-popover";
|
|
12
|
+
import { flexRender as ta, getCoreRowModel as na, getCoreRowModel as ra, getExpandedRowModel as ia, getFacetedMinMaxValues as aa, getFacetedRowModel as oa, getFacetedUniqueValues as sa, getFilteredRowModel as ca, getGroupedRowModel as la, getPaginationRowModel as ua, getSortedRowModel as da, useReactTable as fa } from "@tanstack/react-table";
|
|
13
|
+
import { DndContext as pa, DragOverlay as ma, KeyboardSensor as ha, PointerSensor as ga, closestCenter as _a, useSensor as va, useSensors as ya } from "@dnd-kit/core";
|
|
14
|
+
import { restrictToFirstScrollableAncestor as ba, restrictToVerticalAxis as xa } from "@dnd-kit/modifiers";
|
|
15
|
+
import { SortableContext as Sa, arrayMove as Ca, sortableKeyboardCoordinates as wa, useSortable as Ta, verticalListSortingStrategy as Ea } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as Da } from "@dnd-kit/utilities";
|
|
17
|
+
import { createPortal as Oa } from "react-dom";
|
|
18
|
+
import * as ka from "@radix-ui/react-scroll-area";
|
|
19
|
+
import { useVirtualizer as Aa } from "@tanstack/react-virtual";
|
|
20
20
|
import * as X from "@radix-ui/react-alert-dialog";
|
|
21
21
|
import * as Z from "@radix-ui/react-dialog";
|
|
22
22
|
import * as Q from "@radix-ui/react-select";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import { useComposedRefs as
|
|
26
|
-
import { Toaster as
|
|
23
|
+
import * as ja from "@radix-ui/react-toggle-group";
|
|
24
|
+
import * as Ma from "@radix-ui/react-tabs";
|
|
25
|
+
import { useComposedRefs as Na } from "@radix-ui/react-compose-refs";
|
|
26
|
+
import { Toaster as Pa, toast as Fa } from "sonner";
|
|
27
27
|
//#region src/components/Badge/Badge.tsx
|
|
28
|
-
var
|
|
28
|
+
var Ia = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-[2px]", {
|
|
29
29
|
variants: {
|
|
30
30
|
shape: {
|
|
31
31
|
rect: "aivex:rounded-xs",
|
|
@@ -194,11 +194,11 @@ var Pa = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-
|
|
|
194
194
|
size: "sm",
|
|
195
195
|
color: "gray"
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
198
|
-
function
|
|
197
|
+
}), La = "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center";
|
|
198
|
+
function Ra({ className: t, variant: n = "filled", rounded: r = !1, size: i, color: a, startContent: o, endContent: s, children: c, ref: l, ...u }) {
|
|
199
199
|
return /* @__PURE__ */ U("span", {
|
|
200
200
|
ref: l,
|
|
201
|
-
className: e(
|
|
201
|
+
className: e(Ia({
|
|
202
202
|
shape: r ? "pill" : "rect",
|
|
203
203
|
treatment: n,
|
|
204
204
|
size: i,
|
|
@@ -207,7 +207,7 @@ function Ia({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
207
207
|
...u,
|
|
208
208
|
children: [
|
|
209
209
|
o && /* @__PURE__ */ H("span", {
|
|
210
|
-
className:
|
|
210
|
+
className: La,
|
|
211
211
|
children: o
|
|
212
212
|
}),
|
|
213
213
|
i === "md" ? /* @__PURE__ */ H("span", {
|
|
@@ -215,13 +215,13 @@ function Ia({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
215
215
|
children: c
|
|
216
216
|
}) : c,
|
|
217
217
|
s && /* @__PURE__ */ H("span", {
|
|
218
|
-
className:
|
|
218
|
+
className: La,
|
|
219
219
|
children: s
|
|
220
220
|
})
|
|
221
221
|
]
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var za = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
225
225
|
variants: {
|
|
226
226
|
type: {
|
|
227
227
|
essential: "aivex:bg-icon-brand",
|
|
@@ -238,10 +238,10 @@ var La = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
|
238
238
|
size: "md"
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
function
|
|
241
|
+
function Ba({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
242
242
|
return /* @__PURE__ */ H("span", {
|
|
243
243
|
ref: i,
|
|
244
|
-
className: e(
|
|
244
|
+
className: e(za({
|
|
245
245
|
type: n,
|
|
246
246
|
size: r
|
|
247
247
|
}), t),
|
|
@@ -250,7 +250,7 @@ function Ra({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/components/BreadCrumb/BreadCrumb.tsx
|
|
253
|
-
function
|
|
253
|
+
function Va({ item: e, isCurrent: t }) {
|
|
254
254
|
if (t) return /* @__PURE__ */ H("span", {
|
|
255
255
|
"aria-current": "page",
|
|
256
256
|
className: "aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-medium aivex:text-text-primary aivex:select-none",
|
|
@@ -262,37 +262,37 @@ 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
|
-
function
|
|
268
|
+
function Ha() {
|
|
269
269
|
return /* @__PURE__ */ H("span", {
|
|
270
270
|
"aria-hidden": "true",
|
|
271
271
|
className: "aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0",
|
|
272
272
|
children: "/"
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ U(
|
|
275
|
+
function Ua({ items: e }) {
|
|
276
|
+
return /* @__PURE__ */ U(Vi, { children: [/* @__PURE__ */ H(Vi.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(Vi.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(Vi.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
|
})]
|
|
@@ -301,7 +301,7 @@ function Va({ items: e }) {
|
|
|
301
301
|
})
|
|
302
302
|
})] });
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Wa({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
305
305
|
let o = r !== void 0 && n.length > r, s = n[0], c = n[n.length - 1], l = o ? n.slice(1, -1) : [], u = n.length - 1;
|
|
306
306
|
return /* @__PURE__ */ H("nav", {
|
|
307
307
|
ref: i,
|
|
@@ -310,25 +310,25 @@ function Ha({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
310
310
|
...a,
|
|
311
311
|
children: /* @__PURE__ */ H("ol", {
|
|
312
312
|
className: "aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs",
|
|
313
|
-
children: o ? /* @__PURE__ */ U(
|
|
313
|
+
children: o ? /* @__PURE__ */ U(Ki, { children: [
|
|
314
314
|
/* @__PURE__ */ H("li", {
|
|
315
315
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
316
|
-
children: /* @__PURE__ */ H(
|
|
316
|
+
children: /* @__PURE__ */ H(Va, { item: s })
|
|
317
317
|
}),
|
|
318
318
|
/* @__PURE__ */ U("li", {
|
|
319
319
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
320
|
-
children: [/* @__PURE__ */ H(
|
|
320
|
+
children: [/* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Ua, { items: l })]
|
|
321
321
|
}),
|
|
322
322
|
/* @__PURE__ */ U("li", {
|
|
323
323
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
324
|
-
children: [/* @__PURE__ */ H(
|
|
324
|
+
children: [/* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Va, {
|
|
325
325
|
item: c,
|
|
326
326
|
isCurrent: !0
|
|
327
327
|
})]
|
|
328
328
|
})
|
|
329
329
|
] }) : n.map((e, t) => /* @__PURE__ */ U("li", {
|
|
330
330
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
331
|
-
children: [t > 0 && /* @__PURE__ */ H(
|
|
331
|
+
children: [t > 0 && /* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Va, {
|
|
332
332
|
item: e,
|
|
333
333
|
isCurrent: t === u
|
|
334
334
|
})]
|
|
@@ -338,26 +338,26 @@ function Ha({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/components/Calendar/date.ts
|
|
341
|
-
function
|
|
341
|
+
function Ga(e) {
|
|
342
342
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Ka(e, t) {
|
|
345
345
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function qa(e, t) {
|
|
348
|
+
return Ga(e).getTime() < Ga(t).getTime();
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function Ja(e, t) {
|
|
351
|
+
return Ga(e).getTime() > Ga(t).getTime();
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ya(e) {
|
|
354
354
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Xa(e, t) {
|
|
357
357
|
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let n =
|
|
359
|
+
function Za(e, t = 0) {
|
|
360
|
+
let n = Ya(e), r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
|
|
361
361
|
for (let e = 0; e < (n.getDay() - t + 7) % 7; e++) i.push(null);
|
|
362
362
|
for (let t = 1; t <= r; t++) i.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
363
363
|
for (; i.length < 42;) i.push(null);
|
|
@@ -367,7 +367,7 @@ function Ya(e, t = 0) {
|
|
|
367
367
|
}
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/components/Calendar/Calendar.tsx
|
|
370
|
-
var
|
|
370
|
+
var Qa = [
|
|
371
371
|
"SUNDAY",
|
|
372
372
|
"MONDAY",
|
|
373
373
|
"TUESDAY",
|
|
@@ -376,8 +376,8 @@ var Xa = [
|
|
|
376
376
|
"FRIDAY",
|
|
377
377
|
"SATURDAY"
|
|
378
378
|
];
|
|
379
|
-
function
|
|
380
|
-
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } =
|
|
379
|
+
function $a({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r, nextMonthLabel: i, month: a, selected: o, rangeStart: s, rangeEnd: c, onSelectDay: l, markedDates: u, minDate: d, maxDate: f, disabledDate: p, onPrevMonth: m, onNextMonth: h, weekdayLabels: g, formatMonthTitle: _, className: v }) {
|
|
380
|
+
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } = $i(() => ({
|
|
381
381
|
monthFormatter: new Intl.DateTimeFormat(t, {
|
|
382
382
|
calendar: "gregory",
|
|
383
383
|
year: "numeric",
|
|
@@ -385,31 +385,31 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
385
385
|
}),
|
|
386
386
|
weekdayFormatter: new Intl.DateTimeFormat(t, { weekday: "short" }),
|
|
387
387
|
dayFormatter: new Intl.NumberFormat(t, { useGrouping: !1 })
|
|
388
|
-
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w =
|
|
388
|
+
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w = Za(a, C), T = [...Qa.slice(C), ...Qa.slice(0, C)], E = s ?? o ?? null, D = c ?? o ?? null, O = !!(E && D && !Ka(E, D)), k = (e) => d && qa(e, d) || f && Ja(e, f) ? !0 : p ? p(e) : !1, A = (e) => u?.some((t) => Ka(t, e)) ?? !1;
|
|
389
389
|
return /* @__PURE__ */ U("div", {
|
|
390
390
|
className: e("aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg", v),
|
|
391
391
|
children: [/* @__PURE__ */ U("div", {
|
|
392
392
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-md",
|
|
393
393
|
children: [
|
|
394
|
-
/* @__PURE__ */ H(
|
|
394
|
+
/* @__PURE__ */ H(eo, { children: m && /* @__PURE__ */ H(L, {
|
|
395
395
|
variant: "outline",
|
|
396
396
|
color: "secondary",
|
|
397
397
|
size: "icon-md",
|
|
398
|
-
"aria-label": r ?? y.format(
|
|
398
|
+
"aria-label": r ?? y.format(Xa(a, -1)),
|
|
399
399
|
onClick: m,
|
|
400
|
-
children: /* @__PURE__ */ H(
|
|
400
|
+
children: /* @__PURE__ */ H(ue, { 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(
|
|
406
|
+
/* @__PURE__ */ H(eo, { children: h && /* @__PURE__ */ H(L, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
color: "secondary",
|
|
409
409
|
size: "icon-md",
|
|
410
|
-
"aria-label": i ?? y.format(
|
|
410
|
+
"aria-label": i ?? y.format(Xa(a, 1)),
|
|
411
411
|
onClick: h,
|
|
412
|
-
children: /* @__PURE__ */ H(
|
|
412
|
+
children: /* @__PURE__ */ H(ke, { size: 20 })
|
|
413
413
|
}) })
|
|
414
414
|
]
|
|
415
415
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -418,13 +418,13 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
418
418
|
className: "aivex:flex",
|
|
419
419
|
children: T.map((t) => /* @__PURE__ */ H("span", {
|
|
420
420
|
className: e("aivex:flex aivex:size-10 aivex:items-center aivex:justify-center aivex:text-label-lg aivex:select-none", t === "SUNDAY" ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
421
|
-
children: g?.[t] ?? b.format(new Date(2023, 0, 1 +
|
|
421
|
+
children: g?.[t] ?? b.format(new Date(2023, 0, 1 + Qa.indexOf(t)))
|
|
422
422
|
}, t))
|
|
423
423
|
}), w.map((t, n) => /* @__PURE__ */ H("div", {
|
|
424
424
|
className: "aivex:flex",
|
|
425
425
|
children: t.map((t, n) => {
|
|
426
426
|
if (!t) return /* @__PURE__ */ H("span", { className: "aivex:size-10" }, n);
|
|
427
|
-
let r = k(t), i = !!(E &&
|
|
427
|
+
let r = k(t), i = !!(E && Ka(t, E)), a = !!(D && Ka(t, D)), o = i || a, s = O && E && D && !qa(t, E) && !Ja(t, D), c = t.getDay() === 0;
|
|
428
428
|
return /* @__PURE__ */ U("button", {
|
|
429
429
|
type: "button",
|
|
430
430
|
disabled: r,
|
|
@@ -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
|
}),
|
|
@@ -450,7 +450,7 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
450
450
|
})]
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function eo({ children: e }) {
|
|
454
454
|
return /* @__PURE__ */ H("span", {
|
|
455
455
|
className: "aivex:flex aivex:size-8 aivex:shrink-0",
|
|
456
456
|
children: e
|
|
@@ -458,7 +458,7 @@ function Qa({ children: e }) {
|
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/components/Card/Card.tsx
|
|
461
|
-
function
|
|
461
|
+
function to({ className: t, interactive: n, selected: r, disabled: i = !1, asChild: a = !1, children: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, "aria-disabled": f, ...p }) {
|
|
462
462
|
return /* @__PURE__ */ H(a ? W : "div", {
|
|
463
463
|
ref: s,
|
|
464
464
|
className: e("aivex:bg-bg-primary aivex:rounded-xl aivex:p-xl aivex:border aivex:border-border-subtle aivex:transition-colors", t, n && !i && "aivex:cursor-pointer aivex:hover:border-border-strong aivex:active:border-border-strong aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", n && !i && !r && "aivex:active:bg-bg-tertiary", r && "aivex:border-border-brand aivex:bg-bg-brand-subtle aivex:hover:border-border-brand", i && "aivex:cursor-not-allowed aivex:opacity-disable"),
|
|
@@ -474,29 +474,29 @@ function $a({ className: t, interactive: n, selected: r, disabled: i = !1, asChi
|
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
477
|
-
var
|
|
477
|
+
var no = V("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer", {
|
|
478
478
|
variants: { size: {
|
|
479
479
|
sm: "aivex:w-4 aivex:h-4",
|
|
480
480
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
481
481
|
} },
|
|
482
482
|
defaultVariants: { size: "md" }
|
|
483
|
-
}),
|
|
483
|
+
}), ro = {
|
|
484
484
|
sm: "aivex:w-5 aivex:h-5",
|
|
485
485
|
md: "aivex:w-6 aivex:h-6"
|
|
486
|
-
},
|
|
486
|
+
}, io = {
|
|
487
487
|
sm: "aivex:h-5",
|
|
488
488
|
md: "aivex:h-6"
|
|
489
489
|
};
|
|
490
|
-
function
|
|
491
|
-
let f =
|
|
490
|
+
function ao({ className: t, label: n, size: r = "md", indeterminate: i = !1, disabled: a, checked: o, defaultChecked: s, onChange: c, id: l, ref: u, ...d }) {
|
|
491
|
+
let f = J(null), p = o !== void 0, [m, h] = Y(!!s), g = typeof u == "object" && u ? u : f;
|
|
492
492
|
K(() => {
|
|
493
493
|
g && "current" in g && g.current && (g.current.indeterminate = i);
|
|
494
494
|
}, [i, g]);
|
|
495
|
-
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S =
|
|
495
|
+
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S = q(), C = l ?? S;
|
|
496
496
|
return /* @__PURE__ */ U("span", {
|
|
497
497
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", a && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
498
498
|
children: [/* @__PURE__ */ U("span", {
|
|
499
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
499
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", ro[y]),
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
502
502
|
/* @__PURE__ */ H("input", {
|
|
@@ -508,30 +508,30 @@ function ro({ className: t, label: n, size: r = "md", indeterminate: i = !1, dis
|
|
|
508
508
|
onChange: (e) => {
|
|
509
509
|
p || h(e.target.checked), c?.(e);
|
|
510
510
|
},
|
|
511
|
-
className: e(
|
|
511
|
+
className: e(no({ size: y }), x && "aivex:border-border-danger", v && "aivex:border-transparent aivex:bg-bg-brand", t),
|
|
512
512
|
...d
|
|
513
513
|
}),
|
|
514
514
|
v && /* @__PURE__ */ H("span", {
|
|
515
515
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
516
|
-
children: H(i ?
|
|
516
|
+
children: H(i ? Vr : Ln, { size: y })
|
|
517
517
|
})
|
|
518
518
|
]
|
|
519
519
|
}), n && /* @__PURE__ */ H("label", {
|
|
520
520
|
htmlFor: C,
|
|
521
|
-
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed",
|
|
521
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed", io[y]),
|
|
522
522
|
children: n
|
|
523
523
|
})]
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/Checkbox/ChipsCheckbox.tsx
|
|
528
|
-
function
|
|
529
|
-
let u = r !== void 0, [d, f] =
|
|
528
|
+
function oo({ className: t, disabled: n, checked: r, defaultChecked: i, onChange: a, onClick: o, id: s, ref: c, ...l }) {
|
|
529
|
+
let u = r !== void 0, [d, f] = Y(!!i), p = u ? !!r : d;
|
|
530
530
|
return /* @__PURE__ */ U("label", {
|
|
531
531
|
onClick: o,
|
|
532
532
|
className: e("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors", p ? "aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle" : "aivex:bg-bg-tertiary aivex:border-border-default", n && "aivex:opacity-disable aivex:pointer-events-none", t),
|
|
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(Ln, { size: "sm" })
|
|
553
553
|
})]
|
|
554
554
|
})
|
|
555
555
|
]
|
|
@@ -557,7 +557,7 @@ function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
557
557
|
}
|
|
558
558
|
//#endregion
|
|
559
559
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
560
|
-
var
|
|
560
|
+
var so = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:border aivex:transition-colors aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:pointer-events-none aivex:disabled:opacity-disable", {
|
|
561
561
|
variants: {
|
|
562
562
|
shape: {
|
|
563
563
|
rectangle: "",
|
|
@@ -627,12 +627,12 @@ var ao = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex a
|
|
|
627
627
|
active: !1
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
function
|
|
631
|
-
let m = a !== void 0, [h, g] =
|
|
630
|
+
function co({ className: t, shape: n, size: r, variant: i, active: a, defaultActive: o, startContent: s, endContent: c, children: l, ref: u, onClick: d, type: f = "button", ...p }) {
|
|
631
|
+
let m = a !== void 0, [h, g] = Y(!!o);
|
|
632
632
|
return /* @__PURE__ */ U("button", {
|
|
633
633
|
ref: u,
|
|
634
634
|
type: f,
|
|
635
|
-
className: e(
|
|
635
|
+
className: e(so({
|
|
636
636
|
shape: n,
|
|
637
637
|
size: r,
|
|
638
638
|
variant: i,
|
|
@@ -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(Ki, { children: [
|
|
646
646
|
s && /* @__PURE__ */ H("span", {
|
|
647
647
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
648
648
|
children: s
|
|
@@ -660,10 +660,10 @@ function oo({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
660
660
|
}
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region src/components/Chips/index.ts
|
|
663
|
-
var
|
|
664
|
-
function
|
|
663
|
+
var lo = co, uo = so, fo = e("aivex:flex aivex:w-[280px] aivex:max-h-[448px] aivex:flex-col aivex:gap-lg aivex:p-xl", "aivex:rounded-xl aivex:bg-static-gray aivex:text-text-on-color aivex:shadow-md", "aivex:z-50 aivex:outline-none", "aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out", "aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0", "aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95");
|
|
664
|
+
function po({ button: t, variant: n, className: r }) {
|
|
665
665
|
let { children: i, ...a } = t;
|
|
666
|
-
return /* @__PURE__ */ H(
|
|
666
|
+
return /* @__PURE__ */ H(L, {
|
|
667
667
|
variant: n,
|
|
668
668
|
color: "primary",
|
|
669
669
|
size: "md",
|
|
@@ -672,25 +672,25 @@ function uo({ button: t, variant: n, className: r }) {
|
|
|
672
672
|
children: i
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
return /* @__PURE__ */ H(
|
|
675
|
+
function mo(e) {
|
|
676
|
+
return /* @__PURE__ */ H(ea.Root, { ...e });
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
return /* @__PURE__ */ H(
|
|
678
|
+
function ho({ ref: e, ...t }) {
|
|
679
|
+
return /* @__PURE__ */ H(ea.Trigger, {
|
|
680
680
|
ref: e,
|
|
681
681
|
...t
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return /* @__PURE__ */ H(
|
|
684
|
+
function go(e) {
|
|
685
|
+
return /* @__PURE__ */ H(ea.Anchor, { ...e });
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function _o({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryButton: a, secondaryButton: s, primaryButton: c, onClose: l, closeAriaLabel: u = "닫기", ref: d, ...f }) {
|
|
688
688
|
let p = !!(a || s || c);
|
|
689
|
-
return /* @__PURE__ */ H(
|
|
689
|
+
return /* @__PURE__ */ H(ea.Portal, { children: /* @__PURE__ */ U(ea.Content, {
|
|
690
690
|
ref: d,
|
|
691
691
|
sideOffset: n,
|
|
692
692
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
693
|
-
className: e(
|
|
693
|
+
className: e(fo, t),
|
|
694
694
|
...f,
|
|
695
695
|
children: [
|
|
696
696
|
(r != null || l != null) && /* @__PURE__ */ U("div", {
|
|
@@ -714,25 +714,25 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
714
714
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md",
|
|
715
715
|
children: [/* @__PURE__ */ H("div", {
|
|
716
716
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start",
|
|
717
|
-
children: a && /* @__PURE__ */ H(
|
|
717
|
+
children: a && /* @__PURE__ */ H(po, {
|
|
718
718
|
button: a,
|
|
719
719
|
variant: "ghost",
|
|
720
720
|
className: "aivex:min-w-9"
|
|
721
721
|
})
|
|
722
722
|
}), /* @__PURE__ */ U("div", {
|
|
723
723
|
className: "aivex:flex aivex:items-start aivex:gap-md",
|
|
724
|
-
children: [s && /* @__PURE__ */ H(
|
|
724
|
+
children: [s && /* @__PURE__ */ H(po, {
|
|
725
725
|
button: s,
|
|
726
726
|
variant: "ghost",
|
|
727
727
|
className: "aivex:min-w-[60px]"
|
|
728
|
-
}), c && /* @__PURE__ */ H(
|
|
728
|
+
}), c && /* @__PURE__ */ H(po, {
|
|
729
729
|
button: c,
|
|
730
730
|
variant: "solid",
|
|
731
731
|
className: "aivex:min-w-[60px]"
|
|
732
732
|
})]
|
|
733
733
|
})]
|
|
734
734
|
}),
|
|
735
|
-
/* @__PURE__ */ H(
|
|
735
|
+
/* @__PURE__ */ H(ea.Arrow, {
|
|
736
736
|
width: 20,
|
|
737
737
|
height: 10,
|
|
738
738
|
className: "aivex:fill-static-gray"
|
|
@@ -740,14 +740,14 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
740
740
|
]
|
|
741
741
|
}) });
|
|
742
742
|
}
|
|
743
|
-
var
|
|
744
|
-
Trigger:
|
|
745
|
-
Anchor:
|
|
746
|
-
Content:
|
|
743
|
+
var vo = Object.assign(mo, {
|
|
744
|
+
Trigger: ho,
|
|
745
|
+
Anchor: go,
|
|
746
|
+
Content: _o
|
|
747
747
|
});
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
750
|
-
function
|
|
750
|
+
function yo({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
751
751
|
return /* @__PURE__ */ H(n ? W : "div", {
|
|
752
752
|
ref: r,
|
|
753
753
|
"aria-hidden": "true",
|
|
@@ -757,106 +757,106 @@ function _o({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
|
757
757
|
}
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region src/components/ScrollArea/ScrollArea.tsx
|
|
760
|
-
function
|
|
760
|
+
function bo({ className: t, children: n, edgeFade: r, onViewportScroll: i, ref: a, scrollbars: o = "vertical", type: s = "hover", verticalScrollbarClassName: c, viewportClassName: l, viewportRef: u, ...d }) {
|
|
761
761
|
let f = o === "vertical" || o === "both", p = o === "horizontal" || o === "both";
|
|
762
|
-
return /* @__PURE__ */ U(
|
|
762
|
+
return /* @__PURE__ */ U(ka.Root, {
|
|
763
763
|
ref: a,
|
|
764
764
|
className: e("aivex:relative aivex:overflow-hidden aivex:scroll-sync-root", t),
|
|
765
765
|
type: s,
|
|
766
766
|
...d,
|
|
767
767
|
children: [
|
|
768
|
-
/* @__PURE__ */ H(
|
|
768
|
+
/* @__PURE__ */ H(ka.Viewport, {
|
|
769
769
|
ref: u,
|
|
770
770
|
className: e("aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport", r && "aivex:scroll-fade-y", l),
|
|
771
771
|
onScroll: i,
|
|
772
772
|
children: n
|
|
773
773
|
}),
|
|
774
|
-
f ? /* @__PURE__ */ H(
|
|
775
|
-
p ? /* @__PURE__ */ H(
|
|
776
|
-
/* @__PURE__ */ H(
|
|
774
|
+
f ? /* @__PURE__ */ H(xo, { className: c }) : null,
|
|
775
|
+
p ? /* @__PURE__ */ H(xo, { orientation: "horizontal" }) : null,
|
|
776
|
+
/* @__PURE__ */ H(ka.Corner, {})
|
|
777
777
|
]
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return /* @__PURE__ */ H(
|
|
780
|
+
function xo({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
781
|
+
return /* @__PURE__ */ H(ka.Scrollbar, {
|
|
782
782
|
ref: r,
|
|
783
783
|
orientation: n,
|
|
784
784
|
className: e("aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar", n === "vertical" && "aivex:h-full aivex:w-2.5", n === "horizontal" && "aivex:h-2.5 aivex:flex-col", t),
|
|
785
785
|
...i,
|
|
786
|
-
children: /* @__PURE__ */ U(
|
|
786
|
+
children: /* @__PURE__ */ U(ka.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
|
}
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/components/DataGrid/DataGridColumnSettings.tsx
|
|
794
|
-
var
|
|
795
|
-
function
|
|
794
|
+
var So = 32, Co = 4, wo = 200;
|
|
795
|
+
function To(e) {
|
|
796
796
|
let { header: t, meta: n } = e.columnDef;
|
|
797
797
|
return n?.settingsLabel ? n.settingsLabel : typeof t == "string" ? t : e.id;
|
|
798
798
|
}
|
|
799
|
-
var
|
|
800
|
-
function
|
|
801
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
799
|
+
var Eo = "aivex:group/item aivex:relative aivex:flex aivex:w-full aivex:min-w-[160px] aivex:shrink-0 aivex:select-none aivex:items-center aivex:gap-md aivex:overflow-hidden aivex:rounded-md aivex:p-md", Do = "aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg aivex:text-text-primary", Oo = "aivex:group/handle aivex:relative aivex:flex aivex:size-2xl aivex:shrink-0 aivex:touch-none aivex:items-center aivex:justify-center aivex:text-icon-secondary aivex:outline-none", ko = "aivex:absolute aivex:-inset-xs aivex:rounded-sm aivex:bg-bg-inverse-strong aivex:transition-opacity";
|
|
800
|
+
function Ao({ column: t }) {
|
|
801
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Ta({ id: t.id });
|
|
802
802
|
return /* @__PURE__ */ U("div", {
|
|
803
803
|
ref: i,
|
|
804
804
|
style: {
|
|
805
|
-
transform:
|
|
805
|
+
transform: Da.Transform.toString(a),
|
|
806
806
|
transition: o
|
|
807
807
|
},
|
|
808
|
-
className: e(
|
|
808
|
+
className: e(Eo, s && "aivex:opacity-0"),
|
|
809
809
|
children: [
|
|
810
810
|
!s && /* @__PURE__ */ H("span", { className: "aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:transition-opacity aivex:group-hover/item:opacity-4 aivex:group-active/item:opacity-8" }),
|
|
811
|
-
/* @__PURE__ */ H(
|
|
811
|
+
/* @__PURE__ */ H(ao, {
|
|
812
812
|
size: "sm",
|
|
813
813
|
checked: t.getIsVisible(),
|
|
814
814
|
disabled: !t.getCanHide(),
|
|
815
815
|
onChange: t.getToggleVisibilityHandler()
|
|
816
816
|
}),
|
|
817
817
|
/* @__PURE__ */ H("span", {
|
|
818
|
-
className:
|
|
819
|
-
children:
|
|
818
|
+
className: Do,
|
|
819
|
+
children: To(t)
|
|
820
820
|
}),
|
|
821
821
|
/* @__PURE__ */ U("span", {
|
|
822
822
|
...n,
|
|
823
823
|
...r,
|
|
824
|
-
className: e(
|
|
825
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
824
|
+
className: e(Oo, "aivex:cursor-grab aivex:active:cursor-grabbing"),
|
|
825
|
+
children: [/* @__PURE__ */ H("span", { className: e(ko, "aivex:opacity-0 aivex:group-hover/handle:opacity-4 aivex:group-active/handle:opacity-8") }), /* @__PURE__ */ H(Xt, { size: 20 })]
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function jo({ column: t }) {
|
|
831
831
|
return /* @__PURE__ */ U("div", {
|
|
832
|
-
className: e(
|
|
832
|
+
className: e(Eo, "aivex:cursor-grabbing aivex:bg-bg-secondary aivex:shadow-xl"),
|
|
833
833
|
children: [
|
|
834
|
-
/* @__PURE__ */ H(
|
|
834
|
+
/* @__PURE__ */ H(ao, {
|
|
835
835
|
size: "sm",
|
|
836
836
|
checked: t.getIsVisible(),
|
|
837
837
|
disabled: !t.getCanHide(),
|
|
838
838
|
readOnly: !0
|
|
839
839
|
}),
|
|
840
840
|
/* @__PURE__ */ H("span", {
|
|
841
|
-
className:
|
|
842
|
-
children:
|
|
841
|
+
className: Do,
|
|
842
|
+
children: To(t)
|
|
843
843
|
}),
|
|
844
844
|
/* @__PURE__ */ U("span", {
|
|
845
|
-
className:
|
|
846
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
845
|
+
className: Oo,
|
|
846
|
+
children: [/* @__PURE__ */ H("span", { className: e(ko, "aivex:opacity-8") }), /* @__PURE__ */ H(Xt, { size: 20 })]
|
|
847
847
|
})
|
|
848
848
|
]
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
let [o, s] =
|
|
851
|
+
function Mo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화", excludeColumnIds: i, triggerLabel: a = "컬럼 설정" }) {
|
|
852
|
+
let [o, s] = Y(!1), [c, l] = Y(!1), [u, d] = Y(!1), f = u || c || o, p = J(null), [m, h] = Y(null), g = J(void 0), _ = G(() => window.clearTimeout(g.current), []);
|
|
853
853
|
K(() => {
|
|
854
854
|
let e = p.current?.parentElement;
|
|
855
855
|
if (!e) return;
|
|
856
856
|
let t = (e) => e instanceof Element && !!e.closest("[data-datagrid-header]"), n = (e) => {
|
|
857
857
|
t(e.target) && (_(), d(!0));
|
|
858
858
|
}, r = (e) => {
|
|
859
|
-
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1),
|
|
859
|
+
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1), wo));
|
|
860
860
|
};
|
|
861
861
|
return e.addEventListener("mouseover", n), e.addEventListener("mouseout", r), () => {
|
|
862
862
|
_(), e.removeEventListener("mouseover", n), e.removeEventListener("mouseout", r);
|
|
@@ -867,15 +867,15 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
867
867
|
if (!e) return;
|
|
868
868
|
let t = e.getBoundingClientRect(), n = e.querySelector("[data-datagrid-header]")?.getBoundingClientRect();
|
|
869
869
|
h({
|
|
870
|
-
top: (n?.top ?? t.top) + ((n?.height ?? 48) -
|
|
871
|
-
left: t.left -
|
|
870
|
+
top: (n?.top ?? t.top) + ((n?.height ?? 48) - So) / 2,
|
|
871
|
+
left: t.left - Co - So
|
|
872
872
|
});
|
|
873
873
|
};
|
|
874
874
|
if (e(), f) return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
875
875
|
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
876
876
|
};
|
|
877
877
|
}, [f]);
|
|
878
|
-
let v =
|
|
878
|
+
let v = ya(va(ga), va(ha, { coordinateGetter: wa })), y = t.getAllLeafColumns(), b = y.filter((e) => !i?.includes(e.id)), x = b.map((e) => e.id), [S, C] = Y(null), w = m ? /* @__PURE__ */ H("div", {
|
|
879
879
|
style: {
|
|
880
880
|
position: "fixed",
|
|
881
881
|
top: m.top,
|
|
@@ -891,29 +891,29 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
891
891
|
onOpenChange: s,
|
|
892
892
|
children: [/* @__PURE__ */ H(B.Trigger, {
|
|
893
893
|
asChild: !0,
|
|
894
|
-
children: /* @__PURE__ */ H(
|
|
894
|
+
children: /* @__PURE__ */ H(L, {
|
|
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(rn, { size: 20 })
|
|
901
901
|
})
|
|
902
902
|
}), /* @__PURE__ */ U(B.Content, { children: [
|
|
903
903
|
/* @__PURE__ */ H(B.Title, {
|
|
904
904
|
className: "aivex:shrink-0",
|
|
905
905
|
children: n
|
|
906
906
|
}),
|
|
907
|
-
/* @__PURE__ */ H(
|
|
907
|
+
/* @__PURE__ */ H(bo, {
|
|
908
908
|
scrollbars: "vertical",
|
|
909
909
|
className: "aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-col",
|
|
910
910
|
viewportClassName: "aivex:h-auto aivex:min-h-0",
|
|
911
911
|
children: /* @__PURE__ */ H("div", {
|
|
912
912
|
className: "aivex:flex aivex:w-full aivex:flex-col",
|
|
913
|
-
children: /* @__PURE__ */ U(
|
|
913
|
+
children: /* @__PURE__ */ U(pa, {
|
|
914
914
|
sensors: v,
|
|
915
|
-
collisionDetection:
|
|
916
|
-
modifiers: [
|
|
915
|
+
collisionDetection: _a,
|
|
916
|
+
modifiers: [xa, ba],
|
|
917
917
|
onDragStart: ({ active: e }) => {
|
|
918
918
|
C(b.find((t) => t.id === e.id) ?? null);
|
|
919
919
|
},
|
|
@@ -921,21 +921,21 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
921
921
|
if (C(null), !n || e.id === n.id) return;
|
|
922
922
|
let r = x.indexOf(String(e.id)), a = x.indexOf(String(n.id));
|
|
923
923
|
if (r === -1 || a === -1) return;
|
|
924
|
-
let o =
|
|
924
|
+
let o = Ca(x, r, a), s = 0;
|
|
925
925
|
t.setColumnOrder(y.map((e) => i?.includes(e.id) ? e.id : o[s++]));
|
|
926
926
|
},
|
|
927
927
|
onDragCancel: () => C(null),
|
|
928
|
-
children: [/* @__PURE__ */ H(
|
|
928
|
+
children: [/* @__PURE__ */ H(Sa, {
|
|
929
929
|
items: x,
|
|
930
|
-
strategy:
|
|
931
|
-
children: b.map((e) => /* @__PURE__ */ H(
|
|
932
|
-
}),
|
|
930
|
+
strategy: Ea,
|
|
931
|
+
children: b.map((e) => /* @__PURE__ */ H(Ao, { column: e }, e.id))
|
|
932
|
+
}), Oa(/* @__PURE__ */ H(ma, { children: S ? /* @__PURE__ */ H(jo, { column: S }) : null }), document.body)]
|
|
933
933
|
})
|
|
934
934
|
})
|
|
935
935
|
}),
|
|
936
936
|
/* @__PURE__ */ H(B.Footer, {
|
|
937
937
|
className: "aivex:shrink-0",
|
|
938
|
-
children: /* @__PURE__ */ H(
|
|
938
|
+
children: /* @__PURE__ */ H(L, {
|
|
939
939
|
size: "md",
|
|
940
940
|
variant: "solid",
|
|
941
941
|
color: "secondary",
|
|
@@ -951,24 +951,24 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
951
951
|
return /* @__PURE__ */ H("span", {
|
|
952
952
|
className: "aivex:absolute aivex:top-0 aivex:left-0",
|
|
953
953
|
ref: p,
|
|
954
|
-
children: w ?
|
|
954
|
+
children: w ? Oa(w, document.body) : null
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region src/components/DataGrid/DataGridPrimitives.tsx
|
|
959
|
-
var
|
|
959
|
+
var No = {
|
|
960
960
|
start: "aivex:justify-start aivex:text-left",
|
|
961
961
|
center: "aivex:justify-center aivex:text-center",
|
|
962
962
|
end: "aivex:justify-end aivex:text-right"
|
|
963
|
-
},
|
|
964
|
-
function
|
|
965
|
-
return
|
|
963
|
+
}, Po = Yi("basic");
|
|
964
|
+
function Fo() {
|
|
965
|
+
return Qi(Po);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Io(e, t, n) {
|
|
968
968
|
return typeof e == "function" ? e(t, n) : e;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
return /* @__PURE__ */ H(
|
|
970
|
+
function Lo({ className: t, children: n, variant: r = "basic", ref: i, ...a }) {
|
|
971
|
+
return /* @__PURE__ */ H(Po.Provider, {
|
|
972
972
|
value: r,
|
|
973
973
|
children: /* @__PURE__ */ H("div", {
|
|
974
974
|
ref: i,
|
|
@@ -979,8 +979,8 @@ function Fo({ className: t, children: n, variant: r = "basic", ref: i, ...a }) {
|
|
|
979
979
|
})
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
return /* @__PURE__ */ H(
|
|
982
|
+
function Ro({ className: t, children: n, ref: r, scrollbars: i = "both", type: a = "always", verticalScrollbarClassName: o, ...s }) {
|
|
983
|
+
return /* @__PURE__ */ H(bo, {
|
|
984
984
|
ref: r,
|
|
985
985
|
scrollbars: i,
|
|
986
986
|
type: a,
|
|
@@ -990,17 +990,17 @@ function Io({ className: t, children: n, ref: r, scrollbars: i = "both", type: a
|
|
|
990
990
|
children: n
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function zo({ className: t, children: n, sticky: r = !0, ref: i, ...a }) {
|
|
994
994
|
return /* @__PURE__ */ H("div", {
|
|
995
995
|
ref: i,
|
|
996
996
|
role: "row",
|
|
997
997
|
"data-datagrid-header": "",
|
|
998
|
-
className: e("aivex:flex aivex:shrink-0 aivex:items-center",
|
|
998
|
+
className: e("aivex:flex aivex:shrink-0 aivex:items-center", Fo() === "compact" ? "aivex:h-8 aivex:bg-bg-primary" : "aivex:h-12 aivex:rounded-md aivex:border aivex:border-border-subtle aivex:bg-bg-secondary", r && "aivex:sticky aivex:top-0 aivex:z-10", t),
|
|
999
999
|
...a,
|
|
1000
1000
|
children: n
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function Bo({ className: t, children: n, ref: r, ...i }) {
|
|
1004
1004
|
return /* @__PURE__ */ H("div", {
|
|
1005
1005
|
ref: r,
|
|
1006
1006
|
role: "rowgroup",
|
|
@@ -1009,11 +1009,11 @@ function Ro({ className: t, children: n, ref: r, ...i }) {
|
|
|
1009
1009
|
children: n
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Vo({ className: t, children: n, asChild: r = !1, selected: i, disabled: a, interactive: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, role: f = "row", "aria-disabled": p, ...m }) {
|
|
1013
1013
|
return /* @__PURE__ */ H(r ? W : "div", {
|
|
1014
1014
|
ref: s,
|
|
1015
1015
|
role: f,
|
|
1016
|
-
className: e("aivex:flex aivex:w-full aivex:shrink-0 aivex:text-text-primary aivex:transition-colors",
|
|
1016
|
+
className: e("aivex:flex aivex:w-full aivex:shrink-0 aivex:text-text-primary aivex:transition-colors", Fo() === "compact" ? "aivex:min-h-9" : "aivex:min-h-12 aivex:border-b aivex:border-border-subtle aivex:last:border-b-0", o && !i && !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
1017
1017
|
"aria-disabled": a || p || void 0,
|
|
1018
1018
|
"data-disabled": a ? "" : void 0,
|
|
1019
1019
|
"data-state": i ? "selected" : void 0,
|
|
@@ -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 Ho = "aivex:[overflow:clip] aivex:[overflow-clip-margin:4px]";
|
|
1029
|
+
function Uo(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 Wo({ 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", Ho, Fo() === "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", No[r], t),
|
|
1033
1042
|
...s,
|
|
1034
1043
|
children: n
|
|
1035
1044
|
});
|
|
1036
1045
|
}
|
|
1037
|
-
function
|
|
1046
|
+
function Go({ 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", Ho, Fo() === "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", No[r], t),
|
|
1042
1052
|
...s,
|
|
1043
|
-
children: n
|
|
1053
|
+
children: Uo(n, i)
|
|
1044
1054
|
});
|
|
1045
1055
|
}
|
|
1046
|
-
function
|
|
1056
|
+
function Ko({ 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 qo({ 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(
|
|
1069
|
+
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(Vo, { children: /* @__PURE__ */ H(Wo, {
|
|
1060
1070
|
className: "aivex:w-full",
|
|
1061
|
-
children: /* @__PURE__ */ H(
|
|
1071
|
+
children: /* @__PURE__ */ H(yo, { className: "aivex:h-5 aivex:w-full" })
|
|
1062
1072
|
}) }, t))
|
|
1063
1073
|
});
|
|
1064
1074
|
}
|
|
1065
|
-
function
|
|
1075
|
+
function Jo({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
1066
1076
|
return /* @__PURE__ */ H("div", {
|
|
1067
1077
|
ref: i,
|
|
1068
1078
|
role: "presentation",
|
|
@@ -1073,8 +1083,8 @@ 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
|
|
1077
|
-
let { original: y, id: b } = t, x = t.index, S =
|
|
1086
|
+
function Yo({ 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 }) {
|
|
1087
|
+
let { original: y, id: b } = t, x = t.index, S = q(), C = !!m, w = !!l && !s, T = r !== void 0, E = /* @__PURE__ */ H(Vo, {
|
|
1078
1088
|
ref: T ? void 0 : i,
|
|
1079
1089
|
"data-datagrid-row-id": b,
|
|
1080
1090
|
"data-row-selected": p ? "" : void 0,
|
|
@@ -1105,11 +1115,11 @@ 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(Wo, {
|
|
1109
1119
|
role: h,
|
|
1110
1120
|
align: n?.cellAlign ?? n?.align,
|
|
1111
|
-
className: e(n?.className,
|
|
1112
|
-
children:
|
|
1121
|
+
className: e(n?.className, Io(n?.cellClassName, y, x)),
|
|
1122
|
+
children: ta(t.column.columnDef.cell, t.getContext())
|
|
1113
1123
|
}, t.id);
|
|
1114
1124
|
})
|
|
1115
1125
|
}), D = u != null && /* @__PURE__ */ H("div", {
|
|
@@ -1135,15 +1145,15 @@ function Go({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1135
1145
|
transform: `translateY(${r}px)`
|
|
1136
1146
|
},
|
|
1137
1147
|
children: [E, D]
|
|
1138
|
-
}) : /* @__PURE__ */ U(
|
|
1148
|
+
}) : /* @__PURE__ */ U(Ki, { children: [E, D] });
|
|
1139
1149
|
}
|
|
1140
|
-
var
|
|
1141
|
-
function
|
|
1142
|
-
let [d, f] =
|
|
1150
|
+
var Xo = Zi(Yo);
|
|
1151
|
+
function Zo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, activeRowId: i, focusableRowIds: a, pendingFocusRowId: o, focusRowElement: s, onFocusSettled: c, scrollToRowRef: l, renderRow: u }) {
|
|
1152
|
+
let [d, f] = Y(null);
|
|
1143
1153
|
K(() => {
|
|
1144
1154
|
f(t.current);
|
|
1145
1155
|
}, [t]);
|
|
1146
|
-
let p =
|
|
1156
|
+
let p = Aa({
|
|
1147
1157
|
count: e.length,
|
|
1148
1158
|
getScrollElement: () => d,
|
|
1149
1159
|
estimateSize: () => n ?? 48,
|
|
@@ -1171,19 +1181,19 @@ 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 Qo = ({ direction: e }) => H(e === "asc" ? Si : e === "desc" ? _t : Fr, { size: 16 }), $o = {
|
|
1175
1185
|
basic: 48,
|
|
1176
1186
|
compact: 36
|
|
1177
|
-
},
|
|
1187
|
+
}, es = {
|
|
1178
1188
|
basic: 48,
|
|
1179
1189
|
compact: 32
|
|
1180
1190
|
};
|
|
1181
|
-
function
|
|
1182
|
-
let j =
|
|
1191
|
+
function ts({ 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 }) {
|
|
1192
|
+
let j = fa({
|
|
1183
1193
|
enableSorting: !1,
|
|
1184
1194
|
...A,
|
|
1185
|
-
getCoreRowModel: k ??
|
|
1186
|
-
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell", ne = w === !0 ? {} : w || void 0, P =
|
|
1195
|
+
getCoreRowModel: k ?? ra()
|
|
1196
|
+
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell", ne = w === !0 ? {} : w || void 0, P = J(null), F = j.getRowModel().rows, re = j.getHeaderGroups(), [ie, ae] = Y(es[n]);
|
|
1187
1197
|
K(() => {
|
|
1188
1198
|
if (!M || !P.current) return;
|
|
1189
1199
|
let e = P.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0, re.length), n = () => {
|
|
@@ -1194,18 +1204,18 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1194
1204
|
r?.observe(e);
|
|
1195
1205
|
}), () => r?.disconnect();
|
|
1196
1206
|
}, [re.length, M]);
|
|
1197
|
-
let oe =
|
|
1207
|
+
let oe = J(h);
|
|
1198
1208
|
oe.current = h;
|
|
1199
|
-
let se = G((e, t, n) => oe.current?.(e, t, n), []), ce = h ? se : void 0, [le, ue] =
|
|
1209
|
+
let se = G((e, t, n) => oe.current?.(e, t, n), []), ce = h ? se : void 0, [le, ue] = Y(null), de = J(F);
|
|
1200
1210
|
de.current = F;
|
|
1201
|
-
let fe =
|
|
1211
|
+
let fe = J(null), [pe, me] = Y(null), he = 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
|
-
]), I =
|
|
1218
|
+
]), I = $i(() => new Set(F.filter(he).map((e) => e.id)), [he, F]), ge = J(I);
|
|
1209
1219
|
ge.current = I;
|
|
1210
1220
|
let _e = G((e) => {
|
|
1211
1221
|
let t = Array.from(P.current?.querySelectorAll("[data-datagrid-row-id]") ?? []).find((t) => t.dataset.datagridRowId === e);
|
|
@@ -1225,23 +1235,23 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1225
1235
|
for (; i >= 0 && i < n.length && !ge.current.has(n[i].id);) i += t;
|
|
1226
1236
|
let a = n[i];
|
|
1227
1237
|
a && (fe.current?.(i), me(a.id), ue(a.id));
|
|
1228
|
-
}, []), ye = G((e) => ue(e), []), be = G(() => me(null), []), xe = le != null && I.has(le) ? le : null, Se = xe ?? F.find((e) => I.has(e.id))?.id, Ce = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ H(
|
|
1238
|
+
}, []), ye = G((e) => ue(e), []), be = G(() => me(null), []), xe = le != null && I.has(le) ? le : null, Se = xe ?? F.find((e) => I.has(e.id))?.id, Ce = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ H(Vo, {
|
|
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(Wo, {
|
|
1233
1243
|
role: te,
|
|
1234
1244
|
align: t?.cellAlign ?? t?.align,
|
|
1235
1245
|
className: t?.className,
|
|
1236
|
-
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(
|
|
1246
|
+
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(yo, { className: "aivex:h-4 aivex:w-full aivex:max-w-40" }) : t.skeleton
|
|
1237
1247
|
}, e.id);
|
|
1238
1248
|
})
|
|
1239
|
-
}, `${t}-${n}`)), we = (t) => re.map((n) => /* @__PURE__ */ H(
|
|
1249
|
+
}, `${t}-${n}`)), we = (t) => re.map((n) => /* @__PURE__ */ H(zo, {
|
|
1240
1250
|
sticky: t,
|
|
1241
1251
|
className: l,
|
|
1242
1252
|
children: n.headers.map((t) => {
|
|
1243
|
-
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null :
|
|
1244
|
-
return /* @__PURE__ */ H(
|
|
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 : ta(t.column.columnDef.header, t.getContext());
|
|
1254
|
+
return /* @__PURE__ */ H(Go, {
|
|
1245
1255
|
align: n?.headerAlign ?? n?.align,
|
|
1246
1256
|
className: e(n?.className, n?.headerClassName),
|
|
1247
1257
|
"aria-sort": o,
|
|
@@ -1254,22 +1264,22 @@ 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(Qo, { direction: a })
|
|
1258
1268
|
})]
|
|
1259
1269
|
}) : s
|
|
1260
1270
|
}, t.id);
|
|
1261
1271
|
})
|
|
1262
1272
|
}, n.id)), Te = j.getVisibleLeafColumns().map((e) => e.id).join(","), Ee = (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(Xo, {
|
|
1265
1275
|
row: t,
|
|
1266
1276
|
virtualIndex: n?.index,
|
|
1267
1277
|
virtualStart: n?.start,
|
|
1268
1278
|
measureRef: r,
|
|
1269
|
-
interactive:
|
|
1279
|
+
interactive: Io(f, a, o) ?? !!h,
|
|
1270
1280
|
selected: p?.(a, o),
|
|
1271
1281
|
disabled: s,
|
|
1272
|
-
className: e(n && "aivex:last:border-b",
|
|
1282
|
+
className: e(n && "aivex:last:border-b", Io(d, a, o)),
|
|
1273
1283
|
onRowClick: ce,
|
|
1274
1284
|
expandedContent: g && t.getIsExpanded() ? g(t) : void 0,
|
|
1275
1285
|
expandable: c,
|
|
@@ -1283,11 +1293,11 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1283
1293
|
onNavigate: ve,
|
|
1284
1294
|
onFocusRow: ye
|
|
1285
1295
|
}, t.id);
|
|
1286
|
-
}, De = /* @__PURE__ */ H(
|
|
1296
|
+
}, De = /* @__PURE__ */ H(Lo, {
|
|
1287
1297
|
ref: O,
|
|
1288
1298
|
variant: n,
|
|
1289
1299
|
className: ne ? void 0 : t,
|
|
1290
|
-
children: /* @__PURE__ */ H(
|
|
1300
|
+
children: /* @__PURE__ */ H(Ro, {
|
|
1291
1301
|
scrollbars: "both",
|
|
1292
1302
|
className: s,
|
|
1293
1303
|
viewportClassName: M ? "aivex:[scroll-padding-top:var(--datagrid-sticky-header-height)]" : void 0,
|
|
@@ -1297,16 +1307,16 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
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: [we(M), r ? /* @__PURE__ */ H(
|
|
1310
|
+
children: [we(M), r ? /* @__PURE__ */ H(Bo, {
|
|
1301
1311
|
className: u,
|
|
1302
1312
|
children: Ce(i ?? 5, "loading")
|
|
1303
|
-
}) : /* @__PURE__ */ U(
|
|
1313
|
+
}) : /* @__PURE__ */ U(Bo, {
|
|
1304
1314
|
className: u,
|
|
1305
1315
|
children: [
|
|
1306
|
-
F.length === 0 && a !== void 0 ? /* @__PURE__ */ H(
|
|
1316
|
+
F.length === 0 && a !== void 0 ? /* @__PURE__ */ H(Ko, { children: a }) : T ? /* @__PURE__ */ H(Zo, {
|
|
1307
1317
|
rows: F,
|
|
1308
1318
|
viewportRef: P,
|
|
1309
|
-
estimateRowHeight: E ??
|
|
1319
|
+
estimateRowHeight: E ?? $o[n],
|
|
1310
1320
|
overscan: D,
|
|
1311
1321
|
activeRowId: xe,
|
|
1312
1322
|
focusableRowIds: I,
|
|
@@ -1316,7 +1326,7 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1316
1326
|
scrollToRowRef: fe,
|
|
1317
1327
|
renderRow: Ee
|
|
1318
1328
|
}) : F.map((e) => Ee(e, void 0, void 0, e.id === Se)),
|
|
1319
|
-
/* @__PURE__ */ H(
|
|
1329
|
+
/* @__PURE__ */ H(Jo, {
|
|
1320
1330
|
ref: S,
|
|
1321
1331
|
loading: _,
|
|
1322
1332
|
className: C,
|
|
@@ -1337,7 +1347,7 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1337
1347
|
});
|
|
1338
1348
|
return ne ? /* @__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: [De, /* @__PURE__ */ H(
|
|
1350
|
+
children: [De, /* @__PURE__ */ H(Mo, {
|
|
1341
1351
|
table: j,
|
|
1342
1352
|
...ne
|
|
1343
1353
|
})]
|
|
@@ -1345,25 +1355,25 @@ function Zo({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1345
1355
|
}
|
|
1346
1356
|
//#endregion
|
|
1347
1357
|
//#region src/components/Overlay/Overlay.tsx
|
|
1348
|
-
var
|
|
1358
|
+
var ns = 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 rs({ 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(ns({ type: n }), t),
|
|
1360
1370
|
...i
|
|
1361
1371
|
});
|
|
1362
1372
|
}
|
|
1363
1373
|
//#endregion
|
|
1364
1374
|
//#region src/utils/useModalAutoFocus.ts
|
|
1365
|
-
function
|
|
1366
|
-
let n =
|
|
1375
|
+
function is(e, t) {
|
|
1376
|
+
let n = J(null);
|
|
1367
1377
|
return {
|
|
1368
1378
|
onOpenAutoFocus(t) {
|
|
1369
1379
|
n.current = t.target.ownerDocument.activeElement, e?.(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 as = {
|
|
1381
1391
|
default: {
|
|
1382
|
-
component:
|
|
1392
|
+
component: bn,
|
|
1383
1393
|
className: "aivex:text-icon-success"
|
|
1384
1394
|
},
|
|
1385
1395
|
warning: {
|
|
1386
|
-
component:
|
|
1396
|
+
component: Sn,
|
|
1387
1397
|
className: "aivex:text-icon-warning"
|
|
1388
1398
|
}
|
|
1389
1399
|
};
|
|
1390
|
-
function
|
|
1391
|
-
let p =
|
|
1400
|
+
function os({ 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 = is(), m = as[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(rs, { 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(ss, { ...c }), l && /* @__PURE__ */ H(cs, {
|
|
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 ss({ children: e, onClick: t, ...n }) {
|
|
1436
1446
|
return /* @__PURE__ */ H(X.Cancel, {
|
|
1437
1447
|
asChild: !0,
|
|
1438
|
-
children: /* @__PURE__ */ H(
|
|
1448
|
+
children: /* @__PURE__ */ H(L, {
|
|
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 cs({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1462
|
+
return /* @__PURE__ */ H(L, {
|
|
1453
1463
|
variant: "solid",
|
|
1454
1464
|
color: t,
|
|
1455
1465
|
size: "lg",
|
|
@@ -1463,8 +1473,8 @@ function is({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1463
1473
|
}
|
|
1464
1474
|
//#endregion
|
|
1465
1475
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1466
|
-
function
|
|
1467
|
-
let o =
|
|
1476
|
+
function ls({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1477
|
+
let o = J(null), s = J({
|
|
1468
1478
|
isDragging: !1,
|
|
1469
1479
|
startX: 0,
|
|
1470
1480
|
scrollLeft: 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 us = {
|
|
1505
1515
|
left: "aivex:left-0 aivex:border-r",
|
|
1506
1516
|
right: "aivex:right-0 aivex:border-l"
|
|
1507
1517
|
};
|
|
1508
|
-
function
|
|
1518
|
+
function ds({ 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", us[a], s),
|
|
1518
1528
|
style: c,
|
|
1519
1529
|
onAnimationEnd: (e) => {
|
|
1520
1530
|
!t && e.target === e.currentTarget && l?.();
|
|
@@ -1533,40 +1543,40 @@ 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 =
|
|
1546
|
+
var fs = Yi(null);
|
|
1547
|
+
function ps() {
|
|
1548
|
+
let e = Qi(fs);
|
|
1539
1549
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1540
1550
|
return e;
|
|
1541
1551
|
}
|
|
1542
|
-
var
|
|
1552
|
+
var ms = 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
|
|
1550
|
-
let c =
|
|
1559
|
+
function hs({ className: t, orientation: n, fieldId: r, invalid: i = !1, disabled: a = !1, ref: o, ...s }) {
|
|
1560
|
+
let c = q(), l = r ?? c, u = {
|
|
1551
1561
|
controlId: l,
|
|
1552
1562
|
descriptionId: `${l}-description`,
|
|
1553
1563
|
errorId: `${l}-error`,
|
|
1554
1564
|
invalid: i,
|
|
1555
1565
|
disabled: a
|
|
1556
1566
|
};
|
|
1557
|
-
return /* @__PURE__ */ H(
|
|
1567
|
+
return /* @__PURE__ */ H(fs.Provider, {
|
|
1558
1568
|
value: u,
|
|
1559
1569
|
children: /* @__PURE__ */ H("div", {
|
|
1560
1570
|
ref: o,
|
|
1561
|
-
className: e(
|
|
1571
|
+
className: e(ms({ 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 gs({ className: t, ref: n, ...r }) {
|
|
1579
|
+
let { controlId: i, invalid: a, disabled: o } = ps();
|
|
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 _s({ 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 vs({ children: e }) {
|
|
1596
|
+
let { controlId: t, descriptionId: n, errorId: r, invalid: i } = ps();
|
|
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 ys({ className: t, ref: n, ...r }) {
|
|
1605
|
+
let { descriptionId: i, disabled: a } = ps();
|
|
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 bs({ className: t, children: n, ref: r, ...i }) {
|
|
1614
|
+
let { errorId: a, invalid: o } = ps();
|
|
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 xs = Yi(!1), Ss = {
|
|
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 =
|
|
1632
|
+
}, Cs = 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"), ws = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
1633
|
+
function Ts({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: s, ...c }) {
|
|
1634
|
+
let l = Qi(xs), 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
|
|
@@ -1634,10 +1644,10 @@ function xs({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1634
1644
|
className: "aivex:shrink-0",
|
|
1635
1645
|
"aria-label": a,
|
|
1636
1646
|
children: /* @__PURE__ */ H(z, { size: 24 })
|
|
1637
|
-
}), p = r ? /* @__PURE__ */ H(
|
|
1647
|
+
}), p = r ? /* @__PURE__ */ H(Es, { button: r }) : null;
|
|
1638
1648
|
return /* @__PURE__ */ U("div", {
|
|
1639
1649
|
ref: s,
|
|
1640
|
-
className:
|
|
1650
|
+
className: ws,
|
|
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 Es({ 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 Ds({ 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 Os({ 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(ks, {
|
|
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(ks, {
|
|
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(ks, {
|
|
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 ks({ button: e, variant: t, color: n, className: r }) {
|
|
1712
1722
|
let { children: i, ...a } = e;
|
|
1713
|
-
return /* @__PURE__ */ H(
|
|
1723
|
+
return /* @__PURE__ */ H(L, {
|
|
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 As({ 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 = is(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", Cs, Ss[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(xs.Provider, {
|
|
1739
1749
|
value: !0,
|
|
1740
1750
|
children: i
|
|
1741
1751
|
})
|
|
1742
1752
|
})] })
|
|
1743
1753
|
});
|
|
1744
1754
|
}
|
|
1745
|
-
function
|
|
1746
|
-
let f =
|
|
1755
|
+
function js({ title: t, description: n, headingButton: r, children: i, tertiaryButton: a, secondaryButton: o, primaryButton: s, size: c = "md", onClose: l, closeAriaLabel: u, ref: d }) {
|
|
1756
|
+
let f = q(), 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(Cs, Ss[c]),
|
|
1753
1763
|
children: [
|
|
1754
|
-
/* @__PURE__ */ H(
|
|
1764
|
+
/* @__PURE__ */ H(Ts, {
|
|
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(Ds, { children: i }),
|
|
1773
|
+
p && /* @__PURE__ */ H(Os, {
|
|
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 Ms({ 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(As, {
|
|
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(Ts, {
|
|
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(Ds, { children: o }),
|
|
1799
|
+
m && /* @__PURE__ */ H(Os, {
|
|
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 Ns({ 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 = is(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 Ps = Object.assign(Ns, {
|
|
1817
1827
|
Title: Z.Title,
|
|
1818
1828
|
Close: Z.Close
|
|
1819
|
-
}),
|
|
1829
|
+
}), Fs = 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 Is({ 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(Fs({
|
|
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(Cr, { 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]"),
|
|
@@ -1867,8 +1877,8 @@ function Ms({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1867
1877
|
}
|
|
1868
1878
|
//#endregion
|
|
1869
1879
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
1870
|
-
var
|
|
1871
|
-
let [l, u] =
|
|
1880
|
+
var Ls = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Rs = Zi(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
1881
|
+
let [l, u] = Y(i), d = J(null), [f, p] = Y(!1), m = G(() => {
|
|
1872
1882
|
let e = d.current;
|
|
1873
1883
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
1874
1884
|
}, []), h = ({ groupValue: e, optionValue: t }) => r.find((t) => t.groupValue === e)?.options.find((e) => e.value === t), g = l.map((e) => {
|
|
@@ -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(Ms, {
|
|
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: Ls,
|
|
1941
|
+
WebkitMaskImage: Ls
|
|
1932
1942
|
} : void 0,
|
|
1933
1943
|
children: r.map((e) => /* @__PURE__ */ H("div", {
|
|
1934
1944
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -1939,7 +1949,7 @@ var Ns = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Ps =
|
|
|
1939
1949
|
children: e.groupLabel
|
|
1940
1950
|
}), e.options.length > 0 ? /* @__PURE__ */ H("div", {
|
|
1941
1951
|
className: "aivex:flex aivex:flex-wrap aivex:gap-md",
|
|
1942
|
-
children: e.options.map((t) => /* @__PURE__ */ H(
|
|
1952
|
+
children: e.options.map((t) => /* @__PURE__ */ H(co, {
|
|
1943
1953
|
active: l.some((n) => n.groupValue === e.groupValue && n.optionValue === t.value),
|
|
1944
1954
|
shape: "rounded",
|
|
1945
1955
|
size: "md",
|
|
@@ -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(ls, {
|
|
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(Is, {
|
|
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
|
+
}), zs = 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 Bs({ 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(zs({
|
|
2037
2047
|
state: d,
|
|
2038
2048
|
size: a,
|
|
2039
2049
|
layout: o
|
|
@@ -2053,15 +2063,15 @@ 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
|
|
2057
|
-
if (!
|
|
2066
|
+
function Vs(e, t) {
|
|
2067
|
+
if (!Xi(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]) Vs(e, t);
|
|
2062
2072
|
}
|
|
2063
|
-
function
|
|
2064
|
-
if (!
|
|
2073
|
+
function Hs(e, t) {
|
|
2074
|
+
if (!Xi(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));
|
|
2067
2077
|
for (let e of Object.keys(n)) {
|
|
@@ -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 =
|
|
2077
|
-
return
|
|
2078
|
-
})),
|
|
2086
|
+
let r = Hs(e, t);
|
|
2087
|
+
return Xi(r) && r.key == null ? Ji(r, { key: n }) : r;
|
|
2088
|
+
})), Ji(e, n);
|
|
2079
2089
|
}
|
|
2080
2090
|
function $(e) {
|
|
2081
2091
|
return (t) => {
|
|
2082
|
-
let n =
|
|
2083
|
-
if (
|
|
2092
|
+
let n = q().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2093
|
+
if (Vs(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 Hs(r, a);
|
|
2087
2097
|
};
|
|
2088
2098
|
}
|
|
2089
|
-
var
|
|
2099
|
+
var Us = ({ 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
|
+
}), Ws = ({ 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
|
+
}), Gs = ({ 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
|
+
}), Ks = ({ 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
|
+
}), qs = ({ 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
|
+
}), Js = ({ 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
|
+
}), Ys = ({ 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
|
+
}), Xs = ({ 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
|
+
}), Zs = ({ 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
|
+
}), Qs = ({ 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
|
+
}), $s = $(Us), ec = $(Ws), tc = $(Gs), nc = $(Ks), rc = $(qs), ic = $(Ys), ac = $(Js), oc = $(Xs), sc = $(Zs), cc = $(Qs), lc = 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
|
+
}), uc = {
|
|
3553
3563
|
basic: {
|
|
3554
|
-
Icon:
|
|
3564
|
+
Icon: Li,
|
|
3555
3565
|
className: "aivex:text-icon-secondary"
|
|
3556
3566
|
},
|
|
3557
3567
|
info: {
|
|
3558
|
-
Icon:
|
|
3568
|
+
Icon: Li,
|
|
3559
3569
|
className: "aivex:text-icon-info"
|
|
3560
3570
|
},
|
|
3561
3571
|
success: {
|
|
3562
|
-
Icon:
|
|
3572
|
+
Icon: _r,
|
|
3563
3573
|
className: "aivex:text-icon-success"
|
|
3564
3574
|
},
|
|
3565
3575
|
warning: {
|
|
3566
|
-
Icon:
|
|
3576
|
+
Icon: di,
|
|
3567
3577
|
className: "aivex:text-icon-warning"
|
|
3568
3578
|
},
|
|
3569
3579
|
danger: {
|
|
3570
|
-
Icon:
|
|
3580
|
+
Icon: Nn,
|
|
3571
3581
|
className: "aivex:text-icon-danger"
|
|
3572
3582
|
}
|
|
3573
3583
|
};
|
|
3574
|
-
function
|
|
3575
|
-
let { Icon: u, className: d } =
|
|
3584
|
+
function dc({ className: t, type: n = "basic", message: r, subText: i, children: a, onClose: s, ref: c, ...l }) {
|
|
3585
|
+
let { Icon: u, className: d } = uc[n ?? "basic"];
|
|
3576
3586
|
return /* @__PURE__ */ H("div", {
|
|
3577
3587
|
ref: c,
|
|
3578
3588
|
role: "status",
|
|
3579
|
-
className: e(
|
|
3589
|
+
className: e(lc({ 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",
|
|
@@ -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 fc = 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 pc({ 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(fc({ 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 mc = 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 hc({ 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(mc({ 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 gc({ 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,8 +3690,8 @@ function fc({ className: t, children: n, ref: r, ...i }) {
|
|
|
3680
3690
|
}
|
|
3681
3691
|
//#endregion
|
|
3682
3692
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3683
|
-
function
|
|
3684
|
-
let [h, g] =
|
|
3693
|
+
function _c({ 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 }) {
|
|
3694
|
+
let [h, g] = Y(!1), _ = r === "sm" ? 16 : 20;
|
|
3685
3695
|
return /* @__PURE__ */ H("button", {
|
|
3686
3696
|
ref: c,
|
|
3687
3697
|
type: d,
|
|
@@ -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(Bs, {
|
|
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(Ft, { 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,8 +3725,8 @@ 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
|
|
3719
|
-
let [p, m] =
|
|
3728
|
+
function vc({ 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 }) {
|
|
3729
|
+
let [p, m] = Y(!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);
|
|
3722
3732
|
if (t) return s ? s(t, e) : t.label;
|
|
@@ -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(_c, {
|
|
3735
3745
|
id: u,
|
|
3736
3746
|
"aria-describedby": d,
|
|
3737
3747
|
value: g,
|
|
@@ -3748,11 +3758,11 @@ function mc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3748
3758
|
className: e("aivex:z-50 aivex:min-w-[var(--radix-select-trigger-width)] aivex:max-w-[var(--radix-select-trigger-width)]", "aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle", "aivex:overflow-hidden", "aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95", "aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95"),
|
|
3749
3759
|
children: /* @__PURE__ */ H(Q.Viewport, {
|
|
3750
3760
|
style: { overflow: "visible" },
|
|
3751
|
-
children: /* @__PURE__ */ H(
|
|
3761
|
+
children: /* @__PURE__ */ H(bo, {
|
|
3752
3762
|
type: "auto",
|
|
3753
3763
|
className: "aivex:w-full",
|
|
3754
3764
|
viewportClassName: "aivex:max-h-[312px] aivex:p-xs",
|
|
3755
|
-
children: t.map((t, n) => /* @__PURE__ */ U(
|
|
3765
|
+
children: t.map((t, n) => /* @__PURE__ */ U(qi, { children: [n > 0 && /* @__PURE__ */ H(Q.Separator, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ U(Q.Group, { children: [t.title && /* @__PURE__ */ H(Q.Label, {
|
|
3756
3766
|
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
3757
3767
|
children: t.title
|
|
3758
3768
|
}), t.options.map((t) => /* @__PURE__ */ U(Q.Item, {
|
|
@@ -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 yc({ 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 bc({ 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,18 +3799,18 @@ 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
|
|
3799
|
-
let d =
|
|
3808
|
+
function xc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3809
|
+
let d = J(void 0);
|
|
3800
3810
|
n != null && (d.current = n);
|
|
3801
3811
|
let f = n ?? d.current;
|
|
3802
3812
|
if (f == null) return null;
|
|
3803
|
-
let p = Math.max(1, f), m = Math.min(Math.max(1, r), p), h = Math.floor((m - 1) / 10), g = h * 10 + 1, _ = Math.min(g + 9, p), v = Array.from({ length: _ - g + 1 }, (e, t) => g + t), y = h === 0, b = _ === p,
|
|
3813
|
+
let p = Math.max(1, f), m = Math.min(Math.max(1, r), p), h = Math.floor((m - 1) / 10), g = h * 10 + 1, _ = Math.min(g + 9, p), v = Array.from({ length: _ - g + 1 }, (e, t) => g + t), y = h === 0, b = _ === p, x = (e) => {
|
|
3804
3814
|
c?.(Number(e));
|
|
3805
3815
|
};
|
|
3806
3816
|
return /* @__PURE__ */ U("nav", {
|
|
@@ -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(yc, {
|
|
3819
3829
|
"aria-label": "First page",
|
|
3820
3830
|
disabled: a || y,
|
|
3821
3831
|
onClick: () => s(1),
|
|
3822
|
-
children: /* @__PURE__ */ H(
|
|
3823
|
-
}), /* @__PURE__ */ H(
|
|
3832
|
+
children: /* @__PURE__ */ H(At, { size: 16 })
|
|
3833
|
+
}), /* @__PURE__ */ H(yc, {
|
|
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(ue, { 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(bc, {
|
|
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(yc, {
|
|
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(ke, { size: 16 })
|
|
3856
|
+
}), /* @__PURE__ */ H(yc, {
|
|
3847
3857
|
"aria-label": "Last page",
|
|
3848
3858
|
disabled: a || b,
|
|
3849
3859
|
onClick: () => s(p),
|
|
3850
|
-
children: /* @__PURE__ */ H(
|
|
3860
|
+
children: /* @__PURE__ */ H(he, { 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(vc, {
|
|
3858
3868
|
size: "sm",
|
|
3859
3869
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
3860
3870
|
value: String(i),
|
|
@@ -3863,7 +3873,7 @@ function _c({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3863
3873
|
value: String(e),
|
|
3864
3874
|
label: t
|
|
3865
3875
|
})) }],
|
|
3866
|
-
onChange:
|
|
3876
|
+
onChange: x
|
|
3867
3877
|
})
|
|
3868
3878
|
})
|
|
3869
3879
|
]
|
|
@@ -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 Sc = {
|
|
3875
3885
|
left: "aivex:left-0 aivex:border-r",
|
|
3876
3886
|
right: "aivex:right-0 aivex:border-l"
|
|
3877
|
-
},
|
|
3887
|
+
}, Cc = {
|
|
3878
3888
|
md: "aivex:w-[384px]",
|
|
3879
3889
|
lg: "aivex:w-[450px]"
|
|
3880
3890
|
};
|
|
3881
|
-
function
|
|
3891
|
+
function wc({ 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", Sc[o], Cc[s]),
|
|
3890
3900
|
onKeyDown: (e) => {
|
|
3891
3901
|
e.stopPropagation();
|
|
3892
3902
|
},
|
|
@@ -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 Tc = {
|
|
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
|
+
}, Ec = (e) => typeof e == "number" ? `${e}px` : e, Dc = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
3935
|
+
function Oc({ 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 = Dc(n, r), f = Ec(a), p = Ec(o), m = Tc[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,28 +3961,28 @@ 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 kc = 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
|
+
}), Ac = {
|
|
3961
3971
|
sm: "aivex:w-5 aivex:h-5",
|
|
3962
3972
|
md: "aivex:w-6 aivex:h-6"
|
|
3963
|
-
},
|
|
3973
|
+
}, jc = {
|
|
3964
3974
|
sm: "aivex:h-5",
|
|
3965
3975
|
md: "aivex:h-6"
|
|
3966
3976
|
};
|
|
3967
|
-
function
|
|
3977
|
+
function Mc({ 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"
|
|
3971
|
-
}[l], d =
|
|
3981
|
+
}[l], d = q(), f = o ?? d;
|
|
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", Ac[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(kc({ 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", jc[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 Nc = Yi({ size: "md" }), Pc = {
|
|
3999
4009
|
sm: "aivex:h-7",
|
|
4000
4010
|
md: "aivex:h-8",
|
|
4001
4011
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4003,27 +4013,27 @@ 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
|
|
4007
|
-
let u = r !== void 0, [d, f] =
|
|
4008
|
-
return /* @__PURE__ */ H(
|
|
4016
|
+
function Fc({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4017
|
+
let u = r !== void 0, [d, f] = Y(i ?? r ?? ""), p = u ? r : d;
|
|
4018
|
+
return /* @__PURE__ */ H(Nc.Provider, {
|
|
4009
4019
|
value: {
|
|
4010
4020
|
size: n,
|
|
4011
4021
|
fullWidth: o
|
|
4012
4022
|
},
|
|
4013
|
-
children: /* @__PURE__ */ H(
|
|
4023
|
+
children: /* @__PURE__ */ H(ja.Root, {
|
|
4014
4024
|
ref: c,
|
|
4015
4025
|
type: "single",
|
|
4016
4026
|
value: p,
|
|
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", Pc[n], t),
|
|
4021
4031
|
...l,
|
|
4022
4032
|
children: s
|
|
4023
4033
|
})
|
|
4024
4034
|
});
|
|
4025
4035
|
}
|
|
4026
|
-
var
|
|
4036
|
+
var Ic = {
|
|
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 } =
|
|
4036
|
-
return /* @__PURE__ */ H(
|
|
4044
|
+
function Lc({ className: t, children: n, ref: r, ...i }) {
|
|
4045
|
+
let { size: a, fullWidth: o } = Qi(Nc);
|
|
4046
|
+
return /* @__PURE__ */ H(ja.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", Ic[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 Rc(e) {
|
|
4046
4056
|
return typeof e != "string";
|
|
4047
4057
|
}
|
|
4048
|
-
function
|
|
4058
|
+
function zc({ 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", Rc(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 Bc = 1.2 / 15.8;
|
|
4072
|
+
function Vc({ className: t, size: n = 20, color: r, label: i = "로딩 중", style: a, ref: o, ...s }) {
|
|
4073
|
+
let c = Math.max(1, n * Bc);
|
|
4064
4074
|
return /* @__PURE__ */ H("div", {
|
|
4065
4075
|
ref: o,
|
|
4066
4076
|
...i === null ? { "aria-hidden": !0 } : {
|
|
@@ -4079,31 +4089,31 @@ 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
|
|
4083
|
-
return /* @__PURE__ */ H(
|
|
4092
|
+
function Hc({ className: t, ref: n, ...r }) {
|
|
4093
|
+
return /* @__PURE__ */ H(Ma.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
|
|
4091
|
-
return /* @__PURE__ */ H(
|
|
4099
|
+
var Uc = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
4100
|
+
function Wc({ className: t, ref: n, ...r }) {
|
|
4101
|
+
return /* @__PURE__ */ H(Ma.List, {
|
|
4092
4102
|
ref: n,
|
|
4093
|
-
className: e(
|
|
4103
|
+
className: e(Uc, t),
|
|
4094
4104
|
...r
|
|
4095
4105
|
});
|
|
4096
4106
|
}
|
|
4097
|
-
var
|
|
4098
|
-
function
|
|
4099
|
-
return /* @__PURE__ */ H(
|
|
4107
|
+
var Gc = "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 Kc({ className: t, ref: n, ...r }) {
|
|
4109
|
+
return /* @__PURE__ */ H(Ma.Trigger, {
|
|
4100
4110
|
ref: n,
|
|
4101
|
-
className: e(
|
|
4111
|
+
className: e(Gc, t),
|
|
4102
4112
|
...r
|
|
4103
4113
|
});
|
|
4104
4114
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return /* @__PURE__ */ H(
|
|
4115
|
+
function qc({ className: t, ref: n, ...r }) {
|
|
4116
|
+
return /* @__PURE__ */ H(Ma.Content, {
|
|
4107
4117
|
ref: n,
|
|
4108
4118
|
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
4109
4119
|
...r
|
|
@@ -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 Jc = {
|
|
4115
4125
|
sm: "aivex:h-10",
|
|
4116
4126
|
md: "aivex:h-12"
|
|
4117
|
-
},
|
|
4127
|
+
}, Yc = {
|
|
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
|
+
}, Xc = ({ direction: e }) => H(e === "asc" ? Si : e === "desc" ? _t : Fr, { size: 16 });
|
|
4131
|
+
function Zc({ 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 Qc({ 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 $c({ 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 el({ 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 tl({ 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 nl({ 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", Jc[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 rl({ 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", Yc[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(Xc, { direction: a })
|
|
4192
4202
|
})]
|
|
4193
4203
|
}) : n
|
|
4194
4204
|
});
|
|
4195
4205
|
}
|
|
4196
|
-
function
|
|
4206
|
+
function il({ 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", Yc[r], t),
|
|
4200
4210
|
...o,
|
|
4201
4211
|
children: n
|
|
4202
4212
|
});
|
|
4203
4213
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return /* @__PURE__ */ H(
|
|
4214
|
+
function al({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
4215
|
+
return /* @__PURE__ */ H(nl, { children: /* @__PURE__ */ H(il, {
|
|
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,21 +4220,21 @@ function tl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
|
4210
4220
|
children: n
|
|
4211
4221
|
}) });
|
|
4212
4222
|
}
|
|
4213
|
-
function
|
|
4223
|
+
function ol({ 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(nl, { children: /* @__PURE__ */ H(il, {
|
|
4219
4229
|
colSpan: t,
|
|
4220
|
-
children: /* @__PURE__ */ H(
|
|
4230
|
+
children: /* @__PURE__ */ H(yo, { className: "aivex:h-5 aivex:w-full" })
|
|
4221
4231
|
}) }, n))
|
|
4222
4232
|
});
|
|
4223
4233
|
}
|
|
4224
4234
|
//#endregion
|
|
4225
4235
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4226
|
-
function
|
|
4227
|
-
let S = o !== void 0, [C, w] =
|
|
4236
|
+
function sl({ 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 }) {
|
|
4237
|
+
let S = o !== void 0, [C, w] = Y(s), T = S ? o : C, [E, D] = Y(""), O = J(!1), [k, A] = Y(!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];
|
|
@@ -4248,12 +4258,12 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4248
4258
|
D("");
|
|
4249
4259
|
}, re = T.map((e, t) => {
|
|
4250
4260
|
let r = () => ne(t), a = u ? u(e) ? "default" : "error" : N ? "error" : "default";
|
|
4251
|
-
return d ? /* @__PURE__ */ H(
|
|
4261
|
+
return d ? /* @__PURE__ */ H(qi, { 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(Is, {
|
|
4257
4267
|
size: n === "md" ? "md" : "sm",
|
|
4258
4268
|
type: a,
|
|
4259
4269
|
disabled: i,
|
|
@@ -4287,7 +4297,7 @@ 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(Bs, {
|
|
4291
4301
|
error: N,
|
|
4292
4302
|
disabled: i,
|
|
4293
4303
|
focused: j,
|
|
@@ -4299,8 +4309,8 @@ function rl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4299
4309
|
}
|
|
4300
4310
|
//#endregion
|
|
4301
4311
|
//#region src/components/Textarea/Textarea.tsx
|
|
4302
|
-
function
|
|
4303
|
-
let [v, y] =
|
|
4312
|
+
function cl({ 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, ..._ }) {
|
|
4313
|
+
let [v, y] = Y(!1), b = p != null, x = (e) => e == null ? 0 : String(e).length, [S, C] = Y(() => 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 = {};
|
|
4306
4316
|
a !== void 0 && (O.minHeight = typeof a == "number" ? `${a}px` : a), o && a !== void 0 && (O.height = O.minHeight, O.maxHeight = O.minHeight);
|
|
@@ -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(Bs, {
|
|
4325
4335
|
error: E,
|
|
4326
4336
|
disabled: r,
|
|
4327
4337
|
focused: v,
|
|
@@ -4346,10 +4356,10 @@ 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
|
|
4350
|
-
let [_, v] =
|
|
4359
|
+
function ll({ 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 }) {
|
|
4360
|
+
let [_, v] = Y(!1), y = J(null), [b, x] = Y(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
|
-
}, E =
|
|
4362
|
+
}, E = Na(u, y), D = /* @__PURE__ */ U(Ki, { children: [s, w && /* @__PURE__ */ H(o, {
|
|
4353
4363
|
size: c === "sm" ? "xs" : "sm",
|
|
4354
4364
|
onClick: () => {
|
|
4355
4365
|
S || x(""), p?.({ target: { value: "" } }), y.current?.focus();
|
|
@@ -4360,7 +4370,7 @@ function al({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4360
4370
|
"aria-label": "입력값 삭제",
|
|
4361
4371
|
children: /* @__PURE__ */ H(z, { size: c === "sm" ? 14 : 16 })
|
|
4362
4372
|
})] }), O = s || w, k = g["aria-invalid"];
|
|
4363
|
-
return /* @__PURE__ */ H(
|
|
4373
|
+
return /* @__PURE__ */ H(Bs, {
|
|
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 ul = 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 dl({ 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(ul({ 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(L, {
|
|
4415
4425
|
variant: "ghost",
|
|
4416
4426
|
color: "primary",
|
|
4417
4427
|
size: "md",
|
|
@@ -4430,9 +4440,9 @@ function sl({ className: t, type: n = "default", open: r = !0, message: i, actio
|
|
|
4430
4440
|
]
|
|
4431
4441
|
});
|
|
4432
4442
|
}
|
|
4433
|
-
function
|
|
4443
|
+
function fl({ 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
|
-
return /* @__PURE__ */ H(
|
|
4445
|
+
return /* @__PURE__ */ H(Pa, {
|
|
4436
4446
|
position: t,
|
|
4437
4447
|
duration: n,
|
|
4438
4448
|
visibleToasts: r,
|
|
@@ -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(ul({ 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 pl = 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
|
+
}), ml = {
|
|
4485
4495
|
"display-lg": "h1",
|
|
4486
4496
|
"display-md": "h1",
|
|
4487
4497
|
"heading-xl": "h1",
|
|
@@ -4501,23 +4511,23 @@ var ll = V("", {
|
|
|
4501
4511
|
"label-sm": "span",
|
|
4502
4512
|
"caption-md": "span"
|
|
4503
4513
|
};
|
|
4504
|
-
function
|
|
4505
|
-
return /* @__PURE__ */ H(t ??
|
|
4514
|
+
function hl({ as: t, variant: n = "body-md-regular", className: r, children: i, ref: a, ...o }) {
|
|
4515
|
+
return /* @__PURE__ */ H(t ?? ml[n], {
|
|
4506
4516
|
ref: a,
|
|
4507
|
-
className: e(
|
|
4517
|
+
className: e(pl({ 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 gl({ className: t, formats: n = [
|
|
4515
4525
|
"jpg",
|
|
4516
4526
|
"bmp",
|
|
4517
4527
|
"png",
|
|
4518
4528
|
"json"
|
|
4519
4529
|
], maxSize: r = "800MB", accept: i, title: a = "Drag and drop here", formatsLabel: o = "Formats", maxSizeLabel: s = "Max size", fileButtonLabel: c = "File", folderButtonLabel: l = "Folder", showFolder: u = !0, onFileSelect: d, onFolderSelect: f, ref: p, ...m }) {
|
|
4520
|
-
let [h, g] =
|
|
4530
|
+
let [h, g] = Y(!1), _ = J(null), v = J(null), y = J(0);
|
|
4521
4531
|
return /* @__PURE__ */ U("div", {
|
|
4522
4532
|
ref: p,
|
|
4523
4533
|
className: e("aivex:flex aivex:flex-col aivex:items-center aivex:justify-center aivex:p-[48px] aivex:rounded-[8px] aivex:border-2 aivex:border-dashed aivex:transition-colors", h ? "aivex:bg-[rgba(0,86,216,0.08)] aivex:border-[#99bef6]" : "aivex:border-[#c1c3d2]", t),
|
|
@@ -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(L, {
|
|
4566
4576
|
type: "button",
|
|
4567
4577
|
variant: "outline",
|
|
4568
4578
|
color: "secondary",
|
|
4569
4579
|
size: "md",
|
|
4570
|
-
startContent: /* @__PURE__ */ H(
|
|
4580
|
+
startContent: /* @__PURE__ */ H(ni, { size: 16 }),
|
|
4571
4581
|
onClick: () => _.current?.click(),
|
|
4572
4582
|
children: c
|
|
4573
|
-
}), u && /* @__PURE__ */ H(
|
|
4583
|
+
}), u && /* @__PURE__ */ H(L, {
|
|
4574
4584
|
type: "button",
|
|
4575
4585
|
variant: "outline",
|
|
4576
4586
|
color: "secondary",
|
|
4577
4587
|
size: "md",
|
|
4578
|
-
startContent: /* @__PURE__ */ H(
|
|
4588
|
+
startContent: /* @__PURE__ */ H(Fn, { 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 { qr as AddFolderIcon, Xn as AddPointIcon, rn as AdjustIcon, Ar as AiSparkleGradientIcon, $r as AiSparkleIcon, hn as AiVDataIcon, ic as AiVDataLogo, ac as AiVDataSymbol, fr as AiVOpsIcon, oc as AiVOpsLogo, ui as AiViewIcon, cc as AiViewLogo, xn as AiVisionIcon, ec as AiVisionLogo, rc as AiVisionMLogo, nc as AiVisionSLogo, tc as AiVisionTLogo, Mn as AiVotIcon, sc as AiVotLogo, $s as AivexLogo, Ir as AlignCenterIcon, vr as AlignLeftIcon, Wn as AlignRightIcon, Rn as AngleIcon, Zt as ApertureIcon, gi as ArchiveIcon, Ai as ArrowCircleDownFilledIcon, un as ArrowCircleDownIcon, Ei as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, S as ArrowCircleRightFilledIcon, xi as ArrowCircleRightIcon, gt as ArrowCircleUpFilledIcon, M as ArrowCircleUpIcon, D as ArrowControlIcon, Ge as ArrowCornerLeftTopIcon, sr as ArrowDownIcon, f as ArrowElbowDownLeftIcon, nr as ArrowElbowDownRightIcon, Fe as ArrowFlowIcon, Be as ArrowGoingDownIcon, Xe as ArrowGoingUpIcon, P as ArrowLeftDownIcon, I as ArrowLeftIcon, Ae as ArrowLeftRightIcon, ot as ArrowLeftUpIcon, Fi as ArrowRightDownIcon, _ as ArrowRightIcon, Et as ArrowRightUpIcon, de as ArrowUpDownIcon, xt as ArrowUpIcon, jt as AssistantPolyIcon, oe as AssistantRectIcon, Te as AtIcon, a as Avatar, Ra as Badge, Hr as BarcodeIcon, be as BellIcon, Vt as BookmarkFilledIcon, It as BookmarkIcon, Kt as BoundingBoxIcon, Wa as BreadCrumb, tt as BrightIcon, L as Button, s as CSVFileIcon, $a as Calendar, jn as CalendarIcon, li as CameraIcon, to as Card, kr as CaretLineDownIcon, Qr as CaretLineLeftIcon, tr as CaretLineRightIcon, ln as CaretLineUpIcon, Fr as CaretUpDownIcon, ii as ChatIcon, bn as CheckCircleFilledIcon, _r as CheckCircleIcon, hi as CheckDoubleIcon, En as CheckIcon, ao as Checkbox, Ln as CheckboxCheckIcon, Vr as CheckboxIndeterminateIcon, lo as Chips, oo as ChipsCheckbox, Cr as CircleDashedIcon, Yn as CircleFilledIcon, Un as CircleOutlineIcon, nn as ClipIcon, bi as ClipboardIcon, Pi as CloseCircleFilledIcon, mn as CloseCircleIcon, z as CloseIcon, ht as ClosedEyesIcon, E as ClusterIcon, vo as Coachmark, Ti as CodeIcon, bt as CompareIcon, ne as ConfirmIcon, j as ConnectedIcon, Ye as ContrastIcon, dr as Copy1Icon, g as Copy2Icon, or as CopyIcon, ze as CpuIcon, We as CreditCardIcon, et as CropIcon, ae as CuttingIcon, ts as DataGrid, Bo as DataGridBody, Wo as DataGridCell, Mo as DataGridColumnSettings, Ko as DataGridEmpty, zo as DataGridHeader, Go as DataGridHeaderCell, Jo as DataGridInfiniteTrigger, qo as DataGridLoading, Lo as DataGridRoot, Vo as DataGridRow, Ro as DataGridViewport, ye as DatabaseIcon, Pe as DefectGeneratorIcon, ut as DeleteIcon, zi as DeletePointIcon, os as Dialog, x as DirectionDoubleDownIcon, At as DirectionDoubleLeftIcon, he as DirectionDoubleRightIcon, Tt as DirectionDoubleUpIcon, Ft as DirectionDownIcon, ue as DirectionLeftIcon, ke as DirectionRightIcon, Kr as DirectionUpIcon, we as DisconnectedIcon, Bi as Divider, Ba as Dot, Gt as DotIcon, Bt as DownloadIcon, Xt as DragHandleIcon, ls as DraggableScroll, ds as Drawer, at as EditIcon, d as EmptyIcon, kn as EnglishIcon, si as EqualIcon, Dr as EraserIcon, Xr as ExpandIcon, $n as ExperimentIcon, sn as ExportIcon, Nr as FailedIcon, hs as Field, _s as FieldContent, vs as FieldControl, ys as FieldDescription, bs as FieldError, gs as FieldLabel, ni as FileIcon, vn as FilterFilledIcon, hr as FilterIcon, Rs as FilterModal, pi as FitIcon, wn as FloppyDiskIcon, Fn as FolderCloseIcon, zr as FolderOpenIcon, xr as GalleryViewLargeIcon, qn as GalleryViewMediumIcon, Vn as GalleryViewSmallIcon, en as GitBranchIcon, vi as GitCommitIcon, Mi as GlobalIcon, fn as GpuIcon, Oi as GraphIcon, pt as GraphPieIcon, w as GraphScatterIcon, Ci as GridIcon, vt as GuideHandleIcon, N as GuideLineIcon, k as HamburgerIcon, qe as HandIcon, lr as HeadphonesIcon, m as HelpIcon, ir as HistoryIcon, Le as HomeIcon, He as HourglassIcon, o as IconButton, Qe as ImageBrokenIcon, re as ImageIcon, _e as ImagesIcon, Me as ImportIcon, ct as InfoFilledIcon, Li as InfoIcon, Bs as InputBase, R as InteractionLayer, y as KebabIcon, Ot as KeyDeleteIcon, pe as KeyIcon, Ct as KeyReturnIcon, Nt as KeyboardIcon, ce as KoreanIcon, De as LabelPointIcon, Wr as LanguageIcon, Se as LightbulbIcon, Ut as LightingFilledIcon, Rt as LightingIcon, Jt as LineIcon, rt as LineLinkIcon, l as LinkIcon, An as LinkedInIcon, ci as ListIcon, Or as ListPlayIcon, Zr as LockIcon, er as LoginIcon, cn as LogoutIcon, Pr as MagicWandIcon, ri as MailIcon, yn as MapIcon, gr as MapPinIcon, mi as MeatballIcon, Vi as Menu, dc as Messagebox, Tn as MicroscopeIcon, In as MinimizeIcon, Br as MinimizeWindowIcon, Sr as MinusCircleFilledIcon, Jn as MinusCircleIcon, Hn as MinusIcon, Ms as Modal, Ps as ModalBase, js as ModalSurface, tn as ModelIcon, yi as MonitorIcon, Ni as MouseClickLeftIcon, pn as MouseClickRightIcon, ki as MoveFolderIcon, mt as MoveIcon, T as MultiSelectionIcon, wi as MuteIcon, gc as Nav, hc as NavItem, pc as NavTile, yt as NewTabIcon, te as NodeflowIcon, A as NotEqualIcon, Je as OpenEyesIcon, ur as OpenedMailIcon, rs as Overlay, h as PackageIcon, ar as PageIcon, xc as Pagination, wc as Panel, Re as PasteIcon, Ue as PauseCircleFilledIcon, $e as PauseCircleIcon, ie as PauseIcon, ve as PenIcon, Ne as PencilIcon, lt as PhoneIcon, Ri as PinIcon, b as PipelineIcon, kt as PixelIcon, me as PlayCircleFilledIcon, wt as PlayCircleIcon, Pt as PlayIcon, le as PlayProgressIcon, Oe as PlusCircleFilledIcon, Gr as PlusCircleIcon, Ce as PlusIcon, Wt as PointEditIcon, zt as PointIcon, B as Popover, Oc as ProgressBar, Yt as PushPinFilledIcon, it as PushPinIcon, u as QuestionIcon, Mc as Radio, On as RectDashedIcon, oi as RectIcon, Er as RedoIcon, Yr as RefreshIcon, Qn as RepeatIcon, on as RepeatOnceIcon, Mr as RequestStatusIcon, ti as RocketIcon, _n as RotateRectIcon, mr as RotateRectOCRIcon, fi as RulerIcon, Cn as ScaleLeftBottomIcon, Pn as ScaleLeftTopIcon, Rr as ScaleRightBottomIcon, br as ScaleRightTopIcon, bo as ScrollArea, xo as ScrollBar, Kn as SearchIcon, Lc as SegmentedItem, Fc as SegmentedRoot, vc as SelectBox, _c as SelectButton, Bn as SendIcon, $t as SettingIcon, _i as ShapesIcon, zc as Shortcut, ji as ShrinkIcon, dn as ShuffleIcon, Di as SidebarIcon, ft as SimplificationIcon, yo as Skeleton, Hi as Slider, C as SmoothIcon, Si as SortAscendingIcon, _t as SortDescendingIcon, ee as SoundIcon, O as SpecificAreaIcon, Vc as Spinner, Ke as StarFilledIcon, cr as StarIcon, p as StopCircleFilledIcon, rr as StopCircleIcon, Ie as StopIcon, Ve as StorageIcon, Ze as StrokeIcon, Gi as Switch, qc as TabContent, Wc as TabList, Hc as TabRoot, Kc as TabTrigger, Zc as Table, tl as TableBody, el as TableCaption, il as TableCell, al as TableEmpty, $c as TableFooter, rl as TableHead, Qc as TableHeader, ol as TableLoading, nl as TableRow, Is as Tag, F as TagFilledIcon, ge as TagFilledOpacityIcon, je as TagIcon, sl as Tagbox, st as TargetIcon, Ii as TaskQueueIcon, v as TeamIcon, Dt as TempIcon, fe as TestIcon, St as TextBoldIcon, Mt as TextH1Icon, se as TextH2Icon, Ee as TextH3Icon, Ur as TextIcon, xe as TextItalicIcon, Ht as TextStrikethroughIcon, Lt as TextUnderlineIcon, cl as Textarea, ll as Textbox, qt as ThumbsDownFilledIcon, nt as ThumbsDownIcon, c as ThumbsUpIcon, Dn as TimeIcon, dl as Toast, fl as ToastToaster, co as ToggleButton, ai as ToolIcon, t as Tooltip, Tr as TriangleDashedIcon, hl as Typography, Jr as UndoIcon, Zn as UneditableIcon, an as UnlockIcon, jr as UnreadIcon, gl as UploadArea, ei as UploadIcon, gn as UserIcon, pr as WarningCircleFilledIcon, di as WarningCircleIcon, Sn as WarningTriangleFilledIcon, Nn as WarningTriangleIcon, Lr as WheelIcon, yr as WorkspaceIcon, Gn as Zoom100Icon, zn as ZoomInIcon, Qt as ZoomOutIcon, n as avatarVariants, Ia as badgeVariants, wr as buttonVariants, no as checkboxVariants, uo as chipsVariants, e as cn, Wi as dividerVariants, za as dotVariants, ms as fieldVariants, na as getCoreRowModel, ia as getExpandedRowModel, aa as getFacetedMinMaxValues, oa as getFacetedRowModel, sa as getFacetedUniqueValues, ca as getFilteredRowModel, la as getGroupedRowModel, ua as getPaginationRowModel, da as getSortedRowModel, r as iconButtonVariants, zs as inputContainerVariants, zs as inputWrapperVariants, Ui as isShortcutTarget, lc as messageboxVariants, mc as navItemVariants, fc as navTileVariants, ns as overlayVariants, kc as radioVariants, Fs as tagVariants, Fa as toast, ul as toastVariants, so as toggleButtonVariants, i as tooltipContentVariants, pl as typographyVariants };
|
|
4605
4615
|
|
|
4606
4616
|
//# sourceMappingURL=index.js.map
|