@aivex/ui 1.2.0-dev.34 → 1.2.0-dev.36
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/ShapeEditor.d.ts +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +2 -4
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +1 -2
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +3 -4
- package/dist/components/ShapeEditor/_model/overlays.d.ts +0 -19
- package/dist/components/ShapeEditor/_model/props.d.ts +3 -10
- package/dist/components/ShapeEditor/_model/strings.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +0 -1
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +1 -2
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +1 -3
- package/dist/components/ShapeEditor/_renderers/types.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +2 -2
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +1 -2
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +1 -1
- package/dist/components/ShapeEditor/index.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 +1354 -1388
- 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 +1529 -1620
- 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,245 +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",
|
|
1511
|
+
...o ? {} : { "aria-describedby": void 0 },
|
|
1550
1512
|
children: /* @__PURE__ */ H("div", {
|
|
1551
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",
|
|
1552
1514
|
children: [/* @__PURE__ */ H("div", {
|
|
1553
|
-
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"),
|
|
1554
1516
|
children: [
|
|
1555
|
-
|
|
1556
|
-
className:
|
|
1557
|
-
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 })
|
|
1558
1520
|
}),
|
|
1559
|
-
/* @__PURE__ */ V(
|
|
1521
|
+
/* @__PURE__ */ V(X.Title, {
|
|
1560
1522
|
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary",
|
|
1561
|
-
children:
|
|
1523
|
+
children: a
|
|
1562
1524
|
}),
|
|
1563
|
-
|
|
1525
|
+
o && /* @__PURE__ */ V(X.Description, {
|
|
1564
1526
|
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary",
|
|
1565
|
-
children:
|
|
1527
|
+
children: o
|
|
1566
1528
|
}),
|
|
1567
|
-
|
|
1529
|
+
s
|
|
1568
1530
|
]
|
|
1569
|
-
}), (
|
|
1531
|
+
}), (c || l) && /* @__PURE__ */ H("div", {
|
|
1570
1532
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
1571
|
-
children: [
|
|
1572
|
-
...
|
|
1573
|
-
defaultColor:
|
|
1533
|
+
children: [c && /* @__PURE__ */ V(cs, { ...c }), l && /* @__PURE__ */ V(ls, {
|
|
1534
|
+
...l,
|
|
1535
|
+
defaultColor: _
|
|
1574
1536
|
})]
|
|
1575
1537
|
})]
|
|
1576
1538
|
})
|
|
1577
1539
|
})] })
|
|
1578
1540
|
});
|
|
1579
1541
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return /* @__PURE__ */ V(
|
|
1542
|
+
function cs({ children: e, onClick: t, ...n }) {
|
|
1543
|
+
return /* @__PURE__ */ V(X.Cancel, {
|
|
1582
1544
|
asChild: !0,
|
|
1583
|
-
children: /* @__PURE__ */ V(
|
|
1545
|
+
children: /* @__PURE__ */ V(R, {
|
|
1584
1546
|
variant: "solid",
|
|
1585
1547
|
color: "secondary",
|
|
1586
1548
|
size: "lg",
|
|
@@ -1593,8 +1555,8 @@ function gs({ children: e, onClick: t, ...n }) {
|
|
|
1593
1555
|
})
|
|
1594
1556
|
});
|
|
1595
1557
|
}
|
|
1596
|
-
function
|
|
1597
|
-
return /* @__PURE__ */ V(
|
|
1558
|
+
function ls({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1559
|
+
return /* @__PURE__ */ V(R, {
|
|
1598
1560
|
variant: "solid",
|
|
1599
1561
|
color: t,
|
|
1600
1562
|
size: "lg",
|
|
@@ -1608,13 +1570,13 @@ function _s({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1608
1570
|
}
|
|
1609
1571
|
//#endregion
|
|
1610
1572
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1611
|
-
function
|
|
1612
|
-
let
|
|
1573
|
+
function us({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1574
|
+
let o = q(null), s = q({
|
|
1613
1575
|
isDragging: !1,
|
|
1614
1576
|
startX: 0,
|
|
1615
1577
|
scrollLeft: 0
|
|
1616
|
-
}),
|
|
1617
|
-
let t =
|
|
1578
|
+
}), c = (e) => {
|
|
1579
|
+
let t = o.current, { current: n } = s;
|
|
1618
1580
|
if (t) if (e.type === "mousedown") n.isDragging = !0, n.startX = e.clientX, n.scrollLeft = t.scrollLeft;
|
|
1619
1581
|
else if (e.type === "mousemove" && n.isDragging) {
|
|
1620
1582
|
e.preventDefault();
|
|
@@ -1623,111 +1585,112 @@ function vs({ children: e, className: t, autoScrollToEnd: n = !1, smoothScroll:
|
|
|
1623
1585
|
} else (e.type === "mouseup" || e.type === "mouseleave") && (n.isDragging = !1);
|
|
1624
1586
|
};
|
|
1625
1587
|
return G(() => {
|
|
1626
|
-
let e =
|
|
1627
|
-
|
|
1588
|
+
let e = o.current;
|
|
1589
|
+
r && e && requestAnimationFrame(() => {
|
|
1628
1590
|
e.scrollTo({
|
|
1629
1591
|
left: e.scrollWidth,
|
|
1630
|
-
behavior:
|
|
1592
|
+
behavior: i ? "smooth" : "auto"
|
|
1631
1593
|
});
|
|
1632
1594
|
});
|
|
1633
1595
|
}, [
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1596
|
+
t,
|
|
1597
|
+
r,
|
|
1598
|
+
i
|
|
1637
1599
|
]), /* @__PURE__ */ V("div", {
|
|
1638
|
-
ref:
|
|
1639
|
-
className:
|
|
1640
|
-
onMouseDown:
|
|
1641
|
-
onMouseMove:
|
|
1642
|
-
onMouseUp:
|
|
1643
|
-
onMouseLeave:
|
|
1644
|
-
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
|
|
1645
1607
|
});
|
|
1646
1608
|
}
|
|
1647
1609
|
//#endregion
|
|
1648
1610
|
//#region src/components/Drawer/Drawer.tsx
|
|
1649
|
-
var
|
|
1611
|
+
var ds = {
|
|
1650
1612
|
left: "aivex:left-0 aivex:border-r",
|
|
1651
1613
|
right: "aivex:right-0 aivex:border-l"
|
|
1652
1614
|
};
|
|
1653
|
-
function
|
|
1654
|
-
return /* @__PURE__ */ V(
|
|
1655
|
-
modal:
|
|
1656
|
-
open:
|
|
1657
|
-
onOpenChange:
|
|
1658
|
-
children: /* @__PURE__ */ V(
|
|
1659
|
-
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,
|
|
1660
1622
|
"aria-describedby": void 0,
|
|
1661
|
-
"data-side":
|
|
1662
|
-
className:
|
|
1663
|
-
style:
|
|
1664
|
-
onAnimationEnd: (
|
|
1665
|
-
!
|
|
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?.();
|
|
1666
1628
|
},
|
|
1667
|
-
onOpenAutoFocus:
|
|
1668
|
-
onCloseAutoFocus:
|
|
1669
|
-
onEscapeKeyDown:
|
|
1670
|
-
|
|
1671
|
-
|
|
1629
|
+
onOpenAutoFocus: u,
|
|
1630
|
+
onCloseAutoFocus: d,
|
|
1631
|
+
onEscapeKeyDown: f,
|
|
1632
|
+
onKeyDown: p,
|
|
1633
|
+
onInteractOutside: m,
|
|
1634
|
+
children: [/* @__PURE__ */ V(Z.Title, {
|
|
1672
1635
|
className: "aivex:sr-only",
|
|
1673
|
-
children:
|
|
1674
|
-
}),
|
|
1636
|
+
children: r
|
|
1637
|
+
}), i]
|
|
1675
1638
|
}) })
|
|
1676
1639
|
});
|
|
1677
1640
|
}
|
|
1678
1641
|
//#endregion
|
|
1679
1642
|
//#region src/components/Field/Field.tsx
|
|
1680
|
-
var
|
|
1681
|
-
function
|
|
1682
|
-
let e =
|
|
1643
|
+
var ps = Wi(null);
|
|
1644
|
+
function ms() {
|
|
1645
|
+
let e = qi(ps);
|
|
1683
1646
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1684
1647
|
return e;
|
|
1685
1648
|
}
|
|
1686
|
-
var
|
|
1649
|
+
var hs = B("aivex:flex aivex:w-full", {
|
|
1687
1650
|
variants: { orientation: {
|
|
1688
1651
|
vertical: "aivex:flex-col aivex:gap-xs",
|
|
1689
1652
|
horizontal: "aivex:flex-row aivex:items-center aivex:gap-sm aivex:has-[[data-slot=field-content]]:items-start"
|
|
1690
1653
|
} },
|
|
1691
1654
|
defaultVariants: { orientation: "vertical" }
|
|
1692
1655
|
});
|
|
1693
|
-
function
|
|
1694
|
-
let
|
|
1695
|
-
controlId:
|
|
1696
|
-
descriptionId: `${
|
|
1697
|
-
errorId: `${
|
|
1698
|
-
invalid:
|
|
1699
|
-
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
|
|
1700
1663
|
};
|
|
1701
|
-
return /* @__PURE__ */ V(
|
|
1702
|
-
value:
|
|
1664
|
+
return /* @__PURE__ */ V(ps.Provider, {
|
|
1665
|
+
value: u,
|
|
1703
1666
|
children: /* @__PURE__ */ V("div", {
|
|
1704
|
-
ref:
|
|
1705
|
-
className:
|
|
1706
|
-
"data-invalid":
|
|
1707
|
-
"data-disabled":
|
|
1708
|
-
...
|
|
1667
|
+
ref: o,
|
|
1668
|
+
className: e(hs({ orientation: n }), t),
|
|
1669
|
+
"data-invalid": i || void 0,
|
|
1670
|
+
"data-disabled": a || void 0,
|
|
1671
|
+
...s
|
|
1709
1672
|
})
|
|
1710
1673
|
});
|
|
1711
1674
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let { controlId:
|
|
1675
|
+
function _s({ className: t, ref: n, ...r }) {
|
|
1676
|
+
let { controlId: i, invalid: a, disabled: o } = ms();
|
|
1714
1677
|
return /* @__PURE__ */ V("label", {
|
|
1715
|
-
ref:
|
|
1716
|
-
htmlFor:
|
|
1717
|
-
className:
|
|
1718
|
-
...
|
|
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
|
|
1719
1682
|
});
|
|
1720
1683
|
}
|
|
1721
|
-
function
|
|
1684
|
+
function vs({ className: t, ref: n, ...r }) {
|
|
1722
1685
|
return /* @__PURE__ */ V("div", {
|
|
1723
|
-
ref:
|
|
1686
|
+
ref: n,
|
|
1724
1687
|
"data-slot": "field-content",
|
|
1725
|
-
className:
|
|
1726
|
-
...
|
|
1688
|
+
className: e("aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs", t),
|
|
1689
|
+
...r
|
|
1727
1690
|
});
|
|
1728
1691
|
}
|
|
1729
|
-
function
|
|
1730
|
-
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();
|
|
1731
1694
|
return /* @__PURE__ */ V(U, {
|
|
1732
1695
|
id: t,
|
|
1733
1696
|
"aria-describedby": i ? `${n} ${r}` : n,
|
|
@@ -1735,86 +1698,86 @@ function Ds({ children: e }) {
|
|
|
1735
1698
|
children: e
|
|
1736
1699
|
});
|
|
1737
1700
|
}
|
|
1738
|
-
function
|
|
1739
|
-
let { descriptionId:
|
|
1701
|
+
function bs({ className: t, ref: n, ...r }) {
|
|
1702
|
+
let { descriptionId: i, disabled: a } = ms();
|
|
1740
1703
|
return /* @__PURE__ */ V("p", {
|
|
1741
|
-
ref: t,
|
|
1742
|
-
id: r,
|
|
1743
|
-
className: I("aivex:text-caption-md aivex:text-text-secondary", i && "aivex:text-text-disabled", e),
|
|
1744
|
-
...n
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
function ks({ className: e, children: t, ref: n, ...r }) {
|
|
1748
|
-
let { errorId: i, invalid: a } = Ss();
|
|
1749
|
-
return !a && !t ? null : /* @__PURE__ */ V("p", {
|
|
1750
1704
|
ref: n,
|
|
1751
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,
|
|
1752
1715
|
role: "alert",
|
|
1753
|
-
className:
|
|
1754
|
-
...
|
|
1755
|
-
children:
|
|
1716
|
+
className: e("aivex:text-caption-md aivex:text-text-danger", t),
|
|
1717
|
+
...i,
|
|
1718
|
+
children: n
|
|
1756
1719
|
});
|
|
1757
1720
|
}
|
|
1758
1721
|
//#endregion
|
|
1759
1722
|
//#region src/components/Modal/Modal.tsx
|
|
1760
|
-
var
|
|
1723
|
+
var Ss = Wi(!1), Cs = {
|
|
1761
1724
|
sm: "aivex:max-w-modal-sm",
|
|
1762
1725
|
md: "aivex:max-w-modal-md",
|
|
1763
1726
|
lg: "aivex:max-w-modal-lg",
|
|
1764
1727
|
xl: "aivex:max-w-[960px]",
|
|
1765
1728
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
1766
|
-
},
|
|
1767
|
-
function
|
|
1768
|
-
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", {
|
|
1769
1732
|
...t ? { id: t } : {},
|
|
1770
1733
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
1771
1734
|
children: e
|
|
1772
|
-
}),
|
|
1735
|
+
}), d = n ? /* @__PURE__ */ V("p", {
|
|
1773
1736
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-body-md-regular aivex:text-text-secondary aivex:break-words",
|
|
1774
1737
|
children: n
|
|
1775
|
-
}) : null,
|
|
1738
|
+
}) : null, f = /* @__PURE__ */ V(o, {
|
|
1776
1739
|
size: "md",
|
|
1777
1740
|
onClick: i,
|
|
1778
1741
|
className: "aivex:shrink-0",
|
|
1779
1742
|
"aria-label": a,
|
|
1780
|
-
children: /* @__PURE__ */ V(
|
|
1781
|
-
}),
|
|
1743
|
+
children: /* @__PURE__ */ V(z, { size: 24 })
|
|
1744
|
+
}), p = r ? /* @__PURE__ */ V(Ds, { button: r }) : null;
|
|
1782
1745
|
return /* @__PURE__ */ H("div", {
|
|
1783
|
-
ref:
|
|
1784
|
-
className:
|
|
1785
|
-
...
|
|
1746
|
+
ref: s,
|
|
1747
|
+
className: Ts,
|
|
1748
|
+
...c,
|
|
1786
1749
|
children: [/* @__PURE__ */ H("div", {
|
|
1787
1750
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
1788
1751
|
children: [
|
|
1789
|
-
|
|
1752
|
+
p,
|
|
1790
1753
|
/* @__PURE__ */ V("div", {
|
|
1791
1754
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center",
|
|
1792
|
-
children:
|
|
1755
|
+
children: l ? /* @__PURE__ */ V(Z.Title, {
|
|
1793
1756
|
asChild: !0,
|
|
1794
|
-
children:
|
|
1795
|
-
}) :
|
|
1757
|
+
children: u
|
|
1758
|
+
}) : u
|
|
1796
1759
|
}),
|
|
1797
|
-
i ?
|
|
1760
|
+
i ? f : l && /* @__PURE__ */ V(Z.Close, {
|
|
1798
1761
|
asChild: !0,
|
|
1799
|
-
children:
|
|
1762
|
+
children: f
|
|
1800
1763
|
})
|
|
1801
1764
|
]
|
|
1802
|
-
}),
|
|
1765
|
+
}), l && d ? /* @__PURE__ */ V(Z.Description, {
|
|
1803
1766
|
asChild: !0,
|
|
1804
|
-
children:
|
|
1805
|
-
}) :
|
|
1767
|
+
children: d
|
|
1768
|
+
}) : d]
|
|
1806
1769
|
});
|
|
1807
1770
|
}
|
|
1808
|
-
function
|
|
1771
|
+
function Ds({ button: e }) {
|
|
1809
1772
|
let { children: t, ...n } = e;
|
|
1810
|
-
return /* @__PURE__ */ V(
|
|
1773
|
+
return /* @__PURE__ */ V(o, {
|
|
1811
1774
|
size: "md",
|
|
1812
1775
|
className: "aivex:shrink-0",
|
|
1813
1776
|
...n,
|
|
1814
1777
|
children: t
|
|
1815
1778
|
});
|
|
1816
1779
|
}
|
|
1817
|
-
function
|
|
1780
|
+
function Os({ children: e, ref: t, ...n }) {
|
|
1818
1781
|
return /* @__PURE__ */ V("div", {
|
|
1819
1782
|
ref: t,
|
|
1820
1783
|
className: "aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto",
|
|
@@ -1822,14 +1785,14 @@ function Is({ children: e, ref: t, ...n }) {
|
|
|
1822
1785
|
children: e
|
|
1823
1786
|
});
|
|
1824
1787
|
}
|
|
1825
|
-
function
|
|
1788
|
+
function ks({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1826
1789
|
return /* @__PURE__ */ H("div", {
|
|
1827
1790
|
ref: r,
|
|
1828
1791
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1829
1792
|
...i,
|
|
1830
1793
|
children: [/* @__PURE__ */ V("div", {
|
|
1831
1794
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1832
|
-
children: e && /* @__PURE__ */ V(
|
|
1795
|
+
children: e && /* @__PURE__ */ V(As, {
|
|
1833
1796
|
button: e,
|
|
1834
1797
|
variant: "ghost",
|
|
1835
1798
|
color: "secondary",
|
|
@@ -1837,12 +1800,12 @@ function Ls({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1837
1800
|
})
|
|
1838
1801
|
}), /* @__PURE__ */ H("div", {
|
|
1839
1802
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1840
|
-
children: [t && /* @__PURE__ */ V(
|
|
1803
|
+
children: [t && /* @__PURE__ */ V(As, {
|
|
1841
1804
|
button: t,
|
|
1842
1805
|
variant: "solid",
|
|
1843
1806
|
color: "secondary",
|
|
1844
1807
|
className: "aivex:min-w-[84px]"
|
|
1845
|
-
}), n && /* @__PURE__ */ V(
|
|
1808
|
+
}), n && /* @__PURE__ */ V(As, {
|
|
1846
1809
|
button: n,
|
|
1847
1810
|
variant: "solid",
|
|
1848
1811
|
color: "primary",
|
|
@@ -1851,9 +1814,9 @@ function Ls({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1851
1814
|
})]
|
|
1852
1815
|
});
|
|
1853
1816
|
}
|
|
1854
|
-
function
|
|
1817
|
+
function As({ button: e, variant: t, color: n, className: r }) {
|
|
1855
1818
|
let { children: i, ...a } = e;
|
|
1856
|
-
return /* @__PURE__ */ V(
|
|
1819
|
+
return /* @__PURE__ */ V(R, {
|
|
1857
1820
|
variant: t,
|
|
1858
1821
|
color: n,
|
|
1859
1822
|
size: "lg",
|
|
@@ -1862,72 +1825,74 @@ function Rs({ button: e, variant: t, color: n, className: r }) {
|
|
|
1862
1825
|
children: i
|
|
1863
1826
|
});
|
|
1864
1827
|
}
|
|
1865
|
-
function
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
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]),
|
|
1873
1837
|
onInteractOutside: (e) => {
|
|
1874
|
-
|
|
1875
|
-
},
|
|
1876
|
-
onOpenAutoFocus: s,
|
|
1877
|
-
onKeyDown: (e) => {
|
|
1878
|
-
o && e.stopPropagation(), l?.(e);
|
|
1838
|
+
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1879
1839
|
},
|
|
1880
|
-
...
|
|
1881
|
-
|
|
1840
|
+
...m,
|
|
1841
|
+
onKeyDown: u,
|
|
1842
|
+
onKeyUp: d,
|
|
1843
|
+
...p,
|
|
1844
|
+
children: /* @__PURE__ */ V(Ss.Provider, {
|
|
1882
1845
|
value: !0,
|
|
1883
|
-
children:
|
|
1846
|
+
children: i
|
|
1884
1847
|
})
|
|
1885
1848
|
})] })
|
|
1886
1849
|
});
|
|
1887
1850
|
}
|
|
1888
|
-
function
|
|
1889
|
-
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);
|
|
1890
1853
|
return /* @__PURE__ */ H("div", {
|
|
1891
|
-
ref:
|
|
1854
|
+
ref: d,
|
|
1892
1855
|
role: "dialog",
|
|
1893
1856
|
"aria-modal": "true",
|
|
1894
|
-
"aria-labelledby":
|
|
1895
|
-
className:
|
|
1857
|
+
"aria-labelledby": f,
|
|
1858
|
+
className: e(ws, Cs[c]),
|
|
1896
1859
|
children: [
|
|
1897
|
-
/* @__PURE__ */ V(
|
|
1898
|
-
title:
|
|
1899
|
-
titleId:
|
|
1900
|
-
description:
|
|
1901
|
-
headingButton:
|
|
1902
|
-
onClose:
|
|
1903
|
-
closeAriaLabel:
|
|
1860
|
+
/* @__PURE__ */ V(Es, {
|
|
1861
|
+
title: t,
|
|
1862
|
+
titleId: f,
|
|
1863
|
+
description: n,
|
|
1864
|
+
headingButton: r,
|
|
1865
|
+
onClose: l,
|
|
1866
|
+
closeAriaLabel: u
|
|
1904
1867
|
}),
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
tertiaryButton:
|
|
1908
|
-
secondaryButton:
|
|
1909
|
-
primaryButton:
|
|
1868
|
+
i && /* @__PURE__ */ V(Os, { children: i }),
|
|
1869
|
+
p && /* @__PURE__ */ V(ks, {
|
|
1870
|
+
tertiaryButton: a,
|
|
1871
|
+
secondaryButton: o,
|
|
1872
|
+
primaryButton: s
|
|
1910
1873
|
})
|
|
1911
1874
|
]
|
|
1912
1875
|
});
|
|
1913
1876
|
}
|
|
1914
|
-
function
|
|
1915
|
-
|
|
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 }) {
|
|
1878
|
+
let m = !!(s || c || l);
|
|
1879
|
+
return /* @__PURE__ */ H(js, {
|
|
1916
1880
|
open: e,
|
|
1917
1881
|
defaultOpen: t,
|
|
1918
1882
|
onOpenChange: n,
|
|
1919
1883
|
size: u,
|
|
1920
1884
|
closeOnInteractOutside: d,
|
|
1921
1885
|
onOpenAutoFocus: f,
|
|
1886
|
+
...i ? {} : { "aria-describedby": void 0 },
|
|
1922
1887
|
children: [
|
|
1923
|
-
/* @__PURE__ */ V(
|
|
1888
|
+
/* @__PURE__ */ V(Es, {
|
|
1924
1889
|
title: r,
|
|
1925
1890
|
description: i,
|
|
1926
1891
|
headingButton: a,
|
|
1927
1892
|
closeAriaLabel: p
|
|
1928
1893
|
}),
|
|
1929
|
-
o && /* @__PURE__ */ V(
|
|
1930
|
-
|
|
1894
|
+
o && /* @__PURE__ */ V(Os, { children: o }),
|
|
1895
|
+
m && /* @__PURE__ */ V(ks, {
|
|
1931
1896
|
tertiaryButton: s,
|
|
1932
1897
|
secondaryButton: c,
|
|
1933
1898
|
primaryButton: l
|
|
@@ -1937,27 +1902,27 @@ function Vs({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1937
1902
|
}
|
|
1938
1903
|
//#endregion
|
|
1939
1904
|
//#region src/components/Modal/ModalBase.tsx
|
|
1940
|
-
function
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
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,
|
|
1947
1913
|
"aria-describedby": void 0,
|
|
1948
|
-
className:
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
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
|
|
1954
1919
|
})] })
|
|
1955
1920
|
});
|
|
1956
1921
|
}
|
|
1957
|
-
var
|
|
1958
|
-
Title:
|
|
1959
|
-
Close:
|
|
1960
|
-
}),
|
|
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", {
|
|
1961
1926
|
variants: {
|
|
1962
1927
|
size: {
|
|
1963
1928
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1973,43 +1938,43 @@ var Us = Object.assign(Hs, {
|
|
|
1973
1938
|
type: "default"
|
|
1974
1939
|
}
|
|
1975
1940
|
});
|
|
1976
|
-
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 }) {
|
|
1977
1942
|
return /* @__PURE__ */ H("div", {
|
|
1978
|
-
ref:
|
|
1979
|
-
className:
|
|
1980
|
-
size:
|
|
1981
|
-
type:
|
|
1982
|
-
}),
|
|
1983
|
-
...
|
|
1943
|
+
ref: u,
|
|
1944
|
+
className: e(Is({
|
|
1945
|
+
size: n,
|
|
1946
|
+
type: r
|
|
1947
|
+
}), s && "aivex:opacity-disable", t),
|
|
1948
|
+
...d,
|
|
1984
1949
|
children: [
|
|
1985
|
-
|
|
1950
|
+
i ? /* @__PURE__ */ V("span", {
|
|
1986
1951
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
1987
|
-
children:
|
|
1988
|
-
}) :
|
|
1952
|
+
children: i
|
|
1953
|
+
}) : a ? /* @__PURE__ */ V("span", {
|
|
1989
1954
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1990
|
-
children: /* @__PURE__ */ V(
|
|
1955
|
+
children: /* @__PURE__ */ V(vr, { size: 16 })
|
|
1991
1956
|
}) : null,
|
|
1992
1957
|
/* @__PURE__ */ V("span", {
|
|
1993
|
-
className:
|
|
1994
|
-
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
|
|
1995
1960
|
}),
|
|
1996
|
-
!
|
|
1961
|
+
!s && c && /* @__PURE__ */ V(o, {
|
|
1997
1962
|
size: "xs",
|
|
1998
1963
|
shape: "rounded",
|
|
1999
1964
|
onClick: (e) => {
|
|
2000
|
-
e.stopPropagation(),
|
|
1965
|
+
e.stopPropagation(), c();
|
|
2001
1966
|
},
|
|
2002
1967
|
className: "aivex:shrink-0",
|
|
2003
1968
|
"aria-label": "태그 삭제",
|
|
2004
|
-
children: /* @__PURE__ */ V(
|
|
1969
|
+
children: /* @__PURE__ */ V(z, { size: 12 })
|
|
2005
1970
|
})
|
|
2006
1971
|
]
|
|
2007
1972
|
});
|
|
2008
1973
|
}
|
|
2009
1974
|
//#endregion
|
|
2010
1975
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
2011
|
-
var
|
|
2012
|
-
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(() => {
|
|
2013
1978
|
let e = d.current;
|
|
2014
1979
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
2015
1980
|
}, []), h = ({ groupValue: e, optionValue: t }) => r.find((t) => t.groupValue === e)?.options.find((e) => e.value === t), g = l.map((e) => {
|
|
@@ -2045,7 +2010,7 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2045
2010
|
r,
|
|
2046
2011
|
e,
|
|
2047
2012
|
m
|
|
2048
|
-
]), /* @__PURE__ */ V(
|
|
2013
|
+
]), /* @__PURE__ */ V(Ns, {
|
|
2049
2014
|
open: e,
|
|
2050
2015
|
onOpenChange: (e) => {
|
|
2051
2016
|
e || t();
|
|
@@ -2068,8 +2033,8 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2068
2033
|
onScroll: m,
|
|
2069
2034
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
2070
2035
|
style: f ? {
|
|
2071
|
-
maskImage:
|
|
2072
|
-
WebkitMaskImage:
|
|
2036
|
+
maskImage: Rs,
|
|
2037
|
+
WebkitMaskImage: Rs
|
|
2073
2038
|
} : void 0,
|
|
2074
2039
|
children: r.map((e) => /* @__PURE__ */ V("div", {
|
|
2075
2040
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -2098,12 +2063,12 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2098
2063
|
})]
|
|
2099
2064
|
})
|
|
2100
2065
|
}, e.groupValue))
|
|
2101
|
-
}), l.length > 0 && /* @__PURE__ */ V(
|
|
2066
|
+
}), l.length > 0 && /* @__PURE__ */ V(us, {
|
|
2102
2067
|
autoScrollToEnd: !0,
|
|
2103
2068
|
className: "aivex:shrink-0",
|
|
2104
2069
|
children: /* @__PURE__ */ V("div", {
|
|
2105
2070
|
className: "aivex:flex aivex:gap-md",
|
|
2106
|
-
children: g.map((e) => /* @__PURE__ */ V(
|
|
2071
|
+
children: g.map((e) => /* @__PURE__ */ V(Ls, {
|
|
2107
2072
|
size: "md",
|
|
2108
2073
|
startContent: e.icon,
|
|
2109
2074
|
onRemove: () => b(e.value),
|
|
@@ -2114,7 +2079,7 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2114
2079
|
})]
|
|
2115
2080
|
})
|
|
2116
2081
|
});
|
|
2117
|
-
}),
|
|
2082
|
+
}), Bs = B("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
2118
2083
|
variants: {
|
|
2119
2084
|
state: {
|
|
2120
2085
|
default: "aivex:border-border-default",
|
|
@@ -2171,38 +2136,38 @@ var Ks = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", qs =
|
|
|
2171
2136
|
layout: "inline"
|
|
2172
2137
|
}
|
|
2173
2138
|
});
|
|
2174
|
-
function
|
|
2175
|
-
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");
|
|
2176
2141
|
return /* @__PURE__ */ H("div", {
|
|
2177
|
-
className:
|
|
2178
|
-
state:
|
|
2179
|
-
size:
|
|
2180
|
-
layout:
|
|
2181
|
-
}),
|
|
2142
|
+
className: e(Bs({
|
|
2143
|
+
state: d,
|
|
2144
|
+
size: a,
|
|
2145
|
+
layout: o
|
|
2146
|
+
}), l),
|
|
2182
2147
|
children: [
|
|
2183
|
-
o && /* @__PURE__ */ V("span", {
|
|
2184
|
-
className: d,
|
|
2185
|
-
children: o
|
|
2186
|
-
}),
|
|
2187
|
-
l,
|
|
2188
2148
|
s && /* @__PURE__ */ V("span", {
|
|
2189
|
-
className:
|
|
2149
|
+
className: f,
|
|
2190
2150
|
children: s
|
|
2151
|
+
}),
|
|
2152
|
+
u,
|
|
2153
|
+
c && /* @__PURE__ */ V("span", {
|
|
2154
|
+
className: f,
|
|
2155
|
+
children: c
|
|
2191
2156
|
})
|
|
2192
2157
|
]
|
|
2193
2158
|
});
|
|
2194
2159
|
}
|
|
2195
2160
|
//#endregion
|
|
2196
2161
|
//#region src/components/Logo/index.tsx
|
|
2197
|
-
function
|
|
2198
|
-
if (!
|
|
2162
|
+
function Hs(e, t) {
|
|
2163
|
+
if (!Gi(e)) return;
|
|
2199
2164
|
let n = e.props;
|
|
2200
2165
|
typeof n.id == "string" && t.add(n.id);
|
|
2201
2166
|
let r = n.children;
|
|
2202
|
-
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);
|
|
2203
2168
|
}
|
|
2204
|
-
function
|
|
2205
|
-
if (!
|
|
2169
|
+
function Us(e, t) {
|
|
2170
|
+
if (!Gi(e)) return e;
|
|
2206
2171
|
let n = { ...e.props };
|
|
2207
2172
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
2208
2173
|
for (let e of Object.keys(n)) {
|
|
@@ -2214,20 +2179,20 @@ function Zs(e, t) {
|
|
|
2214
2179
|
}
|
|
2215
2180
|
let r = n.children;
|
|
2216
2181
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2217
|
-
let r =
|
|
2218
|
-
return
|
|
2219
|
-
})),
|
|
2182
|
+
let r = Us(e, t);
|
|
2183
|
+
return Gi(r) && r.key == null ? Ui(r, { key: n }) : r;
|
|
2184
|
+
})), Ui(e, n);
|
|
2220
2185
|
}
|
|
2221
2186
|
function $(e) {
|
|
2222
2187
|
return (t) => {
|
|
2223
|
-
let n =
|
|
2224
|
-
if (
|
|
2188
|
+
let n = K().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2189
|
+
if (Hs(r, i), i.size === 0) return r;
|
|
2225
2190
|
let a = /* @__PURE__ */ new Map();
|
|
2226
2191
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2227
|
-
return
|
|
2192
|
+
return Us(r, a);
|
|
2228
2193
|
};
|
|
2229
2194
|
}
|
|
2230
|
-
var
|
|
2195
|
+
var Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2231
2196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2232
2197
|
viewBox: "0 0 251.366 52",
|
|
2233
2198
|
width: "251.366",
|
|
@@ -2268,7 +2233,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2268
2233
|
fill: e
|
|
2269
2234
|
})
|
|
2270
2235
|
]
|
|
2271
|
-
}),
|
|
2236
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2272
2237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2273
2238
|
viewBox: "0 0 105 24",
|
|
2274
2239
|
width: "105",
|
|
@@ -2428,7 +2393,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2428
2393
|
})
|
|
2429
2394
|
] })
|
|
2430
2395
|
]
|
|
2431
|
-
}),
|
|
2396
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2432
2397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2433
2398
|
viewBox: "0 0 127 24",
|
|
2434
2399
|
width: "127",
|
|
@@ -2638,7 +2603,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2638
2603
|
})
|
|
2639
2604
|
] })
|
|
2640
2605
|
]
|
|
2641
|
-
}),
|
|
2606
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2642
2607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2643
2608
|
viewBox: "0 0 127 24",
|
|
2644
2609
|
width: "127",
|
|
@@ -2806,7 +2771,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2806
2771
|
})
|
|
2807
2772
|
] })
|
|
2808
2773
|
]
|
|
2809
|
-
}),
|
|
2774
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2810
2775
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2811
2776
|
viewBox: "0 0 133 24",
|
|
2812
2777
|
width: "133",
|
|
@@ -2974,7 +2939,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
2974
2939
|
})
|
|
2975
2940
|
] })
|
|
2976
2941
|
]
|
|
2977
|
-
}),
|
|
2942
|
+
}), Ys = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
2978
2943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2979
2944
|
viewBox: "0 0 24 24",
|
|
2980
2945
|
width: "24",
|
|
@@ -3089,7 +3054,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3089
3054
|
})
|
|
3090
3055
|
] })
|
|
3091
3056
|
]
|
|
3092
|
-
}),
|
|
3057
|
+
}), Xs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3093
3058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3094
3059
|
viewBox: "0 0 108 24",
|
|
3095
3060
|
width: "108",
|
|
@@ -3238,7 +3203,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3238
3203
|
})
|
|
3239
3204
|
] })
|
|
3240
3205
|
]
|
|
3241
|
-
}),
|
|
3206
|
+
}), Zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3242
3207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3243
3208
|
viewBox: "0 0 100 24",
|
|
3244
3209
|
width: "100",
|
|
@@ -3377,7 +3342,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3377
3342
|
})
|
|
3378
3343
|
] })
|
|
3379
3344
|
]
|
|
3380
|
-
}),
|
|
3345
|
+
}), Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3381
3346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3382
3347
|
viewBox: "0 0 81 24",
|
|
3383
3348
|
width: "81",
|
|
@@ -3481,7 +3446,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3481
3446
|
]
|
|
3482
3447
|
})] })
|
|
3483
3448
|
]
|
|
3484
|
-
}),
|
|
3449
|
+
}), $s = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg", {
|
|
3485
3450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3486
3451
|
viewBox: "0 0 95 24",
|
|
3487
3452
|
width: "95",
|
|
@@ -3681,7 +3646,7 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3681
3646
|
})
|
|
3682
3647
|
] })
|
|
3683
3648
|
]
|
|
3684
|
-
}),
|
|
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", {
|
|
3685
3650
|
variants: { type: {
|
|
3686
3651
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3687
3652
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3690,65 +3655,65 @@ var Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ H("svg",
|
|
|
3690
3655
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3691
3656
|
} },
|
|
3692
3657
|
defaultVariants: { type: "basic" }
|
|
3693
|
-
}),
|
|
3658
|
+
}), dc = {
|
|
3694
3659
|
basic: {
|
|
3695
|
-
Icon:
|
|
3660
|
+
Icon: Qe,
|
|
3696
3661
|
className: "aivex:text-icon-secondary"
|
|
3697
3662
|
},
|
|
3698
3663
|
info: {
|
|
3699
|
-
Icon:
|
|
3664
|
+
Icon: Qe,
|
|
3700
3665
|
className: "aivex:text-icon-info"
|
|
3701
3666
|
},
|
|
3702
3667
|
success: {
|
|
3703
|
-
Icon:
|
|
3668
|
+
Icon: pr,
|
|
3704
3669
|
className: "aivex:text-icon-success"
|
|
3705
3670
|
},
|
|
3706
3671
|
warning: {
|
|
3707
|
-
Icon:
|
|
3672
|
+
Icon: qn,
|
|
3708
3673
|
className: "aivex:text-icon-warning"
|
|
3709
3674
|
},
|
|
3710
3675
|
danger: {
|
|
3711
|
-
Icon:
|
|
3676
|
+
Icon: Er,
|
|
3712
3677
|
className: "aivex:text-icon-danger"
|
|
3713
3678
|
}
|
|
3714
3679
|
};
|
|
3715
|
-
function
|
|
3716
|
-
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"];
|
|
3717
3682
|
return /* @__PURE__ */ V("div", {
|
|
3718
|
-
ref:
|
|
3683
|
+
ref: c,
|
|
3719
3684
|
role: "status",
|
|
3720
|
-
className:
|
|
3721
|
-
...
|
|
3685
|
+
className: e(uc({ type: n }), t),
|
|
3686
|
+
...l,
|
|
3722
3687
|
children: /* @__PURE__ */ H("div", {
|
|
3723
3688
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
3724
3689
|
children: [
|
|
3725
3690
|
/* @__PURE__ */ V("span", {
|
|
3726
|
-
className:
|
|
3727
|
-
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 })
|
|
3728
3693
|
}),
|
|
3729
3694
|
/* @__PURE__ */ H("div", {
|
|
3730
3695
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center aivex:gap-2xs aivex:break-words",
|
|
3731
3696
|
children: [
|
|
3732
3697
|
/* @__PURE__ */ V("span", {
|
|
3733
3698
|
className: "aivex:text-label-lg aivex:text-text-primary",
|
|
3734
|
-
children:
|
|
3699
|
+
children: r
|
|
3735
3700
|
}),
|
|
3736
|
-
|
|
3701
|
+
i && /* @__PURE__ */ V("span", {
|
|
3737
3702
|
className: "aivex:text-body-sm-regular aivex:text-text-secondary",
|
|
3738
|
-
children:
|
|
3703
|
+
children: i
|
|
3739
3704
|
}),
|
|
3740
|
-
|
|
3705
|
+
a && /* @__PURE__ */ V("div", {
|
|
3741
3706
|
className: "aivex:pt-xs",
|
|
3742
|
-
children:
|
|
3707
|
+
children: a
|
|
3743
3708
|
})
|
|
3744
3709
|
]
|
|
3745
3710
|
}),
|
|
3746
|
-
|
|
3711
|
+
s && /* @__PURE__ */ V(o, {
|
|
3747
3712
|
size: "sm",
|
|
3748
3713
|
className: "aivex:shrink-0 aivex:text-icon-secondary",
|
|
3749
|
-
onClick:
|
|
3714
|
+
onClick: s,
|
|
3750
3715
|
"aria-label": "닫기",
|
|
3751
|
-
children: /* @__PURE__ */ V(
|
|
3716
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
3752
3717
|
})
|
|
3753
3718
|
]
|
|
3754
3719
|
})
|
|
@@ -3756,155 +3721,155 @@ function bc({ className: e, type: t = "basic", message: n, subText: r, children:
|
|
|
3756
3721
|
}
|
|
3757
3722
|
//#endregion
|
|
3758
3723
|
//#region src/components/Nav/Nav.tsx
|
|
3759
|
-
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", {
|
|
3760
3725
|
variants: { active: {
|
|
3761
3726
|
true: "aivex:bg-bg-brand-subtle",
|
|
3762
3727
|
false: "aivex:bg-transparent"
|
|
3763
3728
|
} },
|
|
3764
3729
|
defaultVariants: { active: !1 }
|
|
3765
3730
|
});
|
|
3766
|
-
function
|
|
3767
|
-
let
|
|
3731
|
+
function mc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3732
|
+
let s = n ?? !1;
|
|
3768
3733
|
return /* @__PURE__ */ H("button", {
|
|
3769
|
-
ref:
|
|
3734
|
+
ref: a,
|
|
3770
3735
|
type: "button",
|
|
3771
|
-
"aria-pressed":
|
|
3772
|
-
className:
|
|
3773
|
-
...
|
|
3736
|
+
"aria-pressed": s,
|
|
3737
|
+
className: e(pc({ active: n }), t),
|
|
3738
|
+
...o,
|
|
3774
3739
|
children: [
|
|
3775
|
-
/* @__PURE__ */ V(
|
|
3776
|
-
|
|
3777
|
-
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"),
|
|
3778
3743
|
children: /* @__PURE__ */ V("span", {
|
|
3779
3744
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:size-6",
|
|
3780
|
-
children:
|
|
3745
|
+
children: r
|
|
3781
3746
|
})
|
|
3782
3747
|
}),
|
|
3783
|
-
|
|
3784
|
-
className:
|
|
3785
|
-
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
|
|
3786
3751
|
})
|
|
3787
3752
|
]
|
|
3788
3753
|
});
|
|
3789
3754
|
}
|
|
3790
|
-
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", {
|
|
3791
3756
|
variants: { active: {
|
|
3792
3757
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3793
3758
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3794
3759
|
} },
|
|
3795
3760
|
defaultVariants: { active: !1 }
|
|
3796
3761
|
});
|
|
3797
|
-
function
|
|
3762
|
+
function gc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3798
3763
|
return /* @__PURE__ */ H("button", {
|
|
3799
|
-
ref:
|
|
3764
|
+
ref: a,
|
|
3800
3765
|
type: "button",
|
|
3801
|
-
"aria-current":
|
|
3802
|
-
className:
|
|
3803
|
-
...
|
|
3766
|
+
"aria-current": n ? "page" : void 0,
|
|
3767
|
+
className: e(hc({ active: n }), t),
|
|
3768
|
+
...o,
|
|
3804
3769
|
children: [
|
|
3805
|
-
/* @__PURE__ */ V(
|
|
3806
|
-
|
|
3770
|
+
/* @__PURE__ */ V(L, {}),
|
|
3771
|
+
r && /* @__PURE__ */ V("span", {
|
|
3807
3772
|
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5",
|
|
3808
|
-
children:
|
|
3773
|
+
children: r
|
|
3809
3774
|
}),
|
|
3810
|
-
|
|
3775
|
+
i
|
|
3811
3776
|
]
|
|
3812
3777
|
});
|
|
3813
3778
|
}
|
|
3814
|
-
function
|
|
3779
|
+
function _c({ className: t, children: n, ref: r, ...i }) {
|
|
3815
3780
|
return /* @__PURE__ */ V("nav", {
|
|
3816
|
-
ref:
|
|
3817
|
-
className:
|
|
3818
|
-
...
|
|
3819
|
-
children:
|
|
3781
|
+
ref: r,
|
|
3782
|
+
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
3783
|
+
...i,
|
|
3784
|
+
children: n
|
|
3820
3785
|
});
|
|
3821
3786
|
}
|
|
3822
3787
|
//#endregion
|
|
3823
3788
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3824
|
-
function
|
|
3825
|
-
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;
|
|
3826
3791
|
return /* @__PURE__ */ V("button", {
|
|
3827
|
-
ref:
|
|
3828
|
-
type:
|
|
3829
|
-
disabled:
|
|
3830
|
-
"aria-expanded":
|
|
3792
|
+
ref: c,
|
|
3793
|
+
type: d,
|
|
3794
|
+
disabled: o,
|
|
3795
|
+
"aria-expanded": f ?? a,
|
|
3831
3796
|
onFocus: (e) => {
|
|
3832
|
-
|
|
3797
|
+
g(!0), l?.(e);
|
|
3833
3798
|
},
|
|
3834
3799
|
onBlur: (e) => {
|
|
3835
|
-
|
|
3800
|
+
g(!1), u?.(e);
|
|
3836
3801
|
},
|
|
3837
|
-
className:
|
|
3838
|
-
...
|
|
3839
|
-
children: /* @__PURE__ */ H(
|
|
3840
|
-
disabled:
|
|
3841
|
-
focused:
|
|
3842
|
-
error:
|
|
3843
|
-
filled:
|
|
3844
|
-
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,
|
|
3845
3810
|
layout: "inline",
|
|
3846
3811
|
endContent: /* @__PURE__ */ V("span", {
|
|
3847
|
-
className:
|
|
3848
|
-
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: _ })
|
|
3849
3814
|
}),
|
|
3850
3815
|
children: [/* @__PURE__ */ V("span", {
|
|
3851
|
-
className:
|
|
3852
|
-
children:
|
|
3853
|
-
}),
|
|
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]
|
|
3854
3819
|
})
|
|
3855
3820
|
});
|
|
3856
3821
|
}
|
|
3857
3822
|
//#endregion
|
|
3858
3823
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3859
|
-
function
|
|
3860
|
-
let [
|
|
3861
|
-
for (let
|
|
3862
|
-
let
|
|
3863
|
-
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;
|
|
3864
3829
|
}
|
|
3865
3830
|
})();
|
|
3866
|
-
return /* @__PURE__ */ H(
|
|
3867
|
-
value:
|
|
3868
|
-
onValueChange:
|
|
3869
|
-
disabled:
|
|
3870
|
-
open:
|
|
3871
|
-
onOpenChange:
|
|
3872
|
-
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, {
|
|
3873
3838
|
asChild: !0,
|
|
3874
|
-
"aria-invalid":
|
|
3875
|
-
children: /* @__PURE__ */ V(
|
|
3876
|
-
id:
|
|
3877
|
-
"aria-describedby":
|
|
3878
|
-
value:
|
|
3879
|
-
placeholder:
|
|
3880
|
-
size:
|
|
3881
|
-
error:
|
|
3882
|
-
open:
|
|
3883
|
-
disabled:
|
|
3884
|
-
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
|
|
3885
3850
|
})
|
|
3886
|
-
}), /* @__PURE__ */ V(
|
|
3851
|
+
}), /* @__PURE__ */ V(Q.Portal, { children: /* @__PURE__ */ V(Q.Content, {
|
|
3887
3852
|
position: "popper",
|
|
3888
3853
|
sideOffset: 4,
|
|
3889
|
-
className:
|
|
3890
|
-
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, {
|
|
3891
3856
|
style: { overflow: "visible" },
|
|
3892
|
-
children: /* @__PURE__ */ V(
|
|
3857
|
+
children: /* @__PURE__ */ V(mo, {
|
|
3893
3858
|
type: "auto",
|
|
3894
3859
|
className: "aivex:w-full",
|
|
3895
3860
|
viewportClassName: "aivex:max-h-[312px] aivex:p-xs",
|
|
3896
|
-
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, {
|
|
3897
3862
|
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
3898
|
-
children:
|
|
3899
|
-
}),
|
|
3900
|
-
value:
|
|
3901
|
-
disabled:
|
|
3902
|
-
className:
|
|
3903
|
-
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", {
|
|
3904
3869
|
className: "aivex:truncate",
|
|
3905
|
-
children:
|
|
3870
|
+
children: t.label
|
|
3906
3871
|
}) })]
|
|
3907
|
-
},
|
|
3872
|
+
}, t.key ?? t.value))] })] }, t.title ?? `group-${n}`))
|
|
3908
3873
|
})
|
|
3909
3874
|
})
|
|
3910
3875
|
}) })]
|
|
@@ -3912,43 +3877,43 @@ function Dc({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size:
|
|
|
3912
3877
|
}
|
|
3913
3878
|
//#endregion
|
|
3914
3879
|
//#region src/components/Pagination/Pagination.tsx
|
|
3915
|
-
function
|
|
3880
|
+
function bc({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3916
3881
|
return /* @__PURE__ */ H("button", {
|
|
3917
3882
|
type: "button",
|
|
3918
3883
|
"aria-label": n,
|
|
3919
3884
|
disabled: t,
|
|
3920
3885
|
onClick: e,
|
|
3921
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",
|
|
3922
|
-
children: [/* @__PURE__ */ V(
|
|
3887
|
+
children: [/* @__PURE__ */ V(L, { variant: "default" }), r]
|
|
3923
3888
|
});
|
|
3924
3889
|
}
|
|
3925
|
-
function
|
|
3890
|
+
function xc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3926
3891
|
return /* @__PURE__ */ H("button", {
|
|
3927
3892
|
type: "button",
|
|
3928
|
-
"aria-label": `Page ${
|
|
3929
|
-
"aria-current":
|
|
3930
|
-
disabled:
|
|
3931
|
-
onClick:
|
|
3932
|
-
className:
|
|
3933
|
-
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", {
|
|
3934
3899
|
className: "aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg",
|
|
3935
|
-
children:
|
|
3900
|
+
children: t
|
|
3936
3901
|
})]
|
|
3937
3902
|
});
|
|
3938
3903
|
}
|
|
3939
|
-
function
|
|
3940
|
-
let
|
|
3941
|
-
|
|
3942
|
-
let
|
|
3943
|
-
if (
|
|
3944
|
-
let
|
|
3945
|
-
|
|
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));
|
|
3946
3911
|
};
|
|
3947
3912
|
return /* @__PURE__ */ H("nav", {
|
|
3948
|
-
ref:
|
|
3913
|
+
ref: l,
|
|
3949
3914
|
"aria-label": "Pagination",
|
|
3950
|
-
className:
|
|
3951
|
-
...
|
|
3915
|
+
className: e("aivex:flex aivex:items-center", t),
|
|
3916
|
+
...u,
|
|
3952
3917
|
children: [
|
|
3953
3918
|
/* @__PURE__ */ V("div", { className: "aivex:flex-1" }),
|
|
3954
3919
|
/* @__PURE__ */ H("div", {
|
|
@@ -3956,55 +3921,55 @@ function Ac({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
3956
3921
|
children: [
|
|
3957
3922
|
/* @__PURE__ */ H("div", {
|
|
3958
3923
|
className: "aivex:flex aivex:gap-2",
|
|
3959
|
-
children: [/* @__PURE__ */ V(
|
|
3924
|
+
children: [/* @__PURE__ */ V(bc, {
|
|
3960
3925
|
"aria-label": "First page",
|
|
3961
|
-
disabled:
|
|
3962
|
-
onClick: () =>
|
|
3963
|
-
children: /* @__PURE__ */ V(
|
|
3964
|
-
}), /* @__PURE__ */ V(
|
|
3926
|
+
disabled: a || y,
|
|
3927
|
+
onClick: () => s(1),
|
|
3928
|
+
children: /* @__PURE__ */ V(Ni, { size: 16 })
|
|
3929
|
+
}), /* @__PURE__ */ V(bc, {
|
|
3965
3930
|
"aria-label": "Previous page group",
|
|
3966
|
-
disabled:
|
|
3967
|
-
onClick: () =>
|
|
3968
|
-
children: /* @__PURE__ */ V(
|
|
3931
|
+
disabled: a || y,
|
|
3932
|
+
onClick: () => s(g - 10),
|
|
3933
|
+
children: /* @__PURE__ */ V(Tt, { size: 16 })
|
|
3969
3934
|
})]
|
|
3970
3935
|
}),
|
|
3971
3936
|
/* @__PURE__ */ V("div", {
|
|
3972
3937
|
className: "aivex:flex aivex:gap-2",
|
|
3973
|
-
children: v.map((e) => /* @__PURE__ */ V(
|
|
3938
|
+
children: v.map((e) => /* @__PURE__ */ V(xc, {
|
|
3974
3939
|
page: e,
|
|
3975
|
-
isActive: e ===
|
|
3976
|
-
disabled:
|
|
3977
|
-
onClick: () =>
|
|
3940
|
+
isActive: e === m,
|
|
3941
|
+
disabled: a,
|
|
3942
|
+
onClick: () => s(e)
|
|
3978
3943
|
}, e))
|
|
3979
3944
|
}),
|
|
3980
3945
|
/* @__PURE__ */ H("div", {
|
|
3981
3946
|
className: "aivex:flex aivex:gap-2",
|
|
3982
|
-
children: [/* @__PURE__ */ V(
|
|
3947
|
+
children: [/* @__PURE__ */ V(bc, {
|
|
3983
3948
|
"aria-label": "Next page group",
|
|
3984
|
-
disabled:
|
|
3985
|
-
onClick: () =>
|
|
3986
|
-
children: /* @__PURE__ */ V(
|
|
3987
|
-
}), /* @__PURE__ */ V(
|
|
3949
|
+
disabled: a || b,
|
|
3950
|
+
onClick: () => s(_ + 1),
|
|
3951
|
+
children: /* @__PURE__ */ V(Ft, { size: 16 })
|
|
3952
|
+
}), /* @__PURE__ */ V(bc, {
|
|
3988
3953
|
"aria-label": "Last page",
|
|
3989
|
-
disabled:
|
|
3990
|
-
onClick: () =>
|
|
3991
|
-
children: /* @__PURE__ */ V(
|
|
3954
|
+
disabled: a || b,
|
|
3955
|
+
onClick: () => s(p),
|
|
3956
|
+
children: /* @__PURE__ */ V(x, { size: 16 })
|
|
3992
3957
|
})]
|
|
3993
3958
|
})
|
|
3994
3959
|
]
|
|
3995
3960
|
}),
|
|
3996
3961
|
/* @__PURE__ */ V("div", {
|
|
3997
3962
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
3998
|
-
children:
|
|
3963
|
+
children: o && /* @__PURE__ */ V(yc, {
|
|
3999
3964
|
size: "sm",
|
|
4000
3965
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
4001
|
-
value: String(
|
|
4002
|
-
disabled:
|
|
4003
|
-
groups: [{ options:
|
|
3966
|
+
value: String(i),
|
|
3967
|
+
disabled: a,
|
|
3968
|
+
groups: [{ options: o.map(({ value: e, label: t }) => ({
|
|
4004
3969
|
value: String(e),
|
|
4005
3970
|
label: t
|
|
4006
3971
|
})) }],
|
|
4007
|
-
onChange:
|
|
3972
|
+
onChange: S
|
|
4008
3973
|
})
|
|
4009
3974
|
})
|
|
4010
3975
|
]
|
|
@@ -4012,130 +3977,131 @@ function Ac({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
4012
3977
|
}
|
|
4013
3978
|
//#endregion
|
|
4014
3979
|
//#region src/components/Panel/Panel.tsx
|
|
4015
|
-
var
|
|
3980
|
+
var Cc = {
|
|
4016
3981
|
left: "aivex:left-0 aivex:border-r",
|
|
4017
3982
|
right: "aivex:right-0 aivex:border-l"
|
|
4018
|
-
},
|
|
3983
|
+
}, wc = {
|
|
4019
3984
|
md: "aivex:w-[384px]",
|
|
4020
3985
|
lg: "aivex:w-[450px]"
|
|
4021
3986
|
};
|
|
4022
|
-
function
|
|
4023
|
-
return /* @__PURE__ */ V(
|
|
4024
|
-
open:
|
|
4025
|
-
onOpenChange:
|
|
4026
|
-
children: /* @__PURE__ */ H(
|
|
4027
|
-
ref:
|
|
4028
|
-
"data-side":
|
|
4029
|
-
|
|
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,
|
|
3994
|
+
"aria-describedby": void 0,
|
|
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]),
|
|
4030
3996
|
onKeyDown: (e) => {
|
|
4031
3997
|
e.stopPropagation();
|
|
4032
3998
|
},
|
|
4033
3999
|
children: [/* @__PURE__ */ H("div", {
|
|
4034
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",
|
|
4035
|
-
children: [/* @__PURE__ */ V(
|
|
4001
|
+
children: [/* @__PURE__ */ V(Z.Title, {
|
|
4036
4002
|
className: "aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary",
|
|
4037
|
-
children:
|
|
4003
|
+
children: r
|
|
4038
4004
|
}), /* @__PURE__ */ H("div", {
|
|
4039
4005
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md",
|
|
4040
|
-
children: [
|
|
4006
|
+
children: [a, /* @__PURE__ */ V(Z.Close, {
|
|
4041
4007
|
asChild: !0,
|
|
4042
4008
|
children: /* @__PURE__ */ V("button", {
|
|
4043
4009
|
type: "button",
|
|
4044
|
-
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"),
|
|
4045
4011
|
"aria-label": "Close panel",
|
|
4046
|
-
children: /* @__PURE__ */ V(
|
|
4012
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
4047
4013
|
})
|
|
4048
4014
|
})]
|
|
4049
4015
|
})]
|
|
4050
4016
|
}), /* @__PURE__ */ V("div", {
|
|
4051
4017
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col",
|
|
4052
|
-
children:
|
|
4018
|
+
children: i
|
|
4053
4019
|
})]
|
|
4054
4020
|
})] })
|
|
4055
4021
|
});
|
|
4056
4022
|
}
|
|
4057
4023
|
//#endregion
|
|
4058
4024
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
4059
|
-
var
|
|
4025
|
+
var Ec = {
|
|
4060
4026
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
4061
4027
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
4062
4028
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
4063
4029
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
4064
|
-
},
|
|
4065
|
-
function
|
|
4066
|
-
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 ? {
|
|
4067
4033
|
width: "100%",
|
|
4068
|
-
backgroundImage: `linear-gradient(90deg, ${
|
|
4034
|
+
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
4069
4035
|
} : {
|
|
4070
|
-
width: `${
|
|
4071
|
-
backgroundColor:
|
|
4036
|
+
width: `${d}%`,
|
|
4037
|
+
backgroundColor: m.fill
|
|
4072
4038
|
};
|
|
4073
4039
|
return /* @__PURE__ */ V("div", {
|
|
4074
|
-
ref:
|
|
4040
|
+
ref: c,
|
|
4075
4041
|
role: "progressbar",
|
|
4076
4042
|
"aria-valuemin": 0,
|
|
4077
|
-
"aria-valuemax":
|
|
4078
|
-
"aria-valuenow":
|
|
4079
|
-
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),
|
|
4080
4046
|
style: {
|
|
4081
|
-
width:
|
|
4082
|
-
height:
|
|
4083
|
-
...
|
|
4047
|
+
width: f,
|
|
4048
|
+
height: p,
|
|
4049
|
+
...l
|
|
4084
4050
|
},
|
|
4085
|
-
...
|
|
4051
|
+
...u,
|
|
4086
4052
|
children: /* @__PURE__ */ V("div", {
|
|
4087
|
-
className:
|
|
4088
|
-
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
|
|
4089
4055
|
})
|
|
4090
4056
|
});
|
|
4091
4057
|
}
|
|
4092
4058
|
//#endregion
|
|
4093
4059
|
//#region src/components/Radio/Radio.tsx
|
|
4094
|
-
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", {
|
|
4095
4061
|
variants: { size: {
|
|
4096
4062
|
sm: "aivex:w-4 aivex:h-4",
|
|
4097
4063
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
4098
4064
|
} },
|
|
4099
4065
|
defaultVariants: { size: "md" }
|
|
4100
|
-
}),
|
|
4066
|
+
}), jc = {
|
|
4101
4067
|
sm: "aivex:w-5 aivex:h-5",
|
|
4102
4068
|
md: "aivex:w-6 aivex:h-6"
|
|
4103
|
-
},
|
|
4069
|
+
}, Mc = {
|
|
4104
4070
|
sm: "aivex:h-5",
|
|
4105
4071
|
md: "aivex:h-6"
|
|
4106
4072
|
};
|
|
4107
|
-
function
|
|
4108
|
-
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 = {
|
|
4109
4075
|
sm: "aivex:w-2 aivex:h-2",
|
|
4110
4076
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
4111
|
-
}[
|
|
4077
|
+
}[l], d = K(), f = o ?? d;
|
|
4112
4078
|
return /* @__PURE__ */ H("span", {
|
|
4113
|
-
className:
|
|
4079
|
+
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
4114
4080
|
children: [/* @__PURE__ */ H("span", {
|
|
4115
|
-
className:
|
|
4081
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", jc[l]),
|
|
4116
4082
|
children: [
|
|
4117
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" }),
|
|
4118
4084
|
/* @__PURE__ */ V("input", {
|
|
4119
|
-
ref:
|
|
4120
|
-
id:
|
|
4085
|
+
ref: s,
|
|
4086
|
+
id: f,
|
|
4121
4087
|
type: "radio",
|
|
4122
|
-
disabled:
|
|
4123
|
-
checked:
|
|
4124
|
-
className:
|
|
4125
|
-
...
|
|
4088
|
+
disabled: i,
|
|
4089
|
+
checked: a,
|
|
4090
|
+
className: e(Ac({ size: l }), t),
|
|
4091
|
+
...c
|
|
4126
4092
|
}),
|
|
4127
|
-
/* @__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) })
|
|
4128
4094
|
]
|
|
4129
|
-
}),
|
|
4130
|
-
htmlFor:
|
|
4131
|
-
className:
|
|
4132
|
-
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
|
|
4133
4099
|
})]
|
|
4134
4100
|
});
|
|
4135
4101
|
}
|
|
4136
4102
|
//#endregion
|
|
4137
4103
|
//#region src/components/Segmented/Segmented.tsx
|
|
4138
|
-
var
|
|
4104
|
+
var Pc = Wi({ size: "md" }), Fc = {
|
|
4139
4105
|
sm: "aivex:h-7",
|
|
4140
4106
|
md: "aivex:h-8",
|
|
4141
4107
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4143,27 +4109,27 @@ var Hc = Hi({ size: "md" }), Uc = {
|
|
|
4143
4109
|
"icon-md": "aivex:h-8",
|
|
4144
4110
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4145
4111
|
};
|
|
4146
|
-
function
|
|
4147
|
-
let
|
|
4148
|
-
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, {
|
|
4149
4115
|
value: {
|
|
4150
|
-
size:
|
|
4151
|
-
fullWidth:
|
|
4116
|
+
size: n,
|
|
4117
|
+
fullWidth: o
|
|
4152
4118
|
},
|
|
4153
|
-
children: /* @__PURE__ */ V(
|
|
4154
|
-
ref:
|
|
4119
|
+
children: /* @__PURE__ */ V(Ta.Root, {
|
|
4120
|
+
ref: c,
|
|
4155
4121
|
type: "single",
|
|
4156
|
-
value:
|
|
4122
|
+
value: p,
|
|
4157
4123
|
onValueChange: (e) => {
|
|
4158
|
-
e && (
|
|
4124
|
+
e && (u || f(e), a?.(e));
|
|
4159
4125
|
},
|
|
4160
|
-
className:
|
|
4161
|
-
...
|
|
4162
|
-
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
|
|
4163
4129
|
})
|
|
4164
4130
|
});
|
|
4165
4131
|
}
|
|
4166
|
-
var
|
|
4132
|
+
var Lc = {
|
|
4167
4133
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4168
4134
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4169
4135
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4171,253 +4137,253 @@ var Gc = {
|
|
|
4171
4137
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4172
4138
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4173
4139
|
};
|
|
4174
|
-
function
|
|
4175
|
-
let { size:
|
|
4176
|
-
return /* @__PURE__ */ V(
|
|
4177
|
-
ref:
|
|
4178
|
-
className:
|
|
4179
|
-
...
|
|
4180
|
-
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
|
|
4181
4147
|
});
|
|
4182
4148
|
}
|
|
4183
4149
|
//#endregion
|
|
4184
4150
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4185
|
-
function
|
|
4151
|
+
function zc(e) {
|
|
4186
4152
|
return typeof e != "string";
|
|
4187
4153
|
}
|
|
4188
|
-
function
|
|
4154
|
+
function Bc({ className: t, keys: n, ref: r, ...i }) {
|
|
4189
4155
|
return /* @__PURE__ */ V("span", {
|
|
4190
|
-
ref:
|
|
4191
|
-
className:
|
|
4192
|
-
...
|
|
4193
|
-
children:
|
|
4194
|
-
className:
|
|
4195
|
-
children:
|
|
4196
|
-
},
|
|
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))
|
|
4197
4163
|
});
|
|
4198
4164
|
}
|
|
4199
4165
|
//#endregion
|
|
4200
4166
|
//#region src/components/Spinner/Spinner.tsx
|
|
4201
|
-
var
|
|
4202
|
-
function
|
|
4203
|
-
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);
|
|
4204
4170
|
return /* @__PURE__ */ V("div", {
|
|
4205
|
-
ref:
|
|
4206
|
-
...
|
|
4171
|
+
ref: o,
|
|
4172
|
+
...i === null ? { "aria-hidden": !0 } : {
|
|
4207
4173
|
role: "status",
|
|
4208
|
-
"aria-label":
|
|
4174
|
+
"aria-label": i
|
|
4209
4175
|
},
|
|
4210
|
-
className:
|
|
4176
|
+
className: e("aivex-spinner", t),
|
|
4211
4177
|
style: {
|
|
4212
|
-
"--aivex-spinner-size": `${
|
|
4213
|
-
"--aivex-spinner-thickness": `${
|
|
4214
|
-
...
|
|
4215
|
-
...
|
|
4178
|
+
"--aivex-spinner-size": `${n}px`,
|
|
4179
|
+
"--aivex-spinner-thickness": `${c}px`,
|
|
4180
|
+
...r ? { color: r } : null,
|
|
4181
|
+
...a
|
|
4216
4182
|
},
|
|
4217
|
-
...
|
|
4183
|
+
...s
|
|
4218
4184
|
});
|
|
4219
4185
|
}
|
|
4220
4186
|
//#endregion
|
|
4221
4187
|
//#region src/components/Tab/Tab.tsx
|
|
4222
|
-
function
|
|
4223
|
-
return /* @__PURE__ */ V(
|
|
4224
|
-
ref:
|
|
4225
|
-
className:
|
|
4226
|
-
...
|
|
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
|
|
4227
4193
|
});
|
|
4228
4194
|
}
|
|
4229
|
-
var
|
|
4230
|
-
function
|
|
4231
|
-
return /* @__PURE__ */ V(
|
|
4232
|
-
ref:
|
|
4233
|
-
className:
|
|
4234
|
-
...
|
|
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
|
|
4235
4201
|
});
|
|
4236
4202
|
}
|
|
4237
|
-
var
|
|
4238
|
-
function
|
|
4239
|
-
return /* @__PURE__ */ V(
|
|
4240
|
-
ref:
|
|
4241
|
-
className:
|
|
4242
|
-
...
|
|
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
|
|
4243
4209
|
});
|
|
4244
4210
|
}
|
|
4245
|
-
function
|
|
4246
|
-
return /* @__PURE__ */ V(
|
|
4247
|
-
ref:
|
|
4248
|
-
className:
|
|
4249
|
-
...
|
|
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
|
|
4250
4216
|
});
|
|
4251
4217
|
}
|
|
4252
4218
|
//#endregion
|
|
4253
4219
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4254
|
-
function
|
|
4255
|
-
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) => {
|
|
4256
4222
|
let t = e.trim();
|
|
4257
4223
|
if (!t) return;
|
|
4258
|
-
let n = [...
|
|
4259
|
-
|
|
4260
|
-
},
|
|
4261
|
-
let t =
|
|
4262
|
-
|
|
4263
|
-
},
|
|
4264
|
-
if (
|
|
4265
|
-
if (
|
|
4266
|
-
e.preventDefault(),
|
|
4267
|
-
} else e.key === "Backspace" && !
|
|
4268
|
-
},
|
|
4269
|
-
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;
|
|
4270
4236
|
e.preventDefault();
|
|
4271
|
-
let t =
|
|
4237
|
+
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
4272
4238
|
if (n.length > 0) {
|
|
4273
|
-
let e = [...
|
|
4274
|
-
|
|
4239
|
+
let e = [...T, ...n];
|
|
4240
|
+
S || w(e), c?.(e);
|
|
4275
4241
|
}
|
|
4276
|
-
|
|
4277
|
-
},
|
|
4278
|
-
let
|
|
4279
|
-
return
|
|
4280
|
-
remove:
|
|
4281
|
-
size:
|
|
4282
|
-
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,
|
|
4283
4249
|
type: a
|
|
4284
|
-
}) }, `${e}-${
|
|
4285
|
-
size:
|
|
4250
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ V(Ls, {
|
|
4251
|
+
size: n === "md" ? "md" : "sm",
|
|
4286
4252
|
type: a,
|
|
4287
|
-
disabled:
|
|
4288
|
-
onRemove:
|
|
4253
|
+
disabled: i,
|
|
4254
|
+
onRemove: r,
|
|
4289
4255
|
children: e
|
|
4290
|
-
}, `${e}-${
|
|
4291
|
-
}),
|
|
4292
|
-
ref:
|
|
4293
|
-
id:
|
|
4294
|
-
value:
|
|
4295
|
-
disabled:
|
|
4296
|
-
readOnly:
|
|
4297
|
-
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,
|
|
4298
4264
|
onChange: (e) => {
|
|
4299
|
-
|
|
4265
|
+
a || D(e.target.value);
|
|
4300
4266
|
},
|
|
4301
|
-
onKeyDown:
|
|
4302
|
-
onPaste:
|
|
4267
|
+
onKeyDown: F,
|
|
4268
|
+
onPaste: ne,
|
|
4303
4269
|
onCompositionStart: (e) => {
|
|
4304
|
-
|
|
4270
|
+
O.current = !0, _?.(e);
|
|
4305
4271
|
},
|
|
4306
4272
|
onCompositionEnd: (e) => {
|
|
4307
|
-
|
|
4273
|
+
O.current = !1, a || D(e.currentTarget.value), g?.(e);
|
|
4308
4274
|
},
|
|
4309
4275
|
onFocus: (e) => {
|
|
4310
|
-
|
|
4276
|
+
a || A(!0), v?.(e);
|
|
4311
4277
|
},
|
|
4312
4278
|
onBlur: (e) => {
|
|
4313
|
-
|
|
4279
|
+
A(!1), h?.(e), !a && !O.current && E && N(E);
|
|
4314
4280
|
},
|
|
4315
|
-
className:
|
|
4316
|
-
...
|
|
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
|
|
4317
4283
|
});
|
|
4318
|
-
return /* @__PURE__ */ H(
|
|
4319
|
-
error:
|
|
4320
|
-
disabled:
|
|
4321
|
-
focused:
|
|
4322
|
-
size:
|
|
4284
|
+
return /* @__PURE__ */ H(Vs, {
|
|
4285
|
+
error: te,
|
|
4286
|
+
disabled: i,
|
|
4287
|
+
focused: j,
|
|
4288
|
+
size: n,
|
|
4323
4289
|
layout: "wrap",
|
|
4324
|
-
className:
|
|
4325
|
-
children: [
|
|
4290
|
+
className: e(t, a && "aivex:cursor-default"),
|
|
4291
|
+
children: [re, ie]
|
|
4326
4292
|
});
|
|
4327
4293
|
}
|
|
4328
4294
|
//#endregion
|
|
4329
4295
|
//#region src/components/Textarea/Textarea.tsx
|
|
4330
|
-
function
|
|
4331
|
-
let [
|
|
4332
|
-
|
|
4333
|
-
},
|
|
4334
|
-
|
|
4335
|
-
let
|
|
4336
|
-
ref:
|
|
4337
|
-
id:
|
|
4338
|
-
disabled:
|
|
4339
|
-
style:
|
|
4340
|
-
value:
|
|
4341
|
-
defaultValue:
|
|
4342
|
-
className:
|
|
4343
|
-
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,
|
|
4344
4310
|
onFocus: (e) => {
|
|
4345
|
-
|
|
4311
|
+
y(!0), d?.(e);
|
|
4346
4312
|
},
|
|
4347
4313
|
onBlur: (e) => {
|
|
4348
|
-
|
|
4314
|
+
y(!1), f?.(e);
|
|
4349
4315
|
},
|
|
4350
|
-
...
|
|
4316
|
+
..._
|
|
4351
4317
|
});
|
|
4352
|
-
return /* @__PURE__ */ V(
|
|
4353
|
-
error:
|
|
4354
|
-
disabled:
|
|
4355
|
-
focused:
|
|
4356
|
-
size:
|
|
4318
|
+
return /* @__PURE__ */ V(Vs, {
|
|
4319
|
+
error: E,
|
|
4320
|
+
disabled: r,
|
|
4321
|
+
focused: v,
|
|
4322
|
+
size: i,
|
|
4357
4323
|
layout: "block",
|
|
4358
|
-
startContent:
|
|
4359
|
-
endContent:
|
|
4360
|
-
children:
|
|
4324
|
+
startContent: s,
|
|
4325
|
+
endContent: c,
|
|
4326
|
+
children: b ? /* @__PURE__ */ H("div", {
|
|
4361
4327
|
className: "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs",
|
|
4362
|
-
children: [
|
|
4328
|
+
children: [k, /* @__PURE__ */ H("div", {
|
|
4363
4329
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-2xs aivex:text-body-sm-regular aivex:whitespace-nowrap",
|
|
4364
4330
|
children: [/* @__PURE__ */ V("span", {
|
|
4365
|
-
className:
|
|
4366
|
-
children:
|
|
4331
|
+
className: E ? "aivex:text-text-danger" : "aivex:text-text-tertiary",
|
|
4332
|
+
children: w
|
|
4367
4333
|
}), /* @__PURE__ */ V("span", {
|
|
4368
4334
|
className: "aivex:text-text-tertiary",
|
|
4369
|
-
children: `/ ${
|
|
4335
|
+
children: `/ ${p}`
|
|
4370
4336
|
})]
|
|
4371
4337
|
})]
|
|
4372
|
-
}) :
|
|
4338
|
+
}) : k
|
|
4373
4339
|
});
|
|
4374
4340
|
}
|
|
4375
4341
|
//#endregion
|
|
4376
4342
|
//#region src/components/Textbox/Textbox.tsx
|
|
4377
|
-
function
|
|
4378
|
-
let [
|
|
4379
|
-
|
|
4380
|
-
},
|
|
4381
|
-
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",
|
|
4382
4348
|
onClick: () => {
|
|
4383
|
-
|
|
4349
|
+
S || x(""), p?.({ target: { value: "" } }), y.current?.focus();
|
|
4384
4350
|
},
|
|
4385
4351
|
onMouseDown: (e) => e.preventDefault(),
|
|
4386
4352
|
tabIndex: -1,
|
|
4387
4353
|
className: "aivex:shrink-0",
|
|
4388
4354
|
"aria-label": "입력값 삭제",
|
|
4389
|
-
children: /* @__PURE__ */ V(
|
|
4390
|
-
})] }),
|
|
4391
|
-
return /* @__PURE__ */ V(
|
|
4392
|
-
error:
|
|
4393
|
-
disabled:
|
|
4394
|
-
focused:
|
|
4395
|
-
filled:
|
|
4396
|
-
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,
|
|
4397
4363
|
layout: "inline",
|
|
4398
|
-
startContent:
|
|
4399
|
-
endContent:
|
|
4364
|
+
startContent: a,
|
|
4365
|
+
endContent: O ? D : void 0,
|
|
4400
4366
|
children: /* @__PURE__ */ V("input", {
|
|
4401
|
-
ref:
|
|
4402
|
-
id:
|
|
4403
|
-
disabled:
|
|
4404
|
-
value:
|
|
4405
|
-
defaultValue:
|
|
4406
|
-
onChange:
|
|
4407
|
-
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),
|
|
4408
4374
|
onFocus: (e) => {
|
|
4409
|
-
|
|
4375
|
+
v(!0), m?.(e);
|
|
4410
4376
|
},
|
|
4411
4377
|
onBlur: (e) => {
|
|
4412
|
-
|
|
4378
|
+
v(!1), h?.(e);
|
|
4413
4379
|
},
|
|
4414
|
-
...
|
|
4380
|
+
...g
|
|
4415
4381
|
})
|
|
4416
4382
|
});
|
|
4417
4383
|
}
|
|
4418
4384
|
//#endregion
|
|
4419
4385
|
//#region src/components/Toast/Toast.tsx
|
|
4420
|
-
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", {
|
|
4421
4387
|
variants: { type: {
|
|
4422
4388
|
default: "",
|
|
4423
4389
|
success: "",
|
|
@@ -4425,69 +4391,69 @@ var ol = B("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4425
4391
|
} },
|
|
4426
4392
|
defaultVariants: { type: "default" }
|
|
4427
4393
|
});
|
|
4428
|
-
function
|
|
4429
|
-
if (!
|
|
4430
|
-
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 ?? {};
|
|
4431
4397
|
return /* @__PURE__ */ H("div", {
|
|
4432
|
-
ref:
|
|
4398
|
+
ref: l,
|
|
4433
4399
|
role: "status",
|
|
4434
4400
|
"aria-live": "polite",
|
|
4435
|
-
className:
|
|
4436
|
-
...
|
|
4401
|
+
className: e(Qc({ type: n }), t),
|
|
4402
|
+
...u,
|
|
4437
4403
|
children: [
|
|
4438
4404
|
/* @__PURE__ */ V("p", {
|
|
4439
4405
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4440
|
-
children:
|
|
4406
|
+
children: i
|
|
4441
4407
|
}),
|
|
4442
|
-
|
|
4408
|
+
a && /* @__PURE__ */ V(R, {
|
|
4443
4409
|
variant: "ghost",
|
|
4444
4410
|
color: "primary",
|
|
4445
4411
|
size: "md",
|
|
4446
4412
|
className: "aivex:shrink-0",
|
|
4447
|
-
...
|
|
4448
|
-
children:
|
|
4413
|
+
...f,
|
|
4414
|
+
children: d
|
|
4449
4415
|
}),
|
|
4450
|
-
|
|
4451
|
-
"aria-label":
|
|
4416
|
+
s && /* @__PURE__ */ V(o, {
|
|
4417
|
+
"aria-label": c,
|
|
4452
4418
|
color: "white",
|
|
4453
4419
|
size: "sm",
|
|
4454
4420
|
className: "aivex:shrink-0",
|
|
4455
|
-
onClick:
|
|
4456
|
-
children: /* @__PURE__ */ V(
|
|
4421
|
+
onClick: s,
|
|
4422
|
+
children: /* @__PURE__ */ V(z, { size: 20 })
|
|
4457
4423
|
})
|
|
4458
4424
|
]
|
|
4459
4425
|
});
|
|
4460
4426
|
}
|
|
4461
|
-
function
|
|
4462
|
-
let
|
|
4463
|
-
return /* @__PURE__ */ V(
|
|
4464
|
-
position:
|
|
4465
|
-
duration:
|
|
4466
|
-
visibleToasts:
|
|
4467
|
-
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,
|
|
4468
4434
|
style: {
|
|
4469
4435
|
"--width": "720px",
|
|
4470
|
-
...
|
|
4436
|
+
...a
|
|
4471
4437
|
},
|
|
4472
4438
|
toastOptions: {
|
|
4473
|
-
...
|
|
4439
|
+
...o,
|
|
4474
4440
|
unstyled: !0,
|
|
4475
|
-
className:
|
|
4441
|
+
className: e(Qc({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4476
4442
|
classNames: {
|
|
4477
4443
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4478
4444
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
4479
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",
|
|
4480
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",
|
|
4481
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",
|
|
4482
|
-
...
|
|
4448
|
+
...o?.classNames
|
|
4483
4449
|
}
|
|
4484
4450
|
},
|
|
4485
|
-
...
|
|
4451
|
+
...s
|
|
4486
4452
|
});
|
|
4487
4453
|
}
|
|
4488
4454
|
//#endregion
|
|
4489
4455
|
//#region src/components/Typography/Typography.tsx
|
|
4490
|
-
var
|
|
4456
|
+
var tl = B("", {
|
|
4491
4457
|
variants: { variant: {
|
|
4492
4458
|
"display-lg": "aivex:text-display-lg",
|
|
4493
4459
|
"display-md": "aivex:text-display-md",
|
|
@@ -4509,7 +4475,7 @@ var ll = B("", {
|
|
|
4509
4475
|
"caption-md": "aivex:text-caption-md"
|
|
4510
4476
|
} },
|
|
4511
4477
|
defaultVariants: { variant: "body-md-regular" }
|
|
4512
|
-
}),
|
|
4478
|
+
}), nl = {
|
|
4513
4479
|
"display-lg": "h1",
|
|
4514
4480
|
"display-md": "h1",
|
|
4515
4481
|
"heading-xl": "h1",
|
|
@@ -4529,106 +4495,106 @@ var ll = B("", {
|
|
|
4529
4495
|
"label-sm": "span",
|
|
4530
4496
|
"caption-md": "span"
|
|
4531
4497
|
};
|
|
4532
|
-
function
|
|
4533
|
-
return /* @__PURE__ */ V(
|
|
4534
|
-
ref:
|
|
4535
|
-
className:
|
|
4536
|
-
...
|
|
4537
|
-
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
|
|
4538
4504
|
});
|
|
4539
4505
|
}
|
|
4540
4506
|
//#endregion
|
|
4541
4507
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4542
|
-
function
|
|
4508
|
+
function il({ className: t, formats: n = [
|
|
4543
4509
|
"jpg",
|
|
4544
4510
|
"bmp",
|
|
4545
4511
|
"png",
|
|
4546
4512
|
"json"
|
|
4547
|
-
], maxSize:
|
|
4548
|
-
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);
|
|
4549
4515
|
return /* @__PURE__ */ H("div", {
|
|
4550
|
-
ref:
|
|
4551
|
-
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),
|
|
4552
4518
|
onDragEnter: (e) => {
|
|
4553
|
-
e.preventDefault(),
|
|
4519
|
+
e.preventDefault(), y.current++, g(!0);
|
|
4554
4520
|
},
|
|
4555
4521
|
onDragLeave: (e) => {
|
|
4556
|
-
e.preventDefault(),
|
|
4522
|
+
e.preventDefault(), y.current--, y.current === 0 && g(!1);
|
|
4557
4523
|
},
|
|
4558
4524
|
onDragOver: (e) => {
|
|
4559
4525
|
e.preventDefault();
|
|
4560
4526
|
},
|
|
4561
4527
|
onDrop: (e) => {
|
|
4562
|
-
e.preventDefault(),
|
|
4528
|
+
e.preventDefault(), y.current = 0, g(!1), e.dataTransfer.files.length > 0 && d?.(e.dataTransfer.files);
|
|
4563
4529
|
},
|
|
4564
|
-
...
|
|
4530
|
+
...m,
|
|
4565
4531
|
children: [
|
|
4566
4532
|
/* @__PURE__ */ H("div", {
|
|
4567
4533
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-6",
|
|
4568
4534
|
children: [/* @__PURE__ */ H("div", {
|
|
4569
4535
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3",
|
|
4570
|
-
children: [/* @__PURE__ */ V(
|
|
4536
|
+
children: [/* @__PURE__ */ V(gt, {
|
|
4571
4537
|
size: 28,
|
|
4572
4538
|
color: "var(--aivex-icon-tertiary)"
|
|
4573
4539
|
}), /* @__PURE__ */ H("div", {
|
|
4574
4540
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-1",
|
|
4575
4541
|
children: [/* @__PURE__ */ V("p", {
|
|
4576
4542
|
className: "aivex:text-[18px] aivex:font-medium aivex:text-text-primary aivex:leading-[26px] aivex:tracking-[-0.1px]",
|
|
4577
|
-
children:
|
|
4543
|
+
children: a
|
|
4578
4544
|
}), /* @__PURE__ */ H("div", {
|
|
4579
4545
|
className: "aivex:flex aivex:items-center aivex:gap-3 aivex:px-4 aivex:text-sm aivex:font-normal aivex:text-text-brand",
|
|
4580
4546
|
children: [/* @__PURE__ */ H("span", { children: [
|
|
4581
|
-
|
|
4547
|
+
o,
|
|
4582
4548
|
" : ",
|
|
4583
|
-
|
|
4549
|
+
n.join(", ")
|
|
4584
4550
|
] }), /* @__PURE__ */ H("span", { children: [
|
|
4585
|
-
|
|
4551
|
+
s,
|
|
4586
4552
|
" : ",
|
|
4587
|
-
|
|
4553
|
+
r
|
|
4588
4554
|
] })]
|
|
4589
4555
|
})]
|
|
4590
4556
|
})]
|
|
4591
4557
|
}), /* @__PURE__ */ H("div", {
|
|
4592
4558
|
className: "aivex:flex aivex:gap-2",
|
|
4593
|
-
children: [/* @__PURE__ */ V(
|
|
4559
|
+
children: [/* @__PURE__ */ V(R, {
|
|
4594
4560
|
type: "button",
|
|
4595
4561
|
variant: "outline",
|
|
4596
4562
|
color: "secondary",
|
|
4597
4563
|
size: "md",
|
|
4598
|
-
startContent: /* @__PURE__ */ V(
|
|
4599
|
-
onClick: () =>
|
|
4600
|
-
children:
|
|
4601
|
-
}),
|
|
4564
|
+
startContent: /* @__PURE__ */ V(on, { size: 16 }),
|
|
4565
|
+
onClick: () => _.current?.click(),
|
|
4566
|
+
children: c
|
|
4567
|
+
}), u && /* @__PURE__ */ V(R, {
|
|
4602
4568
|
type: "button",
|
|
4603
4569
|
variant: "outline",
|
|
4604
4570
|
color: "secondary",
|
|
4605
4571
|
size: "md",
|
|
4606
|
-
startContent: /* @__PURE__ */ V(
|
|
4607
|
-
onClick: () =>
|
|
4608
|
-
children:
|
|
4572
|
+
startContent: /* @__PURE__ */ V(si, { size: 16 }),
|
|
4573
|
+
onClick: () => v.current?.click(),
|
|
4574
|
+
children: l
|
|
4609
4575
|
})]
|
|
4610
4576
|
})]
|
|
4611
4577
|
}),
|
|
4612
4578
|
/* @__PURE__ */ V("input", {
|
|
4613
|
-
ref:
|
|
4579
|
+
ref: _,
|
|
4614
4580
|
type: "file",
|
|
4615
4581
|
multiple: !0,
|
|
4616
|
-
accept:
|
|
4582
|
+
accept: i,
|
|
4617
4583
|
className: "aivex:hidden",
|
|
4618
|
-
onChange: (e) => e.target.files &&
|
|
4584
|
+
onChange: (e) => e.target.files && d?.(e.target.files)
|
|
4619
4585
|
}),
|
|
4620
4586
|
/* @__PURE__ */ V("input", {
|
|
4621
|
-
ref:
|
|
4587
|
+
ref: v,
|
|
4622
4588
|
type: "file",
|
|
4623
4589
|
multiple: !0,
|
|
4624
4590
|
webkitdirectory: "",
|
|
4625
4591
|
className: "aivex:hidden",
|
|
4626
|
-
onChange: (e) => e.target.files &&
|
|
4592
|
+
onChange: (e) => e.target.files && f?.(e.target.files)
|
|
4627
4593
|
})
|
|
4628
4594
|
]
|
|
4629
4595
|
});
|
|
4630
4596
|
}
|
|
4631
4597
|
//#endregion
|
|
4632
|
-
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 };
|
|
4633
4599
|
|
|
4634
4600
|
//# sourceMappingURL=index.js.map
|