@aivex/ui 1.2.0-dev.35 → 1.2.0-dev.37
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/README.md +68 -0
- package/dist/{Button-DLfTdKpW.js → Button-CuvXiYtX.js} +1381 -1436
- package/dist/Button-CuvXiYtX.js.map +1 -0
- package/dist/Button-DXf0LWOC.cjs +2 -0
- package/dist/Button-DXf0LWOC.cjs.map +1 -0
- package/dist/IconButton-CrrS0BMg.cjs +2 -0
- package/dist/{IconButton-CfbfwHu2.cjs.map → IconButton-CrrS0BMg.cjs.map} +1 -1
- package/dist/{IconButton-CQG1Pw51.js → IconButton-DusjiWye.js} +14 -13
- package/dist/{IconButton-CQG1Pw51.js.map → IconButton-DusjiWye.js.map} +1 -1
- package/dist/comment.cjs +1 -1
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +51 -41
- package/dist/comment.js.map +1 -1
- package/dist/components/Calendar/Calendar.d.ts +13 -2
- package/dist/components/Calendar/Calendar.test.d.ts +1 -0
- package/dist/components/Calendar/date.d.ts +2 -2
- package/dist/components/Calendar/date.test.d.ts +1 -0
- package/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -1
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +1 -2
- package/dist/components/ShapeEditor/_model/strings.d.ts +1 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +2 -1
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +0 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +9 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1351 -1389
- package/dist/index.js.map +1 -1
- package/dist/keyboard-9B-R6uN0.cjs +2 -0
- package/dist/keyboard-9B-R6uN0.cjs.map +1 -0
- package/dist/{Switch-D7Dzld4x.js → keyboard-DUqwZll5.js} +178 -105
- package/dist/keyboard-DUqwZll5.js.map +1 -0
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +1549 -1554
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/keyboard.d.ts +3 -0
- package/dist/utils/useModalAutoFocus.d.ts +5 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.js +59 -0
- package/dist/utils.js.map +1 -0
- package/package.json +20 -22
- package/dist/Button-BcJuLWuX.cjs +0 -2
- package/dist/Button-BcJuLWuX.cjs.map +0 -1
- package/dist/Button-DLfTdKpW.js.map +0 -1
- package/dist/IconButton-CfbfwHu2.cjs +0 -2
- package/dist/Switch-BTWZAzgl.cjs +0 -2
- package/dist/Switch-BTWZAzgl.cjs.map +0 -1
- package/dist/Switch-D7Dzld4x.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
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-DusjiWye.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 ee, Ei as M, En as te, Er as N, Et as P, F, Fi as ne, 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 I, I as he, Ii as ge, In as _e, Ir as ve, It as ye, J as be, Ji as xe, Jn as Se, Jr as Ce, Jt as we, K as Te, Ki as Ee, Kn as De, Kr as Oe, Kt as ke, L as Ae, Li as je, Ln as Me, Lr as Ne, Lt as Pe, M as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oi as Ke, On as qe, Or as Je, Ot as Ye, P as Xe, Pi as Ze, Pn as Qe, Pr as $e, Pt as et, Q as tt, Qi as nt, Qn as rt, Qr as it, Qt as at, R as ot, Ri as st, Rn as ct, Rr as lt, Rt as ut, S as dt, Si as ft, Sn as pt, Sr as mt, St as ht, T as gt, Ti as _t, Tn as vt, Tr as yt, Tt as bt, U as xt, Ui as St, Un as Ct, Ur as wt, Ut as Tt, V as Et, Vi as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wi as Mt, Wn as Nt, Wr as Pt, Wt as Ft, X as It, Xi as Lt, Xn as Rt, Xr as zt, Xt as Bt, Y as Vt, Yi as Ht, Yn as Ut, Yr as Wt, Yt as Gt, Z as Kt, Zi as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _i as Qt, _n as $t, _r as en, _t as tn, a as nn, aa as rn, ai as an, an as on, ar as sn, at as cn, b as ln, bi as un, bn as dn, br as fn, bt as pn, c as mn, ca as hn, ci as gn, cn as _n, cr as vn, ct as yn, d as bn, da as xn, di as Sn, dn as Cn, dr as wn, dt as Tn, ea as En, ei as Dn, en as On, er as kn, et as An, f as jn, fa as L, fi as Mn, fn as Nn, fr as Pn, ft as Fn, g as In, gi as Ln, gn as Rn, gr as zn, gt as Bn, h as Vn, hi as Hn, hn as Un, hr as Wn, ht as Gn, i as Kn, ia as qn, ii as Jn, in as Yn, ir as Xn, it as Zn, j as Qn, ji as $n, jn as er, jr as tr, jt as nr, k as rr, ki as ir, kn as ar, kr as or, kt as sr, l as cr, la as lr, li as ur, ln as dr, lr as fr, lt as pr, m as mr, mi as hr, mn as gr, mr as _r, mt as vr, n as yr, na as br, ni as xr, nn as Sr, nr as Cr, nt as wr, o as Tr, oa as Er, oi as Dr, on as Or, or as kr, ot as Ar, p as jr, pi as Mr, pn as Nr, pr as Pr, pt as Fr, q as Ir, qi as Lr, qn as Rr, qr as zr, qt as Br, r as Vr, ra as Hr, ri as Ur, rn as Wr, rr as Gr, rt as Kr, s as qr, sa as Jr, si as Yr, sn as Xr, sr as Zr, st as Qr, t as R, ta as $r, ti as ei, tn as ti, tr as ni, tt as ri, u as ii, ua as ai, ui as oi, un as si, ur as ci, ut as li, v as ui, vi as di, vn as fi, vr as pi, vt as mi, w as hi, wi as gi, wn as _i, wr as vi, wt as yi, x as bi, xi, xn as Si, xr as Ci, xt as z, y as wi, yi as Ti, yn as Ei, yr as Di, yt as Oi, z as ki, zi as Ai, zn as ji, zr as Mi, zt as Ni } from "./Button-CuvXiYtX.js";
|
|
6
|
+
import { a as Pi, c as Fi, i as Ii, n as Li, o as Ri, r as zi, s as Bi } from "./keyboard-DUqwZll5.js";
|
|
6
7
|
import { cva as B } from "class-variance-authority";
|
|
7
|
-
import { Fragment as
|
|
8
|
+
import { Fragment as Vi, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
8
9
|
import { Slot as U } from "@radix-ui/react-slot";
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import * as
|
|
11
|
-
import { flexRender as
|
|
12
|
-
import { DndContext as
|
|
13
|
-
import { restrictToFirstScrollableAncestor as
|
|
14
|
-
import { SortableContext as
|
|
15
|
-
import { CSS as
|
|
16
|
-
import { createPortal as
|
|
17
|
-
import * as
|
|
18
|
-
import { useVirtualizer as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import { useComposedRefs as
|
|
25
|
-
import { Toaster as
|
|
10
|
+
import { Fragment as Hi, cloneElement as Ui, createContext as Wi, isValidElement as Gi, memo as Ki, useCallback as W, useContext as qi, useEffect as G, useId as K, useMemo as Ji, useRef as q, useState as J } from "react";
|
|
11
|
+
import * as Y from "@radix-ui/react-popover";
|
|
12
|
+
import { flexRender as Yi, getCoreRowModel as Xi, getCoreRowModel as Zi, getExpandedRowModel as Qi, getFacetedMinMaxValues as $i, getFacetedRowModel as ea, getFacetedUniqueValues as ta, getFilteredRowModel as na, getGroupedRowModel as ra, getPaginationRowModel as ia, getSortedRowModel as aa, useReactTable as oa } from "@tanstack/react-table";
|
|
13
|
+
import { DndContext as sa, DragOverlay as ca, KeyboardSensor as la, PointerSensor as ua, closestCenter as da, useSensor as fa, useSensors as pa } from "@dnd-kit/core";
|
|
14
|
+
import { restrictToFirstScrollableAncestor as ma, restrictToVerticalAxis as ha } from "@dnd-kit/modifiers";
|
|
15
|
+
import { SortableContext as ga, arrayMove as _a, sortableKeyboardCoordinates as va, useSortable as ya, verticalListSortingStrategy as ba } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as xa } from "@dnd-kit/utilities";
|
|
17
|
+
import { createPortal as Sa } from "react-dom";
|
|
18
|
+
import * as Ca from "@radix-ui/react-scroll-area";
|
|
19
|
+
import { useVirtualizer as wa } from "@tanstack/react-virtual";
|
|
20
|
+
import * as X from "@radix-ui/react-alert-dialog";
|
|
21
|
+
import * as Z from "@radix-ui/react-dialog";
|
|
22
|
+
import * as Q from "@radix-ui/react-select";
|
|
23
|
+
import * as Ta from "@radix-ui/react-toggle-group";
|
|
24
|
+
import * as Ea from "@radix-ui/react-tabs";
|
|
25
|
+
import { useComposedRefs as Da } from "@radix-ui/react-compose-refs";
|
|
26
|
+
import { Toaster as Oa, toast as ka } from "sonner";
|
|
26
27
|
//#region src/components/Badge/Badge.tsx
|
|
27
|
-
var
|
|
28
|
+
var Aa = B("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-[2px]", {
|
|
28
29
|
variants: {
|
|
29
30
|
shape: {
|
|
30
31
|
rect: "aivex:rounded-xs",
|
|
@@ -37,7 +38,7 @@ var ka = B("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-
|
|
|
37
38
|
size: {
|
|
38
39
|
xs: "aivex:h-4 aivex:px-1 aivex:text-label-sm",
|
|
39
40
|
sm: "aivex:h-5 aivex:px-1.5 aivex:text-label-md",
|
|
40
|
-
md: "aivex:h-6 aivex:px-
|
|
41
|
+
md: "aivex:h-6 aivex:px-1 aivex:gap-px aivex:text-label-lg"
|
|
41
42
|
},
|
|
42
43
|
color: {
|
|
43
44
|
blue: "",
|
|
@@ -193,31 +194,34 @@ var ka = B("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-
|
|
|
193
194
|
size: "sm",
|
|
194
195
|
color: "gray"
|
|
195
196
|
}
|
|
196
|
-
}),
|
|
197
|
-
function
|
|
197
|
+
}), ja = "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center";
|
|
198
|
+
function Ma({ className: t, variant: n = "filled", rounded: r = !1, size: i, color: a, startContent: o, endContent: s, children: c, ref: l, ...u }) {
|
|
198
199
|
return /* @__PURE__ */ H("span", {
|
|
199
|
-
ref:
|
|
200
|
-
className:
|
|
201
|
-
shape:
|
|
202
|
-
treatment:
|
|
203
|
-
size:
|
|
204
|
-
color:
|
|
205
|
-
}),
|
|
206
|
-
...
|
|
200
|
+
ref: l,
|
|
201
|
+
className: e(Aa({
|
|
202
|
+
shape: r ? "pill" : "rect",
|
|
203
|
+
treatment: n,
|
|
204
|
+
size: i,
|
|
205
|
+
color: a
|
|
206
|
+
}), t),
|
|
207
|
+
...u,
|
|
207
208
|
children: [
|
|
208
|
-
a && /* @__PURE__ */ V("span", {
|
|
209
|
-
className: Aa,
|
|
210
|
-
children: a
|
|
211
|
-
}),
|
|
212
|
-
s,
|
|
213
209
|
o && /* @__PURE__ */ V("span", {
|
|
214
|
-
className:
|
|
210
|
+
className: ja,
|
|
215
211
|
children: o
|
|
212
|
+
}),
|
|
213
|
+
i === "md" ? /* @__PURE__ */ V("span", {
|
|
214
|
+
className: "aivex:px-0.5",
|
|
215
|
+
children: c
|
|
216
|
+
}) : c,
|
|
217
|
+
s && /* @__PURE__ */ V("span", {
|
|
218
|
+
className: ja,
|
|
219
|
+
children: s
|
|
216
220
|
})
|
|
217
221
|
]
|
|
218
222
|
});
|
|
219
223
|
}
|
|
220
|
-
var
|
|
224
|
+
var Na = B("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
221
225
|
variants: {
|
|
222
226
|
type: {
|
|
223
227
|
essential: "aivex:bg-icon-brand",
|
|
@@ -234,19 +238,19 @@ var Ma = B("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
|
234
238
|
size: "md"
|
|
235
239
|
}
|
|
236
240
|
});
|
|
237
|
-
function
|
|
241
|
+
function Pa({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
238
242
|
return /* @__PURE__ */ V("span", {
|
|
239
|
-
ref:
|
|
240
|
-
className:
|
|
241
|
-
type:
|
|
242
|
-
size:
|
|
243
|
-
}),
|
|
244
|
-
...
|
|
243
|
+
ref: i,
|
|
244
|
+
className: e(Na({
|
|
245
|
+
type: n,
|
|
246
|
+
size: r
|
|
247
|
+
}), t),
|
|
248
|
+
...a
|
|
245
249
|
});
|
|
246
250
|
}
|
|
247
251
|
//#endregion
|
|
248
252
|
//#region src/components/BreadCrumb/BreadCrumb.tsx
|
|
249
|
-
function
|
|
253
|
+
function Fa({ item: e, isCurrent: t }) {
|
|
250
254
|
if (t) return /* @__PURE__ */ V("span", {
|
|
251
255
|
"aria-current": "page",
|
|
252
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",
|
|
@@ -258,37 +262,37 @@ function Pa({ item: e, isCurrent: t }) {
|
|
|
258
262
|
onClick: e.onClick,
|
|
259
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",
|
|
260
264
|
...r,
|
|
261
|
-
children: [/* @__PURE__ */ V(
|
|
265
|
+
children: [/* @__PURE__ */ V(L, { variant: "default" }), e.label]
|
|
262
266
|
});
|
|
263
267
|
}
|
|
264
|
-
function
|
|
268
|
+
function Ia() {
|
|
265
269
|
return /* @__PURE__ */ V("span", {
|
|
266
270
|
"aria-hidden": "true",
|
|
267
271
|
className: "aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0",
|
|
268
272
|
children: "/"
|
|
269
273
|
});
|
|
270
274
|
}
|
|
271
|
-
function
|
|
272
|
-
return /* @__PURE__ */ H(
|
|
275
|
+
function La({ items: e }) {
|
|
276
|
+
return /* @__PURE__ */ H(Fi, { children: [/* @__PURE__ */ V(Fi.Trigger, {
|
|
273
277
|
asChild: !0,
|
|
274
278
|
children: /* @__PURE__ */ H("button", {
|
|
275
279
|
type: "button",
|
|
276
280
|
"aria-label": "숨겨진 경로 보기",
|
|
277
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",
|
|
278
|
-
children: [/* @__PURE__ */ V(
|
|
282
|
+
children: [/* @__PURE__ */ V(L, { variant: "default" }), "···"]
|
|
279
283
|
})
|
|
280
|
-
}), /* @__PURE__ */ V(
|
|
284
|
+
}), /* @__PURE__ */ V(Fi.Content, {
|
|
281
285
|
side: "bottom",
|
|
282
286
|
align: "start",
|
|
283
287
|
children: e.map((e, t) => {
|
|
284
288
|
let n = e.as ?? (e.href ? "a" : "button"), r = n === "button" ? { type: "button" } : {};
|
|
285
|
-
return /* @__PURE__ */ V(
|
|
289
|
+
return /* @__PURE__ */ V(Fi.Item, {
|
|
286
290
|
asChild: !0,
|
|
287
291
|
children: /* @__PURE__ */ H(n, {
|
|
288
292
|
href: e.href,
|
|
289
293
|
onClick: e.onClick,
|
|
290
294
|
...r,
|
|
291
|
-
children: [/* @__PURE__ */ V(
|
|
295
|
+
children: [/* @__PURE__ */ V(L, { variant: "default" }), /* @__PURE__ */ V("span", {
|
|
292
296
|
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
293
297
|
children: e.label
|
|
294
298
|
})]
|
|
@@ -297,36 +301,36 @@ function Ia({ items: e }) {
|
|
|
297
301
|
})
|
|
298
302
|
})] });
|
|
299
303
|
}
|
|
300
|
-
function
|
|
301
|
-
let
|
|
304
|
+
function Ra({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
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;
|
|
302
306
|
return /* @__PURE__ */ V("nav", {
|
|
303
|
-
ref:
|
|
307
|
+
ref: i,
|
|
304
308
|
"aria-label": "Breadcrumb",
|
|
305
|
-
className:
|
|
306
|
-
...
|
|
309
|
+
className: e("aivex:flex aivex:items-center", t),
|
|
310
|
+
...a,
|
|
307
311
|
children: /* @__PURE__ */ V("ol", {
|
|
308
312
|
className: "aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs",
|
|
309
|
-
children:
|
|
313
|
+
children: o ? /* @__PURE__ */ H(Vi, { children: [
|
|
310
314
|
/* @__PURE__ */ V("li", {
|
|
311
315
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
312
|
-
children: /* @__PURE__ */ V(
|
|
316
|
+
children: /* @__PURE__ */ V(Fa, { item: s })
|
|
313
317
|
}),
|
|
314
318
|
/* @__PURE__ */ H("li", {
|
|
315
319
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
316
|
-
children: [/* @__PURE__ */ V(
|
|
320
|
+
children: [/* @__PURE__ */ V(Ia, {}), /* @__PURE__ */ V(La, { items: l })]
|
|
317
321
|
}),
|
|
318
322
|
/* @__PURE__ */ H("li", {
|
|
319
323
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
320
|
-
children: [/* @__PURE__ */ V(
|
|
321
|
-
item:
|
|
324
|
+
children: [/* @__PURE__ */ V(Ia, {}), /* @__PURE__ */ V(Fa, {
|
|
325
|
+
item: c,
|
|
322
326
|
isCurrent: !0
|
|
323
327
|
})]
|
|
324
328
|
})
|
|
325
|
-
] }) :
|
|
329
|
+
] }) : n.map((e, t) => /* @__PURE__ */ H("li", {
|
|
326
330
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
327
|
-
children: [t > 0 && /* @__PURE__ */ V(
|
|
331
|
+
children: [t > 0 && /* @__PURE__ */ V(Ia, {}), /* @__PURE__ */ V(Fa, {
|
|
328
332
|
item: e,
|
|
329
|
-
isCurrent: t ===
|
|
333
|
+
isCurrent: t === u
|
|
330
334
|
})]
|
|
331
335
|
}, t))
|
|
332
336
|
})
|
|
@@ -334,9 +338,6 @@ function La({ className: e, items: t, maxItems: n, ref: r, ...i }) {
|
|
|
334
338
|
}
|
|
335
339
|
//#endregion
|
|
336
340
|
//#region src/components/Calendar/date.ts
|
|
337
|
-
function Ra(e) {
|
|
338
|
-
return String(e).padStart(2, "0");
|
|
339
|
-
}
|
|
340
341
|
function za(e) {
|
|
341
342
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
342
343
|
}
|
|
@@ -352,92 +353,100 @@ function Ha(e, t) {
|
|
|
352
353
|
function Ua(e) {
|
|
353
354
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
354
355
|
}
|
|
355
|
-
function Wa(e) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
let
|
|
361
|
-
for (let
|
|
362
|
-
|
|
356
|
+
function Wa(e, t) {
|
|
357
|
+
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
358
|
+
}
|
|
359
|
+
function Ga(e, t = 0) {
|
|
360
|
+
let n = Ua(e), r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
|
|
361
|
+
for (let e = 0; e < (n.getDay() - t + 7) % 7; e++) i.push(null);
|
|
362
|
+
for (let t = 1; t <= r; t++) i.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
363
|
+
for (; i.length < 42;) i.push(null);
|
|
364
|
+
let a = [];
|
|
365
|
+
for (let e = 0; e < i.length; e += 7) a.push(i.slice(e, e + 7));
|
|
366
|
+
return a;
|
|
363
367
|
}
|
|
364
368
|
//#endregion
|
|
365
369
|
//#region src/components/Calendar/Calendar.tsx
|
|
366
|
-
var
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
370
|
+
var Ka = [
|
|
371
|
+
"SUNDAY",
|
|
372
|
+
"MONDAY",
|
|
373
|
+
"TUESDAY",
|
|
374
|
+
"WEDNESDAY",
|
|
375
|
+
"THURSDAY",
|
|
376
|
+
"FRIDAY",
|
|
377
|
+
"SATURDAY"
|
|
374
378
|
];
|
|
375
|
-
function
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
379
|
+
function qa({ 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 } = Ji(() => ({
|
|
381
|
+
monthFormatter: new Intl.DateTimeFormat(t, {
|
|
382
|
+
calendar: "gregory",
|
|
383
|
+
year: "numeric",
|
|
384
|
+
month: "long"
|
|
385
|
+
}),
|
|
386
|
+
weekdayFormatter: new Intl.DateTimeFormat(t, { weekday: "short" }),
|
|
387
|
+
dayFormatter: new Intl.NumberFormat(t, { useGrouping: !1 })
|
|
388
|
+
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w = Ga(a, C), T = [...Ka.slice(C), ...Ka.slice(0, C)], E = s ?? o ?? null, D = c ?? o ?? null, O = !!(E && D && !Ba(E, D)), k = (e) => d && Va(e, d) || f && Ha(e, f) ? !0 : p ? p(e) : !1, A = (e) => u?.some((t) => Ba(t, e)) ?? !1;
|
|
380
389
|
return /* @__PURE__ */ H("div", {
|
|
381
|
-
className:
|
|
390
|
+
className: e("aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg", v),
|
|
382
391
|
children: [/* @__PURE__ */ H("div", {
|
|
383
392
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-md",
|
|
384
393
|
children: [
|
|
385
|
-
/* @__PURE__ */ V(Ja, { children:
|
|
394
|
+
/* @__PURE__ */ V(Ja, { children: m && /* @__PURE__ */ V(R, {
|
|
386
395
|
variant: "outline",
|
|
387
396
|
color: "secondary",
|
|
388
397
|
size: "icon-md",
|
|
389
|
-
"aria-label":
|
|
390
|
-
onClick:
|
|
391
|
-
children: /* @__PURE__ */ V(
|
|
398
|
+
"aria-label": r ?? y.format(Wa(a, -1)),
|
|
399
|
+
onClick: m,
|
|
400
|
+
children: /* @__PURE__ */ V(Tt, { size: 20 })
|
|
392
401
|
}) }),
|
|
393
402
|
/* @__PURE__ */ V("span", {
|
|
394
403
|
className: "aivex:flex-1 aivex:text-center aivex:text-heading-sm aivex:text-text-primary aivex:select-none",
|
|
395
|
-
children:
|
|
404
|
+
children: S
|
|
396
405
|
}),
|
|
397
|
-
/* @__PURE__ */ V(Ja, { children:
|
|
406
|
+
/* @__PURE__ */ V(Ja, { children: h && /* @__PURE__ */ V(R, {
|
|
398
407
|
variant: "outline",
|
|
399
408
|
color: "secondary",
|
|
400
409
|
size: "icon-md",
|
|
401
|
-
"aria-label":
|
|
402
|
-
onClick:
|
|
403
|
-
children: /* @__PURE__ */ V(
|
|
410
|
+
"aria-label": i ?? y.format(Wa(a, 1)),
|
|
411
|
+
onClick: h,
|
|
412
|
+
children: /* @__PURE__ */ V(Ft, { size: 20 })
|
|
404
413
|
}) })
|
|
405
414
|
]
|
|
406
415
|
}), /* @__PURE__ */ H("div", {
|
|
407
416
|
className: "aivex:flex aivex:flex-col aivex:gap-xs",
|
|
408
417
|
children: [/* @__PURE__ */ V("div", {
|
|
409
418
|
className: "aivex:flex",
|
|
410
|
-
children:
|
|
411
|
-
className:
|
|
412
|
-
children:
|
|
413
|
-
},
|
|
414
|
-
}),
|
|
419
|
+
children: T.map((t) => /* @__PURE__ */ V("span", {
|
|
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 + Ka.indexOf(t)))
|
|
422
|
+
}, t))
|
|
423
|
+
}), w.map((t, n) => /* @__PURE__ */ V("div", {
|
|
415
424
|
className: "aivex:flex",
|
|
416
|
-
children:
|
|
417
|
-
if (!
|
|
418
|
-
let
|
|
425
|
+
children: t.map((t, n) => {
|
|
426
|
+
if (!t) return /* @__PURE__ */ V("span", { className: "aivex:size-10" }, n);
|
|
427
|
+
let r = k(t), i = !!(E && Ba(t, E)), a = !!(D && Ba(t, D)), o = i || a, s = O && E && D && !Va(t, E) && !Ha(t, D), c = t.getDay() === 0;
|
|
419
428
|
return /* @__PURE__ */ H("button", {
|
|
420
429
|
type: "button",
|
|
421
|
-
disabled:
|
|
422
|
-
onClick: () =>
|
|
430
|
+
disabled: r,
|
|
431
|
+
onClick: () => l?.(t),
|
|
423
432
|
"aria-pressed": o,
|
|
424
|
-
className:
|
|
433
|
+
className: e("aivex:group aivex:relative aivex:size-10 aivex:cursor-pointer aivex:select-none", "aivex:outline-none aivex:focus-visible:z-10 aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:focus-visible:rounded-md", r && "aivex:pointer-events-none"),
|
|
425
434
|
children: [
|
|
426
|
-
s && /* @__PURE__ */ V("span", { className:
|
|
435
|
+
s && /* @__PURE__ */ V("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") }),
|
|
427
436
|
o && /* @__PURE__ */ V("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" }),
|
|
428
|
-
!
|
|
437
|
+
!r && /* @__PURE__ */ V(L, {
|
|
429
438
|
fill: !1,
|
|
430
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"
|
|
431
440
|
}),
|
|
432
441
|
/* @__PURE__ */ V("span", {
|
|
433
|
-
className:
|
|
434
|
-
children:
|
|
442
|
+
className: e("aivex:relative aivex:text-label-lg", r ? "aivex:text-text-disabled" : o ? "aivex:text-text-on-color" : c ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
443
|
+
children: x.format(t.getDate())
|
|
435
444
|
}),
|
|
436
|
-
!
|
|
445
|
+
!r && A(t) && /* @__PURE__ */ V("span", { className: e("aivex:absolute aivex:top-1 aivex:left-[calc(50%+11px)] aivex:size-1.5 aivex:-translate-x-1/2 aivex:rounded-full", o ? "aivex:bg-icon-on-color" : "aivex:bg-icon-brand") })
|
|
437
446
|
]
|
|
438
|
-
},
|
|
447
|
+
}, t.getTime());
|
|
439
448
|
})
|
|
440
|
-
},
|
|
449
|
+
}, n))]
|
|
441
450
|
})]
|
|
442
451
|
});
|
|
443
452
|
}
|
|
@@ -449,18 +458,18 @@ function Ja({ children: e }) {
|
|
|
449
458
|
}
|
|
450
459
|
//#endregion
|
|
451
460
|
//#region src/components/Card/Card.tsx
|
|
452
|
-
function Ya({ className:
|
|
453
|
-
return /* @__PURE__ */ V(
|
|
454
|
-
ref:
|
|
455
|
-
className:
|
|
456
|
-
"aria-disabled":
|
|
457
|
-
"data-disabled":
|
|
458
|
-
tabIndex:
|
|
459
|
-
onClick:
|
|
460
|
-
onDoubleClick:
|
|
461
|
-
onKeyDown:
|
|
462
|
-
...
|
|
463
|
-
children:
|
|
461
|
+
function Ya({ 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
|
+
return /* @__PURE__ */ V(a ? U : "div", {
|
|
463
|
+
ref: s,
|
|
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"),
|
|
465
|
+
"aria-disabled": i || f || void 0,
|
|
466
|
+
"data-disabled": i ? "" : void 0,
|
|
467
|
+
tabIndex: i ? -1 : d,
|
|
468
|
+
onClick: i ? void 0 : c,
|
|
469
|
+
onDoubleClick: i ? void 0 : l,
|
|
470
|
+
onKeyDown: i ? void 0 : u,
|
|
471
|
+
...p,
|
|
472
|
+
children: o
|
|
464
473
|
});
|
|
465
474
|
}
|
|
466
475
|
//#endregion
|
|
@@ -478,69 +487,69 @@ var Xa = B("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:borde
|
|
|
478
487
|
sm: "aivex:h-5",
|
|
479
488
|
md: "aivex:h-6"
|
|
480
489
|
};
|
|
481
|
-
function $a({ className:
|
|
482
|
-
let
|
|
490
|
+
function $a({ className: t, label: n, size: r = "md", indeterminate: i = !1, disabled: a, checked: o, defaultChecked: s, onChange: c, id: l, ref: u, ...d }) {
|
|
491
|
+
let f = q(null), p = o !== void 0, [m, h] = J(!!s), g = typeof u == "object" && u ? u : f;
|
|
483
492
|
G(() => {
|
|
484
|
-
|
|
485
|
-
}, [
|
|
486
|
-
let
|
|
493
|
+
g && "current" in g && g.current && (g.current.indeterminate = i);
|
|
494
|
+
}, [i, g]);
|
|
495
|
+
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S = K(), C = l ?? S;
|
|
487
496
|
return /* @__PURE__ */ H("span", {
|
|
488
|
-
className:
|
|
497
|
+
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", a && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
489
498
|
children: [/* @__PURE__ */ H("span", {
|
|
490
|
-
className:
|
|
499
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", Za[y]),
|
|
491
500
|
children: [
|
|
492
501
|
/* @__PURE__ */ V("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" }),
|
|
493
502
|
/* @__PURE__ */ V("input", {
|
|
494
|
-
ref:
|
|
495
|
-
id:
|
|
503
|
+
ref: g,
|
|
504
|
+
id: C,
|
|
496
505
|
type: "checkbox",
|
|
497
|
-
disabled:
|
|
498
|
-
checked:
|
|
506
|
+
disabled: a,
|
|
507
|
+
checked: _,
|
|
499
508
|
onChange: (e) => {
|
|
500
|
-
|
|
509
|
+
p || h(e.target.checked), c?.(e);
|
|
501
510
|
},
|
|
502
|
-
className:
|
|
503
|
-
...
|
|
511
|
+
className: e(Xa({ size: y }), x && "aivex:border-border-danger", v && "aivex:border-transparent aivex:bg-bg-brand", t),
|
|
512
|
+
...d
|
|
504
513
|
}),
|
|
505
|
-
|
|
514
|
+
v && /* @__PURE__ */ V("span", {
|
|
506
515
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
507
|
-
children: V(
|
|
516
|
+
children: V(i ? Fr : Fn, { size: y })
|
|
508
517
|
})
|
|
509
518
|
]
|
|
510
|
-
}),
|
|
511
|
-
htmlFor:
|
|
512
|
-
className:
|
|
513
|
-
children:
|
|
519
|
+
}), n && /* @__PURE__ */ V("label", {
|
|
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", Qa[y]),
|
|
522
|
+
children: n
|
|
514
523
|
})]
|
|
515
524
|
});
|
|
516
525
|
}
|
|
517
526
|
//#endregion
|
|
518
527
|
//#region src/components/Checkbox/ChipsCheckbox.tsx
|
|
519
|
-
function eo({ className:
|
|
520
|
-
let
|
|
528
|
+
function eo({ className: t, disabled: n, checked: r, defaultChecked: i, onChange: a, onClick: o, id: s, ref: c, ...l }) {
|
|
529
|
+
let u = r !== void 0, [d, f] = J(!!i), p = u ? !!r : d;
|
|
521
530
|
return /* @__PURE__ */ H("label", {
|
|
522
|
-
onClick:
|
|
523
|
-
className:
|
|
531
|
+
onClick: o,
|
|
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),
|
|
524
533
|
children: [
|
|
525
|
-
/* @__PURE__ */ V(
|
|
534
|
+
/* @__PURE__ */ V(L, {}),
|
|
526
535
|
/* @__PURE__ */ V("input", {
|
|
527
|
-
ref:
|
|
528
|
-
id:
|
|
536
|
+
ref: c,
|
|
537
|
+
id: s,
|
|
529
538
|
type: "checkbox",
|
|
530
|
-
disabled:
|
|
531
|
-
checked:
|
|
539
|
+
disabled: n,
|
|
540
|
+
checked: p,
|
|
532
541
|
onChange: (e) => {
|
|
533
|
-
|
|
542
|
+
u || f(e.target.checked), a?.(e);
|
|
534
543
|
},
|
|
535
544
|
onClick: (e) => e.stopPropagation(),
|
|
536
545
|
className: "aivex:sr-only",
|
|
537
|
-
...
|
|
546
|
+
...l
|
|
538
547
|
}),
|
|
539
548
|
/* @__PURE__ */ H("span", {
|
|
540
549
|
className: "aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0",
|
|
541
|
-
children: [/* @__PURE__ */ V("span", { className:
|
|
550
|
+
children: [/* @__PURE__ */ V("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__ */ V("span", {
|
|
542
551
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
543
|
-
children: /* @__PURE__ */ V(
|
|
552
|
+
children: /* @__PURE__ */ V(Fn, { size: "sm" })
|
|
544
553
|
})]
|
|
545
554
|
})
|
|
546
555
|
]
|
|
@@ -618,112 +627,112 @@ var to = B("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex a
|
|
|
618
627
|
active: !1
|
|
619
628
|
}
|
|
620
629
|
});
|
|
621
|
-
function no({ className:
|
|
622
|
-
let
|
|
630
|
+
function no({ className: t, shape: n, size: r, variant: i, active: a, defaultActive: o, startContent: s, endContent: c, children: l, ref: u, onClick: d, type: f = "button", ...p }) {
|
|
631
|
+
let m = a !== void 0, [h, g] = J(!!o);
|
|
623
632
|
return /* @__PURE__ */ H("button", {
|
|
624
|
-
ref:
|
|
625
|
-
type:
|
|
626
|
-
className:
|
|
627
|
-
shape:
|
|
628
|
-
size:
|
|
629
|
-
variant:
|
|
630
|
-
active:
|
|
631
|
-
}),
|
|
633
|
+
ref: u,
|
|
634
|
+
type: f,
|
|
635
|
+
className: e(to({
|
|
636
|
+
shape: n,
|
|
637
|
+
size: r,
|
|
638
|
+
variant: i,
|
|
639
|
+
active: m ? !!a : h
|
|
640
|
+
}), t),
|
|
632
641
|
onClick: (e) => {
|
|
633
|
-
|
|
642
|
+
m || g((e) => !e), d?.(e);
|
|
634
643
|
},
|
|
635
|
-
...
|
|
636
|
-
children: [/* @__PURE__ */ V(
|
|
637
|
-
|
|
644
|
+
...p,
|
|
645
|
+
children: [/* @__PURE__ */ V(L, {}), s || c ? /* @__PURE__ */ H(Vi, { children: [
|
|
646
|
+
s && /* @__PURE__ */ V("span", {
|
|
638
647
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
639
|
-
children:
|
|
648
|
+
children: s
|
|
640
649
|
}),
|
|
641
650
|
/* @__PURE__ */ V("span", {
|
|
642
651
|
className: "aivex:min-w-0 aivex:truncate aivex:px-2xs",
|
|
643
|
-
children:
|
|
652
|
+
children: l
|
|
644
653
|
}),
|
|
645
|
-
|
|
654
|
+
c && /* @__PURE__ */ V("span", {
|
|
646
655
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
647
|
-
children:
|
|
656
|
+
children: c
|
|
648
657
|
})
|
|
649
|
-
] }) :
|
|
658
|
+
] }) : l]
|
|
650
659
|
});
|
|
651
660
|
}
|
|
652
661
|
//#endregion
|
|
653
662
|
//#region src/components/Chips/index.ts
|
|
654
|
-
var ro = no, io = to, ao =
|
|
655
|
-
function oo({ button:
|
|
656
|
-
let { children:
|
|
657
|
-
return /* @__PURE__ */ V(
|
|
658
|
-
variant:
|
|
663
|
+
var ro = no, io = to, ao = 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 oo({ button: t, variant: n, className: r }) {
|
|
665
|
+
let { children: i, ...a } = t;
|
|
666
|
+
return /* @__PURE__ */ V(R, {
|
|
667
|
+
variant: n,
|
|
659
668
|
color: "primary",
|
|
660
669
|
size: "md",
|
|
661
|
-
className:
|
|
662
|
-
...
|
|
663
|
-
children:
|
|
670
|
+
className: e("aivex:text-text-on-color", r),
|
|
671
|
+
...a,
|
|
672
|
+
children: i
|
|
664
673
|
});
|
|
665
674
|
}
|
|
666
675
|
function so(e) {
|
|
667
|
-
return /* @__PURE__ */ V(
|
|
676
|
+
return /* @__PURE__ */ V(Y.Root, { ...e });
|
|
668
677
|
}
|
|
669
678
|
function co({ ref: e, ...t }) {
|
|
670
|
-
return /* @__PURE__ */ V(
|
|
679
|
+
return /* @__PURE__ */ V(Y.Trigger, {
|
|
671
680
|
ref: e,
|
|
672
681
|
...t
|
|
673
682
|
});
|
|
674
683
|
}
|
|
675
684
|
function lo(e) {
|
|
676
|
-
return /* @__PURE__ */ V(
|
|
685
|
+
return /* @__PURE__ */ V(Y.Anchor, { ...e });
|
|
677
686
|
}
|
|
678
|
-
function uo({ className:
|
|
679
|
-
let
|
|
680
|
-
return /* @__PURE__ */ V(
|
|
681
|
-
ref:
|
|
682
|
-
sideOffset:
|
|
687
|
+
function uo({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryButton: a, secondaryButton: s, primaryButton: c, onClose: l, closeAriaLabel: u = "닫기", ref: d, ...f }) {
|
|
688
|
+
let p = !!(a || s || c);
|
|
689
|
+
return /* @__PURE__ */ V(Y.Portal, { children: /* @__PURE__ */ H(Y.Content, {
|
|
690
|
+
ref: d,
|
|
691
|
+
sideOffset: n,
|
|
683
692
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
684
|
-
className:
|
|
685
|
-
...
|
|
693
|
+
className: e(ao, t),
|
|
694
|
+
...f,
|
|
686
695
|
children: [
|
|
687
|
-
(
|
|
696
|
+
(r != null || l != null) && /* @__PURE__ */ H("div", {
|
|
688
697
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-2.5 aivex:px-xs",
|
|
689
698
|
children: [/* @__PURE__ */ V("div", {
|
|
690
699
|
className: "aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg",
|
|
691
|
-
children:
|
|
692
|
-
}),
|
|
693
|
-
"aria-label":
|
|
700
|
+
children: r
|
|
701
|
+
}), l != null && /* @__PURE__ */ V(o, {
|
|
702
|
+
"aria-label": u,
|
|
694
703
|
color: "white",
|
|
695
704
|
size: "xs",
|
|
696
|
-
onClick:
|
|
697
|
-
children: /* @__PURE__ */ V(
|
|
705
|
+
onClick: l,
|
|
706
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
698
707
|
})]
|
|
699
708
|
}),
|
|
700
709
|
/* @__PURE__ */ V("div", {
|
|
701
710
|
className: "aivex:flex aivex:max-h-[200px] aivex:min-h-[40px] aivex:w-full aivex:flex-col aivex:gap-md aivex:overflow-y-auto aivex:text-body-md-regular",
|
|
702
|
-
children:
|
|
711
|
+
children: i
|
|
703
712
|
}),
|
|
704
|
-
|
|
713
|
+
p && /* @__PURE__ */ H("div", {
|
|
705
714
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md",
|
|
706
715
|
children: [/* @__PURE__ */ V("div", {
|
|
707
716
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start",
|
|
708
|
-
children:
|
|
709
|
-
button:
|
|
717
|
+
children: a && /* @__PURE__ */ V(oo, {
|
|
718
|
+
button: a,
|
|
710
719
|
variant: "ghost",
|
|
711
720
|
className: "aivex:min-w-9"
|
|
712
721
|
})
|
|
713
722
|
}), /* @__PURE__ */ H("div", {
|
|
714
723
|
className: "aivex:flex aivex:items-start aivex:gap-md",
|
|
715
|
-
children: [
|
|
716
|
-
button:
|
|
724
|
+
children: [s && /* @__PURE__ */ V(oo, {
|
|
725
|
+
button: s,
|
|
717
726
|
variant: "ghost",
|
|
718
727
|
className: "aivex:min-w-[60px]"
|
|
719
|
-
}),
|
|
720
|
-
button:
|
|
728
|
+
}), c && /* @__PURE__ */ V(oo, {
|
|
729
|
+
button: c,
|
|
721
730
|
variant: "solid",
|
|
722
731
|
className: "aivex:min-w-[60px]"
|
|
723
732
|
})]
|
|
724
733
|
})]
|
|
725
734
|
}),
|
|
726
|
-
/* @__PURE__ */ V(
|
|
735
|
+
/* @__PURE__ */ V(Y.Arrow, {
|
|
727
736
|
width: 20,
|
|
728
737
|
height: 10,
|
|
729
738
|
className: "aivex:fill-static-gray"
|
|
@@ -738,266 +747,202 @@ var fo = Object.assign(so, {
|
|
|
738
747
|
});
|
|
739
748
|
//#endregion
|
|
740
749
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
741
|
-
function po({ className:
|
|
742
|
-
return /* @__PURE__ */ V(
|
|
743
|
-
ref: n,
|
|
744
|
-
"aria-hidden": "true",
|
|
745
|
-
className: I("aivex-skeleton aivex:rounded-md", e),
|
|
746
|
-
...r
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region src/components/Popover/Popover.tsx
|
|
751
|
-
var mo = I("aivex:flex aivex:flex-col aivex:gap-lg aivex:w-[277px] aivex:max-h-[448px] aivex:p-xl", "aivex:bg-bg-primary aivex:border aivex:border-border-subtle aivex:rounded-xl aivex:shadow-md aivex:overflow-clip", "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");
|
|
752
|
-
function ho(e) {
|
|
753
|
-
return /* @__PURE__ */ V(J.Root, { ...e });
|
|
754
|
-
}
|
|
755
|
-
function go({ ref: e, ...t }) {
|
|
756
|
-
return /* @__PURE__ */ V(J.Trigger, {
|
|
757
|
-
ref: e,
|
|
758
|
-
...t
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
function _o(e) {
|
|
762
|
-
return /* @__PURE__ */ V(J.Anchor, { ...e });
|
|
763
|
-
}
|
|
764
|
-
function vo({ ref: e, ...t }) {
|
|
765
|
-
return /* @__PURE__ */ V(J.Close, {
|
|
766
|
-
ref: e,
|
|
767
|
-
...t
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
function yo({ className: e, sideOffset: t = 8, align: n = "start", ref: r, ...i }) {
|
|
771
|
-
return /* @__PURE__ */ V(J.Portal, { children: /* @__PURE__ */ V(J.Content, {
|
|
750
|
+
function po({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
751
|
+
return /* @__PURE__ */ V(n ? U : "div", {
|
|
772
752
|
ref: r,
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
className: I(mo, e),
|
|
753
|
+
"aria-hidden": "true",
|
|
754
|
+
className: e("aivex-skeleton aivex:rounded-md", t),
|
|
776
755
|
...i
|
|
777
|
-
}) });
|
|
778
|
-
}
|
|
779
|
-
function bo({ className: e, ref: t, ...n }) {
|
|
780
|
-
return /* @__PURE__ */ V("div", {
|
|
781
|
-
ref: t,
|
|
782
|
-
className: I("aivex:w-full aivex:px-xs aivex:text-body-md-medium aivex:text-text-primary aivex:truncate", e),
|
|
783
|
-
...n
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
function xo({ className: e, ref: t, ...n }) {
|
|
787
|
-
return /* @__PURE__ */ V("div", {
|
|
788
|
-
ref: t,
|
|
789
|
-
className: I("aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-1 aivex:flex-col aivex:gap-md aivex:overflow-y-auto", e),
|
|
790
|
-
...n
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
function So({ className: e, start: t, children: n, ref: r, ...i }) {
|
|
794
|
-
return /* @__PURE__ */ H("div", {
|
|
795
|
-
ref: r,
|
|
796
|
-
className: I("aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md", e),
|
|
797
|
-
...i,
|
|
798
|
-
children: [t && /* @__PURE__ */ V("div", {
|
|
799
|
-
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:items-start aivex:justify-center",
|
|
800
|
-
children: t
|
|
801
|
-
}), n]
|
|
802
756
|
});
|
|
803
757
|
}
|
|
804
|
-
var Q = Object.assign(ho, {
|
|
805
|
-
Trigger: go,
|
|
806
|
-
Anchor: _o,
|
|
807
|
-
Close: vo,
|
|
808
|
-
Content: yo,
|
|
809
|
-
Title: bo,
|
|
810
|
-
Body: xo,
|
|
811
|
-
Footer: So
|
|
812
|
-
});
|
|
813
758
|
//#endregion
|
|
814
759
|
//#region src/components/ScrollArea/ScrollArea.tsx
|
|
815
|
-
function
|
|
816
|
-
let
|
|
817
|
-
return /* @__PURE__ */ H(
|
|
818
|
-
ref:
|
|
819
|
-
className:
|
|
820
|
-
type:
|
|
821
|
-
...
|
|
760
|
+
function mo({ className: t, children: n, edgeFade: r, onViewportScroll: i, ref: a, scrollbars: o = "vertical", type: s = "hover", verticalScrollbarClassName: c, viewportClassName: l, viewportRef: u, ...d }) {
|
|
761
|
+
let f = o === "vertical" || o === "both", p = o === "horizontal" || o === "both";
|
|
762
|
+
return /* @__PURE__ */ H(Ca.Root, {
|
|
763
|
+
ref: a,
|
|
764
|
+
className: e("aivex:relative aivex:overflow-hidden", t),
|
|
765
|
+
type: s,
|
|
766
|
+
...d,
|
|
822
767
|
children: [
|
|
823
|
-
/* @__PURE__ */ V(
|
|
824
|
-
ref:
|
|
825
|
-
className:
|
|
826
|
-
onScroll:
|
|
827
|
-
children:
|
|
768
|
+
/* @__PURE__ */ V(Ca.Viewport, {
|
|
769
|
+
ref: u,
|
|
770
|
+
className: e("aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full", r && "aivex:scroll-fade-y", l),
|
|
771
|
+
onScroll: i,
|
|
772
|
+
children: n
|
|
828
773
|
}),
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
/* @__PURE__ */ V(
|
|
774
|
+
f ? /* @__PURE__ */ V(ho, { className: c }) : null,
|
|
775
|
+
p ? /* @__PURE__ */ V(ho, { orientation: "horizontal" }) : null,
|
|
776
|
+
/* @__PURE__ */ V(Ca.Corner, {})
|
|
832
777
|
]
|
|
833
778
|
});
|
|
834
779
|
}
|
|
835
|
-
function
|
|
836
|
-
return /* @__PURE__ */ V(
|
|
837
|
-
ref:
|
|
838
|
-
orientation:
|
|
839
|
-
className:
|
|
840
|
-
...
|
|
841
|
-
children: /* @__PURE__ */ H(
|
|
780
|
+
function ho({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
781
|
+
return /* @__PURE__ */ V(Ca.Scrollbar, {
|
|
782
|
+
ref: r,
|
|
783
|
+
orientation: n,
|
|
784
|
+
className: e("aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors", n === "vertical" && "aivex:h-full aivex:w-2.5", n === "horizontal" && "aivex:h-2.5 aivex:flex-col", t),
|
|
785
|
+
...i,
|
|
786
|
+
children: /* @__PURE__ */ H(Ca.Thumb, {
|
|
842
787
|
className: "aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary",
|
|
843
|
-
children: [/* @__PURE__ */ V("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ V(
|
|
788
|
+
children: [/* @__PURE__ */ V("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ V(L, { variant: "strong" })]
|
|
844
789
|
})
|
|
845
790
|
});
|
|
846
791
|
}
|
|
847
792
|
//#endregion
|
|
848
793
|
//#region src/components/DataGrid/DataGridColumnSettings.tsx
|
|
849
|
-
var
|
|
850
|
-
function
|
|
794
|
+
var go = 32, _o = 4, vo = 200;
|
|
795
|
+
function yo(e) {
|
|
851
796
|
let { header: t, meta: n } = e.columnDef;
|
|
852
797
|
return n?.settingsLabel ? n.settingsLabel : typeof t == "string" ? t : e.id;
|
|
853
798
|
}
|
|
854
|
-
var
|
|
855
|
-
function
|
|
856
|
-
let { attributes:
|
|
799
|
+
var bo = "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", xo = "aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg aivex:text-text-primary", So = "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", Co = "aivex:absolute aivex:-inset-xs aivex:rounded-sm aivex:bg-bg-inverse-strong aivex:transition-opacity";
|
|
800
|
+
function wo({ column: t }) {
|
|
801
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = ya({ id: t.id });
|
|
857
802
|
return /* @__PURE__ */ H("div", {
|
|
858
|
-
ref:
|
|
803
|
+
ref: i,
|
|
859
804
|
style: {
|
|
860
|
-
transform:
|
|
861
|
-
transition:
|
|
805
|
+
transform: xa.Transform.toString(a),
|
|
806
|
+
transition: o
|
|
862
807
|
},
|
|
863
|
-
className:
|
|
808
|
+
className: e(bo, s && "aivex:opacity-0"),
|
|
864
809
|
children: [
|
|
865
|
-
!
|
|
810
|
+
!s && /* @__PURE__ */ V("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" }),
|
|
866
811
|
/* @__PURE__ */ V($a, {
|
|
867
812
|
size: "sm",
|
|
868
|
-
checked:
|
|
869
|
-
disabled: !
|
|
870
|
-
onChange:
|
|
813
|
+
checked: t.getIsVisible(),
|
|
814
|
+
disabled: !t.getCanHide(),
|
|
815
|
+
onChange: t.getToggleVisibilityHandler()
|
|
871
816
|
}),
|
|
872
817
|
/* @__PURE__ */ V("span", {
|
|
873
|
-
className:
|
|
874
|
-
children:
|
|
818
|
+
className: xo,
|
|
819
|
+
children: yo(t)
|
|
875
820
|
}),
|
|
876
821
|
/* @__PURE__ */ H("span", {
|
|
877
|
-
...t,
|
|
878
822
|
...n,
|
|
879
|
-
|
|
880
|
-
|
|
823
|
+
...r,
|
|
824
|
+
className: e(So, "aivex:cursor-grab aivex:active:cursor-grabbing"),
|
|
825
|
+
children: [/* @__PURE__ */ V("span", { className: e(Co, "aivex:opacity-0 aivex:group-hover/handle:opacity-4 aivex:group-active/handle:opacity-8") }), /* @__PURE__ */ V(Gt, { size: 20 })]
|
|
881
826
|
})
|
|
882
827
|
]
|
|
883
828
|
});
|
|
884
829
|
}
|
|
885
|
-
function
|
|
830
|
+
function To({ column: t }) {
|
|
886
831
|
return /* @__PURE__ */ H("div", {
|
|
887
|
-
className:
|
|
832
|
+
className: e(bo, "aivex:cursor-grabbing aivex:bg-bg-secondary aivex:shadow-xl"),
|
|
888
833
|
children: [
|
|
889
834
|
/* @__PURE__ */ V($a, {
|
|
890
835
|
size: "sm",
|
|
891
|
-
checked:
|
|
892
|
-
disabled: !
|
|
836
|
+
checked: t.getIsVisible(),
|
|
837
|
+
disabled: !t.getCanHide(),
|
|
893
838
|
readOnly: !0
|
|
894
839
|
}),
|
|
895
840
|
/* @__PURE__ */ V("span", {
|
|
896
|
-
className:
|
|
897
|
-
children:
|
|
841
|
+
className: xo,
|
|
842
|
+
children: yo(t)
|
|
898
843
|
}),
|
|
899
844
|
/* @__PURE__ */ H("span", {
|
|
900
|
-
className:
|
|
901
|
-
children: [/* @__PURE__ */ V("span", { className:
|
|
845
|
+
className: So,
|
|
846
|
+
children: [/* @__PURE__ */ V("span", { className: e(Co, "aivex:opacity-8") }), /* @__PURE__ */ V(Gt, { size: 20 })]
|
|
902
847
|
})
|
|
903
848
|
]
|
|
904
849
|
});
|
|
905
850
|
}
|
|
906
|
-
function
|
|
907
|
-
let [
|
|
851
|
+
function Eo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화", excludeColumnIds: i, triggerLabel: a = "컬럼 설정" }) {
|
|
852
|
+
let [o, s] = J(!1), [c, l] = J(!1), [u, d] = J(!1), f = u || c || o, p = q(null), [m, h] = J(null), g = q(void 0), _ = W(() => window.clearTimeout(g.current), []);
|
|
908
853
|
G(() => {
|
|
909
|
-
let e =
|
|
854
|
+
let e = p.current?.parentElement;
|
|
910
855
|
if (!e) return;
|
|
911
856
|
let t = (e) => e instanceof Element && !!e.closest("[data-datagrid-header]"), n = (e) => {
|
|
912
|
-
t(e.target) && (
|
|
857
|
+
t(e.target) && (_(), d(!0));
|
|
913
858
|
}, r = (e) => {
|
|
914
|
-
!t(e.target) || t(e.relatedTarget) || (
|
|
859
|
+
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1), vo));
|
|
915
860
|
};
|
|
916
861
|
return e.addEventListener("mouseover", n), e.addEventListener("mouseout", r), () => {
|
|
917
|
-
|
|
862
|
+
_(), e.removeEventListener("mouseover", n), e.removeEventListener("mouseout", r);
|
|
918
863
|
};
|
|
919
|
-
}, [
|
|
864
|
+
}, [_]), G(() => {
|
|
920
865
|
let e = () => {
|
|
921
|
-
let e =
|
|
866
|
+
let e = p.current?.parentElement;
|
|
922
867
|
if (!e) return;
|
|
923
868
|
let t = e.getBoundingClientRect(), n = e.querySelector("[data-datagrid-header]")?.getBoundingClientRect();
|
|
924
|
-
|
|
925
|
-
top: (n?.top ?? t.top) + ((n?.height ?? 48) -
|
|
926
|
-
left: t.left -
|
|
869
|
+
h({
|
|
870
|
+
top: (n?.top ?? t.top) + ((n?.height ?? 48) - go) / 2,
|
|
871
|
+
left: t.left - _o - go
|
|
927
872
|
});
|
|
928
873
|
};
|
|
929
|
-
if (e(),
|
|
874
|
+
if (e(), f) return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
930
875
|
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
931
876
|
};
|
|
932
|
-
}, [
|
|
933
|
-
let
|
|
877
|
+
}, [f]);
|
|
878
|
+
let v = pa(fa(ua), fa(la, { coordinateGetter: va })), y = t.getAllLeafColumns(), b = y.filter((e) => !i?.includes(e.id)), x = b.map((e) => e.id), [S, C] = J(null), w = m ? /* @__PURE__ */ V("div", {
|
|
934
879
|
style: {
|
|
935
880
|
position: "fixed",
|
|
936
|
-
top:
|
|
937
|
-
left:
|
|
881
|
+
top: m.top,
|
|
882
|
+
left: m.left
|
|
938
883
|
},
|
|
939
|
-
className:
|
|
884
|
+
className: e("aivex:pr-xs aivex:transition-opacity aivex:focus-within:opacity-100", f ? "aivex:opacity-100" : "aivex:pointer-events-none aivex:opacity-0"),
|
|
940
885
|
onMouseEnter: () => {
|
|
941
|
-
|
|
886
|
+
_(), l(!0);
|
|
942
887
|
},
|
|
943
|
-
onMouseLeave: () =>
|
|
944
|
-
children: /* @__PURE__ */ H(
|
|
945
|
-
open:
|
|
946
|
-
onOpenChange:
|
|
947
|
-
children: [/* @__PURE__ */ V(
|
|
888
|
+
onMouseLeave: () => l(!1),
|
|
889
|
+
children: /* @__PURE__ */ H(Bi, {
|
|
890
|
+
open: o,
|
|
891
|
+
onOpenChange: s,
|
|
892
|
+
children: [/* @__PURE__ */ V(Bi.Trigger, {
|
|
948
893
|
asChild: !0,
|
|
949
|
-
children: /* @__PURE__ */ V(
|
|
894
|
+
children: /* @__PURE__ */ V(R, {
|
|
950
895
|
size: "icon-md",
|
|
951
896
|
variant: "outline",
|
|
952
897
|
color: "secondary",
|
|
953
|
-
"aria-label":
|
|
898
|
+
"aria-label": a,
|
|
954
899
|
className: "aivex:bg-bg-primary aivex:shadow-md",
|
|
955
|
-
children: /* @__PURE__ */ V(
|
|
900
|
+
children: /* @__PURE__ */ V(nn, { size: 20 })
|
|
956
901
|
})
|
|
957
|
-
}), /* @__PURE__ */ H(
|
|
958
|
-
/* @__PURE__ */ V(
|
|
902
|
+
}), /* @__PURE__ */ H(Bi.Content, { children: [
|
|
903
|
+
/* @__PURE__ */ V(Bi.Title, {
|
|
959
904
|
className: "aivex:shrink-0",
|
|
960
|
-
children:
|
|
905
|
+
children: n
|
|
961
906
|
}),
|
|
962
|
-
/* @__PURE__ */ V(
|
|
907
|
+
/* @__PURE__ */ V(mo, {
|
|
963
908
|
scrollbars: "vertical",
|
|
964
909
|
className: "aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-col",
|
|
965
910
|
viewportClassName: "aivex:h-auto aivex:min-h-0",
|
|
966
911
|
children: /* @__PURE__ */ V("div", {
|
|
967
912
|
className: "aivex:flex aivex:w-full aivex:flex-col",
|
|
968
|
-
children: /* @__PURE__ */ H(
|
|
969
|
-
sensors:
|
|
970
|
-
collisionDetection:
|
|
971
|
-
modifiers: [
|
|
913
|
+
children: /* @__PURE__ */ H(sa, {
|
|
914
|
+
sensors: v,
|
|
915
|
+
collisionDetection: da,
|
|
916
|
+
modifiers: [ha, ma],
|
|
972
917
|
onDragStart: ({ active: e }) => {
|
|
973
|
-
|
|
918
|
+
C(b.find((t) => t.id === e.id) ?? null);
|
|
974
919
|
},
|
|
975
|
-
onDragEnd: ({ active:
|
|
976
|
-
if (
|
|
977
|
-
let
|
|
978
|
-
if (
|
|
979
|
-
let o =
|
|
980
|
-
|
|
920
|
+
onDragEnd: ({ active: e, over: n }) => {
|
|
921
|
+
if (C(null), !n || e.id === n.id) return;
|
|
922
|
+
let r = x.indexOf(String(e.id)), a = x.indexOf(String(n.id));
|
|
923
|
+
if (r === -1 || a === -1) return;
|
|
924
|
+
let o = _a(x, r, a), s = 0;
|
|
925
|
+
t.setColumnOrder(y.map((e) => i?.includes(e.id) ? e.id : o[s++]));
|
|
981
926
|
},
|
|
982
|
-
onDragCancel: () =>
|
|
983
|
-
children: [/* @__PURE__ */ V(
|
|
984
|
-
items:
|
|
985
|
-
strategy:
|
|
986
|
-
children:
|
|
987
|
-
}),
|
|
927
|
+
onDragCancel: () => C(null),
|
|
928
|
+
children: [/* @__PURE__ */ V(ga, {
|
|
929
|
+
items: x,
|
|
930
|
+
strategy: ba,
|
|
931
|
+
children: b.map((e) => /* @__PURE__ */ V(wo, { column: e }, e.id))
|
|
932
|
+
}), Sa(/* @__PURE__ */ V(ca, { children: S ? /* @__PURE__ */ V(To, { column: S }) : null }), document.body)]
|
|
988
933
|
})
|
|
989
934
|
})
|
|
990
935
|
}),
|
|
991
|
-
/* @__PURE__ */ V(
|
|
936
|
+
/* @__PURE__ */ V(Bi.Footer, {
|
|
992
937
|
className: "aivex:shrink-0",
|
|
993
|
-
children: /* @__PURE__ */ V(
|
|
938
|
+
children: /* @__PURE__ */ V(R, {
|
|
994
939
|
size: "md",
|
|
995
940
|
variant: "solid",
|
|
996
941
|
color: "secondary",
|
|
997
942
|
onClick: () => {
|
|
998
|
-
|
|
943
|
+
t.resetColumnOrder(), t.resetColumnVisibility();
|
|
999
944
|
},
|
|
1000
|
-
children:
|
|
945
|
+
children: r
|
|
1001
946
|
})
|
|
1002
947
|
})
|
|
1003
948
|
] })]
|
|
@@ -1005,32 +950,32 @@ function Fo({ table: e, title: t = "컬럼 설정", resetLabel: n = "초기화",
|
|
|
1005
950
|
}) : null;
|
|
1006
951
|
return /* @__PURE__ */ V("span", {
|
|
1007
952
|
className: "aivex:absolute aivex:top-0 aivex:left-0",
|
|
1008
|
-
ref:
|
|
1009
|
-
children:
|
|
953
|
+
ref: p,
|
|
954
|
+
children: w ? Sa(w, document.body) : null
|
|
1010
955
|
});
|
|
1011
956
|
}
|
|
1012
957
|
//#endregion
|
|
1013
958
|
//#region src/components/Table/Table.tsx
|
|
1014
|
-
var
|
|
959
|
+
var Do = {
|
|
1015
960
|
sm: "aivex:h-10",
|
|
1016
961
|
md: "aivex:h-12"
|
|
1017
|
-
},
|
|
962
|
+
}, Oo = {
|
|
1018
963
|
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
1019
964
|
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
1020
|
-
},
|
|
1021
|
-
function
|
|
965
|
+
}, ko = ({ direction: e }) => V(e === "asc" ? di : e === "desc" ? Ti : Ar, { size: 16 });
|
|
966
|
+
function Ao({ className: t, tableClassName: n, size: r = "md", children: i, ref: a, ...o }) {
|
|
1022
967
|
return /* @__PURE__ */ V("div", {
|
|
1023
|
-
ref:
|
|
1024
|
-
className:
|
|
1025
|
-
...
|
|
968
|
+
ref: a,
|
|
969
|
+
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
970
|
+
...o,
|
|
1026
971
|
children: /* @__PURE__ */ V("table", {
|
|
1027
|
-
"data-size":
|
|
1028
|
-
className:
|
|
1029
|
-
children:
|
|
972
|
+
"data-size": r,
|
|
973
|
+
className: e("aivex:w-full aivex:border-separate aivex:border-spacing-0 aivex:text-body-md-regular", n),
|
|
974
|
+
children: i
|
|
1030
975
|
})
|
|
1031
976
|
});
|
|
1032
977
|
}
|
|
1033
|
-
function
|
|
978
|
+
function jo({ className: e, children: t, ref: n, ...r }) {
|
|
1034
979
|
return /* @__PURE__ */ V("thead", {
|
|
1035
980
|
ref: n,
|
|
1036
981
|
className: e,
|
|
@@ -1038,23 +983,23 @@ function Bo({ className: e, children: t, ref: n, ...r }) {
|
|
|
1038
983
|
children: t
|
|
1039
984
|
});
|
|
1040
985
|
}
|
|
1041
|
-
function
|
|
986
|
+
function Mo({ className: t, children: n, ref: r, ...i }) {
|
|
1042
987
|
return /* @__PURE__ */ V("tfoot", {
|
|
1043
|
-
ref:
|
|
1044
|
-
className:
|
|
1045
|
-
...
|
|
1046
|
-
children:
|
|
988
|
+
ref: r,
|
|
989
|
+
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
990
|
+
...i,
|
|
991
|
+
children: n
|
|
1047
992
|
});
|
|
1048
993
|
}
|
|
1049
|
-
function
|
|
994
|
+
function No({ className: t, children: n, ref: r, ...i }) {
|
|
1050
995
|
return /* @__PURE__ */ V("caption", {
|
|
1051
|
-
ref:
|
|
1052
|
-
className:
|
|
1053
|
-
...
|
|
1054
|
-
children:
|
|
996
|
+
ref: r,
|
|
997
|
+
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
998
|
+
...i,
|
|
999
|
+
children: n
|
|
1055
1000
|
});
|
|
1056
1001
|
}
|
|
1057
|
-
function
|
|
1002
|
+
function Po({ className: e, children: t, ref: n, ...r }) {
|
|
1058
1003
|
return /* @__PURE__ */ V("tbody", {
|
|
1059
1004
|
ref: n,
|
|
1060
1005
|
className: e,
|
|
@@ -1062,60 +1007,60 @@ function Uo({ className: e, children: t, ref: n, ...r }) {
|
|
|
1062
1007
|
children: t
|
|
1063
1008
|
});
|
|
1064
1009
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return /* @__PURE__ */ V(
|
|
1067
|
-
ref:
|
|
1068
|
-
className:
|
|
1069
|
-
"aria-disabled":
|
|
1070
|
-
"data-disabled":
|
|
1071
|
-
"data-state":
|
|
1072
|
-
tabIndex:
|
|
1073
|
-
onClick:
|
|
1074
|
-
onDoubleClick:
|
|
1075
|
-
onKeyDown:
|
|
1076
|
-
...
|
|
1077
|
-
children:
|
|
1010
|
+
function Fo({ className: t, children: n, size: r = "md", selected: i, disabled: a, interactive: o, asChild: s = !1, ref: c, onClick: l, onDoubleClick: u, onKeyDown: d, tabIndex: f, "aria-disabled": p, ...m }) {
|
|
1011
|
+
return /* @__PURE__ */ V(s ? U : "tr", {
|
|
1012
|
+
ref: c,
|
|
1013
|
+
className: e("aivex:transition-colors", Do[r], !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
1014
|
+
"aria-disabled": a || p || void 0,
|
|
1015
|
+
"data-disabled": a ? "" : void 0,
|
|
1016
|
+
"data-state": i ? "selected" : void 0,
|
|
1017
|
+
tabIndex: a ? -1 : f,
|
|
1018
|
+
onClick: a ? void 0 : l,
|
|
1019
|
+
onDoubleClick: a ? void 0 : u,
|
|
1020
|
+
onKeyDown: a ? void 0 : d,
|
|
1021
|
+
...m,
|
|
1022
|
+
children: n
|
|
1078
1023
|
});
|
|
1079
1024
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return /* @__PURE__ */ V(
|
|
1082
|
-
ref:
|
|
1083
|
-
className:
|
|
1084
|
-
...
|
|
1085
|
-
children:
|
|
1025
|
+
function Io({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
1026
|
+
return /* @__PURE__ */ V(s ? U : "th", {
|
|
1027
|
+
ref: c,
|
|
1028
|
+
className: e("aivex:text-left aivex:align-middle aivex:text-body-sm-medium aivex:text-text-secondary aivex:whitespace-nowrap", "aivex:bg-bg-secondary aivex:border-y aivex:border-border-subtle", "aivex:first:border-l aivex:first:rounded-l-md aivex:last:border-r aivex:last:rounded-r-md", Oo[r], t),
|
|
1029
|
+
...l,
|
|
1030
|
+
children: i ? /* @__PURE__ */ H("button", {
|
|
1086
1031
|
type: "button",
|
|
1087
|
-
onClick:
|
|
1032
|
+
onClick: o,
|
|
1088
1033
|
className: "aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:group aivex:text-text-secondary aivex:hover:text-text-primary aivex:transition-colors",
|
|
1089
|
-
children: [
|
|
1034
|
+
children: [n, /* @__PURE__ */ V("span", {
|
|
1090
1035
|
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
1091
|
-
children: /* @__PURE__ */ V(
|
|
1036
|
+
children: /* @__PURE__ */ V(ko, { direction: a })
|
|
1092
1037
|
})]
|
|
1093
|
-
}) :
|
|
1038
|
+
}) : n
|
|
1094
1039
|
});
|
|
1095
1040
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return /* @__PURE__ */ V(
|
|
1098
|
-
ref:
|
|
1099
|
-
className:
|
|
1100
|
-
...
|
|
1101
|
-
children:
|
|
1041
|
+
function Lo({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
1042
|
+
return /* @__PURE__ */ V(i ? U : "td", {
|
|
1043
|
+
ref: a,
|
|
1044
|
+
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle", Oo[r], t),
|
|
1045
|
+
...o,
|
|
1046
|
+
children: n
|
|
1102
1047
|
});
|
|
1103
1048
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */ V(
|
|
1106
|
-
ref:
|
|
1107
|
-
colSpan:
|
|
1108
|
-
className:
|
|
1109
|
-
...
|
|
1110
|
-
children:
|
|
1049
|
+
function Ro({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
1050
|
+
return /* @__PURE__ */ V(Fo, { children: /* @__PURE__ */ V(Lo, {
|
|
1051
|
+
ref: i,
|
|
1052
|
+
colSpan: r,
|
|
1053
|
+
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
1054
|
+
...a,
|
|
1055
|
+
children: n
|
|
1111
1056
|
}) });
|
|
1112
1057
|
}
|
|
1113
|
-
function
|
|
1058
|
+
function zo({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1114
1059
|
return /* @__PURE__ */ V("tbody", {
|
|
1115
1060
|
ref: r,
|
|
1116
1061
|
className: e,
|
|
1117
1062
|
...i,
|
|
1118
|
-
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ V(
|
|
1063
|
+
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ V(Fo, { children: /* @__PURE__ */ V(Lo, {
|
|
1119
1064
|
colSpan: t,
|
|
1120
1065
|
children: /* @__PURE__ */ V(po, { className: "aivex:h-5 aivex:w-full" })
|
|
1121
1066
|
}) }, n))
|
|
@@ -1123,179 +1068,179 @@ function Jo({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
|
1123
1068
|
}
|
|
1124
1069
|
//#endregion
|
|
1125
1070
|
//#region src/components/DataGrid/DataGridPrimitives.tsx
|
|
1126
|
-
var
|
|
1071
|
+
var Bo = {
|
|
1127
1072
|
start: "aivex:justify-start aivex:text-left",
|
|
1128
1073
|
center: "aivex:justify-center aivex:text-center",
|
|
1129
1074
|
end: "aivex:justify-end aivex:text-right"
|
|
1130
1075
|
};
|
|
1131
|
-
function
|
|
1076
|
+
function Vo(e, t, n) {
|
|
1132
1077
|
return typeof e == "function" ? e(t, n) : e;
|
|
1133
1078
|
}
|
|
1134
|
-
function
|
|
1079
|
+
function Ho({ className: t, children: n, ref: r, ...i }) {
|
|
1135
1080
|
return /* @__PURE__ */ V("div", {
|
|
1136
|
-
ref:
|
|
1137
|
-
className:
|
|
1138
|
-
...
|
|
1139
|
-
children:
|
|
1081
|
+
ref: r,
|
|
1082
|
+
className: e("aivex:flex aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0 aivex:flex-col aivex:text-body-md-regular aivex:text-text-primary", t),
|
|
1083
|
+
...i,
|
|
1084
|
+
children: n
|
|
1140
1085
|
});
|
|
1141
1086
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return /* @__PURE__ */ V(
|
|
1144
|
-
ref:
|
|
1145
|
-
scrollbars:
|
|
1146
|
-
type:
|
|
1147
|
-
verticalScrollbarClassName:
|
|
1148
|
-
className:
|
|
1149
|
-
...
|
|
1150
|
-
children:
|
|
1087
|
+
function Uo({ className: t, children: n, ref: r, scrollbars: i = "both", type: a = "always", verticalScrollbarClassName: o, ...s }) {
|
|
1088
|
+
return /* @__PURE__ */ V(mo, {
|
|
1089
|
+
ref: r,
|
|
1090
|
+
scrollbars: i,
|
|
1091
|
+
type: a,
|
|
1092
|
+
verticalScrollbarClassName: o,
|
|
1093
|
+
className: e("aivex:min-h-0 aivex:w-full aivex:min-w-0 aivex:flex-1", t),
|
|
1094
|
+
...s,
|
|
1095
|
+
children: n
|
|
1151
1096
|
});
|
|
1152
1097
|
}
|
|
1153
|
-
function
|
|
1098
|
+
function Wo({ className: t, children: n, sticky: r = !0, ref: i, ...a }) {
|
|
1154
1099
|
return /* @__PURE__ */ V("div", {
|
|
1155
|
-
ref:
|
|
1100
|
+
ref: i,
|
|
1156
1101
|
role: "row",
|
|
1157
1102
|
"data-datagrid-header": "",
|
|
1158
|
-
className:
|
|
1159
|
-
...
|
|
1160
|
-
children:
|
|
1103
|
+
className: e("aivex:flex aivex:h-12 aivex:shrink-0 aivex:items-center aivex:rounded-md aivex:border aivex:border-border-subtle aivex:bg-bg-secondary", r && "aivex:sticky aivex:top-0 aivex:z-10", t),
|
|
1104
|
+
...a,
|
|
1105
|
+
children: n
|
|
1161
1106
|
});
|
|
1162
1107
|
}
|
|
1163
|
-
function
|
|
1108
|
+
function Go({ className: t, children: n, ref: r, ...i }) {
|
|
1164
1109
|
return /* @__PURE__ */ V("div", {
|
|
1165
|
-
ref:
|
|
1110
|
+
ref: r,
|
|
1166
1111
|
role: "rowgroup",
|
|
1167
|
-
className:
|
|
1168
|
-
...
|
|
1169
|
-
children:
|
|
1112
|
+
className: e("aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col", t),
|
|
1113
|
+
...i,
|
|
1114
|
+
children: n
|
|
1170
1115
|
});
|
|
1171
1116
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let
|
|
1174
|
-
return /* @__PURE__ */ V(
|
|
1117
|
+
function Ko({ 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 }) {
|
|
1118
|
+
let h = r ? U : "div";
|
|
1119
|
+
return /* @__PURE__ */ V(Fo, {
|
|
1175
1120
|
asChild: !0,
|
|
1176
|
-
selected:
|
|
1177
|
-
disabled:
|
|
1178
|
-
interactive:
|
|
1179
|
-
className:
|
|
1180
|
-
children: /* @__PURE__ */ V(
|
|
1181
|
-
ref:
|
|
1182
|
-
role:
|
|
1183
|
-
"aria-disabled":
|
|
1184
|
-
"data-disabled":
|
|
1185
|
-
"data-state":
|
|
1186
|
-
tabIndex:
|
|
1187
|
-
onClick:
|
|
1188
|
-
onDoubleClick:
|
|
1189
|
-
onKeyDown:
|
|
1190
|
-
...
|
|
1191
|
-
children:
|
|
1121
|
+
selected: i,
|
|
1122
|
+
disabled: a,
|
|
1123
|
+
interactive: o,
|
|
1124
|
+
className: e("aivex:flex aivex:h-auto aivex:min-h-12 aivex:w-full aivex:shrink-0 aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle aivex:last:border-b-0", !o && !i && !a && "aivex:hover:bg-transparent", t),
|
|
1125
|
+
children: /* @__PURE__ */ V(h, {
|
|
1126
|
+
ref: s,
|
|
1127
|
+
role: f,
|
|
1128
|
+
"aria-disabled": a || p || void 0,
|
|
1129
|
+
"data-disabled": a ? "" : void 0,
|
|
1130
|
+
"data-state": i ? "selected" : void 0,
|
|
1131
|
+
tabIndex: a ? -1 : d,
|
|
1132
|
+
onClick: a ? void 0 : c,
|
|
1133
|
+
onDoubleClick: a ? void 0 : l,
|
|
1134
|
+
onKeyDown: a ? void 0 : u,
|
|
1135
|
+
...m,
|
|
1136
|
+
children: n
|
|
1192
1137
|
})
|
|
1193
1138
|
});
|
|
1194
1139
|
}
|
|
1195
|
-
function
|
|
1196
|
-
let
|
|
1197
|
-
return /* @__PURE__ */ V(
|
|
1140
|
+
function qo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "cell", ...s }) {
|
|
1141
|
+
let c = i ? U : "div";
|
|
1142
|
+
return /* @__PURE__ */ V(Lo, {
|
|
1198
1143
|
asChild: !0,
|
|
1199
|
-
className:
|
|
1200
|
-
children: /* @__PURE__ */ V(
|
|
1201
|
-
ref:
|
|
1202
|
-
role:
|
|
1203
|
-
...
|
|
1204
|
-
children:
|
|
1144
|
+
className: e("aivex:flex aivex:h-auto aivex:min-h-12 aivex:min-w-0 aivex:self-stretch aivex:items-center aivex:gap-xs aivex:border-b-0", Bo[r], t),
|
|
1145
|
+
children: /* @__PURE__ */ V(c, {
|
|
1146
|
+
ref: a,
|
|
1147
|
+
role: o,
|
|
1148
|
+
...s,
|
|
1149
|
+
children: n
|
|
1205
1150
|
})
|
|
1206
1151
|
});
|
|
1207
1152
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return /* @__PURE__ */ V(
|
|
1210
|
-
ref:
|
|
1211
|
-
role:
|
|
1212
|
-
className:
|
|
1213
|
-
...
|
|
1214
|
-
children:
|
|
1153
|
+
function Jo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "columnheader", ...s }) {
|
|
1154
|
+
return /* @__PURE__ */ V(i ? U : "div", {
|
|
1155
|
+
ref: a,
|
|
1156
|
+
role: o,
|
|
1157
|
+
className: e("aivex:flex aivex:min-w-0 aivex:items-center aivex:gap-xs aivex:whitespace-nowrap", "aivex:px-md aivex:first:pl-xl aivex:last:pr-xl", "aivex:text-body-sm-medium aivex:text-text-secondary", Bo[r], t),
|
|
1158
|
+
...s,
|
|
1159
|
+
children: n
|
|
1215
1160
|
});
|
|
1216
1161
|
}
|
|
1217
|
-
function
|
|
1162
|
+
function Yo({ className: t, children: n, ref: r, ...i }) {
|
|
1218
1163
|
return /* @__PURE__ */ V("div", {
|
|
1219
|
-
ref:
|
|
1220
|
-
className:
|
|
1221
|
-
...
|
|
1222
|
-
children:
|
|
1164
|
+
ref: r,
|
|
1165
|
+
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),
|
|
1166
|
+
...i,
|
|
1167
|
+
children: n
|
|
1223
1168
|
});
|
|
1224
1169
|
}
|
|
1225
|
-
function
|
|
1170
|
+
function Xo({ className: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1226
1171
|
return /* @__PURE__ */ V("div", {
|
|
1227
|
-
ref:
|
|
1228
|
-
className:
|
|
1229
|
-
...
|
|
1230
|
-
children: Array.from({ length:
|
|
1172
|
+
ref: r,
|
|
1173
|
+
className: e("aivex:flex aivex:flex-col", t),
|
|
1174
|
+
...i,
|
|
1175
|
+
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ V(Ko, { children: /* @__PURE__ */ V(qo, {
|
|
1231
1176
|
className: "aivex:w-full",
|
|
1232
1177
|
children: /* @__PURE__ */ V(po, { className: "aivex:h-5 aivex:w-full" })
|
|
1233
1178
|
}) }, t))
|
|
1234
1179
|
});
|
|
1235
1180
|
}
|
|
1236
|
-
function
|
|
1181
|
+
function Zo({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
1237
1182
|
return /* @__PURE__ */ V("div", {
|
|
1238
|
-
ref:
|
|
1183
|
+
ref: i,
|
|
1239
1184
|
role: "presentation",
|
|
1240
|
-
className:
|
|
1241
|
-
...
|
|
1242
|
-
children:
|
|
1185
|
+
className: e("aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:text-text-tertiary", r ? "aivex:min-h-16" : "aivex:min-h-px", t),
|
|
1186
|
+
...a,
|
|
1187
|
+
children: r ? n : null
|
|
1243
1188
|
});
|
|
1244
1189
|
}
|
|
1245
1190
|
//#endregion
|
|
1246
1191
|
//#region src/components/DataGrid/DataGridRows.tsx
|
|
1247
|
-
function
|
|
1248
|
-
let { original:
|
|
1249
|
-
ref:
|
|
1250
|
-
"data-datagrid-row-id":
|
|
1251
|
-
"data-row-selected":
|
|
1252
|
-
"data-row-expanded":
|
|
1253
|
-
interactive:
|
|
1254
|
-
selected:
|
|
1255
|
-
disabled:
|
|
1256
|
-
className:
|
|
1257
|
-
"aria-expanded":
|
|
1258
|
-
"aria-controls":
|
|
1259
|
-
tabIndex:
|
|
1260
|
-
onClick:
|
|
1261
|
-
onKeyDown:
|
|
1262
|
-
if (
|
|
1263
|
-
if (
|
|
1264
|
-
|
|
1192
|
+
function Qo({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interactive: a, selected: o, disabled: s, className: c, onRowClick: l, expandedContent: u, expandable: d, focusable: f, rowSelected: p, rowExpanded: m, cellRole: h, tabStop: g, onNavigate: _, onFocusRow: v }) {
|
|
1193
|
+
let { original: y, id: b } = t, x = t.index, S = K(), C = !!m, w = !!l && !s, T = r !== void 0, E = /* @__PURE__ */ V(Ko, {
|
|
1194
|
+
ref: T ? void 0 : i,
|
|
1195
|
+
"data-datagrid-row-id": b,
|
|
1196
|
+
"data-row-selected": p ? "" : void 0,
|
|
1197
|
+
"data-row-expanded": m ? "" : void 0,
|
|
1198
|
+
interactive: a,
|
|
1199
|
+
selected: o,
|
|
1200
|
+
disabled: s,
|
|
1201
|
+
className: c,
|
|
1202
|
+
"aria-expanded": d ? C : void 0,
|
|
1203
|
+
"aria-controls": u == null ? void 0 : S,
|
|
1204
|
+
tabIndex: f ? g === !1 ? -1 : 0 : void 0,
|
|
1205
|
+
onClick: l ? (e) => l(y, x, e) : void 0,
|
|
1206
|
+
onKeyDown: f ? (e) => {
|
|
1207
|
+
if (e.target === e.currentTarget) {
|
|
1208
|
+
if (_ && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
|
|
1209
|
+
e.preventDefault(), _(b, e.key === "ArrowDown" ? 1 : -1);
|
|
1265
1210
|
return;
|
|
1266
1211
|
}
|
|
1267
|
-
if (
|
|
1268
|
-
let n =
|
|
1269
|
-
if (n ===
|
|
1270
|
-
|
|
1212
|
+
if (d && (e.key === "ArrowRight" || e.key === "ArrowLeft")) {
|
|
1213
|
+
let n = e.key === "ArrowRight";
|
|
1214
|
+
if (n === C) return;
|
|
1215
|
+
e.preventDefault(), t.toggleExpanded(n);
|
|
1271
1216
|
return;
|
|
1272
1217
|
}
|
|
1273
|
-
|
|
1218
|
+
w && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
1274
1219
|
}
|
|
1275
1220
|
} : void 0,
|
|
1276
|
-
onFocus:
|
|
1277
|
-
children:
|
|
1278
|
-
let { meta:
|
|
1279
|
-
return /* @__PURE__ */ V(
|
|
1280
|
-
role:
|
|
1281
|
-
align:
|
|
1282
|
-
className:
|
|
1283
|
-
children:
|
|
1284
|
-
},
|
|
1221
|
+
onFocus: f && v ? () => v(b) : void 0,
|
|
1222
|
+
children: t.getVisibleCells().map((t) => {
|
|
1223
|
+
let { meta: n } = t.column.columnDef;
|
|
1224
|
+
return /* @__PURE__ */ V(qo, {
|
|
1225
|
+
role: h,
|
|
1226
|
+
align: n?.cellAlign ?? n?.align,
|
|
1227
|
+
className: e(n?.className, Vo(n?.cellClassName, y, x)),
|
|
1228
|
+
children: Yi(t.column.columnDef.cell, t.getContext())
|
|
1229
|
+
}, t.id);
|
|
1285
1230
|
})
|
|
1286
|
-
}),
|
|
1231
|
+
}), D = u != null && /* @__PURE__ */ V("div", {
|
|
1287
1232
|
role: "row",
|
|
1288
1233
|
className: "aivex:w-full",
|
|
1289
1234
|
children: /* @__PURE__ */ V("div", {
|
|
1290
|
-
role:
|
|
1291
|
-
id:
|
|
1235
|
+
role: h ?? "cell",
|
|
1236
|
+
id: S,
|
|
1292
1237
|
className: "aivex:w-full",
|
|
1293
|
-
children:
|
|
1238
|
+
children: u
|
|
1294
1239
|
})
|
|
1295
1240
|
});
|
|
1296
|
-
return
|
|
1297
|
-
ref:
|
|
1298
|
-
"data-index":
|
|
1241
|
+
return T ? /* @__PURE__ */ H("div", {
|
|
1242
|
+
ref: i,
|
|
1243
|
+
"data-index": n,
|
|
1299
1244
|
role: "presentation",
|
|
1300
1245
|
className: "aivex:flex aivex:w-full aivex:flex-col",
|
|
1301
1246
|
style: {
|
|
@@ -1303,18 +1248,18 @@ function ss({ row: e, virtualIndex: t, virtualStart: n, measureRef: r, interacti
|
|
|
1303
1248
|
top: 0,
|
|
1304
1249
|
left: 0,
|
|
1305
1250
|
width: "100%",
|
|
1306
|
-
transform: `translateY(${
|
|
1251
|
+
transform: `translateY(${r}px)`
|
|
1307
1252
|
},
|
|
1308
|
-
children: [
|
|
1309
|
-
}) : /* @__PURE__ */ H(
|
|
1253
|
+
children: [E, D]
|
|
1254
|
+
}) : /* @__PURE__ */ H(Vi, { children: [E, D] });
|
|
1310
1255
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1313
|
-
let [d, f] =
|
|
1256
|
+
var $o = Ki(Qo);
|
|
1257
|
+
function es({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, activeRowId: i, focusableRowIds: a, pendingFocusRowId: o, focusRowElement: s, onFocusSettled: c, scrollToRowRef: l, renderRow: u }) {
|
|
1258
|
+
let [d, f] = J(null);
|
|
1314
1259
|
G(() => {
|
|
1315
1260
|
f(t.current);
|
|
1316
1261
|
}, [t]);
|
|
1317
|
-
let p =
|
|
1262
|
+
let p = wa({
|
|
1318
1263
|
count: e.length,
|
|
1319
1264
|
getScrollElement: () => d,
|
|
1320
1265
|
estimateSize: () => n ?? 48,
|
|
@@ -1342,246 +1287,262 @@ function ls({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, active
|
|
|
1342
1287
|
}
|
|
1343
1288
|
//#endregion
|
|
1344
1289
|
//#region src/components/DataGrid/DataGrid.tsx
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
1347
|
-
let
|
|
1290
|
+
var ts = ({ direction: e }) => V(e === "asc" ? di : e === "desc" ? Ti : Ar, { size: 16 });
|
|
1291
|
+
function ns({ className: t, loading: n, loadingRowCount: r, empty: i, headerSticky: a, viewportClassName: o, contentClassName: s, headerClassName: c, bodyClassName: l, rowClassName: u, rowInteractive: d, isRowSelected: f, isRowDisabled: p, onRowClick: m, renderExpandedRow: h, loadingMore: g, loadingMoreContent: _, loadingMoreRowCount: v = 3, skeletonRowClassName: y, endContent: b, infiniteTriggerRef: x, infiniteTriggerClassName: S, columnSettings: C, virtualized: w = !1, estimateRowHeight: T, overscan: E, ref: D, getCoreRowModel: O, ...k }) {
|
|
1292
|
+
let A = oa({
|
|
1348
1293
|
enableSorting: !1,
|
|
1349
|
-
...
|
|
1350
|
-
getCoreRowModel:
|
|
1351
|
-
}),
|
|
1294
|
+
...k,
|
|
1295
|
+
getCoreRowModel: O ?? Zi()
|
|
1296
|
+
}), j = a !== !1, ee = m != null, M = h != null, te = M ? "gridcell" : "cell", N = C === !0 ? {} : C || void 0, P = q(null), F = A.getRowModel().rows, ne = A.getHeaderGroups(), [re, ie] = J(48);
|
|
1352
1297
|
G(() => {
|
|
1353
|
-
if (!
|
|
1354
|
-
let e =
|
|
1298
|
+
if (!j || !P.current) return;
|
|
1299
|
+
let e = P.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0, ne.length), n = () => {
|
|
1355
1300
|
let e = t.reduce((e, t) => e + t.offsetHeight, 0);
|
|
1356
|
-
e > 0 &&
|
|
1301
|
+
e > 0 && ie(e);
|
|
1357
1302
|
}, r = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(n);
|
|
1358
1303
|
return n(), t.forEach((e) => {
|
|
1359
1304
|
r?.observe(e);
|
|
1360
1305
|
}), () => r?.disconnect();
|
|
1361
|
-
}, [
|
|
1362
|
-
let
|
|
1363
|
-
|
|
1364
|
-
let
|
|
1365
|
-
|
|
1366
|
-
let
|
|
1367
|
-
let t = !!
|
|
1368
|
-
return !t && (
|
|
1306
|
+
}, [ne.length, j]);
|
|
1307
|
+
let ae = q(m);
|
|
1308
|
+
ae.current = m;
|
|
1309
|
+
let oe = W((e, t, n) => ae.current?.(e, t, n), []), se = m ? oe : void 0, [ce, le] = J(null), ue = q(F);
|
|
1310
|
+
ue.current = F;
|
|
1311
|
+
let de = q(null), [fe, pe] = J(null), me = W((e) => {
|
|
1312
|
+
let t = !!p?.(e.original, e.index), n = M && (e.getCanExpand() || e.getIsExpanded());
|
|
1313
|
+
return !t && (ee || n);
|
|
1369
1314
|
}, [
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
]),
|
|
1374
|
-
|
|
1375
|
-
let
|
|
1376
|
-
let t = Array.from(
|
|
1315
|
+
ee,
|
|
1316
|
+
p,
|
|
1317
|
+
M
|
|
1318
|
+
]), I = Ji(() => new Set(F.filter(me).map((e) => e.id)), [me, F]), he = q(I);
|
|
1319
|
+
he.current = I;
|
|
1320
|
+
let ge = W((e) => {
|
|
1321
|
+
let t = Array.from(P.current?.querySelectorAll("[data-datagrid-row-id]") ?? []).find((t) => t.dataset.datagridRowId === e);
|
|
1377
1322
|
return t?.focus(), t != null;
|
|
1378
1323
|
}, []);
|
|
1379
1324
|
G(() => {
|
|
1380
|
-
|
|
1325
|
+
w || fe == null || (ge(fe), pe(null));
|
|
1381
1326
|
}, [
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1327
|
+
ge,
|
|
1328
|
+
fe,
|
|
1329
|
+
w
|
|
1385
1330
|
]);
|
|
1386
|
-
let
|
|
1387
|
-
let n =
|
|
1331
|
+
let _e = W((e, t) => {
|
|
1332
|
+
let n = ue.current, r = n.findIndex((t) => t.id === e);
|
|
1388
1333
|
if (r === -1) return;
|
|
1389
1334
|
let i = r + t;
|
|
1390
|
-
for (; i >= 0 && i < n.length && !
|
|
1335
|
+
for (; i >= 0 && i < n.length && !he.current.has(n[i].id);) i += t;
|
|
1391
1336
|
let a = n[i];
|
|
1392
|
-
a && (
|
|
1393
|
-
}, []),
|
|
1394
|
-
className:
|
|
1395
|
-
children:
|
|
1337
|
+
a && (de.current?.(i), pe(a.id), le(a.id));
|
|
1338
|
+
}, []), ve = W((e) => le(e), []), ye = W(() => pe(null), []), be = ce != null && I.has(ce) ? ce : null, xe = be ?? F.find((e) => I.has(e.id))?.id, Se = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ V(Ko, {
|
|
1339
|
+
className: y,
|
|
1340
|
+
children: A.getVisibleLeafColumns().map((e) => {
|
|
1396
1341
|
let { meta: t } = e.columnDef;
|
|
1397
|
-
return /* @__PURE__ */ V(
|
|
1398
|
-
role:
|
|
1342
|
+
return /* @__PURE__ */ V(qo, {
|
|
1343
|
+
role: te,
|
|
1399
1344
|
align: t?.cellAlign ?? t?.align,
|
|
1400
1345
|
className: t?.className,
|
|
1401
1346
|
children: t?.skeleton === void 0 ? /* @__PURE__ */ V(po, { className: "aivex:h-4 aivex:w-full aivex:max-w-40" }) : t.skeleton
|
|
1402
1347
|
}, e.id);
|
|
1403
1348
|
})
|
|
1404
|
-
}, `${t}-${n}`)),
|
|
1405
|
-
sticky:
|
|
1406
|
-
className:
|
|
1407
|
-
children:
|
|
1408
|
-
let { meta:
|
|
1409
|
-
return /* @__PURE__ */ V(
|
|
1410
|
-
align:
|
|
1411
|
-
className:
|
|
1412
|
-
"aria-sort":
|
|
1413
|
-
children:
|
|
1349
|
+
}, `${t}-${n}`)), Ce = (t) => ne.map((n) => /* @__PURE__ */ V(Wo, {
|
|
1350
|
+
sticky: t,
|
|
1351
|
+
className: c,
|
|
1352
|
+
children: n.headers.map((t) => {
|
|
1353
|
+
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null : Yi(t.column.columnDef.header, t.getContext());
|
|
1354
|
+
return /* @__PURE__ */ V(Jo, {
|
|
1355
|
+
align: n?.headerAlign ?? n?.align,
|
|
1356
|
+
className: e(n?.className, n?.headerClassName),
|
|
1357
|
+
"aria-sort": o,
|
|
1358
|
+
children: i ? /* @__PURE__ */ H("button", {
|
|
1414
1359
|
type: "button",
|
|
1415
1360
|
className: "aivex:inline-flex aivex:min-w-0 aivex:items-center aivex:gap-1 aivex:text-inherit aivex:transition-colors aivex:hover:text-text-primary",
|
|
1416
|
-
onClick:
|
|
1361
|
+
onClick: t.column.getToggleSortingHandler(),
|
|
1417
1362
|
children: [/* @__PURE__ */ V("span", {
|
|
1418
1363
|
className: "aivex:min-w-0 aivex:truncate",
|
|
1419
|
-
children:
|
|
1364
|
+
children: s
|
|
1420
1365
|
}), /* @__PURE__ */ V("span", {
|
|
1421
1366
|
className: "aivex:shrink-0 aivex:text-text-tertiary",
|
|
1422
|
-
children: /* @__PURE__ */ V(
|
|
1367
|
+
children: /* @__PURE__ */ V(ts, { direction: a })
|
|
1423
1368
|
})]
|
|
1424
|
-
}) :
|
|
1425
|
-
},
|
|
1369
|
+
}) : s
|
|
1370
|
+
}, t.id);
|
|
1426
1371
|
})
|
|
1427
|
-
},
|
|
1428
|
-
let { original:
|
|
1429
|
-
return /* @__PURE__ */ V(
|
|
1430
|
-
row:
|
|
1431
|
-
virtualIndex:
|
|
1432
|
-
virtualStart:
|
|
1433
|
-
measureRef:
|
|
1434
|
-
interactive:
|
|
1435
|
-
selected:
|
|
1436
|
-
disabled:
|
|
1437
|
-
className:
|
|
1438
|
-
onRowClick:
|
|
1439
|
-
expandedContent:
|
|
1440
|
-
expandable:
|
|
1441
|
-
focusable:
|
|
1442
|
-
rowSelected:
|
|
1443
|
-
rowExpanded:
|
|
1444
|
-
columns:
|
|
1445
|
-
cellRole:
|
|
1446
|
-
tabStop:
|
|
1447
|
-
onNavigate:
|
|
1448
|
-
onFocusRow:
|
|
1449
|
-
},
|
|
1450
|
-
},
|
|
1451
|
-
ref:
|
|
1452
|
-
className:
|
|
1453
|
-
children: /* @__PURE__ */ V(
|
|
1372
|
+
}, n.id)), we = (t, n, r, i = !0) => {
|
|
1373
|
+
let { original: a } = t, o = t.index, s = !!p?.(a, o), c = M && (t.getCanExpand() || t.getIsExpanded());
|
|
1374
|
+
return /* @__PURE__ */ V($o, {
|
|
1375
|
+
row: t,
|
|
1376
|
+
virtualIndex: n?.index,
|
|
1377
|
+
virtualStart: n?.start,
|
|
1378
|
+
measureRef: r,
|
|
1379
|
+
interactive: Vo(d, a, o) ?? !!m,
|
|
1380
|
+
selected: f?.(a, o),
|
|
1381
|
+
disabled: s,
|
|
1382
|
+
className: e(n && "aivex:last:border-b", Vo(u, a, o)),
|
|
1383
|
+
onRowClick: se,
|
|
1384
|
+
expandedContent: h && t.getIsExpanded() ? h(t) : void 0,
|
|
1385
|
+
expandable: c,
|
|
1386
|
+
focusable: I.has(t.id),
|
|
1387
|
+
rowSelected: t.getIsSelected(),
|
|
1388
|
+
rowExpanded: t.getIsExpanded(),
|
|
1389
|
+
columns: k.columns,
|
|
1390
|
+
cellRole: te,
|
|
1391
|
+
tabStop: i,
|
|
1392
|
+
onNavigate: _e,
|
|
1393
|
+
onFocusRow: ve
|
|
1394
|
+
}, t.id);
|
|
1395
|
+
}, Te = /* @__PURE__ */ V(Ho, {
|
|
1396
|
+
ref: D,
|
|
1397
|
+
className: N ? void 0 : t,
|
|
1398
|
+
children: /* @__PURE__ */ V(Uo, {
|
|
1454
1399
|
scrollbars: "both",
|
|
1455
|
-
className:
|
|
1456
|
-
style: { "--datagrid-sticky-header-height": `${
|
|
1457
|
-
verticalScrollbarClassName:
|
|
1458
|
-
viewportRef:
|
|
1400
|
+
className: o,
|
|
1401
|
+
style: { "--datagrid-sticky-header-height": `${re}px` },
|
|
1402
|
+
verticalScrollbarClassName: j ? "aivex:top-[var(--datagrid-sticky-header-height)]! aivex:bottom-0! aivex:h-auto!" : void 0,
|
|
1403
|
+
viewportRef: P,
|
|
1459
1404
|
children: /* @__PURE__ */ H("div", {
|
|
1460
|
-
role:
|
|
1461
|
-
className:
|
|
1462
|
-
children: [
|
|
1463
|
-
className:
|
|
1464
|
-
children:
|
|
1465
|
-
}) : /* @__PURE__ */ H(
|
|
1466
|
-
className:
|
|
1405
|
+
role: M ? "treegrid" : "table",
|
|
1406
|
+
className: e("aivex:flex aivex:min-h-full aivex:min-w-full aivex:flex-col", s),
|
|
1407
|
+
children: [Ce(j), n ? /* @__PURE__ */ V(Go, {
|
|
1408
|
+
className: l,
|
|
1409
|
+
children: Se(r ?? 5, "loading")
|
|
1410
|
+
}) : /* @__PURE__ */ H(Go, {
|
|
1411
|
+
className: l,
|
|
1467
1412
|
children: [
|
|
1468
|
-
|
|
1469
|
-
rows:
|
|
1470
|
-
viewportRef:
|
|
1471
|
-
estimateRowHeight:
|
|
1472
|
-
overscan:
|
|
1473
|
-
activeRowId:
|
|
1474
|
-
focusableRowIds:
|
|
1475
|
-
pendingFocusRowId:
|
|
1476
|
-
focusRowElement:
|
|
1477
|
-
onFocusSettled:
|
|
1478
|
-
scrollToRowRef:
|
|
1479
|
-
renderRow:
|
|
1480
|
-
}) :
|
|
1481
|
-
/* @__PURE__ */ V(
|
|
1482
|
-
ref:
|
|
1483
|
-
loading:
|
|
1484
|
-
className:
|
|
1485
|
-
children:
|
|
1413
|
+
F.length === 0 && i !== void 0 ? /* @__PURE__ */ V(Yo, { children: i }) : w ? /* @__PURE__ */ V(es, {
|
|
1414
|
+
rows: F,
|
|
1415
|
+
viewportRef: P,
|
|
1416
|
+
estimateRowHeight: T,
|
|
1417
|
+
overscan: E,
|
|
1418
|
+
activeRowId: be,
|
|
1419
|
+
focusableRowIds: I,
|
|
1420
|
+
pendingFocusRowId: fe,
|
|
1421
|
+
focusRowElement: ge,
|
|
1422
|
+
onFocusSettled: ye,
|
|
1423
|
+
scrollToRowRef: de,
|
|
1424
|
+
renderRow: we
|
|
1425
|
+
}) : F.map((e) => we(e, void 0, void 0, e.id === xe)),
|
|
1426
|
+
/* @__PURE__ */ V(Zo, {
|
|
1427
|
+
ref: x,
|
|
1428
|
+
loading: g,
|
|
1429
|
+
className: S,
|
|
1430
|
+
children: _ ?? /* @__PURE__ */ V("div", {
|
|
1486
1431
|
className: "aivex:w-full",
|
|
1487
|
-
children:
|
|
1432
|
+
children: Se(v, "loading-more")
|
|
1488
1433
|
})
|
|
1489
1434
|
}),
|
|
1490
|
-
!
|
|
1435
|
+
!g && b != null && /* @__PURE__ */ V("div", {
|
|
1491
1436
|
role: "presentation",
|
|
1492
1437
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:py-lg aivex:text-body-sm-regular aivex:text-text-tertiary",
|
|
1493
|
-
children:
|
|
1438
|
+
children: b
|
|
1494
1439
|
})
|
|
1495
1440
|
]
|
|
1496
1441
|
})]
|
|
1497
1442
|
})
|
|
1498
1443
|
})
|
|
1499
1444
|
});
|
|
1500
|
-
return
|
|
1501
|
-
className:
|
|
1502
|
-
children: [
|
|
1503
|
-
table:
|
|
1504
|
-
...
|
|
1445
|
+
return N ? /* @__PURE__ */ H("div", {
|
|
1446
|
+
className: e("aivex:relative aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0", t),
|
|
1447
|
+
children: [Te, /* @__PURE__ */ V(Eo, {
|
|
1448
|
+
table: A,
|
|
1449
|
+
...N
|
|
1505
1450
|
})]
|
|
1506
|
-
}) :
|
|
1451
|
+
}) : Te;
|
|
1507
1452
|
}
|
|
1508
1453
|
//#endregion
|
|
1509
1454
|
//#region src/components/Overlay/Overlay.tsx
|
|
1510
|
-
var
|
|
1455
|
+
var rs = B("aivex:fixed aivex:inset-0 aivex:z-50", {
|
|
1511
1456
|
variants: { type: {
|
|
1512
1457
|
dim: "aivex:bg-black/50",
|
|
1513
1458
|
frost: "aivex:backdrop-blur-sm aivex:bg-white/30"
|
|
1514
1459
|
} },
|
|
1515
1460
|
defaultVariants: { type: "dim" }
|
|
1516
1461
|
});
|
|
1517
|
-
function
|
|
1462
|
+
function is({ className: t, type: n = "dim", ref: r, ...i }) {
|
|
1518
1463
|
return /* @__PURE__ */ V("div", {
|
|
1519
|
-
ref:
|
|
1464
|
+
ref: r,
|
|
1520
1465
|
"aria-hidden": "true",
|
|
1521
|
-
className:
|
|
1522
|
-
...
|
|
1466
|
+
className: e(rs({ type: n }), t),
|
|
1467
|
+
...i
|
|
1523
1468
|
});
|
|
1524
1469
|
}
|
|
1525
1470
|
//#endregion
|
|
1471
|
+
//#region src/utils/useModalAutoFocus.ts
|
|
1472
|
+
function as(e, t) {
|
|
1473
|
+
let n = q(null);
|
|
1474
|
+
return {
|
|
1475
|
+
onOpenAutoFocus(t) {
|
|
1476
|
+
n.current = t.target.ownerDocument.activeElement, e?.(t);
|
|
1477
|
+
},
|
|
1478
|
+
onCloseAutoFocus(e) {
|
|
1479
|
+
if (t?.(e), e.defaultPrevented) return;
|
|
1480
|
+
let r = n.current;
|
|
1481
|
+
r instanceof HTMLElement && r.isConnected && (e.preventDefault(), r.focus({ preventScroll: !0 }));
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
//#endregion
|
|
1526
1486
|
//#region src/components/Dialog/Dialog.tsx
|
|
1527
|
-
var
|
|
1487
|
+
var os = {
|
|
1528
1488
|
default: {
|
|
1529
|
-
component:
|
|
1489
|
+
component: yn,
|
|
1530
1490
|
className: "aivex:text-icon-success"
|
|
1531
1491
|
},
|
|
1532
1492
|
warning: {
|
|
1533
|
-
component:
|
|
1493
|
+
component: rn,
|
|
1534
1494
|
className: "aivex:text-icon-warning"
|
|
1535
1495
|
}
|
|
1536
1496
|
};
|
|
1537
|
-
function
|
|
1538
|
-
let
|
|
1539
|
-
return /* @__PURE__ */ V(
|
|
1540
|
-
open:
|
|
1541
|
-
defaultOpen:
|
|
1542
|
-
onOpenChange:
|
|
1543
|
-
...
|
|
1544
|
-
children: /* @__PURE__ */ H(
|
|
1497
|
+
function ss({ 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 }) {
|
|
1498
|
+
let p = as(), m = os[i], h = u ? m.component : null, g = !!h, _ = i === "warning" ? "danger" : "primary";
|
|
1499
|
+
return /* @__PURE__ */ V(X.Root, {
|
|
1500
|
+
open: t,
|
|
1501
|
+
defaultOpen: n,
|
|
1502
|
+
onOpenChange: r,
|
|
1503
|
+
...f,
|
|
1504
|
+
children: /* @__PURE__ */ H(X.Portal, { children: [/* @__PURE__ */ V(X.Overlay, {
|
|
1545
1505
|
asChild: !0,
|
|
1546
|
-
children: /* @__PURE__ */ V(
|
|
1547
|
-
}), /* @__PURE__ */ V(
|
|
1548
|
-
ref:
|
|
1506
|
+
children: /* @__PURE__ */ V(is, { type: "dim" })
|
|
1507
|
+
}), /* @__PURE__ */ V(X.Content, {
|
|
1508
|
+
ref: d,
|
|
1509
|
+
...p,
|
|
1549
1510
|
className: "aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50 aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none",
|
|
1550
|
-
...
|
|
1511
|
+
...o ? {} : { "aria-describedby": void 0 },
|
|
1551
1512
|
children: /* @__PURE__ */ H("div", {
|
|
1552
1513
|
className: "aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl",
|
|
1553
1514
|
children: [/* @__PURE__ */ H("div", {
|
|
1554
|
-
className:
|
|
1515
|
+
className: e("aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs", g ? "aivex:items-center aivex:justify-center aivex:text-center" : "aivex:items-start aivex:text-left"),
|
|
1555
1516
|
children: [
|
|
1556
|
-
|
|
1557
|
-
className:
|
|
1558
|
-
children: /* @__PURE__ */ V(
|
|
1517
|
+
h && /* @__PURE__ */ V("span", {
|
|
1518
|
+
className: e("aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none", m.className),
|
|
1519
|
+
children: /* @__PURE__ */ V(h, { size: 28 })
|
|
1559
1520
|
}),
|
|
1560
|
-
/* @__PURE__ */ V(
|
|
1521
|
+
/* @__PURE__ */ V(X.Title, {
|
|
1561
1522
|
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary",
|
|
1562
|
-
children:
|
|
1523
|
+
children: a
|
|
1563
1524
|
}),
|
|
1564
|
-
|
|
1525
|
+
o && /* @__PURE__ */ V(X.Description, {
|
|
1565
1526
|
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary",
|
|
1566
|
-
children:
|
|
1527
|
+
children: o
|
|
1567
1528
|
}),
|
|
1568
|
-
|
|
1529
|
+
s
|
|
1569
1530
|
]
|
|
1570
|
-
}), (
|
|
1531
|
+
}), (c || l) && /* @__PURE__ */ H("div", {
|
|
1571
1532
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
1572
|
-
children: [
|
|
1573
|
-
...
|
|
1574
|
-
defaultColor:
|
|
1533
|
+
children: [c && /* @__PURE__ */ V(cs, { ...c }), l && /* @__PURE__ */ V(ls, {
|
|
1534
|
+
...l,
|
|
1535
|
+
defaultColor: _
|
|
1575
1536
|
})]
|
|
1576
1537
|
})]
|
|
1577
1538
|
})
|
|
1578
1539
|
})] })
|
|
1579
1540
|
});
|
|
1580
1541
|
}
|
|
1581
|
-
function
|
|
1582
|
-
return /* @__PURE__ */ V(
|
|
1542
|
+
function cs({ children: e, onClick: t, ...n }) {
|
|
1543
|
+
return /* @__PURE__ */ V(X.Cancel, {
|
|
1583
1544
|
asChild: !0,
|
|
1584
|
-
children: /* @__PURE__ */ V(
|
|
1545
|
+
children: /* @__PURE__ */ V(R, {
|
|
1585
1546
|
variant: "solid",
|
|
1586
1547
|
color: "secondary",
|
|
1587
1548
|
size: "lg",
|
|
@@ -1594,8 +1555,8 @@ function gs({ children: e, onClick: t, ...n }) {
|
|
|
1594
1555
|
})
|
|
1595
1556
|
});
|
|
1596
1557
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return /* @__PURE__ */ V(
|
|
1558
|
+
function ls({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1559
|
+
return /* @__PURE__ */ V(R, {
|
|
1599
1560
|
variant: "solid",
|
|
1600
1561
|
color: t,
|
|
1601
1562
|
size: "lg",
|
|
@@ -1609,13 +1570,13 @@ function _s({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1609
1570
|
}
|
|
1610
1571
|
//#endregion
|
|
1611
1572
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1612
|
-
function
|
|
1613
|
-
let
|
|
1573
|
+
function us({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1574
|
+
let o = q(null), s = q({
|
|
1614
1575
|
isDragging: !1,
|
|
1615
1576
|
startX: 0,
|
|
1616
1577
|
scrollLeft: 0
|
|
1617
|
-
}),
|
|
1618
|
-
let t =
|
|
1578
|
+
}), c = (e) => {
|
|
1579
|
+
let t = o.current, { current: n } = s;
|
|
1619
1580
|
if (t) if (e.type === "mousedown") n.isDragging = !0, n.startX = e.clientX, n.scrollLeft = t.scrollLeft;
|
|
1620
1581
|
else if (e.type === "mousemove" && n.isDragging) {
|
|
1621
1582
|
e.preventDefault();
|
|
@@ -1624,111 +1585,112 @@ function vs({ children: e, className: t, autoScrollToEnd: n = !1, smoothScroll:
|
|
|
1624
1585
|
} else (e.type === "mouseup" || e.type === "mouseleave") && (n.isDragging = !1);
|
|
1625
1586
|
};
|
|
1626
1587
|
return G(() => {
|
|
1627
|
-
let e =
|
|
1628
|
-
|
|
1588
|
+
let e = o.current;
|
|
1589
|
+
r && e && requestAnimationFrame(() => {
|
|
1629
1590
|
e.scrollTo({
|
|
1630
1591
|
left: e.scrollWidth,
|
|
1631
|
-
behavior:
|
|
1592
|
+
behavior: i ? "smooth" : "auto"
|
|
1632
1593
|
});
|
|
1633
1594
|
});
|
|
1634
1595
|
}, [
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1596
|
+
t,
|
|
1597
|
+
r,
|
|
1598
|
+
i
|
|
1638
1599
|
]), /* @__PURE__ */ V("div", {
|
|
1639
|
-
ref:
|
|
1640
|
-
className:
|
|
1641
|
-
onMouseDown:
|
|
1642
|
-
onMouseMove:
|
|
1643
|
-
onMouseUp:
|
|
1644
|
-
onMouseLeave:
|
|
1645
|
-
children:
|
|
1600
|
+
ref: o,
|
|
1601
|
+
className: e("aivex:overflow-x-auto aivex:overflow-y-hidden aivex:hide-scrollbar aivex:cursor-grab aivex:active:cursor-grabbing aivex:select-none", a && "aivex:scroll-fade-x", n),
|
|
1602
|
+
onMouseDown: c,
|
|
1603
|
+
onMouseMove: c,
|
|
1604
|
+
onMouseUp: c,
|
|
1605
|
+
onMouseLeave: c,
|
|
1606
|
+
children: t
|
|
1646
1607
|
});
|
|
1647
1608
|
}
|
|
1648
1609
|
//#endregion
|
|
1649
1610
|
//#region src/components/Drawer/Drawer.tsx
|
|
1650
|
-
var
|
|
1611
|
+
var ds = {
|
|
1651
1612
|
left: "aivex:left-0 aivex:border-r",
|
|
1652
1613
|
right: "aivex:right-0 aivex:border-l"
|
|
1653
1614
|
};
|
|
1654
|
-
function
|
|
1655
|
-
return /* @__PURE__ */ V(
|
|
1656
|
-
modal:
|
|
1657
|
-
open:
|
|
1658
|
-
onOpenChange:
|
|
1659
|
-
children: /* @__PURE__ */ V(
|
|
1660
|
-
ref:
|
|
1615
|
+
function fs({ 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 }) {
|
|
1616
|
+
return /* @__PURE__ */ V(Z.Root, {
|
|
1617
|
+
modal: o,
|
|
1618
|
+
open: t,
|
|
1619
|
+
onOpenChange: n,
|
|
1620
|
+
children: /* @__PURE__ */ V(Z.Portal, { children: /* @__PURE__ */ H(Z.Content, {
|
|
1621
|
+
ref: h,
|
|
1661
1622
|
"aria-describedby": void 0,
|
|
1662
|
-
"data-side":
|
|
1663
|
-
className:
|
|
1664
|
-
style:
|
|
1665
|
-
onAnimationEnd: (
|
|
1666
|
-
!
|
|
1623
|
+
"data-side": a,
|
|
1624
|
+
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", ds[a], s),
|
|
1625
|
+
style: c,
|
|
1626
|
+
onAnimationEnd: (e) => {
|
|
1627
|
+
!t && e.target === e.currentTarget && l?.();
|
|
1667
1628
|
},
|
|
1668
|
-
onOpenAutoFocus:
|
|
1669
|
-
onCloseAutoFocus:
|
|
1670
|
-
onEscapeKeyDown:
|
|
1671
|
-
|
|
1672
|
-
|
|
1629
|
+
onOpenAutoFocus: u,
|
|
1630
|
+
onCloseAutoFocus: d,
|
|
1631
|
+
onEscapeKeyDown: f,
|
|
1632
|
+
onKeyDown: p,
|
|
1633
|
+
onInteractOutside: m,
|
|
1634
|
+
children: [/* @__PURE__ */ V(Z.Title, {
|
|
1673
1635
|
className: "aivex:sr-only",
|
|
1674
|
-
children:
|
|
1675
|
-
}),
|
|
1636
|
+
children: r
|
|
1637
|
+
}), i]
|
|
1676
1638
|
}) })
|
|
1677
1639
|
});
|
|
1678
1640
|
}
|
|
1679
1641
|
//#endregion
|
|
1680
1642
|
//#region src/components/Field/Field.tsx
|
|
1681
|
-
var
|
|
1682
|
-
function
|
|
1683
|
-
let e =
|
|
1643
|
+
var ps = Wi(null);
|
|
1644
|
+
function ms() {
|
|
1645
|
+
let e = qi(ps);
|
|
1684
1646
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1685
1647
|
return e;
|
|
1686
1648
|
}
|
|
1687
|
-
var
|
|
1649
|
+
var hs = B("aivex:flex aivex:w-full", {
|
|
1688
1650
|
variants: { orientation: {
|
|
1689
1651
|
vertical: "aivex:flex-col aivex:gap-xs",
|
|
1690
1652
|
horizontal: "aivex:flex-row aivex:items-center aivex:gap-sm aivex:has-[[data-slot=field-content]]:items-start"
|
|
1691
1653
|
} },
|
|
1692
1654
|
defaultVariants: { orientation: "vertical" }
|
|
1693
1655
|
});
|
|
1694
|
-
function
|
|
1695
|
-
let
|
|
1696
|
-
controlId:
|
|
1697
|
-
descriptionId: `${
|
|
1698
|
-
errorId: `${
|
|
1699
|
-
invalid:
|
|
1700
|
-
disabled:
|
|
1656
|
+
function gs({ className: t, orientation: n, fieldId: r, invalid: i = !1, disabled: a = !1, ref: o, ...s }) {
|
|
1657
|
+
let c = K(), l = r ?? c, u = {
|
|
1658
|
+
controlId: l,
|
|
1659
|
+
descriptionId: `${l}-description`,
|
|
1660
|
+
errorId: `${l}-error`,
|
|
1661
|
+
invalid: i,
|
|
1662
|
+
disabled: a
|
|
1701
1663
|
};
|
|
1702
|
-
return /* @__PURE__ */ V(
|
|
1703
|
-
value:
|
|
1664
|
+
return /* @__PURE__ */ V(ps.Provider, {
|
|
1665
|
+
value: u,
|
|
1704
1666
|
children: /* @__PURE__ */ V("div", {
|
|
1705
|
-
ref:
|
|
1706
|
-
className:
|
|
1707
|
-
"data-invalid":
|
|
1708
|
-
"data-disabled":
|
|
1709
|
-
...
|
|
1667
|
+
ref: o,
|
|
1668
|
+
className: e(hs({ orientation: n }), t),
|
|
1669
|
+
"data-invalid": i || void 0,
|
|
1670
|
+
"data-disabled": a || void 0,
|
|
1671
|
+
...s
|
|
1710
1672
|
})
|
|
1711
1673
|
});
|
|
1712
1674
|
}
|
|
1713
|
-
function
|
|
1714
|
-
let { controlId:
|
|
1675
|
+
function _s({ className: t, ref: n, ...r }) {
|
|
1676
|
+
let { controlId: i, invalid: a, disabled: o } = ms();
|
|
1715
1677
|
return /* @__PURE__ */ V("label", {
|
|
1716
|
-
ref:
|
|
1717
|
-
htmlFor:
|
|
1718
|
-
className:
|
|
1719
|
-
...
|
|
1678
|
+
ref: n,
|
|
1679
|
+
htmlFor: i,
|
|
1680
|
+
className: e("aivex:text-label-md aivex:text-text-secondary aivex:cursor-pointer aivex:select-none", o && "aivex:cursor-not-allowed aivex:text-text-disabled", !o && a && "aivex:text-text-danger", t),
|
|
1681
|
+
...r
|
|
1720
1682
|
});
|
|
1721
1683
|
}
|
|
1722
|
-
function
|
|
1684
|
+
function vs({ className: t, ref: n, ...r }) {
|
|
1723
1685
|
return /* @__PURE__ */ V("div", {
|
|
1724
|
-
ref:
|
|
1686
|
+
ref: n,
|
|
1725
1687
|
"data-slot": "field-content",
|
|
1726
|
-
className:
|
|
1727
|
-
...
|
|
1688
|
+
className: e("aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs", t),
|
|
1689
|
+
...r
|
|
1728
1690
|
});
|
|
1729
1691
|
}
|
|
1730
|
-
function
|
|
1731
|
-
let { controlId: t, descriptionId: n, errorId: r, invalid: i } =
|
|
1692
|
+
function ys({ children: e }) {
|
|
1693
|
+
let { controlId: t, descriptionId: n, errorId: r, invalid: i } = ms();
|
|
1732
1694
|
return /* @__PURE__ */ V(U, {
|
|
1733
1695
|
id: t,
|
|
1734
1696
|
"aria-describedby": i ? `${n} ${r}` : n,
|
|
@@ -1736,86 +1698,86 @@ function Ds({ children: e }) {
|
|
|
1736
1698
|
children: e
|
|
1737
1699
|
});
|
|
1738
1700
|
}
|
|
1739
|
-
function
|
|
1740
|
-
let { descriptionId:
|
|
1701
|
+
function bs({ className: t, ref: n, ...r }) {
|
|
1702
|
+
let { descriptionId: i, disabled: a } = ms();
|
|
1741
1703
|
return /* @__PURE__ */ V("p", {
|
|
1742
|
-
ref: t,
|
|
1743
|
-
id: r,
|
|
1744
|
-
className: I("aivex:text-caption-md aivex:text-text-secondary", i && "aivex:text-text-disabled", e),
|
|
1745
|
-
...n
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
function ks({ className: e, children: t, ref: n, ...r }) {
|
|
1749
|
-
let { errorId: i, invalid: a } = Ss();
|
|
1750
|
-
return !a && !t ? null : /* @__PURE__ */ V("p", {
|
|
1751
1704
|
ref: n,
|
|
1752
1705
|
id: i,
|
|
1706
|
+
className: e("aivex:text-caption-md aivex:text-text-secondary", a && "aivex:text-text-disabled", t),
|
|
1707
|
+
...r
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
function xs({ className: t, children: n, ref: r, ...i }) {
|
|
1711
|
+
let { errorId: a, invalid: o } = ms();
|
|
1712
|
+
return !o && !n ? null : /* @__PURE__ */ V("p", {
|
|
1713
|
+
ref: r,
|
|
1714
|
+
id: a,
|
|
1753
1715
|
role: "alert",
|
|
1754
|
-
className:
|
|
1755
|
-
...
|
|
1756
|
-
children:
|
|
1716
|
+
className: e("aivex:text-caption-md aivex:text-text-danger", t),
|
|
1717
|
+
...i,
|
|
1718
|
+
children: n
|
|
1757
1719
|
});
|
|
1758
1720
|
}
|
|
1759
1721
|
//#endregion
|
|
1760
1722
|
//#region src/components/Modal/Modal.tsx
|
|
1761
|
-
var
|
|
1723
|
+
var Ss = Wi(!1), Cs = {
|
|
1762
1724
|
sm: "aivex:max-w-modal-sm",
|
|
1763
1725
|
md: "aivex:max-w-modal-md",
|
|
1764
1726
|
lg: "aivex:max-w-modal-lg",
|
|
1765
1727
|
xl: "aivex:max-w-[960px]",
|
|
1766
1728
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
1767
|
-
},
|
|
1768
|
-
function
|
|
1769
|
-
let
|
|
1729
|
+
}, ws = 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"), Ts = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
1730
|
+
function Es({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: s, ...c }) {
|
|
1731
|
+
let l = qi(Ss), u = /* @__PURE__ */ V("h2", {
|
|
1770
1732
|
...t ? { id: t } : {},
|
|
1771
1733
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
1772
1734
|
children: e
|
|
1773
|
-
}),
|
|
1735
|
+
}), d = n ? /* @__PURE__ */ V("p", {
|
|
1774
1736
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-body-md-regular aivex:text-text-secondary aivex:break-words",
|
|
1775
1737
|
children: n
|
|
1776
|
-
}) : null,
|
|
1738
|
+
}) : null, f = /* @__PURE__ */ V(o, {
|
|
1777
1739
|
size: "md",
|
|
1778
1740
|
onClick: i,
|
|
1779
1741
|
className: "aivex:shrink-0",
|
|
1780
1742
|
"aria-label": a,
|
|
1781
|
-
children: /* @__PURE__ */ V(
|
|
1782
|
-
}),
|
|
1743
|
+
children: /* @__PURE__ */ V(z, { size: 24 })
|
|
1744
|
+
}), p = r ? /* @__PURE__ */ V(Ds, { button: r }) : null;
|
|
1783
1745
|
return /* @__PURE__ */ H("div", {
|
|
1784
|
-
ref:
|
|
1785
|
-
className:
|
|
1786
|
-
...
|
|
1746
|
+
ref: s,
|
|
1747
|
+
className: Ts,
|
|
1748
|
+
...c,
|
|
1787
1749
|
children: [/* @__PURE__ */ H("div", {
|
|
1788
1750
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
1789
1751
|
children: [
|
|
1790
|
-
|
|
1752
|
+
p,
|
|
1791
1753
|
/* @__PURE__ */ V("div", {
|
|
1792
1754
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center",
|
|
1793
|
-
children:
|
|
1755
|
+
children: l ? /* @__PURE__ */ V(Z.Title, {
|
|
1794
1756
|
asChild: !0,
|
|
1795
|
-
children:
|
|
1796
|
-
}) :
|
|
1757
|
+
children: u
|
|
1758
|
+
}) : u
|
|
1797
1759
|
}),
|
|
1798
|
-
i ?
|
|
1760
|
+
i ? f : l && /* @__PURE__ */ V(Z.Close, {
|
|
1799
1761
|
asChild: !0,
|
|
1800
|
-
children:
|
|
1762
|
+
children: f
|
|
1801
1763
|
})
|
|
1802
1764
|
]
|
|
1803
|
-
}),
|
|
1765
|
+
}), l && d ? /* @__PURE__ */ V(Z.Description, {
|
|
1804
1766
|
asChild: !0,
|
|
1805
|
-
children:
|
|
1806
|
-
}) :
|
|
1767
|
+
children: d
|
|
1768
|
+
}) : d]
|
|
1807
1769
|
});
|
|
1808
1770
|
}
|
|
1809
|
-
function
|
|
1771
|
+
function Ds({ button: e }) {
|
|
1810
1772
|
let { children: t, ...n } = e;
|
|
1811
|
-
return /* @__PURE__ */ V(
|
|
1773
|
+
return /* @__PURE__ */ V(o, {
|
|
1812
1774
|
size: "md",
|
|
1813
1775
|
className: "aivex:shrink-0",
|
|
1814
1776
|
...n,
|
|
1815
1777
|
children: t
|
|
1816
1778
|
});
|
|
1817
1779
|
}
|
|
1818
|
-
function
|
|
1780
|
+
function Os({ children: e, ref: t, ...n }) {
|
|
1819
1781
|
return /* @__PURE__ */ V("div", {
|
|
1820
1782
|
ref: t,
|
|
1821
1783
|
className: "aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto",
|
|
@@ -1823,14 +1785,14 @@ function Is({ children: e, ref: t, ...n }) {
|
|
|
1823
1785
|
children: e
|
|
1824
1786
|
});
|
|
1825
1787
|
}
|
|
1826
|
-
function
|
|
1788
|
+
function ks({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1827
1789
|
return /* @__PURE__ */ H("div", {
|
|
1828
1790
|
ref: r,
|
|
1829
1791
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1830
1792
|
...i,
|
|
1831
1793
|
children: [/* @__PURE__ */ V("div", {
|
|
1832
1794
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1833
|
-
children: e && /* @__PURE__ */ V(
|
|
1795
|
+
children: e && /* @__PURE__ */ V(As, {
|
|
1834
1796
|
button: e,
|
|
1835
1797
|
variant: "ghost",
|
|
1836
1798
|
color: "secondary",
|
|
@@ -1838,12 +1800,12 @@ function Ls({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1838
1800
|
})
|
|
1839
1801
|
}), /* @__PURE__ */ H("div", {
|
|
1840
1802
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1841
|
-
children: [t && /* @__PURE__ */ V(
|
|
1803
|
+
children: [t && /* @__PURE__ */ V(As, {
|
|
1842
1804
|
button: t,
|
|
1843
1805
|
variant: "solid",
|
|
1844
1806
|
color: "secondary",
|
|
1845
1807
|
className: "aivex:min-w-[84px]"
|
|
1846
|
-
}), n && /* @__PURE__ */ V(
|
|
1808
|
+
}), n && /* @__PURE__ */ V(As, {
|
|
1847
1809
|
button: n,
|
|
1848
1810
|
variant: "solid",
|
|
1849
1811
|
color: "primary",
|
|
@@ -1852,9 +1814,9 @@ function Ls({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1852
1814
|
})]
|
|
1853
1815
|
});
|
|
1854
1816
|
}
|
|
1855
|
-
function
|
|
1817
|
+
function As({ button: e, variant: t, color: n, className: r }) {
|
|
1856
1818
|
let { children: i, ...a } = e;
|
|
1857
|
-
return /* @__PURE__ */ V(
|
|
1819
|
+
return /* @__PURE__ */ V(R, {
|
|
1858
1820
|
variant: t,
|
|
1859
1821
|
color: n,
|
|
1860
1822
|
size: "lg",
|
|
@@ -1863,58 +1825,58 @@ function Rs({ button: e, variant: t, color: n, className: r }) {
|
|
|
1863
1825
|
children: i
|
|
1864
1826
|
});
|
|
1865
1827
|
}
|
|
1866
|
-
function
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1828
|
+
function js({ 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 }) {
|
|
1829
|
+
let m = as(s, c);
|
|
1830
|
+
return /* @__PURE__ */ V(Z.Root, {
|
|
1831
|
+
open: t,
|
|
1832
|
+
defaultOpen: n,
|
|
1833
|
+
onOpenChange: r,
|
|
1834
|
+
children: /* @__PURE__ */ H(Z.Portal, { children: [/* @__PURE__ */ V(Z.Overlay, { className: "aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ V(Z.Content, {
|
|
1835
|
+
ref: f,
|
|
1836
|
+
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", ws, Cs[a]),
|
|
1874
1837
|
onInteractOutside: (e) => {
|
|
1875
|
-
|
|
1876
|
-
},
|
|
1877
|
-
onOpenAutoFocus: s,
|
|
1878
|
-
onKeyDown: (e) => {
|
|
1879
|
-
o && e.stopPropagation(), l?.(e);
|
|
1838
|
+
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1880
1839
|
},
|
|
1881
|
-
...
|
|
1882
|
-
|
|
1840
|
+
...m,
|
|
1841
|
+
onKeyDown: u,
|
|
1842
|
+
onKeyUp: d,
|
|
1843
|
+
...p,
|
|
1844
|
+
children: /* @__PURE__ */ V(Ss.Provider, {
|
|
1883
1845
|
value: !0,
|
|
1884
|
-
children:
|
|
1846
|
+
children: i
|
|
1885
1847
|
})
|
|
1886
1848
|
})] })
|
|
1887
1849
|
});
|
|
1888
1850
|
}
|
|
1889
|
-
function
|
|
1890
|
-
let
|
|
1851
|
+
function Ms({ title: t, description: n, headingButton: r, children: i, tertiaryButton: a, secondaryButton: o, primaryButton: s, size: c = "md", onClose: l, closeAriaLabel: u, ref: d }) {
|
|
1852
|
+
let f = K(), p = !!(a || o || s);
|
|
1891
1853
|
return /* @__PURE__ */ H("div", {
|
|
1892
|
-
ref:
|
|
1854
|
+
ref: d,
|
|
1893
1855
|
role: "dialog",
|
|
1894
1856
|
"aria-modal": "true",
|
|
1895
|
-
"aria-labelledby":
|
|
1896
|
-
className:
|
|
1857
|
+
"aria-labelledby": f,
|
|
1858
|
+
className: e(ws, Cs[c]),
|
|
1897
1859
|
children: [
|
|
1898
|
-
/* @__PURE__ */ V(
|
|
1899
|
-
title:
|
|
1900
|
-
titleId:
|
|
1901
|
-
description:
|
|
1902
|
-
headingButton:
|
|
1903
|
-
onClose:
|
|
1904
|
-
closeAriaLabel:
|
|
1860
|
+
/* @__PURE__ */ V(Es, {
|
|
1861
|
+
title: t,
|
|
1862
|
+
titleId: f,
|
|
1863
|
+
description: n,
|
|
1864
|
+
headingButton: r,
|
|
1865
|
+
onClose: l,
|
|
1866
|
+
closeAriaLabel: u
|
|
1905
1867
|
}),
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
tertiaryButton:
|
|
1909
|
-
secondaryButton:
|
|
1910
|
-
primaryButton:
|
|
1868
|
+
i && /* @__PURE__ */ V(Os, { children: i }),
|
|
1869
|
+
p && /* @__PURE__ */ V(ks, {
|
|
1870
|
+
tertiaryButton: a,
|
|
1871
|
+
secondaryButton: o,
|
|
1872
|
+
primaryButton: s
|
|
1911
1873
|
})
|
|
1912
1874
|
]
|
|
1913
1875
|
});
|
|
1914
1876
|
}
|
|
1915
|
-
function
|
|
1877
|
+
function Ns({ 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 }) {
|
|
1916
1878
|
let m = !!(s || c || l);
|
|
1917
|
-
return /* @__PURE__ */ H(
|
|
1879
|
+
return /* @__PURE__ */ H(js, {
|
|
1918
1880
|
open: e,
|
|
1919
1881
|
defaultOpen: t,
|
|
1920
1882
|
onOpenChange: n,
|
|
@@ -1923,14 +1885,14 @@ function Vs({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1923
1885
|
onOpenAutoFocus: f,
|
|
1924
1886
|
...i ? {} : { "aria-describedby": void 0 },
|
|
1925
1887
|
children: [
|
|
1926
|
-
/* @__PURE__ */ V(
|
|
1888
|
+
/* @__PURE__ */ V(Es, {
|
|
1927
1889
|
title: r,
|
|
1928
1890
|
description: i,
|
|
1929
1891
|
headingButton: a,
|
|
1930
1892
|
closeAriaLabel: p
|
|
1931
1893
|
}),
|
|
1932
|
-
o && /* @__PURE__ */ V(
|
|
1933
|
-
m && /* @__PURE__ */ V(
|
|
1894
|
+
o && /* @__PURE__ */ V(Os, { children: o }),
|
|
1895
|
+
m && /* @__PURE__ */ V(ks, {
|
|
1934
1896
|
tertiaryButton: s,
|
|
1935
1897
|
secondaryButton: c,
|
|
1936
1898
|
primaryButton: l
|
|
@@ -1940,27 +1902,27 @@ function Vs({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1940
1902
|
}
|
|
1941
1903
|
//#endregion
|
|
1942
1904
|
//#region src/components/Modal/ModalBase.tsx
|
|
1943
|
-
function
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1905
|
+
function Ps({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0, className: o, onOpenAutoFocus: s, onCloseAutoFocus: c, onEscapeKeyDown: l, onInteractOutside: u, ref: d }) {
|
|
1906
|
+
let f = as(s, c);
|
|
1907
|
+
return /* @__PURE__ */ V(Z.Root, {
|
|
1908
|
+
open: t,
|
|
1909
|
+
defaultOpen: n,
|
|
1910
|
+
onOpenChange: r,
|
|
1911
|
+
children: /* @__PURE__ */ H(Z.Portal, { children: [/* @__PURE__ */ V(Z.Overlay, { className: e("aivex:fixed aivex:inset-0 aivex:z-50", a && "aivex:bg-black/30") }), /* @__PURE__ */ V(Z.Content, {
|
|
1912
|
+
ref: d,
|
|
1950
1913
|
"aria-describedby": void 0,
|
|
1951
|
-
className:
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
children: r
|
|
1914
|
+
className: e("aivex:fixed aivex:z-50 aivex:outline-none", o),
|
|
1915
|
+
...f,
|
|
1916
|
+
onEscapeKeyDown: l,
|
|
1917
|
+
onInteractOutside: u,
|
|
1918
|
+
children: i
|
|
1957
1919
|
})] })
|
|
1958
1920
|
});
|
|
1959
1921
|
}
|
|
1960
|
-
var
|
|
1961
|
-
Title:
|
|
1962
|
-
Close:
|
|
1963
|
-
}),
|
|
1922
|
+
var Fs = Object.assign(Ps, {
|
|
1923
|
+
Title: Z.Title,
|
|
1924
|
+
Close: Z.Close
|
|
1925
|
+
}), Is = B("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
1964
1926
|
variants: {
|
|
1965
1927
|
size: {
|
|
1966
1928
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1976,43 +1938,43 @@ var Us = Object.assign(Hs, {
|
|
|
1976
1938
|
type: "default"
|
|
1977
1939
|
}
|
|
1978
1940
|
});
|
|
1979
|
-
function
|
|
1941
|
+
function Ls({ className: t, size: n = "sm", type: r = "default", startContent: i, showIcon: a = !1, disabled: s = !1, onRemove: c, children: l, ref: u, ...d }) {
|
|
1980
1942
|
return /* @__PURE__ */ H("div", {
|
|
1981
|
-
ref:
|
|
1982
|
-
className:
|
|
1983
|
-
size:
|
|
1984
|
-
type:
|
|
1985
|
-
}),
|
|
1986
|
-
...
|
|
1943
|
+
ref: u,
|
|
1944
|
+
className: e(Is({
|
|
1945
|
+
size: n,
|
|
1946
|
+
type: r
|
|
1947
|
+
}), s && "aivex:opacity-disable", t),
|
|
1948
|
+
...d,
|
|
1987
1949
|
children: [
|
|
1988
|
-
|
|
1950
|
+
i ? /* @__PURE__ */ V("span", {
|
|
1989
1951
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
1990
|
-
children:
|
|
1991
|
-
}) :
|
|
1952
|
+
children: i
|
|
1953
|
+
}) : a ? /* @__PURE__ */ V("span", {
|
|
1992
1954
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1993
|
-
children: /* @__PURE__ */ V(
|
|
1955
|
+
children: /* @__PURE__ */ V(vr, { size: 16 })
|
|
1994
1956
|
}) : null,
|
|
1995
1957
|
/* @__PURE__ */ V("span", {
|
|
1996
|
-
className:
|
|
1997
|
-
children:
|
|
1958
|
+
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]"),
|
|
1959
|
+
children: l
|
|
1998
1960
|
}),
|
|
1999
|
-
!
|
|
1961
|
+
!s && c && /* @__PURE__ */ V(o, {
|
|
2000
1962
|
size: "xs",
|
|
2001
1963
|
shape: "rounded",
|
|
2002
1964
|
onClick: (e) => {
|
|
2003
|
-
e.stopPropagation(),
|
|
1965
|
+
e.stopPropagation(), c();
|
|
2004
1966
|
},
|
|
2005
1967
|
className: "aivex:shrink-0",
|
|
2006
1968
|
"aria-label": "태그 삭제",
|
|
2007
|
-
children: /* @__PURE__ */ V(
|
|
1969
|
+
children: /* @__PURE__ */ V(z, { size: 12 })
|
|
2008
1970
|
})
|
|
2009
1971
|
]
|
|
2010
1972
|
});
|
|
2011
1973
|
}
|
|
2012
1974
|
//#endregion
|
|
2013
1975
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
2014
|
-
var
|
|
2015
|
-
let [l, u] =
|
|
1976
|
+
var Rs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", zs = Ki(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
1977
|
+
let [l, u] = J(i), d = q(null), [f, p] = J(!1), m = W(() => {
|
|
2016
1978
|
let e = d.current;
|
|
2017
1979
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
2018
1980
|
}, []), h = ({ groupValue: e, optionValue: t }) => r.find((t) => t.groupValue === e)?.options.find((e) => e.value === t), g = l.map((e) => {
|
|
@@ -2048,7 +2010,7 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2048
2010
|
r,
|
|
2049
2011
|
e,
|
|
2050
2012
|
m
|
|
2051
|
-
]), /* @__PURE__ */ V(
|
|
2013
|
+
]), /* @__PURE__ */ V(Ns, {
|
|
2052
2014
|
open: e,
|
|
2053
2015
|
onOpenChange: (e) => {
|
|
2054
2016
|
e || t();
|
|
@@ -2071,8 +2033,8 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2071
2033
|
onScroll: m,
|
|
2072
2034
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
2073
2035
|
style: f ? {
|
|
2074
|
-
maskImage:
|
|
2075
|
-
WebkitMaskImage:
|
|
2036
|
+
maskImage: Rs,
|
|
2037
|
+
WebkitMaskImage: Rs
|
|
2076
2038
|
} : void 0,
|
|
2077
2039
|
children: r.map((e) => /* @__PURE__ */ V("div", {
|
|
2078
2040
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -2101,12 +2063,12 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2101
2063
|
})]
|
|
2102
2064
|
})
|
|
2103
2065
|
}, e.groupValue))
|
|
2104
|
-
}), l.length > 0 && /* @__PURE__ */ V(
|
|
2066
|
+
}), l.length > 0 && /* @__PURE__ */ V(us, {
|
|
2105
2067
|
autoScrollToEnd: !0,
|
|
2106
2068
|
className: "aivex:shrink-0",
|
|
2107
2069
|
children: /* @__PURE__ */ V("div", {
|
|
2108
2070
|
className: "aivex:flex aivex:gap-md",
|
|
2109
|
-
children: g.map((e) => /* @__PURE__ */ V(
|
|
2071
|
+
children: g.map((e) => /* @__PURE__ */ V(Ls, {
|
|
2110
2072
|
size: "md",
|
|
2111
2073
|
startContent: e.icon,
|
|
2112
2074
|
onRemove: () => b(e.value),
|
|
@@ -2117,7 +2079,7 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2117
2079
|
})]
|
|
2118
2080
|
})
|
|
2119
2081
|
});
|
|
2120
|
-
}),
|
|
2082
|
+
}), Bs = B("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
2121
2083
|
variants: {
|
|
2122
2084
|
state: {
|
|
2123
2085
|
default: "aivex:border-border-default",
|
|
@@ -2174,38 +2136,38 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2174
2136
|
layout: "inline"
|
|
2175
2137
|
}
|
|
2176
2138
|
});
|
|
2177
|
-
function
|
|
2178
|
-
let
|
|
2139
|
+
function Vs({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layout: o = "inline", startContent: s, endContent: c, className: l, children: u }) {
|
|
2140
|
+
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");
|
|
2179
2141
|
return /* @__PURE__ */ H("div", {
|
|
2180
|
-
className:
|
|
2181
|
-
state:
|
|
2182
|
-
size:
|
|
2183
|
-
layout:
|
|
2184
|
-
}),
|
|
2142
|
+
className: e(Bs({
|
|
2143
|
+
state: d,
|
|
2144
|
+
size: a,
|
|
2145
|
+
layout: o
|
|
2146
|
+
}), l),
|
|
2185
2147
|
children: [
|
|
2186
|
-
o && /* @__PURE__ */ V("span", {
|
|
2187
|
-
className: d,
|
|
2188
|
-
children: o
|
|
2189
|
-
}),
|
|
2190
|
-
l,
|
|
2191
2148
|
s && /* @__PURE__ */ V("span", {
|
|
2192
|
-
className:
|
|
2149
|
+
className: f,
|
|
2193
2150
|
children: s
|
|
2151
|
+
}),
|
|
2152
|
+
u,
|
|
2153
|
+
c && /* @__PURE__ */ V("span", {
|
|
2154
|
+
className: f,
|
|
2155
|
+
children: c
|
|
2194
2156
|
})
|
|
2195
2157
|
]
|
|
2196
2158
|
});
|
|
2197
2159
|
}
|
|
2198
2160
|
//#endregion
|
|
2199
2161
|
//#region src/components/Logo/index.tsx
|
|
2200
|
-
function
|
|
2201
|
-
if (!
|
|
2162
|
+
function Hs(e, t) {
|
|
2163
|
+
if (!Gi(e)) return;
|
|
2202
2164
|
let n = e.props;
|
|
2203
2165
|
typeof n.id == "string" && t.add(n.id);
|
|
2204
2166
|
let r = n.children;
|
|
2205
|
-
if (r != null) for (let e of Array.isArray(r) ? r : [r])
|
|
2167
|
+
if (r != null) for (let e of Array.isArray(r) ? r : [r]) Hs(e, t);
|
|
2206
2168
|
}
|
|
2207
|
-
function
|
|
2208
|
-
if (!
|
|
2169
|
+
function Us(e, t) {
|
|
2170
|
+
if (!Gi(e)) return e;
|
|
2209
2171
|
let n = { ...e.props };
|
|
2210
2172
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
2211
2173
|
for (let e of Object.keys(n)) {
|
|
@@ -2217,20 +2179,20 @@ function Zs(e, t) {
|
|
|
2217
2179
|
}
|
|
2218
2180
|
let r = n.children;
|
|
2219
2181
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2220
|
-
let r =
|
|
2221
|
-
return
|
|
2222
|
-
})),
|
|
2182
|
+
let r = Us(e, t);
|
|
2183
|
+
return Gi(r) && r.key == null ? Ui(r, { key: n }) : r;
|
|
2184
|
+
})), Ui(e, n);
|
|
2223
2185
|
}
|
|
2224
2186
|
function $(e) {
|
|
2225
2187
|
return (t) => {
|
|
2226
|
-
let n =
|
|
2227
|
-
if (
|
|
2188
|
+
let n = K().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2189
|
+
if (Hs(r, i), i.size === 0) return r;
|
|
2228
2190
|
let a = /* @__PURE__ */ new Map();
|
|
2229
2191
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2230
|
-
return
|
|
2192
|
+
return Us(r, a);
|
|
2231
2193
|
};
|
|
2232
2194
|
}
|
|
2233
|
-
var
|
|
2195
|
+
var Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2234
2196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2235
2197
|
viewBox: "0 0 251.366 52",
|
|
2236
2198
|
width: "251.366",
|
|
@@ -2271,7 +2233,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2271
2233
|
fill: e
|
|
2272
2234
|
})
|
|
2273
2235
|
]
|
|
2274
|
-
}),
|
|
2236
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2275
2237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2276
2238
|
viewBox: "0 0 105 24",
|
|
2277
2239
|
width: "105",
|
|
@@ -2431,7 +2393,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2431
2393
|
})
|
|
2432
2394
|
] })
|
|
2433
2395
|
]
|
|
2434
|
-
}),
|
|
2396
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2435
2397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2436
2398
|
viewBox: "0 0 127 24",
|
|
2437
2399
|
width: "127",
|
|
@@ -2641,7 +2603,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2641
2603
|
})
|
|
2642
2604
|
] })
|
|
2643
2605
|
]
|
|
2644
|
-
}),
|
|
2606
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2645
2607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2646
2608
|
viewBox: "0 0 127 24",
|
|
2647
2609
|
width: "127",
|
|
@@ -2809,7 +2771,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2809
2771
|
})
|
|
2810
2772
|
] })
|
|
2811
2773
|
]
|
|
2812
|
-
}),
|
|
2774
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2813
2775
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2814
2776
|
viewBox: "0 0 133 24",
|
|
2815
2777
|
width: "133",
|
|
@@ -2977,7 +2939,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2977
2939
|
})
|
|
2978
2940
|
] })
|
|
2979
2941
|
]
|
|
2980
|
-
}),
|
|
2942
|
+
}), Ys = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2981
2943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2982
2944
|
viewBox: "0 0 24 24",
|
|
2983
2945
|
width: "24",
|
|
@@ -3092,7 +3054,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3092
3054
|
})
|
|
3093
3055
|
] })
|
|
3094
3056
|
]
|
|
3095
|
-
}),
|
|
3057
|
+
}), Xs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3096
3058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3097
3059
|
viewBox: "0 0 108 24",
|
|
3098
3060
|
width: "108",
|
|
@@ -3241,7 +3203,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3241
3203
|
})
|
|
3242
3204
|
] })
|
|
3243
3205
|
]
|
|
3244
|
-
}),
|
|
3206
|
+
}), Zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3245
3207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3246
3208
|
viewBox: "0 0 100 24",
|
|
3247
3209
|
width: "100",
|
|
@@ -3380,7 +3342,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3380
3342
|
})
|
|
3381
3343
|
] })
|
|
3382
3344
|
]
|
|
3383
|
-
}),
|
|
3345
|
+
}), Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3384
3346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3385
3347
|
viewBox: "0 0 81 24",
|
|
3386
3348
|
width: "81",
|
|
@@ -3484,7 +3446,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3484
3446
|
]
|
|
3485
3447
|
})] })
|
|
3486
3448
|
]
|
|
3487
|
-
}),
|
|
3449
|
+
}), $s = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3488
3450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3489
3451
|
viewBox: "0 0 95 24",
|
|
3490
3452
|
width: "95",
|
|
@@ -3684,7 +3646,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3684
3646
|
})
|
|
3685
3647
|
] })
|
|
3686
3648
|
]
|
|
3687
|
-
}),
|
|
3649
|
+
}), ec = $(Ws), tc = $(Gs), nc = $(Ks), rc = $(qs), ic = $(Js), ac = $(Xs), oc = $(Ys), sc = $(Zs), cc = $(Qs), lc = $($s), uc = B("aivex:inline-flex aivex:max-w-full aivex:items-start aivex:gap-md aivex:rounded-md aivex:border aivex:px-lg aivex:py-xs", {
|
|
3688
3650
|
variants: { type: {
|
|
3689
3651
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3690
3652
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3693,65 +3655,65 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3693
3655
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3694
3656
|
} },
|
|
3695
3657
|
defaultVariants: { type: "basic" }
|
|
3696
|
-
}),
|
|
3658
|
+
}), dc = {
|
|
3697
3659
|
basic: {
|
|
3698
|
-
Icon:
|
|
3660
|
+
Icon: Qe,
|
|
3699
3661
|
className: "aivex:text-icon-secondary"
|
|
3700
3662
|
},
|
|
3701
3663
|
info: {
|
|
3702
|
-
Icon:
|
|
3664
|
+
Icon: Qe,
|
|
3703
3665
|
className: "aivex:text-icon-info"
|
|
3704
3666
|
},
|
|
3705
3667
|
success: {
|
|
3706
|
-
Icon:
|
|
3668
|
+
Icon: pr,
|
|
3707
3669
|
className: "aivex:text-icon-success"
|
|
3708
3670
|
},
|
|
3709
3671
|
warning: {
|
|
3710
|
-
Icon:
|
|
3672
|
+
Icon: qn,
|
|
3711
3673
|
className: "aivex:text-icon-warning"
|
|
3712
3674
|
},
|
|
3713
3675
|
danger: {
|
|
3714
|
-
Icon:
|
|
3676
|
+
Icon: Er,
|
|
3715
3677
|
className: "aivex:text-icon-danger"
|
|
3716
3678
|
}
|
|
3717
3679
|
};
|
|
3718
|
-
function
|
|
3719
|
-
let { Icon:
|
|
3680
|
+
function fc({ className: t, type: n = "basic", message: r, subText: i, children: a, onClose: s, ref: c, ...l }) {
|
|
3681
|
+
let { Icon: u, className: d } = dc[n ?? "basic"];
|
|
3720
3682
|
return /* @__PURE__ */ V("div", {
|
|
3721
|
-
ref:
|
|
3683
|
+
ref: c,
|
|
3722
3684
|
role: "status",
|
|
3723
|
-
className:
|
|
3724
|
-
...
|
|
3685
|
+
className: e(uc({ type: n }), t),
|
|
3686
|
+
...l,
|
|
3725
3687
|
children: /* @__PURE__ */ H("div", {
|
|
3726
3688
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
3727
3689
|
children: [
|
|
3728
3690
|
/* @__PURE__ */ V("span", {
|
|
3729
|
-
className:
|
|
3730
|
-
children: /* @__PURE__ */ V(
|
|
3691
|
+
className: e("aivex:inline-flex aivex:size-5 aivex:shrink-0 aivex:items-center aivex:justify-center", d),
|
|
3692
|
+
children: /* @__PURE__ */ V(u, { size: 20 })
|
|
3731
3693
|
}),
|
|
3732
3694
|
/* @__PURE__ */ H("div", {
|
|
3733
3695
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center aivex:gap-2xs aivex:break-words",
|
|
3734
3696
|
children: [
|
|
3735
3697
|
/* @__PURE__ */ V("span", {
|
|
3736
3698
|
className: "aivex:text-label-lg aivex:text-text-primary",
|
|
3737
|
-
children:
|
|
3699
|
+
children: r
|
|
3738
3700
|
}),
|
|
3739
|
-
|
|
3701
|
+
i && /* @__PURE__ */ V("span", {
|
|
3740
3702
|
className: "aivex:text-body-sm-regular aivex:text-text-secondary",
|
|
3741
|
-
children:
|
|
3703
|
+
children: i
|
|
3742
3704
|
}),
|
|
3743
|
-
|
|
3705
|
+
a && /* @__PURE__ */ V("div", {
|
|
3744
3706
|
className: "aivex:pt-xs",
|
|
3745
|
-
children:
|
|
3707
|
+
children: a
|
|
3746
3708
|
})
|
|
3747
3709
|
]
|
|
3748
3710
|
}),
|
|
3749
|
-
|
|
3711
|
+
s && /* @__PURE__ */ V(o, {
|
|
3750
3712
|
size: "sm",
|
|
3751
3713
|
className: "aivex:shrink-0 aivex:text-icon-secondary",
|
|
3752
|
-
onClick:
|
|
3714
|
+
onClick: s,
|
|
3753
3715
|
"aria-label": "닫기",
|
|
3754
|
-
children: /* @__PURE__ */ V(
|
|
3716
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
3755
3717
|
})
|
|
3756
3718
|
]
|
|
3757
3719
|
})
|
|
@@ -3759,155 +3721,155 @@ function bc({ className: e, type: t = "basic", message: n, subText: r, children:
|
|
|
3759
3721
|
}
|
|
3760
3722
|
//#endregion
|
|
3761
3723
|
//#region src/components/Nav/Nav.tsx
|
|
3762
|
-
var
|
|
3724
|
+
var pc = B("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", {
|
|
3763
3725
|
variants: { active: {
|
|
3764
3726
|
true: "aivex:bg-bg-brand-subtle",
|
|
3765
3727
|
false: "aivex:bg-transparent"
|
|
3766
3728
|
} },
|
|
3767
3729
|
defaultVariants: { active: !1 }
|
|
3768
3730
|
});
|
|
3769
|
-
function
|
|
3770
|
-
let
|
|
3731
|
+
function mc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3732
|
+
let s = n ?? !1;
|
|
3771
3733
|
return /* @__PURE__ */ H("button", {
|
|
3772
|
-
ref:
|
|
3734
|
+
ref: a,
|
|
3773
3735
|
type: "button",
|
|
3774
|
-
"aria-pressed":
|
|
3775
|
-
className:
|
|
3776
|
-
...
|
|
3736
|
+
"aria-pressed": s,
|
|
3737
|
+
className: e(pc({ active: n }), t),
|
|
3738
|
+
...o,
|
|
3777
3739
|
children: [
|
|
3778
|
-
/* @__PURE__ */ V(
|
|
3779
|
-
|
|
3780
|
-
className:
|
|
3740
|
+
/* @__PURE__ */ V(L, {}),
|
|
3741
|
+
r && /* @__PURE__ */ V("span", {
|
|
3742
|
+
className: e("aivex:flex aivex:items-center aivex:justify-center aivex:p-1", s ? "aivex:text-text-brand" : "aivex:text-text-secondary"),
|
|
3781
3743
|
children: /* @__PURE__ */ V("span", {
|
|
3782
3744
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:size-6",
|
|
3783
|
-
children:
|
|
3745
|
+
children: r
|
|
3784
3746
|
})
|
|
3785
3747
|
}),
|
|
3786
|
-
|
|
3787
|
-
className:
|
|
3788
|
-
children:
|
|
3748
|
+
i && /* @__PURE__ */ V("span", {
|
|
3749
|
+
className: e("aivex:text-label-sm aivex:text-center", s ? "aivex:text-text-brand" : "aivex:text-text-secondary"),
|
|
3750
|
+
children: i
|
|
3789
3751
|
})
|
|
3790
3752
|
]
|
|
3791
3753
|
});
|
|
3792
3754
|
}
|
|
3793
|
-
var
|
|
3755
|
+
var hc = B("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", {
|
|
3794
3756
|
variants: { active: {
|
|
3795
3757
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3796
3758
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3797
3759
|
} },
|
|
3798
3760
|
defaultVariants: { active: !1 }
|
|
3799
3761
|
});
|
|
3800
|
-
function
|
|
3762
|
+
function gc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3801
3763
|
return /* @__PURE__ */ H("button", {
|
|
3802
|
-
ref:
|
|
3764
|
+
ref: a,
|
|
3803
3765
|
type: "button",
|
|
3804
|
-
"aria-current":
|
|
3805
|
-
className:
|
|
3806
|
-
...
|
|
3766
|
+
"aria-current": n ? "page" : void 0,
|
|
3767
|
+
className: e(hc({ active: n }), t),
|
|
3768
|
+
...o,
|
|
3807
3769
|
children: [
|
|
3808
|
-
/* @__PURE__ */ V(
|
|
3809
|
-
|
|
3770
|
+
/* @__PURE__ */ V(L, {}),
|
|
3771
|
+
r && /* @__PURE__ */ V("span", {
|
|
3810
3772
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5",
|
|
3811
|
-
children:
|
|
3773
|
+
children: r
|
|
3812
3774
|
}),
|
|
3813
|
-
|
|
3775
|
+
i
|
|
3814
3776
|
]
|
|
3815
3777
|
});
|
|
3816
3778
|
}
|
|
3817
|
-
function
|
|
3779
|
+
function _c({ className: t, children: n, ref: r, ...i }) {
|
|
3818
3780
|
return /* @__PURE__ */ V("nav", {
|
|
3819
|
-
ref:
|
|
3820
|
-
className:
|
|
3821
|
-
...
|
|
3822
|
-
children:
|
|
3781
|
+
ref: r,
|
|
3782
|
+
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
3783
|
+
...i,
|
|
3784
|
+
children: n
|
|
3823
3785
|
});
|
|
3824
3786
|
}
|
|
3825
3787
|
//#endregion
|
|
3826
3788
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3827
|
-
function
|
|
3828
|
-
let [
|
|
3789
|
+
function vc({ 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 }) {
|
|
3790
|
+
let [h, g] = J(!1), _ = r === "sm" ? 16 : 20;
|
|
3829
3791
|
return /* @__PURE__ */ V("button", {
|
|
3830
|
-
ref:
|
|
3831
|
-
type:
|
|
3832
|
-
disabled:
|
|
3833
|
-
"aria-expanded":
|
|
3792
|
+
ref: c,
|
|
3793
|
+
type: d,
|
|
3794
|
+
disabled: o,
|
|
3795
|
+
"aria-expanded": f ?? a,
|
|
3834
3796
|
onFocus: (e) => {
|
|
3835
|
-
|
|
3797
|
+
g(!0), l?.(e);
|
|
3836
3798
|
},
|
|
3837
3799
|
onBlur: (e) => {
|
|
3838
|
-
|
|
3800
|
+
g(!1), u?.(e);
|
|
3839
3801
|
},
|
|
3840
|
-
className:
|
|
3841
|
-
...
|
|
3842
|
-
children: /* @__PURE__ */ H(
|
|
3843
|
-
disabled:
|
|
3844
|
-
focused:
|
|
3845
|
-
error:
|
|
3846
|
-
filled:
|
|
3847
|
-
size:
|
|
3802
|
+
className: e("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", o && "aivex:cursor-not-allowed", s),
|
|
3803
|
+
...m,
|
|
3804
|
+
children: /* @__PURE__ */ H(Vs, {
|
|
3805
|
+
disabled: o,
|
|
3806
|
+
focused: a || h,
|
|
3807
|
+
error: i,
|
|
3808
|
+
filled: t != null && t !== "",
|
|
3809
|
+
size: r,
|
|
3848
3810
|
layout: "inline",
|
|
3849
3811
|
endContent: /* @__PURE__ */ V("span", {
|
|
3850
|
-
className:
|
|
3851
|
-
children: /* @__PURE__ */ V(
|
|
3812
|
+
className: e("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", a && "aivex:rotate-180"),
|
|
3813
|
+
children: /* @__PURE__ */ V(I, { size: _ })
|
|
3852
3814
|
}),
|
|
3853
3815
|
children: [/* @__PURE__ */ V("span", {
|
|
3854
|
-
className:
|
|
3855
|
-
children:
|
|
3856
|
-
}),
|
|
3816
|
+
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"),
|
|
3817
|
+
children: t ?? n
|
|
3818
|
+
}), p]
|
|
3857
3819
|
})
|
|
3858
3820
|
});
|
|
3859
3821
|
}
|
|
3860
3822
|
//#endregion
|
|
3861
3823
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3862
|
-
function
|
|
3863
|
-
let [
|
|
3864
|
-
for (let
|
|
3865
|
-
let
|
|
3866
|
-
if (
|
|
3824
|
+
function yc({ 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 }) {
|
|
3825
|
+
let [p, m] = J(!1), h = l || f === !0 || f === "true", g = (() => {
|
|
3826
|
+
for (let e of t) {
|
|
3827
|
+
let t = e.options.find((e) => e.value === n);
|
|
3828
|
+
if (t) return s ? s(t, e) : t.label;
|
|
3867
3829
|
}
|
|
3868
3830
|
})();
|
|
3869
|
-
return /* @__PURE__ */ H(
|
|
3870
|
-
value:
|
|
3871
|
-
onValueChange:
|
|
3872
|
-
disabled:
|
|
3873
|
-
open:
|
|
3874
|
-
onOpenChange:
|
|
3875
|
-
children: [/* @__PURE__ */ V(
|
|
3831
|
+
return /* @__PURE__ */ H(Q.Root, {
|
|
3832
|
+
value: n || void 0,
|
|
3833
|
+
onValueChange: o,
|
|
3834
|
+
disabled: i,
|
|
3835
|
+
open: p,
|
|
3836
|
+
onOpenChange: m,
|
|
3837
|
+
children: [/* @__PURE__ */ V(Q.Trigger, {
|
|
3876
3838
|
asChild: !0,
|
|
3877
|
-
"aria-invalid":
|
|
3878
|
-
children: /* @__PURE__ */ V(
|
|
3879
|
-
id:
|
|
3880
|
-
"aria-describedby":
|
|
3881
|
-
value:
|
|
3882
|
-
placeholder:
|
|
3883
|
-
size:
|
|
3884
|
-
error:
|
|
3885
|
-
open:
|
|
3886
|
-
disabled:
|
|
3887
|
-
className:
|
|
3839
|
+
"aria-invalid": h || void 0,
|
|
3840
|
+
children: /* @__PURE__ */ V(vc, {
|
|
3841
|
+
id: u,
|
|
3842
|
+
"aria-describedby": d,
|
|
3843
|
+
value: g,
|
|
3844
|
+
placeholder: r,
|
|
3845
|
+
size: a,
|
|
3846
|
+
error: h,
|
|
3847
|
+
open: p,
|
|
3848
|
+
disabled: i,
|
|
3849
|
+
className: c
|
|
3888
3850
|
})
|
|
3889
|
-
}), /* @__PURE__ */ V(
|
|
3851
|
+
}), /* @__PURE__ */ V(Q.Portal, { children: /* @__PURE__ */ V(Q.Content, {
|
|
3890
3852
|
position: "popper",
|
|
3891
3853
|
sideOffset: 4,
|
|
3892
|
-
className:
|
|
3893
|
-
children: /* @__PURE__ */ V(
|
|
3854
|
+
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"),
|
|
3855
|
+
children: /* @__PURE__ */ V(Q.Viewport, {
|
|
3894
3856
|
style: { overflow: "visible" },
|
|
3895
|
-
children: /* @__PURE__ */ V(
|
|
3857
|
+
children: /* @__PURE__ */ V(mo, {
|
|
3896
3858
|
type: "auto",
|
|
3897
3859
|
className: "aivex:w-full",
|
|
3898
3860
|
viewportClassName: "aivex:max-h-[312px] aivex:p-xs",
|
|
3899
|
-
children:
|
|
3861
|
+
children: t.map((t, n) => /* @__PURE__ */ H(Hi, { children: [n > 0 && /* @__PURE__ */ V(Q.Separator, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ H(Q.Group, { children: [t.title && /* @__PURE__ */ V(Q.Label, {
|
|
3900
3862
|
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
3901
|
-
children:
|
|
3902
|
-
}),
|
|
3903
|
-
value:
|
|
3904
|
-
disabled:
|
|
3905
|
-
className:
|
|
3906
|
-
children: [/* @__PURE__ */ V("span", { className:
|
|
3863
|
+
children: t.title
|
|
3864
|
+
}), t.options.map((t) => /* @__PURE__ */ H(Q.Item, {
|
|
3865
|
+
value: t.value,
|
|
3866
|
+
disabled: t.disabled,
|
|
3867
|
+
className: e("aivex:relative aivex:overflow-hidden aivex:group", "aivex:flex aivex:h-8 aivex:w-full aivex:items-center", "aivex:px-lg aivex:rounded-sm aivex:transition-colors", "aivex:cursor-pointer aivex:select-none aivex:outline-none", "aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-disable", a === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", t.danger ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
3868
|
+
children: [/* @__PURE__ */ V("span", { className: e("aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:opacity-0 aivex:transition-opacity", t.danger ? "aivex:bg-bg-danger aivex:group-data-[highlighted]:opacity-8 aivex:group-active:opacity-16" : "aivex:bg-bg-inverse-strong aivex:group-data-[highlighted]:opacity-4 aivex:group-active:opacity-8") }), /* @__PURE__ */ V(Q.ItemText, { children: /* @__PURE__ */ V("span", {
|
|
3907
3869
|
className: "aivex:truncate",
|
|
3908
|
-
children:
|
|
3870
|
+
children: t.label
|
|
3909
3871
|
}) })]
|
|
3910
|
-
},
|
|
3872
|
+
}, t.key ?? t.value))] })] }, t.title ?? `group-${n}`))
|
|
3911
3873
|
})
|
|
3912
3874
|
})
|
|
3913
3875
|
}) })]
|
|
@@ -3915,43 +3877,43 @@ function Dc({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size:
|
|
|
3915
3877
|
}
|
|
3916
3878
|
//#endregion
|
|
3917
3879
|
//#region src/components/Pagination/Pagination.tsx
|
|
3918
|
-
function
|
|
3880
|
+
function bc({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3919
3881
|
return /* @__PURE__ */ H("button", {
|
|
3920
3882
|
type: "button",
|
|
3921
3883
|
"aria-label": n,
|
|
3922
3884
|
disabled: t,
|
|
3923
3885
|
onClick: e,
|
|
3924
3886
|
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",
|
|
3925
|
-
children: [/* @__PURE__ */ V(
|
|
3887
|
+
children: [/* @__PURE__ */ V(L, { variant: "default" }), r]
|
|
3926
3888
|
});
|
|
3927
3889
|
}
|
|
3928
|
-
function
|
|
3890
|
+
function xc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3929
3891
|
return /* @__PURE__ */ H("button", {
|
|
3930
3892
|
type: "button",
|
|
3931
|
-
"aria-label": `Page ${
|
|
3932
|
-
"aria-current":
|
|
3933
|
-
disabled:
|
|
3934
|
-
onClick:
|
|
3935
|
-
className:
|
|
3936
|
-
children: [/* @__PURE__ */ V(
|
|
3893
|
+
"aria-label": `Page ${t}`,
|
|
3894
|
+
"aria-current": n ? "page" : void 0,
|
|
3895
|
+
disabled: r,
|
|
3896
|
+
onClick: i,
|
|
3897
|
+
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"),
|
|
3898
|
+
children: [/* @__PURE__ */ V(L, { variant: n ? "strong" : "default" }), /* @__PURE__ */ V("span", {
|
|
3937
3899
|
className: "aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg",
|
|
3938
|
-
children:
|
|
3900
|
+
children: t
|
|
3939
3901
|
})]
|
|
3940
3902
|
});
|
|
3941
3903
|
}
|
|
3942
|
-
function
|
|
3943
|
-
let
|
|
3944
|
-
|
|
3945
|
-
let
|
|
3946
|
-
if (
|
|
3947
|
-
let
|
|
3948
|
-
|
|
3904
|
+
function Sc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3905
|
+
let d = q(void 0);
|
|
3906
|
+
n != null && (d.current = n);
|
|
3907
|
+
let f = n ?? d.current;
|
|
3908
|
+
if (f == null) return null;
|
|
3909
|
+
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, S = (e) => {
|
|
3910
|
+
c?.(Number(e));
|
|
3949
3911
|
};
|
|
3950
3912
|
return /* @__PURE__ */ H("nav", {
|
|
3951
|
-
ref:
|
|
3913
|
+
ref: l,
|
|
3952
3914
|
"aria-label": "Pagination",
|
|
3953
|
-
className:
|
|
3954
|
-
...
|
|
3915
|
+
className: e("aivex:flex aivex:items-center", t),
|
|
3916
|
+
...u,
|
|
3955
3917
|
children: [
|
|
3956
3918
|
/* @__PURE__ */ V("div", { className: "aivex:flex-1" }),
|
|
3957
3919
|
/* @__PURE__ */ H("div", {
|
|
@@ -3959,55 +3921,55 @@ function Ac({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
3959
3921
|
children: [
|
|
3960
3922
|
/* @__PURE__ */ H("div", {
|
|
3961
3923
|
className: "aivex:flex aivex:gap-2",
|
|
3962
|
-
children: [/* @__PURE__ */ V(
|
|
3924
|
+
children: [/* @__PURE__ */ V(bc, {
|
|
3963
3925
|
"aria-label": "First page",
|
|
3964
|
-
disabled:
|
|
3965
|
-
onClick: () =>
|
|
3966
|
-
children: /* @__PURE__ */ V(
|
|
3967
|
-
}), /* @__PURE__ */ V(
|
|
3926
|
+
disabled: a || y,
|
|
3927
|
+
onClick: () => s(1),
|
|
3928
|
+
children: /* @__PURE__ */ V(Ni, { size: 16 })
|
|
3929
|
+
}), /* @__PURE__ */ V(bc, {
|
|
3968
3930
|
"aria-label": "Previous page group",
|
|
3969
|
-
disabled:
|
|
3970
|
-
onClick: () =>
|
|
3971
|
-
children: /* @__PURE__ */ V(
|
|
3931
|
+
disabled: a || y,
|
|
3932
|
+
onClick: () => s(g - 10),
|
|
3933
|
+
children: /* @__PURE__ */ V(Tt, { size: 16 })
|
|
3972
3934
|
})]
|
|
3973
3935
|
}),
|
|
3974
3936
|
/* @__PURE__ */ V("div", {
|
|
3975
3937
|
className: "aivex:flex aivex:gap-2",
|
|
3976
|
-
children: v.map((e) => /* @__PURE__ */ V(
|
|
3938
|
+
children: v.map((e) => /* @__PURE__ */ V(xc, {
|
|
3977
3939
|
page: e,
|
|
3978
|
-
isActive: e ===
|
|
3979
|
-
disabled:
|
|
3980
|
-
onClick: () =>
|
|
3940
|
+
isActive: e === m,
|
|
3941
|
+
disabled: a,
|
|
3942
|
+
onClick: () => s(e)
|
|
3981
3943
|
}, e))
|
|
3982
3944
|
}),
|
|
3983
3945
|
/* @__PURE__ */ H("div", {
|
|
3984
3946
|
className: "aivex:flex aivex:gap-2",
|
|
3985
|
-
children: [/* @__PURE__ */ V(
|
|
3947
|
+
children: [/* @__PURE__ */ V(bc, {
|
|
3986
3948
|
"aria-label": "Next page group",
|
|
3987
|
-
disabled:
|
|
3988
|
-
onClick: () =>
|
|
3989
|
-
children: /* @__PURE__ */ V(
|
|
3990
|
-
}), /* @__PURE__ */ V(
|
|
3949
|
+
disabled: a || b,
|
|
3950
|
+
onClick: () => s(_ + 1),
|
|
3951
|
+
children: /* @__PURE__ */ V(Ft, { size: 16 })
|
|
3952
|
+
}), /* @__PURE__ */ V(bc, {
|
|
3991
3953
|
"aria-label": "Last page",
|
|
3992
|
-
disabled:
|
|
3993
|
-
onClick: () =>
|
|
3994
|
-
children: /* @__PURE__ */ V(
|
|
3954
|
+
disabled: a || b,
|
|
3955
|
+
onClick: () => s(p),
|
|
3956
|
+
children: /* @__PURE__ */ V(x, { size: 16 })
|
|
3995
3957
|
})]
|
|
3996
3958
|
})
|
|
3997
3959
|
]
|
|
3998
3960
|
}),
|
|
3999
3961
|
/* @__PURE__ */ V("div", {
|
|
4000
3962
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
4001
|
-
children:
|
|
3963
|
+
children: o && /* @__PURE__ */ V(yc, {
|
|
4002
3964
|
size: "sm",
|
|
4003
3965
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
4004
|
-
value: String(
|
|
4005
|
-
disabled:
|
|
4006
|
-
groups: [{ options:
|
|
3966
|
+
value: String(i),
|
|
3967
|
+
disabled: a,
|
|
3968
|
+
groups: [{ options: o.map(({ value: e, label: t }) => ({
|
|
4007
3969
|
value: String(e),
|
|
4008
3970
|
label: t
|
|
4009
3971
|
})) }],
|
|
4010
|
-
onChange:
|
|
3972
|
+
onChange: S
|
|
4011
3973
|
})
|
|
4012
3974
|
})
|
|
4013
3975
|
]
|
|
@@ -4015,131 +3977,131 @@ function Ac({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
4015
3977
|
}
|
|
4016
3978
|
//#endregion
|
|
4017
3979
|
//#region src/components/Panel/Panel.tsx
|
|
4018
|
-
var
|
|
3980
|
+
var Cc = {
|
|
4019
3981
|
left: "aivex:left-0 aivex:border-r",
|
|
4020
3982
|
right: "aivex:right-0 aivex:border-l"
|
|
4021
|
-
},
|
|
3983
|
+
}, wc = {
|
|
4022
3984
|
md: "aivex:w-[384px]",
|
|
4023
3985
|
lg: "aivex:w-[450px]"
|
|
4024
3986
|
};
|
|
4025
|
-
function
|
|
4026
|
-
return /* @__PURE__ */ V(
|
|
4027
|
-
open:
|
|
4028
|
-
onOpenChange:
|
|
4029
|
-
children: /* @__PURE__ */ H(
|
|
4030
|
-
ref:
|
|
4031
|
-
"data-side":
|
|
3987
|
+
function Tc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a, side: o = "right", size: s = "md", ref: c }) {
|
|
3988
|
+
return /* @__PURE__ */ V(Z.Root, {
|
|
3989
|
+
open: t,
|
|
3990
|
+
onOpenChange: n,
|
|
3991
|
+
children: /* @__PURE__ */ H(Z.Portal, { children: [/* @__PURE__ */ V(Z.Overlay, { className: "aivex:panel-overlay aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ H(Z.Content, {
|
|
3992
|
+
ref: c,
|
|
3993
|
+
"data-side": o,
|
|
4032
3994
|
"aria-describedby": void 0,
|
|
4033
|
-
className:
|
|
3995
|
+
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", Cc[o], wc[s]),
|
|
4034
3996
|
onKeyDown: (e) => {
|
|
4035
3997
|
e.stopPropagation();
|
|
4036
3998
|
},
|
|
4037
3999
|
children: [/* @__PURE__ */ H("div", {
|
|
4038
4000
|
className: "aivex:flex aivex:h-12 aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-lg aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-lg",
|
|
4039
|
-
children: [/* @__PURE__ */ V(
|
|
4001
|
+
children: [/* @__PURE__ */ V(Z.Title, {
|
|
4040
4002
|
className: "aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary",
|
|
4041
|
-
children:
|
|
4003
|
+
children: r
|
|
4042
4004
|
}), /* @__PURE__ */ H("div", {
|
|
4043
4005
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md",
|
|
4044
|
-
children: [
|
|
4006
|
+
children: [a, /* @__PURE__ */ V(Z.Close, {
|
|
4045
4007
|
asChild: !0,
|
|
4046
4008
|
children: /* @__PURE__ */ V("button", {
|
|
4047
4009
|
type: "button",
|
|
4048
|
-
className:
|
|
4010
|
+
className: e("aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm", "aivex:text-icon-secondary aivex:transition-colors", "aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand"),
|
|
4049
4011
|
"aria-label": "Close panel",
|
|
4050
|
-
children: /* @__PURE__ */ V(
|
|
4012
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
4051
4013
|
})
|
|
4052
4014
|
})]
|
|
4053
4015
|
})]
|
|
4054
4016
|
}), /* @__PURE__ */ V("div", {
|
|
4055
4017
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col",
|
|
4056
|
-
children:
|
|
4018
|
+
children: i
|
|
4057
4019
|
})]
|
|
4058
4020
|
})] })
|
|
4059
4021
|
});
|
|
4060
4022
|
}
|
|
4061
4023
|
//#endregion
|
|
4062
4024
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
4063
|
-
var
|
|
4025
|
+
var Ec = {
|
|
4064
4026
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
4065
4027
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
4066
4028
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
4067
4029
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
4068
|
-
},
|
|
4069
|
-
function
|
|
4070
|
-
let
|
|
4030
|
+
}, Dc = (e) => typeof e == "number" ? `${e}px` : e, Oc = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
4031
|
+
function kc({ className: t, current: n, total: r, color: i = "success", width: a = "100%", height: o = 6, isProgressing: s = !1, ref: c, style: l, ...u }) {
|
|
4032
|
+
let d = Oc(n, r), f = Dc(a), p = Dc(o), m = Ec[i], h = s ? {
|
|
4071
4033
|
width: "100%",
|
|
4072
|
-
backgroundImage: `linear-gradient(90deg, ${
|
|
4034
|
+
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
4073
4035
|
} : {
|
|
4074
|
-
width: `${
|
|
4075
|
-
backgroundColor:
|
|
4036
|
+
width: `${d}%`,
|
|
4037
|
+
backgroundColor: m.fill
|
|
4076
4038
|
};
|
|
4077
4039
|
return /* @__PURE__ */ V("div", {
|
|
4078
|
-
ref:
|
|
4040
|
+
ref: c,
|
|
4079
4041
|
role: "progressbar",
|
|
4080
4042
|
"aria-valuemin": 0,
|
|
4081
|
-
"aria-valuemax":
|
|
4082
|
-
"aria-valuenow":
|
|
4083
|
-
className:
|
|
4043
|
+
"aria-valuemax": r,
|
|
4044
|
+
"aria-valuenow": s ? void 0 : n,
|
|
4045
|
+
className: e("aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary", t),
|
|
4084
4046
|
style: {
|
|
4085
|
-
width:
|
|
4086
|
-
height:
|
|
4087
|
-
...
|
|
4047
|
+
width: f,
|
|
4048
|
+
height: p,
|
|
4049
|
+
...l
|
|
4088
4050
|
},
|
|
4089
|
-
...
|
|
4051
|
+
...u,
|
|
4090
4052
|
children: /* @__PURE__ */ V("div", {
|
|
4091
|
-
className:
|
|
4092
|
-
style:
|
|
4053
|
+
className: e("aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300", s && "aivex-progressbar-indeterminate"),
|
|
4054
|
+
style: h
|
|
4093
4055
|
})
|
|
4094
4056
|
});
|
|
4095
4057
|
}
|
|
4096
4058
|
//#endregion
|
|
4097
4059
|
//#region src/components/Radio/Radio.tsx
|
|
4098
|
-
var
|
|
4060
|
+
var Ac = B("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", {
|
|
4099
4061
|
variants: { size: {
|
|
4100
4062
|
sm: "aivex:w-4 aivex:h-4",
|
|
4101
4063
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
4102
4064
|
} },
|
|
4103
4065
|
defaultVariants: { size: "md" }
|
|
4104
|
-
}),
|
|
4066
|
+
}), jc = {
|
|
4105
4067
|
sm: "aivex:w-5 aivex:h-5",
|
|
4106
4068
|
md: "aivex:w-6 aivex:h-6"
|
|
4107
|
-
},
|
|
4069
|
+
}, Mc = {
|
|
4108
4070
|
sm: "aivex:h-5",
|
|
4109
4071
|
md: "aivex:h-6"
|
|
4110
4072
|
};
|
|
4111
|
-
function
|
|
4112
|
-
let
|
|
4073
|
+
function Nc({ className: t, label: n, size: r = "md", disabled: i, checked: a, id: o, ref: s, ...c }) {
|
|
4074
|
+
let l = r ?? "md", u = {
|
|
4113
4075
|
sm: "aivex:w-2 aivex:h-2",
|
|
4114
4076
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
4115
|
-
}[
|
|
4077
|
+
}[l], d = K(), f = o ?? d;
|
|
4116
4078
|
return /* @__PURE__ */ H("span", {
|
|
4117
|
-
className:
|
|
4079
|
+
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
4118
4080
|
children: [/* @__PURE__ */ H("span", {
|
|
4119
|
-
className:
|
|
4081
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", jc[l]),
|
|
4120
4082
|
children: [
|
|
4121
4083
|
/* @__PURE__ */ V("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" }),
|
|
4122
4084
|
/* @__PURE__ */ V("input", {
|
|
4123
|
-
ref:
|
|
4124
|
-
id:
|
|
4085
|
+
ref: s,
|
|
4086
|
+
id: f,
|
|
4125
4087
|
type: "radio",
|
|
4126
|
-
disabled:
|
|
4127
|
-
checked:
|
|
4128
|
-
className:
|
|
4129
|
-
...
|
|
4088
|
+
disabled: i,
|
|
4089
|
+
checked: a,
|
|
4090
|
+
className: e(Ac({ size: l }), t),
|
|
4091
|
+
...c
|
|
4130
4092
|
}),
|
|
4131
|
-
/* @__PURE__ */ V("span", { className:
|
|
4093
|
+
/* @__PURE__ */ V("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) })
|
|
4132
4094
|
]
|
|
4133
|
-
}),
|
|
4134
|
-
htmlFor:
|
|
4135
|
-
className:
|
|
4136
|
-
children:
|
|
4095
|
+
}), n && /* @__PURE__ */ V("label", {
|
|
4096
|
+
htmlFor: f,
|
|
4097
|
+
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", Mc[l]),
|
|
4098
|
+
children: n
|
|
4137
4099
|
})]
|
|
4138
4100
|
});
|
|
4139
4101
|
}
|
|
4140
4102
|
//#endregion
|
|
4141
4103
|
//#region src/components/Segmented/Segmented.tsx
|
|
4142
|
-
var
|
|
4104
|
+
var Pc = Wi({ size: "md" }), Fc = {
|
|
4143
4105
|
sm: "aivex:h-7",
|
|
4144
4106
|
md: "aivex:h-8",
|
|
4145
4107
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4147,27 +4109,27 @@ var Hc = Hi({ size: "md" }), Uc = {
|
|
|
4147
4109
|
"icon-md": "aivex:h-8",
|
|
4148
4110
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4149
4111
|
};
|
|
4150
|
-
function
|
|
4151
|
-
let
|
|
4152
|
-
return /* @__PURE__ */ V(
|
|
4112
|
+
function Ic({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4113
|
+
let u = r !== void 0, [d, f] = J(i ?? r ?? ""), p = u ? r : d;
|
|
4114
|
+
return /* @__PURE__ */ V(Pc.Provider, {
|
|
4153
4115
|
value: {
|
|
4154
|
-
size:
|
|
4155
|
-
fullWidth:
|
|
4116
|
+
size: n,
|
|
4117
|
+
fullWidth: o
|
|
4156
4118
|
},
|
|
4157
|
-
children: /* @__PURE__ */ V(
|
|
4158
|
-
ref:
|
|
4119
|
+
children: /* @__PURE__ */ V(Ta.Root, {
|
|
4120
|
+
ref: c,
|
|
4159
4121
|
type: "single",
|
|
4160
|
-
value:
|
|
4122
|
+
value: p,
|
|
4161
4123
|
onValueChange: (e) => {
|
|
4162
|
-
e && (
|
|
4124
|
+
e && (u || f(e), a?.(e));
|
|
4163
4125
|
},
|
|
4164
|
-
className:
|
|
4165
|
-
...
|
|
4166
|
-
children:
|
|
4126
|
+
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", Fc[n], t),
|
|
4127
|
+
...l,
|
|
4128
|
+
children: s
|
|
4167
4129
|
})
|
|
4168
4130
|
});
|
|
4169
4131
|
}
|
|
4170
|
-
var
|
|
4132
|
+
var Lc = {
|
|
4171
4133
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4172
4134
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4173
4135
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4175,253 +4137,253 @@ var Gc = {
|
|
|
4175
4137
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4176
4138
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4177
4139
|
};
|
|
4178
|
-
function
|
|
4179
|
-
let { size:
|
|
4180
|
-
return /* @__PURE__ */ V(
|
|
4181
|
-
ref:
|
|
4182
|
-
className:
|
|
4183
|
-
...
|
|
4184
|
-
children:
|
|
4140
|
+
function Rc({ className: t, children: n, ref: r, ...i }) {
|
|
4141
|
+
let { size: a, fullWidth: o } = qi(Pc);
|
|
4142
|
+
return /* @__PURE__ */ V(Ta.Item, {
|
|
4143
|
+
ref: r,
|
|
4144
|
+
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", Lc[a], o && "aivex:flex-1", t),
|
|
4145
|
+
...i,
|
|
4146
|
+
children: n
|
|
4185
4147
|
});
|
|
4186
4148
|
}
|
|
4187
4149
|
//#endregion
|
|
4188
4150
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4189
|
-
function
|
|
4151
|
+
function zc(e) {
|
|
4190
4152
|
return typeof e != "string";
|
|
4191
4153
|
}
|
|
4192
|
-
function
|
|
4154
|
+
function Bc({ className: t, keys: n, ref: r, ...i }) {
|
|
4193
4155
|
return /* @__PURE__ */ V("span", {
|
|
4194
|
-
ref:
|
|
4195
|
-
className:
|
|
4196
|
-
...
|
|
4197
|
-
children:
|
|
4198
|
-
className:
|
|
4199
|
-
children:
|
|
4200
|
-
},
|
|
4156
|
+
ref: r,
|
|
4157
|
+
className: e("aivex:inline-flex aivex:items-start aivex:gap-xs", t),
|
|
4158
|
+
...i,
|
|
4159
|
+
children: n.map((t, n) => /* @__PURE__ */ V("kbd", {
|
|
4160
|
+
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", zc(t) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
4161
|
+
children: t
|
|
4162
|
+
}, n))
|
|
4201
4163
|
});
|
|
4202
4164
|
}
|
|
4203
4165
|
//#endregion
|
|
4204
4166
|
//#region src/components/Spinner/Spinner.tsx
|
|
4205
|
-
var
|
|
4206
|
-
function
|
|
4207
|
-
let
|
|
4167
|
+
var Vc = 1.2 / 15.8;
|
|
4168
|
+
function Hc({ className: t, size: n = 20, color: r, label: i = "로딩 중", style: a, ref: o, ...s }) {
|
|
4169
|
+
let c = Math.max(1, n * Vc);
|
|
4208
4170
|
return /* @__PURE__ */ V("div", {
|
|
4209
|
-
ref:
|
|
4210
|
-
...
|
|
4171
|
+
ref: o,
|
|
4172
|
+
...i === null ? { "aria-hidden": !0 } : {
|
|
4211
4173
|
role: "status",
|
|
4212
|
-
"aria-label":
|
|
4174
|
+
"aria-label": i
|
|
4213
4175
|
},
|
|
4214
|
-
className:
|
|
4176
|
+
className: e("aivex-spinner", t),
|
|
4215
4177
|
style: {
|
|
4216
|
-
"--aivex-spinner-size": `${
|
|
4217
|
-
"--aivex-spinner-thickness": `${
|
|
4218
|
-
...
|
|
4219
|
-
...
|
|
4178
|
+
"--aivex-spinner-size": `${n}px`,
|
|
4179
|
+
"--aivex-spinner-thickness": `${c}px`,
|
|
4180
|
+
...r ? { color: r } : null,
|
|
4181
|
+
...a
|
|
4220
4182
|
},
|
|
4221
|
-
...
|
|
4183
|
+
...s
|
|
4222
4184
|
});
|
|
4223
4185
|
}
|
|
4224
4186
|
//#endregion
|
|
4225
4187
|
//#region src/components/Tab/Tab.tsx
|
|
4226
|
-
function
|
|
4227
|
-
return /* @__PURE__ */ V(
|
|
4228
|
-
ref:
|
|
4229
|
-
className:
|
|
4230
|
-
...
|
|
4188
|
+
function Uc({ className: t, ref: n, ...r }) {
|
|
4189
|
+
return /* @__PURE__ */ V(Ea.Root, {
|
|
4190
|
+
ref: n,
|
|
4191
|
+
className: e("aivex:flex aivex:flex-col", t),
|
|
4192
|
+
...r
|
|
4231
4193
|
});
|
|
4232
4194
|
}
|
|
4233
|
-
var
|
|
4234
|
-
function
|
|
4235
|
-
return /* @__PURE__ */ V(
|
|
4236
|
-
ref:
|
|
4237
|
-
className:
|
|
4238
|
-
...
|
|
4195
|
+
var Wc = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
4196
|
+
function Gc({ className: t, ref: n, ...r }) {
|
|
4197
|
+
return /* @__PURE__ */ V(Ea.List, {
|
|
4198
|
+
ref: n,
|
|
4199
|
+
className: e(Wc, t),
|
|
4200
|
+
...r
|
|
4239
4201
|
});
|
|
4240
4202
|
}
|
|
4241
|
-
var
|
|
4242
|
-
function
|
|
4243
|
-
return /* @__PURE__ */ V(
|
|
4244
|
-
ref:
|
|
4245
|
-
className:
|
|
4246
|
-
...
|
|
4203
|
+
var Kc = "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-['']";
|
|
4204
|
+
function qc({ className: t, ref: n, ...r }) {
|
|
4205
|
+
return /* @__PURE__ */ V(Ea.Trigger, {
|
|
4206
|
+
ref: n,
|
|
4207
|
+
className: e(Kc, t),
|
|
4208
|
+
...r
|
|
4247
4209
|
});
|
|
4248
4210
|
}
|
|
4249
|
-
function
|
|
4250
|
-
return /* @__PURE__ */ V(
|
|
4251
|
-
ref:
|
|
4252
|
-
className:
|
|
4253
|
-
...
|
|
4211
|
+
function Jc({ className: t, ref: n, ...r }) {
|
|
4212
|
+
return /* @__PURE__ */ V(Ea.Content, {
|
|
4213
|
+
ref: n,
|
|
4214
|
+
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
4215
|
+
...r
|
|
4254
4216
|
});
|
|
4255
4217
|
}
|
|
4256
4218
|
//#endregion
|
|
4257
4219
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4258
|
-
function
|
|
4259
|
-
let
|
|
4220
|
+
function Yc({ 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 }) {
|
|
4221
|
+
let S = o !== void 0, [C, w] = J(s), T = S ? o : C, [E, D] = J(""), O = q(!1), [k, A] = J(!1), j = k && !a, ee = x["aria-invalid"], M = u ? T.some((e) => !u(e)) : !1, te = r || ee === !0 || ee === "true" || M, N = (e) => {
|
|
4260
4222
|
let t = e.trim();
|
|
4261
4223
|
if (!t) return;
|
|
4262
|
-
let n = [...
|
|
4263
|
-
|
|
4264
|
-
},
|
|
4265
|
-
let t =
|
|
4266
|
-
|
|
4267
|
-
},
|
|
4268
|
-
if (
|
|
4269
|
-
if (
|
|
4270
|
-
e.preventDefault(),
|
|
4271
|
-
} else e.key === "Backspace" && !
|
|
4272
|
-
},
|
|
4273
|
-
if (
|
|
4224
|
+
let n = [...T, t];
|
|
4225
|
+
S || w(n), c?.(n), D("");
|
|
4226
|
+
}, P = (e) => {
|
|
4227
|
+
let t = T.filter((t, n) => n !== e);
|
|
4228
|
+
S || w(t), c?.(t);
|
|
4229
|
+
}, F = (e) => {
|
|
4230
|
+
if (y?.(e), !e.defaultPrevented && !a) if (e.key === "Enter") {
|
|
4231
|
+
if (O.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
4232
|
+
e.preventDefault(), E && N(E);
|
|
4233
|
+
} else e.key === "Backspace" && !E && T.length > 0 && P(T.length - 1);
|
|
4234
|
+
}, ne = (e) => {
|
|
4235
|
+
if (b?.(e), e.defaultPrevented || a || !l) return;
|
|
4274
4236
|
e.preventDefault();
|
|
4275
|
-
let t =
|
|
4237
|
+
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
4276
4238
|
if (n.length > 0) {
|
|
4277
|
-
let e = [...
|
|
4278
|
-
|
|
4239
|
+
let e = [...T, ...n];
|
|
4240
|
+
S || w(e), c?.(e);
|
|
4279
4241
|
}
|
|
4280
|
-
|
|
4281
|
-
},
|
|
4282
|
-
let
|
|
4283
|
-
return
|
|
4284
|
-
remove:
|
|
4285
|
-
size:
|
|
4286
|
-
disabled:
|
|
4242
|
+
D("");
|
|
4243
|
+
}, re = T.map((e, t) => {
|
|
4244
|
+
let r = () => P(t), a = u ? u(e) ? "default" : "error" : te ? "error" : "default";
|
|
4245
|
+
return d ? /* @__PURE__ */ V(Hi, { children: d(e, t, {
|
|
4246
|
+
remove: r,
|
|
4247
|
+
size: n,
|
|
4248
|
+
disabled: i,
|
|
4287
4249
|
type: a
|
|
4288
|
-
}) }, `${e}-${
|
|
4289
|
-
size:
|
|
4250
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ V(Ls, {
|
|
4251
|
+
size: n === "md" ? "md" : "sm",
|
|
4290
4252
|
type: a,
|
|
4291
|
-
disabled:
|
|
4292
|
-
onRemove:
|
|
4253
|
+
disabled: i,
|
|
4254
|
+
onRemove: r,
|
|
4293
4255
|
children: e
|
|
4294
|
-
}, `${e}-${
|
|
4295
|
-
}),
|
|
4296
|
-
ref:
|
|
4297
|
-
id:
|
|
4298
|
-
value:
|
|
4299
|
-
disabled:
|
|
4300
|
-
readOnly:
|
|
4301
|
-
placeholder:
|
|
4256
|
+
}, `${e}-${t}`);
|
|
4257
|
+
}), ie = /* @__PURE__ */ V("input", {
|
|
4258
|
+
ref: m,
|
|
4259
|
+
id: p,
|
|
4260
|
+
value: E,
|
|
4261
|
+
disabled: i,
|
|
4262
|
+
readOnly: a,
|
|
4263
|
+
placeholder: T.length === 0 ? f : void 0,
|
|
4302
4264
|
onChange: (e) => {
|
|
4303
|
-
|
|
4265
|
+
a || D(e.target.value);
|
|
4304
4266
|
},
|
|
4305
|
-
onKeyDown:
|
|
4306
|
-
onPaste:
|
|
4267
|
+
onKeyDown: F,
|
|
4268
|
+
onPaste: ne,
|
|
4307
4269
|
onCompositionStart: (e) => {
|
|
4308
|
-
|
|
4270
|
+
O.current = !0, _?.(e);
|
|
4309
4271
|
},
|
|
4310
4272
|
onCompositionEnd: (e) => {
|
|
4311
|
-
|
|
4273
|
+
O.current = !1, a || D(e.currentTarget.value), g?.(e);
|
|
4312
4274
|
},
|
|
4313
4275
|
onFocus: (e) => {
|
|
4314
|
-
|
|
4276
|
+
a || A(!0), v?.(e);
|
|
4315
4277
|
},
|
|
4316
4278
|
onBlur: (e) => {
|
|
4317
|
-
|
|
4279
|
+
A(!1), h?.(e), !a && !O.current && E && N(E);
|
|
4318
4280
|
},
|
|
4319
|
-
className:
|
|
4320
|
-
...
|
|
4281
|
+
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"),
|
|
4282
|
+
...x
|
|
4321
4283
|
});
|
|
4322
|
-
return /* @__PURE__ */ H(
|
|
4323
|
-
error:
|
|
4324
|
-
disabled:
|
|
4325
|
-
focused:
|
|
4326
|
-
size:
|
|
4284
|
+
return /* @__PURE__ */ H(Vs, {
|
|
4285
|
+
error: te,
|
|
4286
|
+
disabled: i,
|
|
4287
|
+
focused: j,
|
|
4288
|
+
size: n,
|
|
4327
4289
|
layout: "wrap",
|
|
4328
|
-
className:
|
|
4329
|
-
children: [
|
|
4290
|
+
className: e(t, a && "aivex:cursor-default"),
|
|
4291
|
+
children: [re, ie]
|
|
4330
4292
|
});
|
|
4331
4293
|
}
|
|
4332
4294
|
//#endregion
|
|
4333
4295
|
//#region src/components/Textarea/Textarea.tsx
|
|
4334
|
-
function
|
|
4335
|
-
let [
|
|
4336
|
-
|
|
4337
|
-
},
|
|
4338
|
-
|
|
4339
|
-
let
|
|
4340
|
-
ref:
|
|
4341
|
-
id:
|
|
4342
|
-
disabled:
|
|
4343
|
-
style:
|
|
4344
|
-
value:
|
|
4345
|
-
defaultValue:
|
|
4346
|
-
className:
|
|
4347
|
-
onChange:
|
|
4296
|
+
function Xc({ 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, ..._ }) {
|
|
4297
|
+
let [v, y] = J(!1), b = p != null, x = (e) => e == null ? 0 : String(e).length, [S, C] = J(() => x(m ?? h)), w = m == null ? S : x(m), T = _["aria-invalid"], E = !!(n || T === !0 || T === "true") || b && w > p, D = (e) => {
|
|
4298
|
+
C(e.target.value.length), g?.(e);
|
|
4299
|
+
}, O = {};
|
|
4300
|
+
a !== void 0 && (O.minHeight = typeof a == "number" ? `${a}px` : a), o && a !== void 0 && (O.height = O.minHeight, O.maxHeight = O.minHeight);
|
|
4301
|
+
let k = /* @__PURE__ */ V("textarea", {
|
|
4302
|
+
ref: u,
|
|
4303
|
+
id: l,
|
|
4304
|
+
disabled: r,
|
|
4305
|
+
style: O,
|
|
4306
|
+
value: m,
|
|
4307
|
+
defaultValue: h,
|
|
4308
|
+
className: e("aivex:w-full aivex:min-w-0 aivex:bg-transparent aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", "aivex:resize-none aivex:overflow-auto", t),
|
|
4309
|
+
onChange: b ? D : g,
|
|
4348
4310
|
onFocus: (e) => {
|
|
4349
|
-
|
|
4311
|
+
y(!0), d?.(e);
|
|
4350
4312
|
},
|
|
4351
4313
|
onBlur: (e) => {
|
|
4352
|
-
|
|
4314
|
+
y(!1), f?.(e);
|
|
4353
4315
|
},
|
|
4354
|
-
...
|
|
4316
|
+
..._
|
|
4355
4317
|
});
|
|
4356
|
-
return /* @__PURE__ */ V(
|
|
4357
|
-
error:
|
|
4358
|
-
disabled:
|
|
4359
|
-
focused:
|
|
4360
|
-
size:
|
|
4318
|
+
return /* @__PURE__ */ V(Vs, {
|
|
4319
|
+
error: E,
|
|
4320
|
+
disabled: r,
|
|
4321
|
+
focused: v,
|
|
4322
|
+
size: i,
|
|
4361
4323
|
layout: "block",
|
|
4362
|
-
startContent:
|
|
4363
|
-
endContent:
|
|
4364
|
-
children:
|
|
4324
|
+
startContent: s,
|
|
4325
|
+
endContent: c,
|
|
4326
|
+
children: b ? /* @__PURE__ */ H("div", {
|
|
4365
4327
|
className: "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs",
|
|
4366
|
-
children: [
|
|
4328
|
+
children: [k, /* @__PURE__ */ H("div", {
|
|
4367
4329
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-2xs aivex:text-body-sm-regular aivex:whitespace-nowrap",
|
|
4368
4330
|
children: [/* @__PURE__ */ V("span", {
|
|
4369
|
-
className:
|
|
4370
|
-
children:
|
|
4331
|
+
className: E ? "aivex:text-text-danger" : "aivex:text-text-tertiary",
|
|
4332
|
+
children: w
|
|
4371
4333
|
}), /* @__PURE__ */ V("span", {
|
|
4372
4334
|
className: "aivex:text-text-tertiary",
|
|
4373
|
-
children: `/ ${
|
|
4335
|
+
children: `/ ${p}`
|
|
4374
4336
|
})]
|
|
4375
4337
|
})]
|
|
4376
|
-
}) :
|
|
4338
|
+
}) : k
|
|
4377
4339
|
});
|
|
4378
4340
|
}
|
|
4379
4341
|
//#endregion
|
|
4380
4342
|
//#region src/components/Textbox/Textbox.tsx
|
|
4381
|
-
function
|
|
4382
|
-
let [
|
|
4383
|
-
|
|
4384
|
-
},
|
|
4385
|
-
size:
|
|
4343
|
+
function Zc({ 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 }) {
|
|
4344
|
+
let [_, v] = J(!1), y = q(null), [b, x] = J(typeof f == "string" ? f : f?.toString() ?? ""), S = d !== void 0, C = S ? String(d ?? "") : b, w = i && C.length > 0, T = (e) => {
|
|
4345
|
+
S || x(e.target.value), p?.(e);
|
|
4346
|
+
}, E = Da(u, y), D = /* @__PURE__ */ H(Vi, { children: [s, w && /* @__PURE__ */ V(o, {
|
|
4347
|
+
size: c === "sm" ? "xs" : "sm",
|
|
4386
4348
|
onClick: () => {
|
|
4387
|
-
|
|
4349
|
+
S || x(""), p?.({ target: { value: "" } }), y.current?.focus();
|
|
4388
4350
|
},
|
|
4389
4351
|
onMouseDown: (e) => e.preventDefault(),
|
|
4390
4352
|
tabIndex: -1,
|
|
4391
4353
|
className: "aivex:shrink-0",
|
|
4392
4354
|
"aria-label": "입력값 삭제",
|
|
4393
|
-
children: /* @__PURE__ */ V(
|
|
4394
|
-
})] }),
|
|
4395
|
-
return /* @__PURE__ */ V(
|
|
4396
|
-
error:
|
|
4397
|
-
disabled:
|
|
4398
|
-
focused:
|
|
4399
|
-
filled:
|
|
4400
|
-
size:
|
|
4355
|
+
children: /* @__PURE__ */ V(z, { size: c === "sm" ? 14 : 16 })
|
|
4356
|
+
})] }), O = s || w, k = g["aria-invalid"];
|
|
4357
|
+
return /* @__PURE__ */ V(Vs, {
|
|
4358
|
+
error: n || k === !0 || k === "true",
|
|
4359
|
+
disabled: r,
|
|
4360
|
+
focused: _,
|
|
4361
|
+
filled: C.length > 0,
|
|
4362
|
+
size: c,
|
|
4401
4363
|
layout: "inline",
|
|
4402
|
-
startContent:
|
|
4403
|
-
endContent:
|
|
4364
|
+
startContent: a,
|
|
4365
|
+
endContent: O ? D : void 0,
|
|
4404
4366
|
children: /* @__PURE__ */ V("input", {
|
|
4405
|
-
ref:
|
|
4406
|
-
id:
|
|
4407
|
-
disabled:
|
|
4408
|
-
value:
|
|
4409
|
-
defaultValue:
|
|
4410
|
-
onChange:
|
|
4411
|
-
className:
|
|
4367
|
+
ref: E,
|
|
4368
|
+
id: l,
|
|
4369
|
+
disabled: r,
|
|
4370
|
+
value: i ? C : d,
|
|
4371
|
+
defaultValue: i ? void 0 : f,
|
|
4372
|
+
onChange: i || S ? T : p,
|
|
4373
|
+
className: e("aivex:m-0 aivex:w-full aivex:min-w-0 aivex:appearance-none aivex:border-0 aivex:bg-transparent aivex:p-0 aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none", c === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", t),
|
|
4412
4374
|
onFocus: (e) => {
|
|
4413
|
-
|
|
4375
|
+
v(!0), m?.(e);
|
|
4414
4376
|
},
|
|
4415
4377
|
onBlur: (e) => {
|
|
4416
|
-
|
|
4378
|
+
v(!1), h?.(e);
|
|
4417
4379
|
},
|
|
4418
|
-
...
|
|
4380
|
+
...g
|
|
4419
4381
|
})
|
|
4420
4382
|
});
|
|
4421
4383
|
}
|
|
4422
4384
|
//#endregion
|
|
4423
4385
|
//#region src/components/Toast/Toast.tsx
|
|
4424
|
-
var
|
|
4386
|
+
var Qc = B("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", {
|
|
4425
4387
|
variants: { type: {
|
|
4426
4388
|
default: "",
|
|
4427
4389
|
success: "",
|
|
@@ -4429,69 +4391,69 @@ var ol = B("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4429
4391
|
} },
|
|
4430
4392
|
defaultVariants: { type: "default" }
|
|
4431
4393
|
});
|
|
4432
|
-
function
|
|
4433
|
-
if (!
|
|
4434
|
-
let { children:
|
|
4394
|
+
function $c({ className: t, type: n = "default", open: r = !0, message: i, action: a, onClose: s, closeAriaLabel: c = "닫기", ref: l, ...u }) {
|
|
4395
|
+
if (!r) return null;
|
|
4396
|
+
let { children: d, ...f } = a ?? {};
|
|
4435
4397
|
return /* @__PURE__ */ H("div", {
|
|
4436
|
-
ref:
|
|
4398
|
+
ref: l,
|
|
4437
4399
|
role: "status",
|
|
4438
4400
|
"aria-live": "polite",
|
|
4439
|
-
className:
|
|
4440
|
-
...
|
|
4401
|
+
className: e(Qc({ type: n }), t),
|
|
4402
|
+
...u,
|
|
4441
4403
|
children: [
|
|
4442
4404
|
/* @__PURE__ */ V("p", {
|
|
4443
4405
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4444
|
-
children:
|
|
4406
|
+
children: i
|
|
4445
4407
|
}),
|
|
4446
|
-
|
|
4408
|
+
a && /* @__PURE__ */ V(R, {
|
|
4447
4409
|
variant: "ghost",
|
|
4448
4410
|
color: "primary",
|
|
4449
4411
|
size: "md",
|
|
4450
4412
|
className: "aivex:shrink-0",
|
|
4451
|
-
...
|
|
4452
|
-
children:
|
|
4413
|
+
...f,
|
|
4414
|
+
children: d
|
|
4453
4415
|
}),
|
|
4454
|
-
|
|
4455
|
-
"aria-label":
|
|
4416
|
+
s && /* @__PURE__ */ V(o, {
|
|
4417
|
+
"aria-label": c,
|
|
4456
4418
|
color: "white",
|
|
4457
4419
|
size: "sm",
|
|
4458
4420
|
className: "aivex:shrink-0",
|
|
4459
|
-
onClick:
|
|
4460
|
-
children: /* @__PURE__ */ V(
|
|
4421
|
+
onClick: s,
|
|
4422
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
4461
4423
|
})
|
|
4462
4424
|
]
|
|
4463
4425
|
});
|
|
4464
4426
|
}
|
|
4465
|
-
function
|
|
4466
|
-
let
|
|
4467
|
-
return /* @__PURE__ */ V(
|
|
4468
|
-
position:
|
|
4469
|
-
duration:
|
|
4470
|
-
visibleToasts:
|
|
4471
|
-
gap:
|
|
4427
|
+
function el({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r = 3, gap: i = 8, style: a, toastOptions: o, ...s }) {
|
|
4428
|
+
let c = t.endsWith("center");
|
|
4429
|
+
return /* @__PURE__ */ V(Oa, {
|
|
4430
|
+
position: t,
|
|
4431
|
+
duration: n,
|
|
4432
|
+
visibleToasts: r,
|
|
4433
|
+
gap: i,
|
|
4472
4434
|
style: {
|
|
4473
4435
|
"--width": "720px",
|
|
4474
|
-
...
|
|
4436
|
+
...a
|
|
4475
4437
|
},
|
|
4476
4438
|
toastOptions: {
|
|
4477
|
-
...
|
|
4439
|
+
...o,
|
|
4478
4440
|
unstyled: !0,
|
|
4479
|
-
className:
|
|
4441
|
+
className: e(Qc({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4480
4442
|
classNames: {
|
|
4481
4443
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4482
4444
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
4483
4445
|
actionButton: "aivex:inline-flex aivex:h-8 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:gap-2xs aivex:rounded-md aivex:px-md aivex:text-label-lg aivex:text-text-brand aivex:transition-colors aivex:hover:bg-static-white/8",
|
|
4484
4446
|
cancelButton: "aivex:inline-flex aivex:h-8 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:gap-2xs aivex:rounded-md aivex:px-md aivex:text-label-lg aivex:text-static-white aivex:transition-colors aivex:hover:bg-static-white/8",
|
|
4485
4447
|
closeButton: "aivex:order-last aivex:inline-flex aivex:size-2xl aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-xs aivex:text-static-white aivex:transition-colors aivex:hover:bg-static-white/8",
|
|
4486
|
-
...
|
|
4448
|
+
...o?.classNames
|
|
4487
4449
|
}
|
|
4488
4450
|
},
|
|
4489
|
-
...
|
|
4451
|
+
...s
|
|
4490
4452
|
});
|
|
4491
4453
|
}
|
|
4492
4454
|
//#endregion
|
|
4493
4455
|
//#region src/components/Typography/Typography.tsx
|
|
4494
|
-
var
|
|
4456
|
+
var tl = B("", {
|
|
4495
4457
|
variants: { variant: {
|
|
4496
4458
|
"display-lg": "aivex:text-display-lg",
|
|
4497
4459
|
"display-md": "aivex:text-display-md",
|
|
@@ -4513,7 +4475,7 @@ var ll = B("", {
|
|
|
4513
4475
|
"caption-md": "aivex:text-caption-md"
|
|
4514
4476
|
} },
|
|
4515
4477
|
defaultVariants: { variant: "body-md-regular" }
|
|
4516
|
-
}),
|
|
4478
|
+
}), nl = {
|
|
4517
4479
|
"display-lg": "h1",
|
|
4518
4480
|
"display-md": "h1",
|
|
4519
4481
|
"heading-xl": "h1",
|
|
@@ -4533,106 +4495,106 @@ var ll = B("", {
|
|
|
4533
4495
|
"label-sm": "span",
|
|
4534
4496
|
"caption-md": "span"
|
|
4535
4497
|
};
|
|
4536
|
-
function
|
|
4537
|
-
return /* @__PURE__ */ V(
|
|
4538
|
-
ref:
|
|
4539
|
-
className:
|
|
4540
|
-
...
|
|
4541
|
-
children:
|
|
4498
|
+
function rl({ as: t, variant: n = "body-md-regular", className: r, children: i, ref: a, ...o }) {
|
|
4499
|
+
return /* @__PURE__ */ V(t ?? nl[n], {
|
|
4500
|
+
ref: a,
|
|
4501
|
+
className: e(tl({ variant: n }), r),
|
|
4502
|
+
...o,
|
|
4503
|
+
children: i
|
|
4542
4504
|
});
|
|
4543
4505
|
}
|
|
4544
4506
|
//#endregion
|
|
4545
4507
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4546
|
-
function
|
|
4508
|
+
function il({ className: t, formats: n = [
|
|
4547
4509
|
"jpg",
|
|
4548
4510
|
"bmp",
|
|
4549
4511
|
"png",
|
|
4550
4512
|
"json"
|
|
4551
|
-
], maxSize:
|
|
4552
|
-
let [
|
|
4513
|
+
], 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 }) {
|
|
4514
|
+
let [h, g] = J(!1), _ = q(null), v = q(null), y = q(0);
|
|
4553
4515
|
return /* @__PURE__ */ H("div", {
|
|
4554
|
-
ref:
|
|
4555
|
-
className:
|
|
4516
|
+
ref: p,
|
|
4517
|
+
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),
|
|
4556
4518
|
onDragEnter: (e) => {
|
|
4557
|
-
e.preventDefault(),
|
|
4519
|
+
e.preventDefault(), y.current++, g(!0);
|
|
4558
4520
|
},
|
|
4559
4521
|
onDragLeave: (e) => {
|
|
4560
|
-
e.preventDefault(),
|
|
4522
|
+
e.preventDefault(), y.current--, y.current === 0 && g(!1);
|
|
4561
4523
|
},
|
|
4562
4524
|
onDragOver: (e) => {
|
|
4563
4525
|
e.preventDefault();
|
|
4564
4526
|
},
|
|
4565
4527
|
onDrop: (e) => {
|
|
4566
|
-
e.preventDefault(),
|
|
4528
|
+
e.preventDefault(), y.current = 0, g(!1), e.dataTransfer.files.length > 0 && d?.(e.dataTransfer.files);
|
|
4567
4529
|
},
|
|
4568
|
-
...
|
|
4530
|
+
...m,
|
|
4569
4531
|
children: [
|
|
4570
4532
|
/* @__PURE__ */ H("div", {
|
|
4571
4533
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-6",
|
|
4572
4534
|
children: [/* @__PURE__ */ H("div", {
|
|
4573
4535
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3",
|
|
4574
|
-
children: [/* @__PURE__ */ V(
|
|
4536
|
+
children: [/* @__PURE__ */ V(gt, {
|
|
4575
4537
|
size: 28,
|
|
4576
4538
|
color: "var(--aivex-icon-tertiary)"
|
|
4577
4539
|
}), /* @__PURE__ */ H("div", {
|
|
4578
4540
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-1",
|
|
4579
4541
|
children: [/* @__PURE__ */ V("p", {
|
|
4580
4542
|
className: "aivex:text-[18px] aivex:font-medium aivex:text-text-primary aivex:leading-[26px] aivex:tracking-[-0.1px]",
|
|
4581
|
-
children:
|
|
4543
|
+
children: a
|
|
4582
4544
|
}), /* @__PURE__ */ H("div", {
|
|
4583
4545
|
className: "aivex:flex aivex:items-center aivex:gap-3 aivex:px-4 aivex:text-sm aivex:font-normal aivex:text-text-brand",
|
|
4584
4546
|
children: [/* @__PURE__ */ H("span", { children: [
|
|
4585
|
-
|
|
4547
|
+
o,
|
|
4586
4548
|
" : ",
|
|
4587
|
-
|
|
4549
|
+
n.join(", ")
|
|
4588
4550
|
] }), /* @__PURE__ */ H("span", { children: [
|
|
4589
|
-
|
|
4551
|
+
s,
|
|
4590
4552
|
" : ",
|
|
4591
|
-
|
|
4553
|
+
r
|
|
4592
4554
|
] })]
|
|
4593
4555
|
})]
|
|
4594
4556
|
})]
|
|
4595
4557
|
}), /* @__PURE__ */ H("div", {
|
|
4596
4558
|
className: "aivex:flex aivex:gap-2",
|
|
4597
|
-
children: [/* @__PURE__ */ V(
|
|
4559
|
+
children: [/* @__PURE__ */ V(R, {
|
|
4598
4560
|
type: "button",
|
|
4599
4561
|
variant: "outline",
|
|
4600
4562
|
color: "secondary",
|
|
4601
4563
|
size: "md",
|
|
4602
|
-
startContent: /* @__PURE__ */ V(
|
|
4603
|
-
onClick: () =>
|
|
4604
|
-
children:
|
|
4605
|
-
}),
|
|
4564
|
+
startContent: /* @__PURE__ */ V(on, { size: 16 }),
|
|
4565
|
+
onClick: () => _.current?.click(),
|
|
4566
|
+
children: c
|
|
4567
|
+
}), u && /* @__PURE__ */ V(R, {
|
|
4606
4568
|
type: "button",
|
|
4607
4569
|
variant: "outline",
|
|
4608
4570
|
color: "secondary",
|
|
4609
4571
|
size: "md",
|
|
4610
|
-
startContent: /* @__PURE__ */ V(
|
|
4611
|
-
onClick: () =>
|
|
4612
|
-
children:
|
|
4572
|
+
startContent: /* @__PURE__ */ V(si, { size: 16 }),
|
|
4573
|
+
onClick: () => v.current?.click(),
|
|
4574
|
+
children: l
|
|
4613
4575
|
})]
|
|
4614
4576
|
})]
|
|
4615
4577
|
}),
|
|
4616
4578
|
/* @__PURE__ */ V("input", {
|
|
4617
|
-
ref:
|
|
4579
|
+
ref: _,
|
|
4618
4580
|
type: "file",
|
|
4619
4581
|
multiple: !0,
|
|
4620
|
-
accept:
|
|
4582
|
+
accept: i,
|
|
4621
4583
|
className: "aivex:hidden",
|
|
4622
|
-
onChange: (e) => e.target.files &&
|
|
4584
|
+
onChange: (e) => e.target.files && d?.(e.target.files)
|
|
4623
4585
|
}),
|
|
4624
4586
|
/* @__PURE__ */ V("input", {
|
|
4625
|
-
ref:
|
|
4587
|
+
ref: v,
|
|
4626
4588
|
type: "file",
|
|
4627
4589
|
multiple: !0,
|
|
4628
4590
|
webkitdirectory: "",
|
|
4629
4591
|
className: "aivex:hidden",
|
|
4630
|
-
onChange: (e) => e.target.files &&
|
|
4592
|
+
onChange: (e) => e.target.files && f?.(e.target.files)
|
|
4631
4593
|
})
|
|
4632
4594
|
]
|
|
4633
4595
|
});
|
|
4634
4596
|
}
|
|
4635
4597
|
//#endregion
|
|
4636
|
-
export {
|
|
4598
|
+
export { Vr as AddFolderIcon, Kn as AddPointIcon, nn as AdjustIcon, Tr as AiSparkleGradientIcon, qr as AiSparkleIcon, mn as AiVDataIcon, ac as AiVDataLogo, oc as AiVDataSymbol, cr as AiVOpsIcon, sc as AiVOpsLogo, ii as AiViewIcon, lc as AiViewLogo, bn as AiVisionIcon, tc as AiVisionLogo, ic as AiVisionMLogo, rc as AiVisionSLogo, nc as AiVisionTLogo, jn as AiVotIcon, cc as AiVotLogo, ec as AivexLogo, jr as AlignCenterIcon, mr as AlignLeftIcon, Vn as AlignRightIcon, In as AngleIcon, Zt as ApertureIcon, ui as ArchiveIcon, wi as ArrowCircleDownFilledIcon, ln as ArrowCircleDownIcon, bi as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, S as ArrowCircleRightFilledIcon, hi as ArrowCircleRightIcon, gt as ArrowCircleUpFilledIcon, ee as ArrowCircleUpIcon, D as ArrowControlIcon, Ge as ArrowCornerLeftTopIcon, rr as ArrowDownIcon, f as ArrowElbowDownLeftIcon, Qn as ArrowElbowDownRightIcon, Fe as ArrowFlowIcon, Be as ArrowGoingDownIcon, Xe as ArrowGoingUpIcon, F as ArrowLeftDownIcon, he as ArrowLeftIcon, Ae as ArrowLeftRightIcon, ot as ArrowLeftUpIcon, ki 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, Ma as Badge, Ir as BarcodeIcon, be as BellIcon, Vt as BookmarkFilledIcon, It as BookmarkIcon, Kt as BoundingBoxIcon, Ra as BreadCrumb, tt as BrightIcon, R as Button, s as CSVFileIcon, qa as Calendar, An as CalendarIcon, ri as CameraIcon, Ya as Card, wr as CaretLineDownIcon, Kr as CaretLineLeftIcon, Zn as CaretLineRightIcon, cn as CaretLineUpIcon, Ar as CaretUpDownIcon, Qr as ChatIcon, yn as CheckCircleFilledIcon, pr as CheckCircleIcon, li as CheckDoubleIcon, Tn as CheckIcon, $a as Checkbox, Fn as CheckboxCheckIcon, Fr as CheckboxIndeterminateIcon, ro as Chips, eo as ChipsCheckbox, vr as CircleDashedIcon, Gn as CircleFilledIcon, Bn as CircleOutlineIcon, tn as ClipIcon, mi as ClipboardIcon, Oi as CloseCircleFilledIcon, pn as CloseCircleIcon, z as CloseIcon, ht as ClosedEyesIcon, fo as Coachmark, E as CodeIcon, yi as CompareIcon, bt as ConfirmIcon, P as ConnectedIcon, j as ContrastIcon, Ye as Copy1Icon, sr as Copy2Icon, g as CopyIcon, nr as CreditCardIcon, ze as CropIcon, We as CuttingIcon, ns as DataGrid, Go as DataGridBody, qo as DataGridCell, Eo as DataGridColumnSettings, Yo as DataGridEmpty, Wo as DataGridHeader, Jo as DataGridHeaderCell, Zo as DataGridInfiniteTrigger, Xo as DataGridLoading, Ho as DataGridRoot, Ko as DataGridRow, Uo as DataGridViewport, et as DatabaseIcon, ae as DefectGeneratorIcon, ye as DeleteIcon, Pe as DeletePointIcon, ss as Dialog, ut as DirectionDoubleDownIcon, Ni as DirectionDoubleLeftIcon, x as DirectionDoubleRightIcon, At as DirectionDoubleUpIcon, I as DirectionDownIcon, Tt as DirectionLeftIcon, Ft as DirectionRightIcon, ue as DirectionUpIcon, ke as DisconnectedIcon, Pi as Divider, Pa as Dot, Br as DotIcon, we as DownloadIcon, Gt as DragHandleIcon, us as DraggableScroll, fs as Drawer, Bt as EditIcon, Xt as EmptyIcon, at as EnglishIcon, d as EqualIcon, On as EraserIcon, ti as ExpandIcon, Sr as ExperimentIcon, Wr as ExportIcon, Yn as FailedIcon, gs as Field, vs as FieldContent, ys as FieldControl, bs as FieldDescription, xs as FieldError, _s as FieldLabel, on as FileIcon, Or as FilterFilledIcon, Xr as FilterIcon, zs as FilterModal, _n as FitIcon, dr as FloppyDiskIcon, si as FolderCloseIcon, Cn as FolderOpenIcon, Nn as GalleryViewLargeIcon, Nr as GalleryViewMediumIcon, gr as GalleryViewSmallIcon, Un as GlobalIcon, Rn as GraphIcon, $t as GraphPieIcon, fi as GraphScatterIcon, Ei as GridIcon, dn as GuideHandleIcon, Si as GuideLineIcon, pt as HamburgerIcon, w as HandIcon, _i as HeadphonesIcon, vt as HelpIcon, te as HistoryIcon, k as HomeIcon, qe as HourglassIcon, o as IconButton, ar as ImageBrokenIcon, m as ImageIcon, er as ImagesIcon, Le as ImportIcon, He as InfoFilledIcon, Qe as InfoIcon, Vs as InputBase, L as InteractionLayer, re as KebabIcon, _e as KeyDeleteIcon, Me as KeyIcon, ct as KeyReturnIcon, ji as KeyboardIcon, y as KoreanIcon, Ot as LabelPointIcon, pe as LanguageIcon, Ct as LightbulbIcon, Nt as LightingFilledIcon, ce as LightingIcon, De as LineIcon, Rr as LineLinkIcon, Se as LinkIcon, Ut as LinkedInIcon, Rt as ListIcon, Jt as ListPlayIcon, rt as LockIcon, l as LoginIcon, kn as LogoutIcon, ni as MagicWandIcon, Cr as MailIcon, Gr as MapIcon, Xn as MapPinIcon, sn as MeatballIcon, Fi as Menu, fc as Messagebox, kr as MicroscopeIcon, Zr as MinimizeIcon, vn as MinimizeWindowIcon, fr as MinusCircleFilledIcon, ci as MinusCircleIcon, wn as MinusIcon, Ns as Modal, Fs as ModalBase, Ms as ModalSurface, Pn as ModelIcon, Pr as MonitorIcon, _r as MouseClickLeftIcon, Wn as MouseClickRightIcon, zn as MoveFolderIcon, en as MoveIcon, pi as MultiSelectionIcon, Di as MuteIcon, _c as Nav, gc as NavItem, mc as NavTile, fn as NewTabIcon, Ci as NotEqualIcon, mt as OpenEyesIcon, T as OpenedMailIcon, is as Overlay, vi as PackageIcon, yt as PageIcon, Sc as Pagination, Tc as Panel, N as PasteIcon, A as PauseCircleFilledIcon, Je as PauseCircleIcon, or as PauseIcon, h as PenIcon, tr as PencilIcon, Re as PhoneIcon, Ue as PinIcon, $e as PipelineIcon, ie as PixelIcon, ve as PlayCircleFilledIcon, Ne as PlayCircleIcon, lt as PlayIcon, Mi as PlayProgressIcon, b as PlusCircleFilledIcon, kt as PlusCircleIcon, me as PlusIcon, wt as PointEditIcon, Pt as PointIcon, Bi as Popover, kc as ProgressBar, le as PushPinFilledIcon, Oe as PushPinIcon, zr as QuestionIcon, Nc as Radio, Ce as RectDashedIcon, Wt as RectIcon, zt as RedoIcon, Yt as RefreshIcon, it as RepeatIcon, u as RepeatOnceIcon, Dn as RequestStatusIcon, ei as RocketIcon, xr as RotateRectIcon, Ur as RotateRectOCRIcon, Jn as RulerIcon, an as ScaleLeftBottomIcon, Dr as ScaleLeftTopIcon, Yr as ScaleRightBottomIcon, gn as ScaleRightTopIcon, mo as ScrollArea, ho as ScrollBar, ur as SearchIcon, Rc as SegmentedItem, Ic as SegmentedRoot, yc as SelectBox, vc as SelectButton, oi as SendIcon, Sn as SettingIcon, Mn as ShapesIcon, Bc as Shortcut, Mr as ShrinkIcon, hr as ShuffleIcon, Hn as SidebarIcon, Ln as SimplificationIcon, po as Skeleton, Ii as Slider, Qt as SmoothIcon, di as SortAscendingIcon, Ti as SortDescendingIcon, un as SoundIcon, xi as SpecificAreaIcon, Hc as Spinner, ft as StarFilledIcon, C as StarIcon, gi as StopCircleFilledIcon, _t as StopCircleIcon, M as StopIcon, O as StorageIcon, Ke as StrokeIcon, zi as Switch, Jc as TabContent, Gc as TabList, Uc as TabRoot, qc as TabTrigger, Ao as Table, Po as TableBody, No as TableCaption, Lo as TableCell, Ro as TableEmpty, Mo as TableFooter, Io as TableHead, jo as TableHeader, zo as TableLoading, Fo as TableRow, Ls as Tag, ir as TagFilledIcon, p as TagFilledOpacityIcon, $n as TagIcon, Yc as Tagbox, Ie as TargetIcon, Ve as TaskQueueIcon, Ze as TeamIcon, ne as TempIcon, ge as TestIcon, je as TextBoldIcon, st as TextH1Icon, Ai as TextH2Icon, v as TextH3Icon, Dt as TextIcon, fe as TextItalicIcon, St as TextStrikethroughIcon, Mt as TextUnderlineIcon, Xc as Textarea, Zc as Textbox, se as ThumbsDownFilledIcon, Ee as ThumbsDownIcon, Lr as ThumbsUpIcon, xe as TimeIcon, $c as Toast, el as ToastToaster, no as ToggleButton, Ht as ToolIcon, t as Tooltip, Lt as TriangleDashedIcon, rl as Typography, qt as UndoIcon, nt as UneditableIcon, c as UnlockIcon, En as UnreadIcon, il as UploadArea, $r as UploadIcon, br as UserIcon, Hr as WarningCircleFilledIcon, qn as WarningCircleIcon, rn as WarningTriangleFilledIcon, Er as WarningTriangleIcon, Jr as WheelIcon, hn as WorkspaceIcon, lr as Zoom100Icon, ai as ZoomInIcon, xn as ZoomOutIcon, n as avatarVariants, Aa as badgeVariants, yr as buttonVariants, Xa as checkboxVariants, io as chipsVariants, e as cn, Ri as dividerVariants, Na as dotVariants, hs as fieldVariants, Xi as getCoreRowModel, Qi as getExpandedRowModel, $i as getFacetedMinMaxValues, ea as getFacetedRowModel, ta as getFacetedUniqueValues, na as getFilteredRowModel, ra as getGroupedRowModel, ia as getPaginationRowModel, aa as getSortedRowModel, r as iconButtonVariants, Bs as inputContainerVariants, Bs as inputWrapperVariants, Li as isShortcutTarget, uc as messageboxVariants, hc as navItemVariants, pc as navTileVariants, rs as overlayVariants, Ac as radioVariants, Is as tagVariants, ka as toast, Qc as toastVariants, to as toggleButtonVariants, i as tooltipContentVariants, tl as typographyVariants };
|
|
4637
4599
|
|
|
4638
4600
|
//# sourceMappingURL=index.js.map
|