@aivex/ui 1.2.0-dev.46 → 1.2.0-dev.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-CH_7RCR4.js → Button-CNdJSINB.js} +267 -239
- package/dist/Button-CNdJSINB.js.map +1 -0
- package/dist/Button-DI8Fzb0u.cjs +2 -0
- package/dist/Button-DI8Fzb0u.cjs.map +1 -0
- package/dist/{IconButton-7v0vHj6O.js → IconButton-CQyt0J6s.js} +2 -2
- package/dist/{IconButton-7v0vHj6O.js.map → IconButton-CQyt0J6s.js.map} +1 -1
- package/dist/{IconButton-DwhPDE1m.cjs → IconButton-bfbqZDue.cjs} +2 -2
- package/dist/{IconButton-DwhPDE1m.cjs.map → IconButton-bfbqZDue.cjs.map} +1 -1
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +2 -2
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +3 -5
- package/dist/components/ShapeEditor/_model/geometry.d.ts +4 -0
- package/dist/components/ShapeEditor/_model/imageLoad.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/overlays.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/polygonFill.d.ts +2 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +9 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +5 -10
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +55 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +9 -3
- package/dist/components/ShapeEditor/_renderers/transformSession.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +5 -2
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +26 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +42 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +14 -1
- package/dist/components/ShapeEditor/_state/editorActions.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +2 -3
- package/dist/components/ShapeEditor/_state/useLatestRef.d.ts +7 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +32 -0
- package/dist/components/Slider/Slider.d.ts +3 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +520 -520
- package/dist/index.js.map +1 -1
- package/dist/keyboard-BPY-Ro06.cjs +2 -0
- package/dist/keyboard-BPY-Ro06.cjs.map +1 -0
- package/dist/{keyboard-CnteNNEc.js → keyboard-DvUDhDqH.js} +50 -40
- package/dist/keyboard-DvUDhDqH.js.map +1 -0
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +1920 -2603
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils.cjs +1 -1
- package/package.json +2 -2
- package/dist/Button-CH_7RCR4.js.map +0 -1
- package/dist/Button-D6MqxX_7.cjs +0 -2
- package/dist/Button-D6MqxX_7.cjs.map +0 -1
- package/dist/components/ShapeEditor/_model/konva.d.ts +0 -4
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +0 -138
- package/dist/keyboard-CnteNNEc.js.map +0 -1
- package/dist/keyboard-GVlhOfI6.cjs +0 -2
- package/dist/keyboard-GVlhOfI6.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
import { cn as e } from "./utils.js";
|
|
4
|
-
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-
|
|
5
|
-
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as M, Ei as ee, En as N, Er as te, Et as
|
|
6
|
-
import { a as
|
|
4
|
+
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./IconButton-CQyt0J6s.js";
|
|
5
|
+
import { $ as s, $i as c, $n as l, $r as u, $t as d, A as f, Ai as p, An as m, Ar as h, At as g, B as _, Bi as v, Bn as y, Br as b, Bt as x, C as S, Ci as C, Cn as w, Cr as T, Ct as E, D, Di as O, Dn as k, Dr as A, Dt as j, E as M, Ei as ee, En as N, Er as te, Et as ne, F as P, Fi as F, Fn as re, Fr as ie, Ft as ae, G as oe, Gi as se, Gn as ce, Gr as le, Gt as ue, H as de, Hi as fe, Hn as pe, Hr as me, Ht as he, I, Ii as ge, In as _e, Ir as ve, It as ye, J as be, Ji as xe, Jn as Se, Jr as Ce, Jt as we, K as Te, Ki as Ee, Kn as De, Kr as Oe, Kt as ke, L as Ae, Li as je, Ln as Me, Lr as Ne, Lt as Pe, M as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oi as Ke, On as qe, Or as Je, Ot as Ye, P as Xe, Pi as Ze, Pn as Qe, Pr as $e, Pt as et, Q as tt, Qi as nt, Qn as rt, Qr as it, Qt as at, R as ot, Ri as st, Rn as ct, Rr as lt, Rt as ut, S as dt, Si as ft, Sn as pt, Sr as mt, St as ht, T as gt, Ti as _t, Tn as vt, Tr as yt, Tt as bt, U as xt, Ui as St, Un as Ct, Ur as wt, Ut as Tt, V as Et, Vi as Dt, Vn as Ot, Vr as kt, Vt as At, W as jt, Wi as Mt, Wn as Nt, Wr as Pt, Wt as Ft, X as It, Xi as Lt, Xn as Rt, Xr as zt, Xt as Bt, Y as Vt, Yi as Ht, Yn as Ut, Yr as Wt, Yt as Gt, Z as Kt, Zi as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _a as Qt, _i as $t, _n as en, _r as tn, _t as nn, a as rn, aa as an, ai as on, an as sn, ar as cn, at as ln, b as un, bi as dn, bn as fn, br as pn, bt as mn, c as hn, ca as gn, ci as _n, cn as vn, cr as yn, ct as bn, d as xn, da as Sn, di as Cn, dn as wn, dr as Tn, dt as En, ea as Dn, ei as On, en as kn, er as An, et as jn, f as Mn, fa as Nn, fi as Pn, fn as Fn, fr as In, ft as Ln, g as Rn, ga as zn, gi as Bn, gn as Vn, gr as Hn, gt as Un, h as Wn, ha as Gn, hi as Kn, hn as qn, hr as Jn, ht as Yn, i as Xn, ia as Zn, ii as Qn, in as $n, ir as er, it as tr, j as nr, ji as rr, jn as ir, jr as ar, jt as or, k as sr, ki as cr, kn as lr, kr as ur, kt as dr, l as fr, la as pr, li as mr, ln as hr, lr as gr, lt as _r, m as vr, ma as yr, mi as br, mn as xr, mr as Sr, mt as Cr, n as wr, na as Tr, ni as Er, nn as Dr, nr as Or, nt as kr, o as Ar, oa as jr, oi as Mr, on as Nr, or as Pr, ot as Fr, p as Ir, pa as Lr, pi as Rr, pn as zr, pr as Br, pt as Vr, q as Hr, qi as Ur, qn as Wr, qr as Gr, qt as Kr, r as qr, ra as Jr, ri as Yr, rn as Xr, rr as Zr, rt as Qr, s as $r, sa as ei, si as ti, sn as ni, sr as ri, st as ii, t as L, ta as ai, ti as oi, tn as si, tr as ci, tt as li, u as ui, ua as di, ui as fi, un as pi, ur as mi, ut as hi, v as gi, va as R, vi as _i, vn as vi, vr as yi, vt as bi, w as xi, wi as Si, wn as Ci, wr as wi, wt as Ti, x as Ei, xi as Di, xn as Oi, xr as ki, xt as z, y as Ai, yi as ji, yn as Mi, yr as Ni, yt as Pi, z as Fi, zi as Ii, zn as Li, zr as Ri, zt as zi } from "./Button-CNdJSINB.js";
|
|
6
|
+
import { a as Bi, c as Vi, i as Hi, n as Ui, o as Wi, r as Gi, s as B } from "./keyboard-DvUDhDqH.js";
|
|
7
7
|
import { cva as V } from "class-variance-authority";
|
|
8
|
-
import { Fragment as
|
|
8
|
+
import { Fragment as Ki, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
9
9
|
import { Slot as W } from "@radix-ui/react-slot";
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import * as
|
|
12
|
-
import { flexRender as
|
|
13
|
-
import { DndContext as
|
|
14
|
-
import { restrictToFirstScrollableAncestor as
|
|
15
|
-
import { SortableContext as
|
|
16
|
-
import { CSS as
|
|
17
|
-
import { createPortal as
|
|
18
|
-
import * as
|
|
19
|
-
import { useVirtualizer as
|
|
10
|
+
import { Fragment as qi, cloneElement as Ji, createContext as Yi, isValidElement as Xi, memo as Zi, useCallback as G, useContext as Qi, useEffect as K, useId as q, useMemo as $i, useRef as J, useState as Y } from "react";
|
|
11
|
+
import * as ea from "@radix-ui/react-popover";
|
|
12
|
+
import { flexRender as ta, getCoreRowModel as na, getCoreRowModel as ra, getExpandedRowModel as ia, getFacetedMinMaxValues as aa, getFacetedRowModel as oa, getFacetedUniqueValues as sa, getFilteredRowModel as ca, getGroupedRowModel as la, getPaginationRowModel as ua, getSortedRowModel as da, useReactTable as fa } from "@tanstack/react-table";
|
|
13
|
+
import { DndContext as pa, DragOverlay as ma, KeyboardSensor as ha, PointerSensor as ga, closestCenter as _a, useSensor as va, useSensors as ya } from "@dnd-kit/core";
|
|
14
|
+
import { restrictToFirstScrollableAncestor as ba, restrictToVerticalAxis as xa } from "@dnd-kit/modifiers";
|
|
15
|
+
import { SortableContext as Sa, arrayMove as Ca, sortableKeyboardCoordinates as wa, useSortable as Ta, verticalListSortingStrategy as Ea } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as Da } from "@dnd-kit/utilities";
|
|
17
|
+
import { createPortal as Oa } from "react-dom";
|
|
18
|
+
import * as ka from "@radix-ui/react-scroll-area";
|
|
19
|
+
import { useVirtualizer as Aa } from "@tanstack/react-virtual";
|
|
20
20
|
import * as X from "@radix-ui/react-alert-dialog";
|
|
21
21
|
import * as Z from "@radix-ui/react-dialog";
|
|
22
22
|
import * as Q from "@radix-ui/react-select";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import { useComposedRefs as
|
|
26
|
-
import { Toaster as
|
|
23
|
+
import * as ja from "@radix-ui/react-toggle-group";
|
|
24
|
+
import * as Ma from "@radix-ui/react-tabs";
|
|
25
|
+
import { useComposedRefs as Na } from "@radix-ui/react-compose-refs";
|
|
26
|
+
import { Toaster as Pa, toast as Fa } from "sonner";
|
|
27
27
|
//#region src/components/Badge/Badge.tsx
|
|
28
|
-
var
|
|
28
|
+
var Ia = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-[2px]", {
|
|
29
29
|
variants: {
|
|
30
30
|
shape: {
|
|
31
31
|
rect: "aivex:rounded-xs",
|
|
@@ -194,11 +194,11 @@ var Pa = V("aivex:inline-flex aivex:items-center aivex:justify-center aivex:gap-
|
|
|
194
194
|
size: "sm",
|
|
195
195
|
color: "gray"
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
198
|
-
function
|
|
197
|
+
}), La = "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center";
|
|
198
|
+
function Ra({ className: t, variant: n = "filled", rounded: r = !1, size: i, color: a, startContent: o, endContent: s, children: c, ref: l, ...u }) {
|
|
199
199
|
return /* @__PURE__ */ U("span", {
|
|
200
200
|
ref: l,
|
|
201
|
-
className: e(
|
|
201
|
+
className: e(Ia({
|
|
202
202
|
shape: r ? "pill" : "rect",
|
|
203
203
|
treatment: n,
|
|
204
204
|
size: i,
|
|
@@ -207,7 +207,7 @@ function Ia({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
207
207
|
...u,
|
|
208
208
|
children: [
|
|
209
209
|
o && /* @__PURE__ */ H("span", {
|
|
210
|
-
className:
|
|
210
|
+
className: La,
|
|
211
211
|
children: o
|
|
212
212
|
}),
|
|
213
213
|
i === "md" ? /* @__PURE__ */ H("span", {
|
|
@@ -215,13 +215,13 @@ function Ia({ className: t, variant: n = "filled", rounded: r = !1, size: i, col
|
|
|
215
215
|
children: c
|
|
216
216
|
}) : c,
|
|
217
217
|
s && /* @__PURE__ */ H("span", {
|
|
218
|
-
className:
|
|
218
|
+
className: La,
|
|
219
219
|
children: s
|
|
220
220
|
})
|
|
221
221
|
]
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var za = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
225
225
|
variants: {
|
|
226
226
|
type: {
|
|
227
227
|
essential: "aivex:bg-icon-brand",
|
|
@@ -238,10 +238,10 @@ var La = V("aivex:rounded-full aivex:inline-block aivex:shrink-0", {
|
|
|
238
238
|
size: "md"
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
function
|
|
241
|
+
function Ba({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
242
242
|
return /* @__PURE__ */ H("span", {
|
|
243
243
|
ref: i,
|
|
244
|
-
className: e(
|
|
244
|
+
className: e(za({
|
|
245
245
|
type: n,
|
|
246
246
|
size: r
|
|
247
247
|
}), t),
|
|
@@ -250,7 +250,7 @@ function Ra({ className: t, type: n, size: r, ref: i, ...a }) {
|
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/components/BreadCrumb/BreadCrumb.tsx
|
|
253
|
-
function
|
|
253
|
+
function Va({ item: e, isCurrent: t }) {
|
|
254
254
|
if (t) return /* @__PURE__ */ H("span", {
|
|
255
255
|
"aria-current": "page",
|
|
256
256
|
className: "aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-medium aivex:text-text-primary aivex:select-none",
|
|
@@ -265,15 +265,15 @@ function za({ item: e, isCurrent: t }) {
|
|
|
265
265
|
children: [/* @__PURE__ */ H(R, { variant: "default" }), e.label]
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Ha() {
|
|
269
269
|
return /* @__PURE__ */ H("span", {
|
|
270
270
|
"aria-hidden": "true",
|
|
271
271
|
className: "aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0",
|
|
272
272
|
children: "/"
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ U(
|
|
275
|
+
function Ua({ items: e }) {
|
|
276
|
+
return /* @__PURE__ */ U(Vi, { children: [/* @__PURE__ */ H(Vi.Trigger, {
|
|
277
277
|
asChild: !0,
|
|
278
278
|
children: /* @__PURE__ */ U("button", {
|
|
279
279
|
type: "button",
|
|
@@ -281,12 +281,12 @@ function Va({ items: e }) {
|
|
|
281
281
|
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors",
|
|
282
282
|
children: [/* @__PURE__ */ H(R, { variant: "default" }), "···"]
|
|
283
283
|
})
|
|
284
|
-
}), /* @__PURE__ */ H(
|
|
284
|
+
}), /* @__PURE__ */ H(Vi.Content, {
|
|
285
285
|
side: "bottom",
|
|
286
286
|
align: "start",
|
|
287
287
|
children: e.map((e, t) => {
|
|
288
288
|
let n = e.as ?? (e.href ? "a" : "button"), r = n === "button" ? { type: "button" } : {};
|
|
289
|
-
return /* @__PURE__ */ H(
|
|
289
|
+
return /* @__PURE__ */ H(Vi.Item, {
|
|
290
290
|
asChild: !0,
|
|
291
291
|
children: /* @__PURE__ */ U(n, {
|
|
292
292
|
href: e.href,
|
|
@@ -301,7 +301,7 @@ function Va({ items: e }) {
|
|
|
301
301
|
})
|
|
302
302
|
})] });
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Wa({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
305
305
|
let o = r !== void 0 && n.length > r, s = n[0], c = n[n.length - 1], l = o ? n.slice(1, -1) : [], u = n.length - 1;
|
|
306
306
|
return /* @__PURE__ */ H("nav", {
|
|
307
307
|
ref: i,
|
|
@@ -310,25 +310,25 @@ function Ha({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
310
310
|
...a,
|
|
311
311
|
children: /* @__PURE__ */ H("ol", {
|
|
312
312
|
className: "aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs",
|
|
313
|
-
children: o ? /* @__PURE__ */ U(
|
|
313
|
+
children: o ? /* @__PURE__ */ U(Ki, { children: [
|
|
314
314
|
/* @__PURE__ */ H("li", {
|
|
315
315
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
316
|
-
children: /* @__PURE__ */ H(
|
|
316
|
+
children: /* @__PURE__ */ H(Va, { item: s })
|
|
317
317
|
}),
|
|
318
318
|
/* @__PURE__ */ U("li", {
|
|
319
319
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
320
|
-
children: [/* @__PURE__ */ H(
|
|
320
|
+
children: [/* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Ua, { items: l })]
|
|
321
321
|
}),
|
|
322
322
|
/* @__PURE__ */ U("li", {
|
|
323
323
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
324
|
-
children: [/* @__PURE__ */ H(
|
|
324
|
+
children: [/* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Va, {
|
|
325
325
|
item: c,
|
|
326
326
|
isCurrent: !0
|
|
327
327
|
})]
|
|
328
328
|
})
|
|
329
329
|
] }) : n.map((e, t) => /* @__PURE__ */ U("li", {
|
|
330
330
|
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
331
|
-
children: [t > 0 && /* @__PURE__ */ H(
|
|
331
|
+
children: [t > 0 && /* @__PURE__ */ H(Ha, {}), /* @__PURE__ */ H(Va, {
|
|
332
332
|
item: e,
|
|
333
333
|
isCurrent: t === u
|
|
334
334
|
})]
|
|
@@ -338,26 +338,26 @@ function Ha({ className: t, items: n, maxItems: r, ref: i, ...a }) {
|
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/components/Calendar/date.ts
|
|
341
|
-
function
|
|
341
|
+
function Ga(e) {
|
|
342
342
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Ka(e, t) {
|
|
345
345
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function qa(e, t) {
|
|
348
|
+
return Ga(e).getTime() < Ga(t).getTime();
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function Ja(e, t) {
|
|
351
|
+
return Ga(e).getTime() > Ga(t).getTime();
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ya(e) {
|
|
354
354
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Xa(e, t) {
|
|
357
357
|
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let n =
|
|
359
|
+
function Za(e, t = 0) {
|
|
360
|
+
let n = Ya(e), r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
|
|
361
361
|
for (let e = 0; e < (n.getDay() - t + 7) % 7; e++) i.push(null);
|
|
362
362
|
for (let t = 1; t <= r; t++) i.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
363
363
|
for (; i.length < 42;) i.push(null);
|
|
@@ -367,7 +367,7 @@ function Ya(e, t = 0) {
|
|
|
367
367
|
}
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/components/Calendar/Calendar.tsx
|
|
370
|
-
var
|
|
370
|
+
var Qa = [
|
|
371
371
|
"SUNDAY",
|
|
372
372
|
"MONDAY",
|
|
373
373
|
"TUESDAY",
|
|
@@ -376,8 +376,8 @@ var Xa = [
|
|
|
376
376
|
"FRIDAY",
|
|
377
377
|
"SATURDAY"
|
|
378
378
|
];
|
|
379
|
-
function
|
|
380
|
-
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } =
|
|
379
|
+
function $a({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r, nextMonthLabel: i, month: a, selected: o, rangeStart: s, rangeEnd: c, onSelectDay: l, markedDates: u, minDate: d, maxDate: f, disabledDate: p, onPrevMonth: m, onNextMonth: h, weekdayLabels: g, formatMonthTitle: _, className: v }) {
|
|
380
|
+
let { monthFormatter: y, weekdayFormatter: b, dayFormatter: x } = $i(() => ({
|
|
381
381
|
monthFormatter: new Intl.DateTimeFormat(t, {
|
|
382
382
|
calendar: "gregory",
|
|
383
383
|
year: "numeric",
|
|
@@ -385,31 +385,31 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
385
385
|
}),
|
|
386
386
|
weekdayFormatter: new Intl.DateTimeFormat(t, { weekday: "short" }),
|
|
387
387
|
dayFormatter: new Intl.NumberFormat(t, { useGrouping: !1 })
|
|
388
|
-
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w =
|
|
388
|
+
}), [t]), S = _?.(a) ?? y.format(a), C = +(n === "MONDAY"), w = Za(a, C), T = [...Qa.slice(C), ...Qa.slice(0, C)], E = s ?? o ?? null, D = c ?? o ?? null, O = !!(E && D && !Ka(E, D)), k = (e) => d && qa(e, d) || f && Ja(e, f) ? !0 : p ? p(e) : !1, A = (e) => u?.some((t) => Ka(t, e)) ?? !1;
|
|
389
389
|
return /* @__PURE__ */ U("div", {
|
|
390
390
|
className: e("aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg", v),
|
|
391
391
|
children: [/* @__PURE__ */ U("div", {
|
|
392
392
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-md",
|
|
393
393
|
children: [
|
|
394
|
-
/* @__PURE__ */ H(
|
|
394
|
+
/* @__PURE__ */ H(eo, { children: m && /* @__PURE__ */ H(L, {
|
|
395
395
|
variant: "outline",
|
|
396
396
|
color: "secondary",
|
|
397
397
|
size: "icon-md",
|
|
398
|
-
"aria-label": r ?? y.format(
|
|
398
|
+
"aria-label": r ?? y.format(Xa(a, -1)),
|
|
399
399
|
onClick: m,
|
|
400
|
-
children: /* @__PURE__ */ H(
|
|
400
|
+
children: /* @__PURE__ */ H(ue, { size: 20 })
|
|
401
401
|
}) }),
|
|
402
402
|
/* @__PURE__ */ H("span", {
|
|
403
403
|
className: "aivex:flex-1 aivex:text-center aivex:text-heading-sm aivex:text-text-primary aivex:select-none",
|
|
404
404
|
children: S
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */ H(
|
|
406
|
+
/* @__PURE__ */ H(eo, { children: h && /* @__PURE__ */ H(L, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
color: "secondary",
|
|
409
409
|
size: "icon-md",
|
|
410
|
-
"aria-label": i ?? y.format(
|
|
410
|
+
"aria-label": i ?? y.format(Xa(a, 1)),
|
|
411
411
|
onClick: h,
|
|
412
|
-
children: /* @__PURE__ */ H(
|
|
412
|
+
children: /* @__PURE__ */ H(ke, { size: 20 })
|
|
413
413
|
}) })
|
|
414
414
|
]
|
|
415
415
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -418,13 +418,13 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
418
418
|
className: "aivex:flex",
|
|
419
419
|
children: T.map((t) => /* @__PURE__ */ H("span", {
|
|
420
420
|
className: e("aivex:flex aivex:size-10 aivex:items-center aivex:justify-center aivex:text-label-lg aivex:select-none", t === "SUNDAY" ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
421
|
-
children: g?.[t] ?? b.format(new Date(2023, 0, 1 +
|
|
421
|
+
children: g?.[t] ?? b.format(new Date(2023, 0, 1 + Qa.indexOf(t)))
|
|
422
422
|
}, t))
|
|
423
423
|
}), w.map((t, n) => /* @__PURE__ */ H("div", {
|
|
424
424
|
className: "aivex:flex",
|
|
425
425
|
children: t.map((t, n) => {
|
|
426
426
|
if (!t) return /* @__PURE__ */ H("span", { className: "aivex:size-10" }, n);
|
|
427
|
-
let r = k(t), i = !!(E &&
|
|
427
|
+
let r = k(t), i = !!(E && Ka(t, E)), a = !!(D && Ka(t, D)), o = i || a, s = O && E && D && !qa(t, E) && !Ja(t, D), c = t.getDay() === 0;
|
|
428
428
|
return /* @__PURE__ */ U("button", {
|
|
429
429
|
type: "button",
|
|
430
430
|
disabled: r,
|
|
@@ -450,7 +450,7 @@ function Za({ locale: t = "ko-KR", weekStartsOn: n = "SUNDAY", prevMonthLabel: r
|
|
|
450
450
|
})]
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function eo({ children: e }) {
|
|
454
454
|
return /* @__PURE__ */ H("span", {
|
|
455
455
|
className: "aivex:flex aivex:size-8 aivex:shrink-0",
|
|
456
456
|
children: e
|
|
@@ -458,7 +458,7 @@ function Qa({ children: e }) {
|
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/components/Card/Card.tsx
|
|
461
|
-
function
|
|
461
|
+
function to({ className: t, interactive: n, selected: r, disabled: i = !1, asChild: a = !1, children: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, "aria-disabled": f, ...p }) {
|
|
462
462
|
return /* @__PURE__ */ H(a ? W : "div", {
|
|
463
463
|
ref: s,
|
|
464
464
|
className: e("aivex:bg-bg-primary aivex:rounded-xl aivex:p-xl aivex:border aivex:border-border-subtle aivex:transition-colors", t, n && !i && "aivex:cursor-pointer aivex:hover:border-border-strong aivex:active:border-border-strong aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", n && !i && !r && "aivex:active:bg-bg-tertiary", r && "aivex:border-border-brand aivex:bg-bg-brand-subtle aivex:hover:border-border-brand", i && "aivex:cursor-not-allowed aivex:opacity-disable"),
|
|
@@ -474,29 +474,29 @@ function $a({ className: t, interactive: n, selected: r, disabled: i = !1, asChi
|
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
477
|
-
var
|
|
477
|
+
var no = V("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer", {
|
|
478
478
|
variants: { size: {
|
|
479
479
|
sm: "aivex:w-4 aivex:h-4",
|
|
480
480
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
481
481
|
} },
|
|
482
482
|
defaultVariants: { size: "md" }
|
|
483
|
-
}),
|
|
483
|
+
}), ro = {
|
|
484
484
|
sm: "aivex:w-5 aivex:h-5",
|
|
485
485
|
md: "aivex:w-6 aivex:h-6"
|
|
486
|
-
},
|
|
486
|
+
}, io = {
|
|
487
487
|
sm: "aivex:h-5",
|
|
488
488
|
md: "aivex:h-6"
|
|
489
489
|
};
|
|
490
|
-
function
|
|
491
|
-
let f =
|
|
490
|
+
function ao({ className: t, label: n, size: r = "md", indeterminate: i = !1, disabled: a, checked: o, defaultChecked: s, onChange: c, id: l, ref: u, ...d }) {
|
|
491
|
+
let f = J(null), p = o !== void 0, [m, h] = Y(!!s), g = typeof u == "object" && u ? u : f;
|
|
492
492
|
K(() => {
|
|
493
493
|
g && "current" in g && g.current && (g.current.indeterminate = i);
|
|
494
494
|
}, [i, g]);
|
|
495
|
-
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S =
|
|
495
|
+
let _ = p ? !!o : m, v = _ || i, y = r ?? "md", b = d["aria-invalid"], x = b === !0 || b === "true", S = q(), C = l ?? S;
|
|
496
496
|
return /* @__PURE__ */ U("span", {
|
|
497
497
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", a && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
498
498
|
children: [/* @__PURE__ */ U("span", {
|
|
499
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
499
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", ro[y]),
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
502
502
|
/* @__PURE__ */ H("input", {
|
|
@@ -508,25 +508,25 @@ function ro({ className: t, label: n, size: r = "md", indeterminate: i = !1, dis
|
|
|
508
508
|
onChange: (e) => {
|
|
509
509
|
p || h(e.target.checked), c?.(e);
|
|
510
510
|
},
|
|
511
|
-
className: e(
|
|
511
|
+
className: e(no({ size: y }), x && "aivex:border-border-danger", v && "aivex:border-transparent aivex:bg-bg-brand", t),
|
|
512
512
|
...d
|
|
513
513
|
}),
|
|
514
514
|
v && /* @__PURE__ */ H("span", {
|
|
515
515
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
516
|
-
children: H(i ?
|
|
516
|
+
children: H(i ? Vr : Ln, { size: y })
|
|
517
517
|
})
|
|
518
518
|
]
|
|
519
519
|
}), n && /* @__PURE__ */ H("label", {
|
|
520
520
|
htmlFor: C,
|
|
521
|
-
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed",
|
|
521
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", a && "aivex:cursor-not-allowed", io[y]),
|
|
522
522
|
children: n
|
|
523
523
|
})]
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/Checkbox/ChipsCheckbox.tsx
|
|
528
|
-
function
|
|
529
|
-
let u = r !== void 0, [d, f] =
|
|
528
|
+
function oo({ className: t, disabled: n, checked: r, defaultChecked: i, onChange: a, onClick: o, id: s, ref: c, ...l }) {
|
|
529
|
+
let u = r !== void 0, [d, f] = Y(!!i), p = u ? !!r : d;
|
|
530
530
|
return /* @__PURE__ */ U("label", {
|
|
531
531
|
onClick: o,
|
|
532
532
|
className: e("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors", p ? "aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle" : "aivex:bg-bg-tertiary aivex:border-border-default", n && "aivex:opacity-disable aivex:pointer-events-none", t),
|
|
@@ -549,7 +549,7 @@ function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
549
549
|
className: "aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0",
|
|
550
550
|
children: [/* @__PURE__ */ H("span", { className: e("aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors", p ? "aivex:bg-bg-brand aivex:border-transparent" : "aivex:bg-bg-primary aivex:border-border-default") }), p && /* @__PURE__ */ H("span", {
|
|
551
551
|
className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
|
|
552
|
-
children: /* @__PURE__ */ H(
|
|
552
|
+
children: /* @__PURE__ */ H(Ln, { size: "sm" })
|
|
553
553
|
})]
|
|
554
554
|
})
|
|
555
555
|
]
|
|
@@ -557,7 +557,7 @@ function io({ className: t, disabled: n, checked: r, defaultChecked: i, onChange
|
|
|
557
557
|
}
|
|
558
558
|
//#endregion
|
|
559
559
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
560
|
-
var
|
|
560
|
+
var so = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:border aivex:transition-colors aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:pointer-events-none aivex:disabled:opacity-disable", {
|
|
561
561
|
variants: {
|
|
562
562
|
shape: {
|
|
563
563
|
rectangle: "",
|
|
@@ -627,12 +627,12 @@ var ao = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex a
|
|
|
627
627
|
active: !1
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
function
|
|
631
|
-
let m = a !== void 0, [h, g] =
|
|
630
|
+
function co({ className: t, shape: n, size: r, variant: i, active: a, defaultActive: o, startContent: s, endContent: c, children: l, ref: u, onClick: d, type: f = "button", ...p }) {
|
|
631
|
+
let m = a !== void 0, [h, g] = Y(!!o);
|
|
632
632
|
return /* @__PURE__ */ U("button", {
|
|
633
633
|
ref: u,
|
|
634
634
|
type: f,
|
|
635
|
-
className: e(
|
|
635
|
+
className: e(so({
|
|
636
636
|
shape: n,
|
|
637
637
|
size: r,
|
|
638
638
|
variant: i,
|
|
@@ -642,7 +642,7 @@ function oo({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
642
642
|
m || g((e) => !e), d?.(e);
|
|
643
643
|
},
|
|
644
644
|
...p,
|
|
645
|
-
children: [/* @__PURE__ */ H(R, {}), s || c ? /* @__PURE__ */ U(
|
|
645
|
+
children: [/* @__PURE__ */ H(R, {}), s || c ? /* @__PURE__ */ U(Ki, { children: [
|
|
646
646
|
s && /* @__PURE__ */ H("span", {
|
|
647
647
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
648
648
|
children: s
|
|
@@ -660,10 +660,10 @@ function oo({ className: t, shape: n, size: r, variant: i, active: a, defaultAct
|
|
|
660
660
|
}
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region src/components/Chips/index.ts
|
|
663
|
-
var
|
|
664
|
-
function
|
|
663
|
+
var lo = co, uo = so, fo = e("aivex:flex aivex:w-[280px] aivex:max-h-[448px] aivex:flex-col aivex:gap-lg aivex:p-xl", "aivex:rounded-xl aivex:bg-static-gray aivex:text-text-on-color aivex:shadow-md", "aivex:z-50 aivex:outline-none", "aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out", "aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0", "aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95");
|
|
664
|
+
function po({ button: t, variant: n, className: r }) {
|
|
665
665
|
let { children: i, ...a } = t;
|
|
666
|
-
return /* @__PURE__ */ H(
|
|
666
|
+
return /* @__PURE__ */ H(L, {
|
|
667
667
|
variant: n,
|
|
668
668
|
color: "primary",
|
|
669
669
|
size: "md",
|
|
@@ -672,25 +672,25 @@ function uo({ button: t, variant: n, className: r }) {
|
|
|
672
672
|
children: i
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
return /* @__PURE__ */ H(
|
|
675
|
+
function mo(e) {
|
|
676
|
+
return /* @__PURE__ */ H(ea.Root, { ...e });
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
return /* @__PURE__ */ H(
|
|
678
|
+
function ho({ ref: e, ...t }) {
|
|
679
|
+
return /* @__PURE__ */ H(ea.Trigger, {
|
|
680
680
|
ref: e,
|
|
681
681
|
...t
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return /* @__PURE__ */ H(
|
|
684
|
+
function go(e) {
|
|
685
|
+
return /* @__PURE__ */ H(ea.Anchor, { ...e });
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function _o({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryButton: a, secondaryButton: s, primaryButton: c, onClose: l, closeAriaLabel: u = "닫기", ref: d, ...f }) {
|
|
688
688
|
let p = !!(a || s || c);
|
|
689
|
-
return /* @__PURE__ */ H(
|
|
689
|
+
return /* @__PURE__ */ H(ea.Portal, { children: /* @__PURE__ */ U(ea.Content, {
|
|
690
690
|
ref: d,
|
|
691
691
|
sideOffset: n,
|
|
692
692
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
693
|
-
className: e(
|
|
693
|
+
className: e(fo, t),
|
|
694
694
|
...f,
|
|
695
695
|
children: [
|
|
696
696
|
(r != null || l != null) && /* @__PURE__ */ U("div", {
|
|
@@ -703,7 +703,7 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
703
703
|
color: "white",
|
|
704
704
|
size: "xs",
|
|
705
705
|
onClick: l,
|
|
706
|
-
children: /* @__PURE__ */ H(
|
|
706
|
+
children: /* @__PURE__ */ H(z, { size: 20 })
|
|
707
707
|
})]
|
|
708
708
|
}),
|
|
709
709
|
/* @__PURE__ */ H("div", {
|
|
@@ -714,25 +714,25 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
714
714
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md",
|
|
715
715
|
children: [/* @__PURE__ */ H("div", {
|
|
716
716
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start",
|
|
717
|
-
children: a && /* @__PURE__ */ H(
|
|
717
|
+
children: a && /* @__PURE__ */ H(po, {
|
|
718
718
|
button: a,
|
|
719
719
|
variant: "ghost",
|
|
720
720
|
className: "aivex:min-w-9"
|
|
721
721
|
})
|
|
722
722
|
}), /* @__PURE__ */ U("div", {
|
|
723
723
|
className: "aivex:flex aivex:items-start aivex:gap-md",
|
|
724
|
-
children: [s && /* @__PURE__ */ H(
|
|
724
|
+
children: [s && /* @__PURE__ */ H(po, {
|
|
725
725
|
button: s,
|
|
726
726
|
variant: "ghost",
|
|
727
727
|
className: "aivex:min-w-[60px]"
|
|
728
|
-
}), c && /* @__PURE__ */ H(
|
|
728
|
+
}), c && /* @__PURE__ */ H(po, {
|
|
729
729
|
button: c,
|
|
730
730
|
variant: "solid",
|
|
731
731
|
className: "aivex:min-w-[60px]"
|
|
732
732
|
})]
|
|
733
733
|
})]
|
|
734
734
|
}),
|
|
735
|
-
/* @__PURE__ */ H(
|
|
735
|
+
/* @__PURE__ */ H(ea.Arrow, {
|
|
736
736
|
width: 20,
|
|
737
737
|
height: 10,
|
|
738
738
|
className: "aivex:fill-static-gray"
|
|
@@ -740,14 +740,14 @@ function ho({ className: t, sideOffset: n = 8, title: r, children: i, tertiaryBu
|
|
|
740
740
|
]
|
|
741
741
|
}) });
|
|
742
742
|
}
|
|
743
|
-
var
|
|
744
|
-
Trigger:
|
|
745
|
-
Anchor:
|
|
746
|
-
Content:
|
|
743
|
+
var vo = Object.assign(mo, {
|
|
744
|
+
Trigger: ho,
|
|
745
|
+
Anchor: go,
|
|
746
|
+
Content: _o
|
|
747
747
|
});
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
750
|
-
function
|
|
750
|
+
function yo({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
751
751
|
return /* @__PURE__ */ H(n ? W : "div", {
|
|
752
752
|
ref: r,
|
|
753
753
|
"aria-hidden": "true",
|
|
@@ -757,33 +757,33 @@ function _o({ className: t, asChild: n = !1, ref: r, ...i }) {
|
|
|
757
757
|
}
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region src/components/ScrollArea/ScrollArea.tsx
|
|
760
|
-
function
|
|
760
|
+
function bo({ className: t, children: n, edgeFade: r, onViewportScroll: i, ref: a, scrollbars: o = "vertical", type: s = "hover", verticalScrollbarClassName: c, viewportClassName: l, viewportRef: u, ...d }) {
|
|
761
761
|
let f = o === "vertical" || o === "both", p = o === "horizontal" || o === "both";
|
|
762
|
-
return /* @__PURE__ */ U(
|
|
762
|
+
return /* @__PURE__ */ U(ka.Root, {
|
|
763
763
|
ref: a,
|
|
764
764
|
className: e("aivex:relative aivex:overflow-hidden aivex:scroll-sync-root", t),
|
|
765
765
|
type: s,
|
|
766
766
|
...d,
|
|
767
767
|
children: [
|
|
768
|
-
/* @__PURE__ */ H(
|
|
768
|
+
/* @__PURE__ */ H(ka.Viewport, {
|
|
769
769
|
ref: u,
|
|
770
770
|
className: e("aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport", r && "aivex:scroll-fade-y", l),
|
|
771
771
|
onScroll: i,
|
|
772
772
|
children: n
|
|
773
773
|
}),
|
|
774
|
-
f ? /* @__PURE__ */ H(
|
|
775
|
-
p ? /* @__PURE__ */ H(
|
|
776
|
-
/* @__PURE__ */ H(
|
|
774
|
+
f ? /* @__PURE__ */ H(xo, { className: c }) : null,
|
|
775
|
+
p ? /* @__PURE__ */ H(xo, { orientation: "horizontal" }) : null,
|
|
776
|
+
/* @__PURE__ */ H(ka.Corner, {})
|
|
777
777
|
]
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return /* @__PURE__ */ H(
|
|
780
|
+
function xo({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
781
|
+
return /* @__PURE__ */ H(ka.Scrollbar, {
|
|
782
782
|
ref: r,
|
|
783
783
|
orientation: n,
|
|
784
784
|
className: e("aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar", n === "vertical" && "aivex:h-full aivex:w-2.5", n === "horizontal" && "aivex:h-2.5 aivex:flex-col", t),
|
|
785
785
|
...i,
|
|
786
|
-
children: /* @__PURE__ */ U(
|
|
786
|
+
children: /* @__PURE__ */ U(ka.Thumb, {
|
|
787
787
|
className: e("aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary", n === "vertical" ? "aivex:scroll-sync-thumb-y" : "aivex:scroll-sync-thumb-x"),
|
|
788
788
|
children: [/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50" }), /* @__PURE__ */ H(R, { variant: "strong" })]
|
|
789
789
|
})
|
|
@@ -791,72 +791,72 @@ function yo({ className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
|
791
791
|
}
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/components/DataGrid/DataGridColumnSettings.tsx
|
|
794
|
-
var
|
|
795
|
-
function
|
|
794
|
+
var So = 32, Co = 4, wo = 200;
|
|
795
|
+
function To(e) {
|
|
796
796
|
let { header: t, meta: n } = e.columnDef;
|
|
797
797
|
return n?.settingsLabel ? n.settingsLabel : typeof t == "string" ? t : e.id;
|
|
798
798
|
}
|
|
799
|
-
var
|
|
800
|
-
function
|
|
801
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
799
|
+
var Eo = "aivex:group/item aivex:relative aivex:flex aivex:w-full aivex:min-w-[160px] aivex:shrink-0 aivex:select-none aivex:items-center aivex:gap-md aivex:overflow-hidden aivex:rounded-md aivex:p-md", Do = "aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg aivex:text-text-primary", Oo = "aivex:group/handle aivex:relative aivex:flex aivex:size-2xl aivex:shrink-0 aivex:touch-none aivex:items-center aivex:justify-center aivex:text-icon-secondary aivex:outline-none", ko = "aivex:absolute aivex:-inset-xs aivex:rounded-sm aivex:bg-bg-inverse-strong aivex:transition-opacity";
|
|
800
|
+
function Ao({ column: t }) {
|
|
801
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Ta({ id: t.id });
|
|
802
802
|
return /* @__PURE__ */ U("div", {
|
|
803
803
|
ref: i,
|
|
804
804
|
style: {
|
|
805
|
-
transform:
|
|
805
|
+
transform: Da.Transform.toString(a),
|
|
806
806
|
transition: o
|
|
807
807
|
},
|
|
808
|
-
className: e(
|
|
808
|
+
className: e(Eo, s && "aivex:opacity-0"),
|
|
809
809
|
children: [
|
|
810
810
|
!s && /* @__PURE__ */ H("span", { className: "aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:transition-opacity aivex:group-hover/item:opacity-4 aivex:group-active/item:opacity-8" }),
|
|
811
|
-
/* @__PURE__ */ H(
|
|
811
|
+
/* @__PURE__ */ H(ao, {
|
|
812
812
|
size: "sm",
|
|
813
813
|
checked: t.getIsVisible(),
|
|
814
814
|
disabled: !t.getCanHide(),
|
|
815
815
|
onChange: t.getToggleVisibilityHandler()
|
|
816
816
|
}),
|
|
817
817
|
/* @__PURE__ */ H("span", {
|
|
818
|
-
className:
|
|
819
|
-
children:
|
|
818
|
+
className: Do,
|
|
819
|
+
children: To(t)
|
|
820
820
|
}),
|
|
821
821
|
/* @__PURE__ */ U("span", {
|
|
822
822
|
...n,
|
|
823
823
|
...r,
|
|
824
|
-
className: e(
|
|
825
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
824
|
+
className: e(Oo, "aivex:cursor-grab aivex:active:cursor-grabbing"),
|
|
825
|
+
children: [/* @__PURE__ */ H("span", { className: e(ko, "aivex:opacity-0 aivex:group-hover/handle:opacity-4 aivex:group-active/handle:opacity-8") }), /* @__PURE__ */ H(Xt, { size: 20 })]
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function jo({ column: t }) {
|
|
831
831
|
return /* @__PURE__ */ U("div", {
|
|
832
|
-
className: e(
|
|
832
|
+
className: e(Eo, "aivex:cursor-grabbing aivex:bg-bg-secondary aivex:shadow-xl"),
|
|
833
833
|
children: [
|
|
834
|
-
/* @__PURE__ */ H(
|
|
834
|
+
/* @__PURE__ */ H(ao, {
|
|
835
835
|
size: "sm",
|
|
836
836
|
checked: t.getIsVisible(),
|
|
837
837
|
disabled: !t.getCanHide(),
|
|
838
838
|
readOnly: !0
|
|
839
839
|
}),
|
|
840
840
|
/* @__PURE__ */ H("span", {
|
|
841
|
-
className:
|
|
842
|
-
children:
|
|
841
|
+
className: Do,
|
|
842
|
+
children: To(t)
|
|
843
843
|
}),
|
|
844
844
|
/* @__PURE__ */ U("span", {
|
|
845
|
-
className:
|
|
846
|
-
children: [/* @__PURE__ */ H("span", { className: e(
|
|
845
|
+
className: Oo,
|
|
846
|
+
children: [/* @__PURE__ */ H("span", { className: e(ko, "aivex:opacity-8") }), /* @__PURE__ */ H(Xt, { size: 20 })]
|
|
847
847
|
})
|
|
848
848
|
]
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
let [o, s] =
|
|
851
|
+
function Mo({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화", excludeColumnIds: i, triggerLabel: a = "컬럼 설정" }) {
|
|
852
|
+
let [o, s] = Y(!1), [c, l] = Y(!1), [u, d] = Y(!1), f = u || c || o, p = J(null), [m, h] = Y(null), g = J(void 0), _ = G(() => window.clearTimeout(g.current), []);
|
|
853
853
|
K(() => {
|
|
854
854
|
let e = p.current?.parentElement;
|
|
855
855
|
if (!e) return;
|
|
856
856
|
let t = (e) => e instanceof Element && !!e.closest("[data-datagrid-header]"), n = (e) => {
|
|
857
857
|
t(e.target) && (_(), d(!0));
|
|
858
858
|
}, r = (e) => {
|
|
859
|
-
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1),
|
|
859
|
+
!t(e.target) || t(e.relatedTarget) || (_(), g.current = window.setTimeout(() => d(!1), wo));
|
|
860
860
|
};
|
|
861
861
|
return e.addEventListener("mouseover", n), e.addEventListener("mouseout", r), () => {
|
|
862
862
|
_(), e.removeEventListener("mouseover", n), e.removeEventListener("mouseout", r);
|
|
@@ -867,15 +867,15 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
867
867
|
if (!e) return;
|
|
868
868
|
let t = e.getBoundingClientRect(), n = e.querySelector("[data-datagrid-header]")?.getBoundingClientRect();
|
|
869
869
|
h({
|
|
870
|
-
top: (n?.top ?? t.top) + ((n?.height ?? 48) -
|
|
871
|
-
left: t.left -
|
|
870
|
+
top: (n?.top ?? t.top) + ((n?.height ?? 48) - So) / 2,
|
|
871
|
+
left: t.left - Co - So
|
|
872
872
|
});
|
|
873
873
|
};
|
|
874
874
|
if (e(), f) return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
875
875
|
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
876
876
|
};
|
|
877
877
|
}, [f]);
|
|
878
|
-
let v =
|
|
878
|
+
let v = ya(va(ga), va(ha, { coordinateGetter: wa })), y = t.getAllLeafColumns(), b = y.filter((e) => !i?.includes(e.id)), x = b.map((e) => e.id), [S, C] = Y(null), w = m ? /* @__PURE__ */ H("div", {
|
|
879
879
|
style: {
|
|
880
880
|
position: "fixed",
|
|
881
881
|
top: m.top,
|
|
@@ -886,34 +886,34 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
886
886
|
_(), l(!0);
|
|
887
887
|
},
|
|
888
888
|
onMouseLeave: () => l(!1),
|
|
889
|
-
children: /* @__PURE__ */ U(
|
|
889
|
+
children: /* @__PURE__ */ U(B, {
|
|
890
890
|
open: o,
|
|
891
891
|
onOpenChange: s,
|
|
892
|
-
children: [/* @__PURE__ */ H(
|
|
892
|
+
children: [/* @__PURE__ */ H(B.Trigger, {
|
|
893
893
|
asChild: !0,
|
|
894
|
-
children: /* @__PURE__ */ H(
|
|
894
|
+
children: /* @__PURE__ */ H(L, {
|
|
895
895
|
size: "icon-md",
|
|
896
896
|
variant: "outline",
|
|
897
897
|
color: "secondary",
|
|
898
898
|
"aria-label": a,
|
|
899
899
|
className: "aivex:bg-bg-primary aivex:shadow-md",
|
|
900
|
-
children: /* @__PURE__ */ H(
|
|
900
|
+
children: /* @__PURE__ */ H(rn, { size: 20 })
|
|
901
901
|
})
|
|
902
|
-
}), /* @__PURE__ */ U(
|
|
903
|
-
/* @__PURE__ */ H(
|
|
902
|
+
}), /* @__PURE__ */ U(B.Content, { children: [
|
|
903
|
+
/* @__PURE__ */ H(B.Title, {
|
|
904
904
|
className: "aivex:shrink-0",
|
|
905
905
|
children: n
|
|
906
906
|
}),
|
|
907
|
-
/* @__PURE__ */ H(
|
|
907
|
+
/* @__PURE__ */ H(bo, {
|
|
908
908
|
scrollbars: "vertical",
|
|
909
909
|
className: "aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-col",
|
|
910
910
|
viewportClassName: "aivex:h-auto aivex:min-h-0",
|
|
911
911
|
children: /* @__PURE__ */ H("div", {
|
|
912
912
|
className: "aivex:flex aivex:w-full aivex:flex-col",
|
|
913
|
-
children: /* @__PURE__ */ U(
|
|
913
|
+
children: /* @__PURE__ */ U(pa, {
|
|
914
914
|
sensors: v,
|
|
915
|
-
collisionDetection:
|
|
916
|
-
modifiers: [
|
|
915
|
+
collisionDetection: _a,
|
|
916
|
+
modifiers: [xa, ba],
|
|
917
917
|
onDragStart: ({ active: e }) => {
|
|
918
918
|
C(b.find((t) => t.id === e.id) ?? null);
|
|
919
919
|
},
|
|
@@ -921,21 +921,21 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
921
921
|
if (C(null), !n || e.id === n.id) return;
|
|
922
922
|
let r = x.indexOf(String(e.id)), a = x.indexOf(String(n.id));
|
|
923
923
|
if (r === -1 || a === -1) return;
|
|
924
|
-
let o =
|
|
924
|
+
let o = Ca(x, r, a), s = 0;
|
|
925
925
|
t.setColumnOrder(y.map((e) => i?.includes(e.id) ? e.id : o[s++]));
|
|
926
926
|
},
|
|
927
927
|
onDragCancel: () => C(null),
|
|
928
|
-
children: [/* @__PURE__ */ H(
|
|
928
|
+
children: [/* @__PURE__ */ H(Sa, {
|
|
929
929
|
items: x,
|
|
930
|
-
strategy:
|
|
931
|
-
children: b.map((e) => /* @__PURE__ */ H(
|
|
932
|
-
}),
|
|
930
|
+
strategy: Ea,
|
|
931
|
+
children: b.map((e) => /* @__PURE__ */ H(Ao, { column: e }, e.id))
|
|
932
|
+
}), Oa(/* @__PURE__ */ H(ma, { children: S ? /* @__PURE__ */ H(jo, { column: S }) : null }), document.body)]
|
|
933
933
|
})
|
|
934
934
|
})
|
|
935
935
|
}),
|
|
936
|
-
/* @__PURE__ */ H(
|
|
936
|
+
/* @__PURE__ */ H(B.Footer, {
|
|
937
937
|
className: "aivex:shrink-0",
|
|
938
|
-
children: /* @__PURE__ */ H(
|
|
938
|
+
children: /* @__PURE__ */ H(L, {
|
|
939
939
|
size: "md",
|
|
940
940
|
variant: "solid",
|
|
941
941
|
color: "secondary",
|
|
@@ -951,24 +951,24 @@ function Ao({ table: t, title: n = "컬럼 설정", resetLabel: r = "초기화",
|
|
|
951
951
|
return /* @__PURE__ */ H("span", {
|
|
952
952
|
className: "aivex:absolute aivex:top-0 aivex:left-0",
|
|
953
953
|
ref: p,
|
|
954
|
-
children: w ?
|
|
954
|
+
children: w ? Oa(w, document.body) : null
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region src/components/DataGrid/DataGridPrimitives.tsx
|
|
959
|
-
var
|
|
959
|
+
var No = {
|
|
960
960
|
start: "aivex:justify-start aivex:text-left",
|
|
961
961
|
center: "aivex:justify-center aivex:text-center",
|
|
962
962
|
end: "aivex:justify-end aivex:text-right"
|
|
963
|
-
},
|
|
964
|
-
function
|
|
965
|
-
return
|
|
963
|
+
}, Po = Yi("basic");
|
|
964
|
+
function Fo() {
|
|
965
|
+
return Qi(Po);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Io(e, t, n) {
|
|
968
968
|
return typeof e == "function" ? e(t, n) : e;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
return /* @__PURE__ */ H(
|
|
970
|
+
function Lo({ className: t, children: n, variant: r = "basic", ref: i, ...a }) {
|
|
971
|
+
return /* @__PURE__ */ H(Po.Provider, {
|
|
972
972
|
value: r,
|
|
973
973
|
children: /* @__PURE__ */ H("div", {
|
|
974
974
|
ref: i,
|
|
@@ -979,8 +979,8 @@ function Fo({ className: t, children: n, variant: r = "basic", ref: i, ...a }) {
|
|
|
979
979
|
})
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
return /* @__PURE__ */ H(
|
|
982
|
+
function Ro({ className: t, children: n, ref: r, scrollbars: i = "both", type: a = "always", verticalScrollbarClassName: o, ...s }) {
|
|
983
|
+
return /* @__PURE__ */ H(bo, {
|
|
984
984
|
ref: r,
|
|
985
985
|
scrollbars: i,
|
|
986
986
|
type: a,
|
|
@@ -990,17 +990,17 @@ function Io({ className: t, children: n, ref: r, scrollbars: i = "both", type: a
|
|
|
990
990
|
children: n
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function zo({ className: t, children: n, sticky: r = !0, ref: i, ...a }) {
|
|
994
994
|
return /* @__PURE__ */ H("div", {
|
|
995
995
|
ref: i,
|
|
996
996
|
role: "row",
|
|
997
997
|
"data-datagrid-header": "",
|
|
998
|
-
className: e("aivex:flex aivex:shrink-0 aivex:items-center",
|
|
998
|
+
className: e("aivex:flex aivex:shrink-0 aivex:items-center", Fo() === "compact" ? "aivex:h-8 aivex:bg-bg-primary" : "aivex:h-12 aivex:rounded-md aivex:border aivex:border-border-subtle aivex:bg-bg-secondary", r && "aivex:sticky aivex:top-0 aivex:z-10", t),
|
|
999
999
|
...a,
|
|
1000
1000
|
children: n
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function Bo({ className: t, children: n, ref: r, ...i }) {
|
|
1004
1004
|
return /* @__PURE__ */ H("div", {
|
|
1005
1005
|
ref: r,
|
|
1006
1006
|
role: "rowgroup",
|
|
@@ -1009,11 +1009,11 @@ function Ro({ className: t, children: n, ref: r, ...i }) {
|
|
|
1009
1009
|
children: n
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Vo({ className: t, children: n, asChild: r = !1, selected: i, disabled: a, interactive: o, ref: s, onClick: c, onDoubleClick: l, onKeyDown: u, tabIndex: d, role: f = "row", "aria-disabled": p, ...m }) {
|
|
1013
1013
|
return /* @__PURE__ */ H(r ? W : "div", {
|
|
1014
1014
|
ref: s,
|
|
1015
1015
|
role: f,
|
|
1016
|
-
className: e("aivex:flex aivex:w-full aivex:shrink-0 aivex:text-text-primary aivex:transition-colors",
|
|
1016
|
+
className: e("aivex:flex aivex:w-full aivex:shrink-0 aivex:text-text-primary aivex:transition-colors", Fo() === "compact" ? "aivex:min-h-9" : "aivex:min-h-12 aivex:border-b aivex:border-border-subtle aivex:last:border-b-0", o && !i && !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
1017
1017
|
"aria-disabled": a || p || void 0,
|
|
1018
1018
|
"data-disabled": a ? "" : void 0,
|
|
1019
1019
|
"data-state": i ? "selected" : void 0,
|
|
@@ -1025,35 +1025,35 @@ function zo({ className: t, children: n, asChild: r = !1, selected: i, disabled:
|
|
|
1025
1025
|
children: n
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1029
|
-
function
|
|
1028
|
+
var Ho = "aivex:[overflow:clip] aivex:[overflow-clip-margin:4px]";
|
|
1029
|
+
function Uo(e, t) {
|
|
1030
1030
|
let n = (e) => typeof e == "string" || typeof e == "number";
|
|
1031
1031
|
return t || !(Array.isArray(e) ? e.every(n) : n(e)) ? e : /* @__PURE__ */ H("span", {
|
|
1032
1032
|
className: "aivex:min-w-0 aivex:truncate",
|
|
1033
1033
|
children: e
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Wo({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "cell", ...s }) {
|
|
1037
1037
|
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1038
1038
|
"data-aivex-grid-cell": "",
|
|
1039
1039
|
ref: a,
|
|
1040
1040
|
role: o,
|
|
1041
|
-
className: e("aivex:flex aivex:self-stretch aivex:items-center aivex:gap-xs aivex:text-body-md-regular aivex:text-text-primary",
|
|
1041
|
+
className: e("aivex:flex aivex:self-stretch aivex:items-center aivex:gap-xs aivex:text-body-md-regular aivex:text-text-primary", Ho, Fo() === "compact" ? "aivex:min-h-9 aivex:px-md aivex:py-xs" : "aivex:min-h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl", No[r], t),
|
|
1042
1042
|
...s,
|
|
1043
1043
|
children: n
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Go({ className: t, children: n, align: r = "start", asChild: i = !1, ref: a, role: o = "columnheader", ...s }) {
|
|
1047
1047
|
return /* @__PURE__ */ H(i ? W : "div", {
|
|
1048
1048
|
"data-aivex-grid-cell": "",
|
|
1049
1049
|
ref: a,
|
|
1050
1050
|
role: o,
|
|
1051
|
-
className: e("aivex:flex aivex:items-center aivex:gap-xs aivex:whitespace-nowrap",
|
|
1051
|
+
className: e("aivex:flex aivex:items-center aivex:gap-xs aivex:whitespace-nowrap", Ho, Fo() === "compact" ? "aivex:h-full aivex:px-md aivex:py-xs" : "aivex:px-md aivex:first:pl-xl aivex:last:pr-xl", "aivex:text-body-sm-medium aivex:text-text-secondary", No[r], t),
|
|
1052
1052
|
...s,
|
|
1053
|
-
children:
|
|
1053
|
+
children: Uo(n, i)
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Ko({ className: t, children: n, ref: r, ...i }) {
|
|
1057
1057
|
return /* @__PURE__ */ H("div", {
|
|
1058
1058
|
ref: r,
|
|
1059
1059
|
className: e("aivex:flex aivex:min-h-32 aivex:w-full aivex:flex-1 aivex:items-center aivex:justify-center aivex:p-xl aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
@@ -1061,18 +1061,18 @@ function Wo({ className: t, children: n, ref: r, ...i }) {
|
|
|
1061
1061
|
children: n
|
|
1062
1062
|
});
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function qo({ className: t, rowCount: n = 5, ref: r, ...i }) {
|
|
1065
1065
|
return /* @__PURE__ */ H("div", {
|
|
1066
1066
|
ref: r,
|
|
1067
1067
|
className: e("aivex:flex aivex:flex-col", t),
|
|
1068
1068
|
...i,
|
|
1069
|
-
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(
|
|
1069
|
+
children: Array.from({ length: n }).map((e, t) => /* @__PURE__ */ H(Vo, { children: /* @__PURE__ */ H(Wo, {
|
|
1070
1070
|
className: "aivex:w-full",
|
|
1071
|
-
children: /* @__PURE__ */ H(
|
|
1071
|
+
children: /* @__PURE__ */ H(yo, { className: "aivex:h-5 aivex:w-full" })
|
|
1072
1072
|
}) }, t))
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Jo({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
1076
1076
|
return /* @__PURE__ */ H("div", {
|
|
1077
1077
|
ref: i,
|
|
1078
1078
|
role: "presentation",
|
|
@@ -1083,8 +1083,8 @@ function Ko({ className: t, children: n, loading: r, ref: i, ...a }) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
//#endregion
|
|
1085
1085
|
//#region src/components/DataGrid/DataGridRows.tsx
|
|
1086
|
-
function
|
|
1087
|
-
let { original: y, id: b } = t, x = t.index, S =
|
|
1086
|
+
function Yo({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interactive: a, selected: o, disabled: s, className: c, onRowClick: l, expandedContent: u, expandable: d, focusable: f, rowSelected: p, rowExpanded: m, cellRole: h, tabStop: g, onNavigate: _, onFocusRow: v }) {
|
|
1087
|
+
let { original: y, id: b } = t, x = t.index, S = q(), C = !!m, w = !!l && !s, T = r !== void 0, E = /* @__PURE__ */ H(Vo, {
|
|
1088
1088
|
ref: T ? void 0 : i,
|
|
1089
1089
|
"data-datagrid-row-id": b,
|
|
1090
1090
|
"data-row-selected": p ? "" : void 0,
|
|
@@ -1115,11 +1115,11 @@ function qo({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1115
1115
|
onFocus: f && v ? () => v(b) : void 0,
|
|
1116
1116
|
children: t.getVisibleCells().map((t) => {
|
|
1117
1117
|
let { meta: n } = t.column.columnDef;
|
|
1118
|
-
return /* @__PURE__ */ H(
|
|
1118
|
+
return /* @__PURE__ */ H(Wo, {
|
|
1119
1119
|
role: h,
|
|
1120
1120
|
align: n?.cellAlign ?? n?.align,
|
|
1121
|
-
className: e(n?.className,
|
|
1122
|
-
children:
|
|
1121
|
+
className: e(n?.className, Io(n?.cellClassName, y, x)),
|
|
1122
|
+
children: ta(t.column.columnDef.cell, t.getContext())
|
|
1123
1123
|
}, t.id);
|
|
1124
1124
|
})
|
|
1125
1125
|
}), D = u != null && /* @__PURE__ */ H("div", {
|
|
@@ -1145,15 +1145,15 @@ function qo({ row: t, virtualIndex: n, virtualStart: r, measureRef: i, interacti
|
|
|
1145
1145
|
transform: `translateY(${r}px)`
|
|
1146
1146
|
},
|
|
1147
1147
|
children: [E, D]
|
|
1148
|
-
}) : /* @__PURE__ */ U(
|
|
1148
|
+
}) : /* @__PURE__ */ U(Ki, { children: [E, D] });
|
|
1149
1149
|
}
|
|
1150
|
-
var
|
|
1151
|
-
function
|
|
1152
|
-
let [d, f] =
|
|
1150
|
+
var Xo = Zi(Yo);
|
|
1151
|
+
function Zo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, activeRowId: i, focusableRowIds: a, pendingFocusRowId: o, focusRowElement: s, onFocusSettled: c, scrollToRowRef: l, renderRow: u }) {
|
|
1152
|
+
let [d, f] = Y(null);
|
|
1153
1153
|
K(() => {
|
|
1154
1154
|
f(t.current);
|
|
1155
1155
|
}, [t]);
|
|
1156
|
-
let p =
|
|
1156
|
+
let p = Aa({
|
|
1157
1157
|
count: e.length,
|
|
1158
1158
|
getScrollElement: () => d,
|
|
1159
1159
|
estimateSize: () => n ?? 48,
|
|
@@ -1181,77 +1181,77 @@ function Yo({ rows: e, viewportRef: t, estimateRowHeight: n, overscan: r, active
|
|
|
1181
1181
|
}
|
|
1182
1182
|
//#endregion
|
|
1183
1183
|
//#region src/components/DataGrid/DataGrid.tsx
|
|
1184
|
-
var
|
|
1184
|
+
var Qo = ({ direction: e }) => H(e === "asc" ? Si : e === "desc" ? _t : Fr, { size: 16 }), $o = {
|
|
1185
1185
|
basic: 48,
|
|
1186
1186
|
compact: 36
|
|
1187
|
-
},
|
|
1187
|
+
}, es = {
|
|
1188
1188
|
basic: 48,
|
|
1189
1189
|
compact: 32
|
|
1190
1190
|
};
|
|
1191
|
-
function
|
|
1192
|
-
let j =
|
|
1191
|
+
function ts({ className: t, variant: n = "basic", loading: r, loadingRowCount: i, empty: a, headerSticky: o, viewportClassName: s, contentClassName: c, headerClassName: l, bodyClassName: u, rowClassName: d, rowInteractive: f, isRowSelected: p, isRowDisabled: m, onRowClick: h, renderExpandedRow: g, loadingMore: _, loadingMoreContent: v, loadingMoreRowCount: y = 3, skeletonRowClassName: b, endContent: x, infiniteTriggerRef: S, infiniteTriggerClassName: C, columnSettings: w, virtualized: T = !1, estimateRowHeight: E, overscan: D, ref: O, getCoreRowModel: k, ...A }) {
|
|
1192
|
+
let j = fa({
|
|
1193
1193
|
enableSorting: !1,
|
|
1194
1194
|
...A,
|
|
1195
|
-
getCoreRowModel: k ??
|
|
1196
|
-
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell",
|
|
1195
|
+
getCoreRowModel: k ?? ra()
|
|
1196
|
+
}), M = o !== !1, ee = h != null, N = g != null, te = N ? "gridcell" : "cell", ne = w === !0 ? {} : w || void 0, P = J(null), F = j.getRowModel().rows, re = j.getHeaderGroups(), [ie, ae] = Y(es[n]);
|
|
1197
1197
|
K(() => {
|
|
1198
|
-
if (!M || !
|
|
1199
|
-
let e =
|
|
1198
|
+
if (!M || !P.current) return;
|
|
1199
|
+
let e = P.current, t = Array.from(e.querySelectorAll("[data-datagrid-header]")).slice(0, re.length), n = () => {
|
|
1200
1200
|
let e = t.reduce((e, t) => e + t.offsetHeight, 0);
|
|
1201
|
-
e > 0 &&
|
|
1201
|
+
e > 0 && ae(e);
|
|
1202
1202
|
}, r = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(n);
|
|
1203
1203
|
return n(), t.forEach((e) => {
|
|
1204
1204
|
r?.observe(e);
|
|
1205
1205
|
}), () => r?.disconnect();
|
|
1206
|
-
}, [
|
|
1207
|
-
let
|
|
1208
|
-
|
|
1209
|
-
let
|
|
1210
|
-
|
|
1211
|
-
let
|
|
1206
|
+
}, [re.length, M]);
|
|
1207
|
+
let oe = J(h);
|
|
1208
|
+
oe.current = h;
|
|
1209
|
+
let se = G((e, t, n) => oe.current?.(e, t, n), []), ce = h ? se : void 0, [le, ue] = Y(null), de = J(F);
|
|
1210
|
+
de.current = F;
|
|
1211
|
+
let fe = J(null), [pe, me] = Y(null), he = G((e) => {
|
|
1212
1212
|
let t = !!m?.(e.original, e.index), n = N && (e.getCanExpand() || e.getIsExpanded());
|
|
1213
1213
|
return !t && (ee || n);
|
|
1214
1214
|
}, [
|
|
1215
1215
|
ee,
|
|
1216
1216
|
m,
|
|
1217
1217
|
N
|
|
1218
|
-
]),
|
|
1219
|
-
|
|
1220
|
-
let
|
|
1221
|
-
let t = Array.from(
|
|
1218
|
+
]), I = $i(() => new Set(F.filter(he).map((e) => e.id)), [he, F]), ge = J(I);
|
|
1219
|
+
ge.current = I;
|
|
1220
|
+
let _e = G((e) => {
|
|
1221
|
+
let t = Array.from(P.current?.querySelectorAll("[data-datagrid-row-id]") ?? []).find((t) => t.dataset.datagridRowId === e);
|
|
1222
1222
|
return t?.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" }), t != null;
|
|
1223
1223
|
}, []);
|
|
1224
1224
|
K(() => {
|
|
1225
|
-
T ||
|
|
1225
|
+
T || pe == null || (_e(pe), me(null));
|
|
1226
1226
|
}, [
|
|
1227
|
-
|
|
1228
|
-
|
|
1227
|
+
_e,
|
|
1228
|
+
pe,
|
|
1229
1229
|
T
|
|
1230
1230
|
]);
|
|
1231
|
-
let
|
|
1232
|
-
let n =
|
|
1231
|
+
let ve = G((e, t) => {
|
|
1232
|
+
let n = de.current, r = n.findIndex((t) => t.id === e);
|
|
1233
1233
|
if (r === -1) return;
|
|
1234
1234
|
let i = r + t;
|
|
1235
|
-
for (; i >= 0 && i < n.length && !
|
|
1235
|
+
for (; i >= 0 && i < n.length && !ge.current.has(n[i].id);) i += t;
|
|
1236
1236
|
let a = n[i];
|
|
1237
|
-
a && (
|
|
1238
|
-
}, []),
|
|
1237
|
+
a && (fe.current?.(i), me(a.id), ue(a.id));
|
|
1238
|
+
}, []), ye = G((e) => ue(e), []), be = G(() => me(null), []), xe = le != null && I.has(le) ? le : null, Se = xe ?? F.find((e) => I.has(e.id))?.id, Ce = (e, t) => Array.from({ length: e }).map((e, n) => /* @__PURE__ */ H(Vo, {
|
|
1239
1239
|
className: b,
|
|
1240
1240
|
children: j.getVisibleLeafColumns().map((e) => {
|
|
1241
1241
|
let { meta: t } = e.columnDef;
|
|
1242
|
-
return /* @__PURE__ */ H(
|
|
1242
|
+
return /* @__PURE__ */ H(Wo, {
|
|
1243
1243
|
role: te,
|
|
1244
1244
|
align: t?.cellAlign ?? t?.align,
|
|
1245
1245
|
className: t?.className,
|
|
1246
|
-
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(
|
|
1246
|
+
children: t?.skeleton === void 0 ? /* @__PURE__ */ H(yo, { className: "aivex:h-4 aivex:w-full aivex:max-w-40" }) : t.skeleton
|
|
1247
1247
|
}, e.id);
|
|
1248
1248
|
})
|
|
1249
|
-
}, `${t}-${n}`)),
|
|
1249
|
+
}, `${t}-${n}`)), we = (t) => re.map((n) => /* @__PURE__ */ H(zo, {
|
|
1250
1250
|
sticky: t,
|
|
1251
1251
|
className: l,
|
|
1252
1252
|
children: n.headers.map((t) => {
|
|
1253
|
-
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null :
|
|
1254
|
-
return /* @__PURE__ */ H(
|
|
1253
|
+
let { meta: n } = t.column.columnDef, r = t.column.getCanSort(), i = r && n?.headerSortTrigger !== !1, a = t.column.getIsSorted(), o = r ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0, s = t.isPlaceholder ? null : ta(t.column.columnDef.header, t.getContext());
|
|
1254
|
+
return /* @__PURE__ */ H(Go, {
|
|
1255
1255
|
align: n?.headerAlign ?? n?.align,
|
|
1256
1256
|
className: e(n?.className, n?.headerClassName),
|
|
1257
1257
|
"aria-sort": o,
|
|
@@ -1264,75 +1264,75 @@ function $o({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1264
1264
|
children: s
|
|
1265
1265
|
}), /* @__PURE__ */ H("span", {
|
|
1266
1266
|
className: "aivex:shrink-0 aivex:text-text-tertiary",
|
|
1267
|
-
children: /* @__PURE__ */ H(
|
|
1267
|
+
children: /* @__PURE__ */ H(Qo, { direction: a })
|
|
1268
1268
|
})]
|
|
1269
1269
|
}) : s
|
|
1270
1270
|
}, t.id);
|
|
1271
1271
|
})
|
|
1272
|
-
}, n.id)),
|
|
1272
|
+
}, n.id)), Te = j.getVisibleLeafColumns().map((e) => e.id).join(","), Ee = (t, n, r, i = !0) => {
|
|
1273
1273
|
let { original: a } = t, o = t.index, s = !!m?.(a, o), c = N && (t.getCanExpand() || t.getIsExpanded());
|
|
1274
|
-
return /* @__PURE__ */ H(
|
|
1274
|
+
return /* @__PURE__ */ H(Xo, {
|
|
1275
1275
|
row: t,
|
|
1276
1276
|
virtualIndex: n?.index,
|
|
1277
1277
|
virtualStart: n?.start,
|
|
1278
1278
|
measureRef: r,
|
|
1279
|
-
interactive:
|
|
1279
|
+
interactive: Io(f, a, o) ?? !!h,
|
|
1280
1280
|
selected: p?.(a, o),
|
|
1281
1281
|
disabled: s,
|
|
1282
|
-
className: e(n && "aivex:last:border-b",
|
|
1283
|
-
onRowClick:
|
|
1282
|
+
className: e(n && "aivex:last:border-b", Io(d, a, o)),
|
|
1283
|
+
onRowClick: ce,
|
|
1284
1284
|
expandedContent: g && t.getIsExpanded() ? g(t) : void 0,
|
|
1285
1285
|
expandable: c,
|
|
1286
|
-
focusable:
|
|
1286
|
+
focusable: I.has(t.id),
|
|
1287
1287
|
rowSelected: t.getIsSelected(),
|
|
1288
1288
|
rowExpanded: t.getIsExpanded(),
|
|
1289
1289
|
columns: A.columns,
|
|
1290
|
-
visibleColumnKey:
|
|
1290
|
+
visibleColumnKey: Te,
|
|
1291
1291
|
cellRole: te,
|
|
1292
1292
|
tabStop: i,
|
|
1293
|
-
onNavigate:
|
|
1294
|
-
onFocusRow:
|
|
1293
|
+
onNavigate: ve,
|
|
1294
|
+
onFocusRow: ye
|
|
1295
1295
|
}, t.id);
|
|
1296
|
-
},
|
|
1296
|
+
}, De = /* @__PURE__ */ H(Lo, {
|
|
1297
1297
|
ref: O,
|
|
1298
1298
|
variant: n,
|
|
1299
|
-
className:
|
|
1300
|
-
children: /* @__PURE__ */ H(
|
|
1299
|
+
className: ne ? void 0 : t,
|
|
1300
|
+
children: /* @__PURE__ */ H(Ro, {
|
|
1301
1301
|
scrollbars: "both",
|
|
1302
1302
|
className: s,
|
|
1303
1303
|
viewportClassName: M ? "aivex:[scroll-padding-top:var(--datagrid-sticky-header-height)]" : void 0,
|
|
1304
|
-
style: { "--datagrid-sticky-header-height": `${
|
|
1304
|
+
style: { "--datagrid-sticky-header-height": `${ie}px` },
|
|
1305
1305
|
verticalScrollbarClassName: M ? "aivex:top-[var(--datagrid-sticky-header-height)]! aivex:bottom-0! aivex:h-auto!" : void 0,
|
|
1306
|
-
viewportRef:
|
|
1306
|
+
viewportRef: P,
|
|
1307
1307
|
children: /* @__PURE__ */ U("div", {
|
|
1308
1308
|
role: N ? "treegrid" : "table",
|
|
1309
1309
|
className: e("aivex:flex aivex:min-w-full aivex:flex-col", c),
|
|
1310
|
-
children: [
|
|
1310
|
+
children: [we(M), r ? /* @__PURE__ */ H(Bo, {
|
|
1311
1311
|
className: u,
|
|
1312
|
-
children:
|
|
1313
|
-
}) : /* @__PURE__ */ U(
|
|
1312
|
+
children: Ce(i ?? 5, "loading")
|
|
1313
|
+
}) : /* @__PURE__ */ U(Bo, {
|
|
1314
1314
|
className: u,
|
|
1315
1315
|
children: [
|
|
1316
|
-
|
|
1317
|
-
rows:
|
|
1318
|
-
viewportRef:
|
|
1319
|
-
estimateRowHeight: E ??
|
|
1316
|
+
F.length === 0 && a !== void 0 ? /* @__PURE__ */ H(Ko, { children: a }) : T ? /* @__PURE__ */ H(Zo, {
|
|
1317
|
+
rows: F,
|
|
1318
|
+
viewportRef: P,
|
|
1319
|
+
estimateRowHeight: E ?? $o[n],
|
|
1320
1320
|
overscan: D,
|
|
1321
|
-
activeRowId:
|
|
1322
|
-
focusableRowIds:
|
|
1323
|
-
pendingFocusRowId:
|
|
1324
|
-
focusRowElement:
|
|
1325
|
-
onFocusSettled:
|
|
1326
|
-
scrollToRowRef:
|
|
1327
|
-
renderRow:
|
|
1328
|
-
}) :
|
|
1329
|
-
/* @__PURE__ */ H(
|
|
1321
|
+
activeRowId: xe,
|
|
1322
|
+
focusableRowIds: I,
|
|
1323
|
+
pendingFocusRowId: pe,
|
|
1324
|
+
focusRowElement: _e,
|
|
1325
|
+
onFocusSettled: be,
|
|
1326
|
+
scrollToRowRef: fe,
|
|
1327
|
+
renderRow: Ee
|
|
1328
|
+
}) : F.map((e) => Ee(e, void 0, void 0, e.id === Se)),
|
|
1329
|
+
/* @__PURE__ */ H(Jo, {
|
|
1330
1330
|
ref: S,
|
|
1331
1331
|
loading: _,
|
|
1332
1332
|
className: C,
|
|
1333
1333
|
children: v ?? /* @__PURE__ */ H("div", {
|
|
1334
1334
|
className: "aivex:w-full",
|
|
1335
|
-
children:
|
|
1335
|
+
children: Ce(y, "loading-more")
|
|
1336
1336
|
})
|
|
1337
1337
|
}),
|
|
1338
1338
|
!_ && x != null && /* @__PURE__ */ H("div", {
|
|
@@ -1345,35 +1345,35 @@ function $o({ className: t, variant: n = "basic", loading: r, loadingRowCount: i
|
|
|
1345
1345
|
})
|
|
1346
1346
|
})
|
|
1347
1347
|
});
|
|
1348
|
-
return
|
|
1348
|
+
return ne ? /* @__PURE__ */ U("div", {
|
|
1349
1349
|
className: e("aivex:relative aivex:h-full aivex:min-h-0 aivex:w-full aivex:min-w-0", t),
|
|
1350
|
-
children: [
|
|
1350
|
+
children: [De, /* @__PURE__ */ H(Mo, {
|
|
1351
1351
|
table: j,
|
|
1352
|
-
...
|
|
1352
|
+
...ne
|
|
1353
1353
|
})]
|
|
1354
|
-
}) :
|
|
1354
|
+
}) : De;
|
|
1355
1355
|
}
|
|
1356
1356
|
//#endregion
|
|
1357
1357
|
//#region src/components/Overlay/Overlay.tsx
|
|
1358
|
-
var
|
|
1358
|
+
var ns = V("aivex:fixed aivex:inset-0 aivex:z-50", {
|
|
1359
1359
|
variants: { type: {
|
|
1360
1360
|
dim: "aivex:bg-black/50",
|
|
1361
1361
|
frost: "aivex:backdrop-blur-sm aivex:bg-white/30"
|
|
1362
1362
|
} },
|
|
1363
1363
|
defaultVariants: { type: "dim" }
|
|
1364
1364
|
});
|
|
1365
|
-
function
|
|
1365
|
+
function rs({ className: t, type: n = "dim", ref: r, ...i }) {
|
|
1366
1366
|
return /* @__PURE__ */ H("div", {
|
|
1367
1367
|
ref: r,
|
|
1368
1368
|
"aria-hidden": "true",
|
|
1369
|
-
className: e(
|
|
1369
|
+
className: e(ns({ type: n }), t),
|
|
1370
1370
|
...i
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
1373
|
//#endregion
|
|
1374
1374
|
//#region src/utils/useModalAutoFocus.ts
|
|
1375
|
-
function
|
|
1376
|
-
let n =
|
|
1375
|
+
function is(e, t) {
|
|
1376
|
+
let n = J(null);
|
|
1377
1377
|
return {
|
|
1378
1378
|
onOpenAutoFocus(t) {
|
|
1379
1379
|
n.current = t.target.ownerDocument.activeElement, e?.(t);
|
|
@@ -1387,18 +1387,18 @@ function ns(e, t) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
//#endregion
|
|
1389
1389
|
//#region src/components/Dialog/Dialog.tsx
|
|
1390
|
-
var
|
|
1390
|
+
var as = {
|
|
1391
1391
|
default: {
|
|
1392
|
-
component:
|
|
1392
|
+
component: bn,
|
|
1393
1393
|
className: "aivex:text-icon-success"
|
|
1394
1394
|
},
|
|
1395
1395
|
warning: {
|
|
1396
|
-
component:
|
|
1396
|
+
component: Sn,
|
|
1397
1397
|
className: "aivex:text-icon-warning"
|
|
1398
1398
|
}
|
|
1399
1399
|
};
|
|
1400
|
-
function
|
|
1401
|
-
let p =
|
|
1400
|
+
function os({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default", title: a, description: o, children: s, cancelButton: c, confirmButton: l, showIcon: u = !1, ref: d, ...f }) {
|
|
1401
|
+
let p = is(), m = as[i], h = u ? m.component : null, g = !!h, _ = i === "warning" ? "danger" : "primary";
|
|
1402
1402
|
return /* @__PURE__ */ H(X.Root, {
|
|
1403
1403
|
open: t,
|
|
1404
1404
|
defaultOpen: n,
|
|
@@ -1406,7 +1406,7 @@ function is({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1406
1406
|
...f,
|
|
1407
1407
|
children: /* @__PURE__ */ U(X.Portal, { children: [/* @__PURE__ */ H(X.Overlay, {
|
|
1408
1408
|
asChild: !0,
|
|
1409
|
-
children: /* @__PURE__ */ H(
|
|
1409
|
+
children: /* @__PURE__ */ H(rs, { type: "dim" })
|
|
1410
1410
|
}), /* @__PURE__ */ H(X.Content, {
|
|
1411
1411
|
ref: d,
|
|
1412
1412
|
...p,
|
|
@@ -1433,7 +1433,7 @@ function is({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1433
1433
|
]
|
|
1434
1434
|
}), (c || l) && /* @__PURE__ */ U("div", {
|
|
1435
1435
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
1436
|
-
children: [c && /* @__PURE__ */ H(
|
|
1436
|
+
children: [c && /* @__PURE__ */ H(ss, { ...c }), l && /* @__PURE__ */ H(cs, {
|
|
1437
1437
|
...l,
|
|
1438
1438
|
defaultColor: _
|
|
1439
1439
|
})]
|
|
@@ -1442,10 +1442,10 @@ function is({ open: t, defaultOpen: n, onOpenChange: r, variant: i = "default",
|
|
|
1442
1442
|
})] })
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function ss({ children: e, onClick: t, ...n }) {
|
|
1446
1446
|
return /* @__PURE__ */ H(X.Cancel, {
|
|
1447
1447
|
asChild: !0,
|
|
1448
|
-
children: /* @__PURE__ */ H(
|
|
1448
|
+
children: /* @__PURE__ */ H(L, {
|
|
1449
1449
|
variant: "solid",
|
|
1450
1450
|
color: "secondary",
|
|
1451
1451
|
size: "lg",
|
|
@@ -1458,8 +1458,8 @@ function as({ children: e, onClick: t, ...n }) {
|
|
|
1458
1458
|
})
|
|
1459
1459
|
});
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return /* @__PURE__ */ H(
|
|
1461
|
+
function cs({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
1462
|
+
return /* @__PURE__ */ H(L, {
|
|
1463
1463
|
variant: "solid",
|
|
1464
1464
|
color: t,
|
|
1465
1465
|
size: "lg",
|
|
@@ -1473,8 +1473,8 @@ function os({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
//#endregion
|
|
1475
1475
|
//#region src/components/DraggableScroll/DraggableScroll.tsx
|
|
1476
|
-
function
|
|
1477
|
-
let o =
|
|
1476
|
+
function ls({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll: i = !0, edgeFade: a = !1 }) {
|
|
1477
|
+
let o = J(null), s = J({
|
|
1478
1478
|
isDragging: !1,
|
|
1479
1479
|
startX: 0,
|
|
1480
1480
|
scrollLeft: 0
|
|
@@ -1511,11 +1511,11 @@ function ss({ children: t, className: n, autoScrollToEnd: r = !1, smoothScroll:
|
|
|
1511
1511
|
}
|
|
1512
1512
|
//#endregion
|
|
1513
1513
|
//#region src/components/Drawer/Drawer.tsx
|
|
1514
|
-
var
|
|
1514
|
+
var us = {
|
|
1515
1515
|
left: "aivex:left-0 aivex:border-r",
|
|
1516
1516
|
right: "aivex:right-0 aivex:border-l"
|
|
1517
1517
|
};
|
|
1518
|
-
function
|
|
1518
|
+
function ds({ open: t, onOpenChange: n, title: r, children: i, side: a = "right", modal: o = !1, className: s, style: c, onExitComplete: l, onOpenAutoFocus: u, onCloseAutoFocus: d, onEscapeKeyDown: f, onKeyDown: p, onInteractOutside: m, ref: h }) {
|
|
1519
1519
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1520
1520
|
modal: o,
|
|
1521
1521
|
open: t,
|
|
@@ -1524,7 +1524,7 @@ function ls({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1524
1524
|
ref: h,
|
|
1525
1525
|
"aria-describedby": void 0,
|
|
1526
1526
|
"data-side": a,
|
|
1527
|
-
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none",
|
|
1527
|
+
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none", us[a], s),
|
|
1528
1528
|
style: c,
|
|
1529
1529
|
onAnimationEnd: (e) => {
|
|
1530
1530
|
!t && e.target === e.currentTarget && l?.();
|
|
@@ -1543,40 +1543,40 @@ function ls({ open: t, onOpenChange: n, title: r, children: i, side: a = "right"
|
|
|
1543
1543
|
}
|
|
1544
1544
|
//#endregion
|
|
1545
1545
|
//#region src/components/Field/Field.tsx
|
|
1546
|
-
var
|
|
1547
|
-
function
|
|
1548
|
-
let e =
|
|
1546
|
+
var fs = Yi(null);
|
|
1547
|
+
function ps() {
|
|
1548
|
+
let e = Qi(fs);
|
|
1549
1549
|
if (!e) throw Error("Field 하위 컴포넌트는 <Field> 내부에서 사용해야 합니다.");
|
|
1550
1550
|
return e;
|
|
1551
1551
|
}
|
|
1552
|
-
var
|
|
1552
|
+
var ms = V("aivex:flex aivex:w-full", {
|
|
1553
1553
|
variants: { orientation: {
|
|
1554
1554
|
vertical: "aivex:flex-col aivex:gap-xs",
|
|
1555
1555
|
horizontal: "aivex:flex-row aivex:items-center aivex:gap-sm aivex:has-[[data-slot=field-content]]:items-start"
|
|
1556
1556
|
} },
|
|
1557
1557
|
defaultVariants: { orientation: "vertical" }
|
|
1558
1558
|
});
|
|
1559
|
-
function
|
|
1560
|
-
let c =
|
|
1559
|
+
function hs({ className: t, orientation: n, fieldId: r, invalid: i = !1, disabled: a = !1, ref: o, ...s }) {
|
|
1560
|
+
let c = q(), l = r ?? c, u = {
|
|
1561
1561
|
controlId: l,
|
|
1562
1562
|
descriptionId: `${l}-description`,
|
|
1563
1563
|
errorId: `${l}-error`,
|
|
1564
1564
|
invalid: i,
|
|
1565
1565
|
disabled: a
|
|
1566
1566
|
};
|
|
1567
|
-
return /* @__PURE__ */ H(
|
|
1567
|
+
return /* @__PURE__ */ H(fs.Provider, {
|
|
1568
1568
|
value: u,
|
|
1569
1569
|
children: /* @__PURE__ */ H("div", {
|
|
1570
1570
|
ref: o,
|
|
1571
|
-
className: e(
|
|
1571
|
+
className: e(ms({ orientation: n }), t),
|
|
1572
1572
|
"data-invalid": i || void 0,
|
|
1573
1573
|
"data-disabled": a || void 0,
|
|
1574
1574
|
...s
|
|
1575
1575
|
})
|
|
1576
1576
|
});
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1579
|
-
let { controlId: i, invalid: a, disabled: o } =
|
|
1578
|
+
function gs({ className: t, ref: n, ...r }) {
|
|
1579
|
+
let { controlId: i, invalid: a, disabled: o } = ps();
|
|
1580
1580
|
return /* @__PURE__ */ H("label", {
|
|
1581
1581
|
ref: n,
|
|
1582
1582
|
htmlFor: i,
|
|
@@ -1584,7 +1584,7 @@ function ms({ className: t, ref: n, ...r }) {
|
|
|
1584
1584
|
...r
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function _s({ className: t, ref: n, ...r }) {
|
|
1588
1588
|
return /* @__PURE__ */ H("div", {
|
|
1589
1589
|
ref: n,
|
|
1590
1590
|
"data-slot": "field-content",
|
|
@@ -1592,8 +1592,8 @@ function hs({ className: t, ref: n, ...r }) {
|
|
|
1592
1592
|
...r
|
|
1593
1593
|
});
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1596
|
-
let { controlId: t, descriptionId: n, errorId: r, invalid: i } =
|
|
1595
|
+
function vs({ children: e }) {
|
|
1596
|
+
let { controlId: t, descriptionId: n, errorId: r, invalid: i } = ps();
|
|
1597
1597
|
return /* @__PURE__ */ H(W, {
|
|
1598
1598
|
id: t,
|
|
1599
1599
|
"aria-describedby": i ? `${n} ${r}` : n,
|
|
@@ -1601,8 +1601,8 @@ function gs({ children: e }) {
|
|
|
1601
1601
|
children: e
|
|
1602
1602
|
});
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1605
|
-
let { descriptionId: i, disabled: a } =
|
|
1604
|
+
function ys({ className: t, ref: n, ...r }) {
|
|
1605
|
+
let { descriptionId: i, disabled: a } = ps();
|
|
1606
1606
|
return /* @__PURE__ */ H("p", {
|
|
1607
1607
|
ref: n,
|
|
1608
1608
|
id: i,
|
|
@@ -1610,8 +1610,8 @@ function _s({ className: t, ref: n, ...r }) {
|
|
|
1610
1610
|
...r
|
|
1611
1611
|
});
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1614
|
-
let { errorId: a, invalid: o } =
|
|
1613
|
+
function bs({ className: t, children: n, ref: r, ...i }) {
|
|
1614
|
+
let { errorId: a, invalid: o } = ps();
|
|
1615
1615
|
return !o && !n ? null : /* @__PURE__ */ H("p", {
|
|
1616
1616
|
ref: r,
|
|
1617
1617
|
id: a,
|
|
@@ -1623,15 +1623,15 @@ function vs({ className: t, children: n, ref: r, ...i }) {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
//#endregion
|
|
1625
1625
|
//#region src/components/Modal/Modal.tsx
|
|
1626
|
-
var
|
|
1626
|
+
var xs = Yi(!1), Ss = {
|
|
1627
1627
|
sm: "aivex:max-w-modal-sm",
|
|
1628
1628
|
md: "aivex:max-w-modal-md",
|
|
1629
1629
|
lg: "aivex:max-w-modal-lg",
|
|
1630
1630
|
xl: "aivex:max-w-[960px]",
|
|
1631
1631
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
1632
|
-
},
|
|
1633
|
-
function
|
|
1634
|
-
let l =
|
|
1632
|
+
}, Cs = e("aivex:flex aivex:max-h-[80dvh] aivex:w-[85vw] aivex:flex-col aivex:gap-2xl aivex:overflow-hidden aivex:p-2xl", "aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none"), ws = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
1633
|
+
function Ts({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: s, ...c }) {
|
|
1634
|
+
let l = Qi(xs), u = /* @__PURE__ */ H("h2", {
|
|
1635
1635
|
...t ? { id: t } : {},
|
|
1636
1636
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
1637
1637
|
children: e
|
|
@@ -1643,11 +1643,11 @@ function Cs({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1643
1643
|
onClick: i,
|
|
1644
1644
|
className: "aivex:shrink-0",
|
|
1645
1645
|
"aria-label": a,
|
|
1646
|
-
children: /* @__PURE__ */ H(
|
|
1647
|
-
}), p = r ? /* @__PURE__ */ H(
|
|
1646
|
+
children: /* @__PURE__ */ H(z, { size: 24 })
|
|
1647
|
+
}), p = r ? /* @__PURE__ */ H(Es, { button: r }) : null;
|
|
1648
1648
|
return /* @__PURE__ */ U("div", {
|
|
1649
1649
|
ref: s,
|
|
1650
|
-
className:
|
|
1650
|
+
className: ws,
|
|
1651
1651
|
...c,
|
|
1652
1652
|
children: [/* @__PURE__ */ U("div", {
|
|
1653
1653
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
@@ -1671,7 +1671,7 @@ function Cs({ title: e, titleId: t, description: n, headingButton: r, onClose: i
|
|
|
1671
1671
|
}) : d]
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Es({ button: e }) {
|
|
1675
1675
|
let { children: t, ...n } = e;
|
|
1676
1676
|
return /* @__PURE__ */ H(o, {
|
|
1677
1677
|
size: "md",
|
|
@@ -1680,7 +1680,7 @@ function ws({ button: e }) {
|
|
|
1680
1680
|
children: t
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Ds({ children: e, ref: t, ...n }) {
|
|
1684
1684
|
return /* @__PURE__ */ H("div", {
|
|
1685
1685
|
ref: t,
|
|
1686
1686
|
"data-aivex-modal-body": "",
|
|
@@ -1689,14 +1689,14 @@ function Ts({ children: e, ref: t, ...n }) {
|
|
|
1689
1689
|
children: e
|
|
1690
1690
|
});
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Os({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
1693
1693
|
return /* @__PURE__ */ U("div", {
|
|
1694
1694
|
ref: r,
|
|
1695
1695
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1696
1696
|
...i,
|
|
1697
1697
|
children: [/* @__PURE__ */ H("div", {
|
|
1698
1698
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
1699
|
-
children: e && /* @__PURE__ */ H(
|
|
1699
|
+
children: e && /* @__PURE__ */ H(ks, {
|
|
1700
1700
|
button: e,
|
|
1701
1701
|
variant: "ghost",
|
|
1702
1702
|
color: "secondary",
|
|
@@ -1704,12 +1704,12 @@ function Es({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1704
1704
|
})
|
|
1705
1705
|
}), /* @__PURE__ */ U("div", {
|
|
1706
1706
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
1707
|
-
children: [t && /* @__PURE__ */ H(
|
|
1707
|
+
children: [t && /* @__PURE__ */ H(ks, {
|
|
1708
1708
|
button: t,
|
|
1709
1709
|
variant: "solid",
|
|
1710
1710
|
color: "secondary",
|
|
1711
1711
|
className: "aivex:min-w-[84px]"
|
|
1712
|
-
}), n && /* @__PURE__ */ H(
|
|
1712
|
+
}), n && /* @__PURE__ */ H(ks, {
|
|
1713
1713
|
button: n,
|
|
1714
1714
|
variant: "solid",
|
|
1715
1715
|
color: "primary",
|
|
@@ -1718,9 +1718,9 @@ function Es({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
1718
1718
|
})]
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function ks({ button: e, variant: t, color: n, className: r }) {
|
|
1722
1722
|
let { children: i, ...a } = e;
|
|
1723
|
-
return /* @__PURE__ */ H(
|
|
1723
|
+
return /* @__PURE__ */ H(L, {
|
|
1724
1724
|
variant: t,
|
|
1725
1725
|
color: n,
|
|
1726
1726
|
size: "lg",
|
|
@@ -1729,15 +1729,15 @@ function Ds({ button: e, variant: t, color: n, className: r }) {
|
|
|
1729
1729
|
children: i
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
let m =
|
|
1732
|
+
function As({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "md", closeOnInteractOutside: o = !0, onOpenAutoFocus: s, onCloseAutoFocus: c, onInteractOutside: l, onKeyDown: u, onKeyUp: d, ref: f, ...p }) {
|
|
1733
|
+
let m = is(s, c);
|
|
1734
1734
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1735
1735
|
open: t,
|
|
1736
1736
|
defaultOpen: n,
|
|
1737
1737
|
onOpenChange: r,
|
|
1738
1738
|
children: /* @__PURE__ */ U(Z.Portal, { children: [/* @__PURE__ */ H(Z.Overlay, { className: "aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ H(Z.Content, {
|
|
1739
1739
|
ref: f,
|
|
1740
|
-
className: e("aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50", "aivex:-translate-x-1/2 aivex:-translate-y-1/2",
|
|
1740
|
+
className: e("aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50", "aivex:-translate-x-1/2 aivex:-translate-y-1/2", Cs, Ss[a]),
|
|
1741
1741
|
onInteractOutside: (e) => {
|
|
1742
1742
|
l?.(e), !o && !e.defaultPrevented && e.preventDefault();
|
|
1743
1743
|
},
|
|
@@ -1745,23 +1745,23 @@ function Os({ open: t, defaultOpen: n, onOpenChange: r, children: i, size: a = "
|
|
|
1745
1745
|
onKeyDown: u,
|
|
1746
1746
|
onKeyUp: d,
|
|
1747
1747
|
...p,
|
|
1748
|
-
children: /* @__PURE__ */ H(
|
|
1748
|
+
children: /* @__PURE__ */ H(xs.Provider, {
|
|
1749
1749
|
value: !0,
|
|
1750
1750
|
children: i
|
|
1751
1751
|
})
|
|
1752
1752
|
})] })
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
let f =
|
|
1755
|
+
function js({ title: t, description: n, headingButton: r, children: i, tertiaryButton: a, secondaryButton: o, primaryButton: s, size: c = "md", onClose: l, closeAriaLabel: u, ref: d }) {
|
|
1756
|
+
let f = q(), p = !!(a || o || s);
|
|
1757
1757
|
return /* @__PURE__ */ U("div", {
|
|
1758
1758
|
ref: d,
|
|
1759
1759
|
role: "dialog",
|
|
1760
1760
|
"aria-modal": "true",
|
|
1761
1761
|
"aria-labelledby": f,
|
|
1762
|
-
className: e(
|
|
1762
|
+
className: e(Cs, Ss[c]),
|
|
1763
1763
|
children: [
|
|
1764
|
-
/* @__PURE__ */ H(
|
|
1764
|
+
/* @__PURE__ */ H(Ts, {
|
|
1765
1765
|
title: t,
|
|
1766
1766
|
titleId: f,
|
|
1767
1767
|
description: n,
|
|
@@ -1769,8 +1769,8 @@ function ks({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1769
1769
|
onClose: l,
|
|
1770
1770
|
closeAriaLabel: u
|
|
1771
1771
|
}),
|
|
1772
|
-
i && /* @__PURE__ */ H(
|
|
1773
|
-
p && /* @__PURE__ */ H(
|
|
1772
|
+
i && /* @__PURE__ */ H(Ds, { children: i }),
|
|
1773
|
+
p && /* @__PURE__ */ H(Os, {
|
|
1774
1774
|
tertiaryButton: a,
|
|
1775
1775
|
secondaryButton: o,
|
|
1776
1776
|
primaryButton: s
|
|
@@ -1778,9 +1778,9 @@ function ks({ title: t, description: n, headingButton: r, children: i, tertiaryB
|
|
|
1778
1778
|
]
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Ms({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i, headingButton: a, children: o, tertiaryButton: s, secondaryButton: c, primaryButton: l, size: u, closeOnInteractOutside: d, onOpenAutoFocus: f, closeAriaLabel: p }) {
|
|
1782
1782
|
let m = !!(s || c || l);
|
|
1783
|
-
return /* @__PURE__ */ U(
|
|
1783
|
+
return /* @__PURE__ */ U(As, {
|
|
1784
1784
|
open: e,
|
|
1785
1785
|
defaultOpen: t,
|
|
1786
1786
|
onOpenChange: n,
|
|
@@ -1789,14 +1789,14 @@ function As({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1789
1789
|
onOpenAutoFocus: f,
|
|
1790
1790
|
...i ? {} : { "aria-describedby": void 0 },
|
|
1791
1791
|
children: [
|
|
1792
|
-
/* @__PURE__ */ H(
|
|
1792
|
+
/* @__PURE__ */ H(Ts, {
|
|
1793
1793
|
title: r,
|
|
1794
1794
|
description: i,
|
|
1795
1795
|
headingButton: a,
|
|
1796
1796
|
closeAriaLabel: p
|
|
1797
1797
|
}),
|
|
1798
|
-
o && /* @__PURE__ */ H(
|
|
1799
|
-
m && /* @__PURE__ */ H(
|
|
1798
|
+
o && /* @__PURE__ */ H(Ds, { children: o }),
|
|
1799
|
+
m && /* @__PURE__ */ H(Os, {
|
|
1800
1800
|
tertiaryButton: s,
|
|
1801
1801
|
secondaryButton: c,
|
|
1802
1802
|
primaryButton: l
|
|
@@ -1806,8 +1806,8 @@ function As({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i
|
|
|
1806
1806
|
}
|
|
1807
1807
|
//#endregion
|
|
1808
1808
|
//#region src/components/Modal/ModalBase.tsx
|
|
1809
|
-
function
|
|
1810
|
-
let f =
|
|
1809
|
+
function Ns({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0, className: o, onOpenAutoFocus: s, onCloseAutoFocus: c, onEscapeKeyDown: l, onInteractOutside: u, ref: d }) {
|
|
1810
|
+
let f = is(s, c);
|
|
1811
1811
|
return /* @__PURE__ */ H(Z.Root, {
|
|
1812
1812
|
open: t,
|
|
1813
1813
|
defaultOpen: n,
|
|
@@ -1823,10 +1823,10 @@ function js({ open: t, defaultOpen: n, onOpenChange: r, children: i, dim: a = !0
|
|
|
1823
1823
|
})] })
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1826
|
+
var Ps = Object.assign(Ns, {
|
|
1827
1827
|
Title: Z.Title,
|
|
1828
1828
|
Close: Z.Close
|
|
1829
|
-
}),
|
|
1829
|
+
}), Fs = V("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
1830
1830
|
variants: {
|
|
1831
1831
|
size: {
|
|
1832
1832
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -1842,10 +1842,10 @@ var Ms = Object.assign(js, {
|
|
|
1842
1842
|
type: "default"
|
|
1843
1843
|
}
|
|
1844
1844
|
});
|
|
1845
|
-
function
|
|
1845
|
+
function Is({ className: t, size: n = "sm", type: r = "default", startContent: i, showIcon: a = !1, disabled: s = !1, onRemove: c, children: l, ref: u, ...d }) {
|
|
1846
1846
|
return /* @__PURE__ */ U("div", {
|
|
1847
1847
|
ref: u,
|
|
1848
|
-
className: e(
|
|
1848
|
+
className: e(Fs({
|
|
1849
1849
|
size: n,
|
|
1850
1850
|
type: r
|
|
1851
1851
|
}), s && "aivex:opacity-disable", t),
|
|
@@ -1856,7 +1856,7 @@ function Ps({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1856
1856
|
children: i
|
|
1857
1857
|
}) : a ? /* @__PURE__ */ H("span", {
|
|
1858
1858
|
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
1859
|
-
children: /* @__PURE__ */ H(
|
|
1859
|
+
children: /* @__PURE__ */ H(Cr, { size: 16 })
|
|
1860
1860
|
}) : null,
|
|
1861
1861
|
/* @__PURE__ */ H("span", {
|
|
1862
1862
|
className: e("aivex:px-[2px] aivex:truncate", n === "sm" ? "aivex:text-label-md aivex:max-w-[160px]" : "aivex:text-label-lg aivex:max-w-[180px]"),
|
|
@@ -1870,15 +1870,15 @@ function Ps({ className: t, size: n = "sm", type: r = "default", startContent: i
|
|
|
1870
1870
|
},
|
|
1871
1871
|
className: "aivex:shrink-0",
|
|
1872
1872
|
"aria-label": "태그 삭제",
|
|
1873
|
-
children: /* @__PURE__ */ H(
|
|
1873
|
+
children: /* @__PURE__ */ H(z, { size: 12 })
|
|
1874
1874
|
})
|
|
1875
1875
|
]
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
1878
|
//#endregion
|
|
1879
1879
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
1880
|
-
var
|
|
1881
|
-
let [l, u] =
|
|
1880
|
+
var Ls = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Rs = Zi(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
1881
|
+
let [l, u] = Y(i), d = J(null), [f, p] = Y(!1), m = G(() => {
|
|
1882
1882
|
let e = d.current;
|
|
1883
1883
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
1884
1884
|
}, []), h = ({ groupValue: e, optionValue: t }) => r.find((t) => t.groupValue === e)?.options.find((e) => e.value === t), g = l.map((e) => {
|
|
@@ -1914,7 +1914,7 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
1914
1914
|
r,
|
|
1915
1915
|
e,
|
|
1916
1916
|
m
|
|
1917
|
-
]), /* @__PURE__ */ H(
|
|
1917
|
+
]), /* @__PURE__ */ H(Ms, {
|
|
1918
1918
|
open: e,
|
|
1919
1919
|
onOpenChange: (e) => {
|
|
1920
1920
|
e || t();
|
|
@@ -1937,8 +1937,8 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
1937
1937
|
onScroll: m,
|
|
1938
1938
|
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
1939
1939
|
style: f ? {
|
|
1940
|
-
maskImage:
|
|
1941
|
-
WebkitMaskImage:
|
|
1940
|
+
maskImage: Ls,
|
|
1941
|
+
WebkitMaskImage: Ls
|
|
1942
1942
|
} : void 0,
|
|
1943
1943
|
children: r.map((e) => /* @__PURE__ */ H("div", {
|
|
1944
1944
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -1949,7 +1949,7 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
1949
1949
|
children: e.groupLabel
|
|
1950
1950
|
}), e.options.length > 0 ? /* @__PURE__ */ H("div", {
|
|
1951
1951
|
className: "aivex:flex aivex:flex-wrap aivex:gap-md",
|
|
1952
|
-
children: e.options.map((t) => /* @__PURE__ */ H(
|
|
1952
|
+
children: e.options.map((t) => /* @__PURE__ */ H(co, {
|
|
1953
1953
|
active: l.some((n) => n.groupValue === e.groupValue && n.optionValue === t.value),
|
|
1954
1954
|
shape: "rounded",
|
|
1955
1955
|
size: "md",
|
|
@@ -1967,12 +1967,12 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
1967
1967
|
})]
|
|
1968
1968
|
})
|
|
1969
1969
|
}, e.groupValue))
|
|
1970
|
-
}), l.length > 0 && /* @__PURE__ */ H(
|
|
1970
|
+
}), l.length > 0 && /* @__PURE__ */ H(ls, {
|
|
1971
1971
|
autoScrollToEnd: !0,
|
|
1972
1972
|
className: "aivex:shrink-0",
|
|
1973
1973
|
children: /* @__PURE__ */ H("div", {
|
|
1974
1974
|
className: "aivex:flex aivex:gap-md",
|
|
1975
|
-
children: g.map((e) => /* @__PURE__ */ H(
|
|
1975
|
+
children: g.map((e) => /* @__PURE__ */ H(Is, {
|
|
1976
1976
|
size: "md",
|
|
1977
1977
|
startContent: e.icon,
|
|
1978
1978
|
onRemove: () => b(e.value),
|
|
@@ -1983,7 +1983,7 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
1983
1983
|
})]
|
|
1984
1984
|
})
|
|
1985
1985
|
});
|
|
1986
|
-
}),
|
|
1986
|
+
}), zs = V("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors", {
|
|
1987
1987
|
variants: {
|
|
1988
1988
|
state: {
|
|
1989
1989
|
default: "aivex:border-border-default",
|
|
@@ -2040,10 +2040,10 @@ var Fs = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Is =
|
|
|
2040
2040
|
layout: "inline"
|
|
2041
2041
|
}
|
|
2042
2042
|
});
|
|
2043
|
-
function
|
|
2043
|
+
function Bs({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layout: o = "inline", startContent: s, endContent: c, className: l, children: u }) {
|
|
2044
2044
|
let d = n ? "disabled" : t ? "error" : r ? "focused" : i ? "filled" : "default", f = e("aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs", a === "sm" ? "aivex:size-4 aivex:[&_svg]:size-4" : "aivex:size-5 aivex:[&_svg]:size-5", d === "disabled" ? "aivex:text-text-disabled" : d === "default" ? "aivex:text-icon-tertiary" : "aivex:text-icon-secondary");
|
|
2045
2045
|
return /* @__PURE__ */ U("div", {
|
|
2046
|
-
className: e(
|
|
2046
|
+
className: e(zs({
|
|
2047
2047
|
state: d,
|
|
2048
2048
|
size: a,
|
|
2049
2049
|
layout: o
|
|
@@ -2063,15 +2063,15 @@ function Rs({ error: t, disabled: n, focused: r, filled: i, size: a = "md", layo
|
|
|
2063
2063
|
}
|
|
2064
2064
|
//#endregion
|
|
2065
2065
|
//#region src/components/Logo/index.tsx
|
|
2066
|
-
function
|
|
2067
|
-
if (!
|
|
2066
|
+
function Vs(e, t) {
|
|
2067
|
+
if (!Xi(e)) return;
|
|
2068
2068
|
let n = e.props;
|
|
2069
2069
|
typeof n.id == "string" && t.add(n.id);
|
|
2070
2070
|
let r = n.children;
|
|
2071
|
-
if (r != null) for (let e of Array.isArray(r) ? r : [r])
|
|
2071
|
+
if (r != null) for (let e of Array.isArray(r) ? r : [r]) Vs(e, t);
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2074
|
-
if (!
|
|
2073
|
+
function Hs(e, t) {
|
|
2074
|
+
if (!Xi(e)) return e;
|
|
2075
2075
|
let n = { ...e.props };
|
|
2076
2076
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
2077
2077
|
for (let e of Object.keys(n)) {
|
|
@@ -2083,20 +2083,20 @@ function Bs(e, t) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
let r = n.children;
|
|
2085
2085
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
2086
|
-
let r =
|
|
2087
|
-
return
|
|
2088
|
-
})),
|
|
2086
|
+
let r = Hs(e, t);
|
|
2087
|
+
return Xi(r) && r.key == null ? Ji(r, { key: n }) : r;
|
|
2088
|
+
})), Ji(e, n);
|
|
2089
2089
|
}
|
|
2090
2090
|
function $(e) {
|
|
2091
2091
|
return (t) => {
|
|
2092
|
-
let n =
|
|
2093
|
-
if (
|
|
2092
|
+
let n = q().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
2093
|
+
if (Vs(r, i), i.size === 0) return r;
|
|
2094
2094
|
let a = /* @__PURE__ */ new Map();
|
|
2095
2095
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
2096
|
-
return
|
|
2096
|
+
return Hs(r, a);
|
|
2097
2097
|
};
|
|
2098
2098
|
}
|
|
2099
|
-
var
|
|
2099
|
+
var Us = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2100
2100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2101
2101
|
viewBox: "0 0 251.366 52",
|
|
2102
2102
|
width: "251.366",
|
|
@@ -2137,7 +2137,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2137
2137
|
fill: e
|
|
2138
2138
|
})
|
|
2139
2139
|
]
|
|
2140
|
-
}),
|
|
2140
|
+
}), Ws = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2141
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2142
2142
|
viewBox: "0 0 105 24",
|
|
2143
2143
|
width: "105",
|
|
@@ -2297,7 +2297,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2297
2297
|
})
|
|
2298
2298
|
] })
|
|
2299
2299
|
]
|
|
2300
|
-
}),
|
|
2300
|
+
}), Gs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2301
2301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2302
2302
|
viewBox: "0 0 127 24",
|
|
2303
2303
|
width: "127",
|
|
@@ -2507,7 +2507,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2507
2507
|
})
|
|
2508
2508
|
] })
|
|
2509
2509
|
]
|
|
2510
|
-
}),
|
|
2510
|
+
}), Ks = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2511
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2512
2512
|
viewBox: "0 0 127 24",
|
|
2513
2513
|
width: "127",
|
|
@@ -2675,7 +2675,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2675
2675
|
})
|
|
2676
2676
|
] })
|
|
2677
2677
|
]
|
|
2678
|
-
}),
|
|
2678
|
+
}), qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2679
2679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2680
2680
|
viewBox: "0 0 133 24",
|
|
2681
2681
|
width: "133",
|
|
@@ -2843,7 +2843,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2843
2843
|
})
|
|
2844
2844
|
] })
|
|
2845
2845
|
]
|
|
2846
|
-
}),
|
|
2846
|
+
}), Js = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2847
2847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2848
2848
|
viewBox: "0 0 24 24",
|
|
2849
2849
|
width: "24",
|
|
@@ -2958,7 +2958,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
2958
2958
|
})
|
|
2959
2959
|
] })
|
|
2960
2960
|
]
|
|
2961
|
-
}),
|
|
2961
|
+
}), Ys = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
2962
2962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2963
2963
|
viewBox: "0 0 108 24",
|
|
2964
2964
|
width: "108",
|
|
@@ -3107,7 +3107,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3107
3107
|
})
|
|
3108
3108
|
] })
|
|
3109
3109
|
]
|
|
3110
|
-
}),
|
|
3110
|
+
}), Xs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3111
3111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3112
3112
|
viewBox: "0 0 100 24",
|
|
3113
3113
|
width: "100",
|
|
@@ -3246,7 +3246,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3246
3246
|
})
|
|
3247
3247
|
] })
|
|
3248
3248
|
]
|
|
3249
|
-
}),
|
|
3249
|
+
}), Zs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3250
3250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3251
3251
|
viewBox: "0 0 81 24",
|
|
3252
3252
|
width: "81",
|
|
@@ -3350,7 +3350,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3350
3350
|
]
|
|
3351
3351
|
})] })
|
|
3352
3352
|
]
|
|
3353
|
-
}),
|
|
3353
|
+
}), Qs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg", {
|
|
3354
3354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3355
3355
|
viewBox: "0 0 95 24",
|
|
3356
3356
|
width: "95",
|
|
@@ -3550,7 +3550,7 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3550
3550
|
})
|
|
3551
3551
|
] })
|
|
3552
3552
|
]
|
|
3553
|
-
}),
|
|
3553
|
+
}), $s = $(Us), ec = $(Ws), tc = $(Gs), nc = $(Ks), rc = $(qs), ic = $(Ys), ac = $(Js), oc = $(Xs), sc = $(Zs), cc = $(Qs), lc = V("aivex:inline-flex aivex:max-w-full aivex:items-start aivex:gap-md aivex:rounded-md aivex:border aivex:px-lg aivex:py-xs", {
|
|
3554
3554
|
variants: { type: {
|
|
3555
3555
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
3556
3556
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -3559,34 +3559,34 @@ var Vs = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ U("svg",
|
|
|
3559
3559
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
3560
3560
|
} },
|
|
3561
3561
|
defaultVariants: { type: "basic" }
|
|
3562
|
-
}),
|
|
3562
|
+
}), uc = {
|
|
3563
3563
|
basic: {
|
|
3564
|
-
Icon:
|
|
3564
|
+
Icon: Li,
|
|
3565
3565
|
className: "aivex:text-icon-secondary"
|
|
3566
3566
|
},
|
|
3567
3567
|
info: {
|
|
3568
|
-
Icon:
|
|
3568
|
+
Icon: Li,
|
|
3569
3569
|
className: "aivex:text-icon-info"
|
|
3570
3570
|
},
|
|
3571
3571
|
success: {
|
|
3572
|
-
Icon:
|
|
3572
|
+
Icon: _r,
|
|
3573
3573
|
className: "aivex:text-icon-success"
|
|
3574
3574
|
},
|
|
3575
3575
|
warning: {
|
|
3576
|
-
Icon:
|
|
3576
|
+
Icon: di,
|
|
3577
3577
|
className: "aivex:text-icon-warning"
|
|
3578
3578
|
},
|
|
3579
3579
|
danger: {
|
|
3580
|
-
Icon:
|
|
3580
|
+
Icon: Nn,
|
|
3581
3581
|
className: "aivex:text-icon-danger"
|
|
3582
3582
|
}
|
|
3583
3583
|
};
|
|
3584
|
-
function
|
|
3585
|
-
let { Icon: u, className: d } =
|
|
3584
|
+
function dc({ className: t, type: n = "basic", message: r, subText: i, children: a, onClose: s, ref: c, ...l }) {
|
|
3585
|
+
let { Icon: u, className: d } = uc[n ?? "basic"];
|
|
3586
3586
|
return /* @__PURE__ */ H("div", {
|
|
3587
3587
|
ref: c,
|
|
3588
3588
|
role: "status",
|
|
3589
|
-
className: e(
|
|
3589
|
+
className: e(lc({ type: n }), t),
|
|
3590
3590
|
...l,
|
|
3591
3591
|
children: /* @__PURE__ */ U("div", {
|
|
3592
3592
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
@@ -3617,7 +3617,7 @@ function lc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3617
3617
|
className: "aivex:shrink-0 aivex:text-icon-secondary",
|
|
3618
3618
|
onClick: s,
|
|
3619
3619
|
"aria-label": "닫기",
|
|
3620
|
-
children: /* @__PURE__ */ H(
|
|
3620
|
+
children: /* @__PURE__ */ H(z, { size: 20 })
|
|
3621
3621
|
})
|
|
3622
3622
|
]
|
|
3623
3623
|
})
|
|
@@ -3625,20 +3625,20 @@ function lc({ className: t, type: n = "basic", message: r, subText: i, children:
|
|
|
3625
3625
|
}
|
|
3626
3626
|
//#endregion
|
|
3627
3627
|
//#region src/components/Nav/Nav.tsx
|
|
3628
|
-
var
|
|
3628
|
+
var fc = V("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:flex-col aivex:items-center aivex:w-14 aivex:px-0.5 aivex:py-1 aivex:rounded-[6px] aivex:transition-colors aivex:cursor-pointer aivex:select-none", {
|
|
3629
3629
|
variants: { active: {
|
|
3630
3630
|
true: "aivex:bg-bg-brand-subtle",
|
|
3631
3631
|
false: "aivex:bg-transparent"
|
|
3632
3632
|
} },
|
|
3633
3633
|
defaultVariants: { active: !1 }
|
|
3634
3634
|
});
|
|
3635
|
-
function
|
|
3635
|
+
function pc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3636
3636
|
let s = n ?? !1;
|
|
3637
3637
|
return /* @__PURE__ */ U("button", {
|
|
3638
3638
|
ref: a,
|
|
3639
3639
|
type: "button",
|
|
3640
3640
|
"aria-pressed": s,
|
|
3641
|
-
className: e(
|
|
3641
|
+
className: e(fc({ active: n }), t),
|
|
3642
3642
|
...o,
|
|
3643
3643
|
children: [
|
|
3644
3644
|
/* @__PURE__ */ H(R, {}),
|
|
@@ -3656,19 +3656,19 @@ function dc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3656
3656
|
]
|
|
3657
3657
|
});
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3659
|
+
var mc = V("aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:min-h-10 aivex:w-full aivex:items-center aivex:gap-md aivex:px-lg aivex:py-md aivex:rounded-md aivex:text-body-lg-medium aivex:leading-6 aivex:text-left aivex:transition-colors aivex:cursor-pointer", {
|
|
3660
3660
|
variants: { active: {
|
|
3661
3661
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
3662
3662
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
3663
3663
|
} },
|
|
3664
3664
|
defaultVariants: { active: !1 }
|
|
3665
3665
|
});
|
|
3666
|
-
function
|
|
3666
|
+
function hc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
3667
3667
|
return /* @__PURE__ */ U("button", {
|
|
3668
3668
|
ref: a,
|
|
3669
3669
|
type: "button",
|
|
3670
3670
|
"aria-current": n ? "page" : void 0,
|
|
3671
|
-
className: e(
|
|
3671
|
+
className: e(mc({ active: n }), t),
|
|
3672
3672
|
...o,
|
|
3673
3673
|
children: [
|
|
3674
3674
|
/* @__PURE__ */ H(R, {}),
|
|
@@ -3680,7 +3680,7 @@ function pc({ className: t, active: n, icon: r, children: i, ref: a, ...o }) {
|
|
|
3680
3680
|
]
|
|
3681
3681
|
});
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3683
|
+
function gc({ className: t, children: n, ref: r, ...i }) {
|
|
3684
3684
|
return /* @__PURE__ */ H("nav", {
|
|
3685
3685
|
ref: r,
|
|
3686
3686
|
className: e("aivex:flex aivex:flex-col aivex:gap-xs", t),
|
|
@@ -3690,8 +3690,8 @@ function mc({ className: t, children: n, ref: r, ...i }) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
//#endregion
|
|
3692
3692
|
//#region src/components/SelectButton/SelectButton.tsx
|
|
3693
|
-
function
|
|
3694
|
-
let [h, g] =
|
|
3693
|
+
function _c({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open: a = !1, disabled: o, className: s, ref: c, onFocus: l, onBlur: u, type: d = "button", "aria-expanded": f, children: p, ...m }) {
|
|
3694
|
+
let [h, g] = Y(!1), _ = r === "sm" ? 16 : 20;
|
|
3695
3695
|
return /* @__PURE__ */ H("button", {
|
|
3696
3696
|
ref: c,
|
|
3697
3697
|
type: d,
|
|
@@ -3705,7 +3705,7 @@ function hc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3705
3705
|
},
|
|
3706
3706
|
className: e("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", o && "aivex:cursor-not-allowed", s),
|
|
3707
3707
|
...m,
|
|
3708
|
-
children: /* @__PURE__ */ U(
|
|
3708
|
+
children: /* @__PURE__ */ U(Bs, {
|
|
3709
3709
|
disabled: o,
|
|
3710
3710
|
focused: a || h,
|
|
3711
3711
|
error: i,
|
|
@@ -3714,7 +3714,7 @@ function hc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3714
3714
|
layout: "inline",
|
|
3715
3715
|
endContent: /* @__PURE__ */ H("span", {
|
|
3716
3716
|
className: e("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", a && "aivex:rotate-180"),
|
|
3717
|
-
children: /* @__PURE__ */ H(
|
|
3717
|
+
children: /* @__PURE__ */ H(Ft, { size: _ })
|
|
3718
3718
|
}),
|
|
3719
3719
|
children: [/* @__PURE__ */ H("span", {
|
|
3720
3720
|
className: e("aivex:flex-1 aivex:min-w-0 aivex:truncate", r === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", t != null && t !== "" ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
@@ -3725,8 +3725,8 @@ function hc({ value: t, placeholder: n = "", size: r = "md", error: i = !1, open
|
|
|
3725
3725
|
}
|
|
3726
3726
|
//#endregion
|
|
3727
3727
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
3728
|
-
function
|
|
3729
|
-
let [p, m] =
|
|
3728
|
+
function vc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size: a = "md", onChange: o, renderValue: s, className: c, error: l, id: u, "aria-describedby": d, "aria-invalid": f }) {
|
|
3729
|
+
let [p, m] = Y(!1), h = l || f === !0 || f === "true", g = (() => {
|
|
3730
3730
|
for (let e of t) {
|
|
3731
3731
|
let t = e.options.find((e) => e.value === n);
|
|
3732
3732
|
if (t) return s ? s(t, e) : t.label;
|
|
@@ -3741,7 +3741,7 @@ function gc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3741
3741
|
children: [/* @__PURE__ */ H(Q.Trigger, {
|
|
3742
3742
|
asChild: !0,
|
|
3743
3743
|
"aria-invalid": h || void 0,
|
|
3744
|
-
children: /* @__PURE__ */ H(
|
|
3744
|
+
children: /* @__PURE__ */ H(_c, {
|
|
3745
3745
|
id: u,
|
|
3746
3746
|
"aria-describedby": d,
|
|
3747
3747
|
value: g,
|
|
@@ -3758,11 +3758,11 @@ function gc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3758
3758
|
className: e("aivex:z-50 aivex:min-w-[var(--radix-select-trigger-width)] aivex:max-w-[var(--radix-select-trigger-width)]", "aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle", "aivex:overflow-hidden", "aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95", "aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95"),
|
|
3759
3759
|
children: /* @__PURE__ */ H(Q.Viewport, {
|
|
3760
3760
|
style: { overflow: "visible" },
|
|
3761
|
-
children: /* @__PURE__ */ H(
|
|
3761
|
+
children: /* @__PURE__ */ H(bo, {
|
|
3762
3762
|
type: "auto",
|
|
3763
3763
|
className: "aivex:w-full",
|
|
3764
3764
|
viewportClassName: "aivex:max-h-[312px] aivex:p-xs",
|
|
3765
|
-
children: t.map((t, n) => /* @__PURE__ */ U(
|
|
3765
|
+
children: t.map((t, n) => /* @__PURE__ */ U(qi, { children: [n > 0 && /* @__PURE__ */ H(Q.Separator, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ U(Q.Group, { children: [t.title && /* @__PURE__ */ H(Q.Label, {
|
|
3766
3766
|
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
3767
3767
|
children: t.title
|
|
3768
3768
|
}), t.options.map((t) => /* @__PURE__ */ U(Q.Item, {
|
|
@@ -3781,7 +3781,7 @@ function gc({ groups: t, value: n, placeholder: r = "", disabled: i = !1, size:
|
|
|
3781
3781
|
}
|
|
3782
3782
|
//#endregion
|
|
3783
3783
|
//#region src/components/Pagination/Pagination.tsx
|
|
3784
|
-
function
|
|
3784
|
+
function yc({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
3785
3785
|
return /* @__PURE__ */ U("button", {
|
|
3786
3786
|
type: "button",
|
|
3787
3787
|
"aria-label": n,
|
|
@@ -3791,7 +3791,7 @@ function _c({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
|
3791
3791
|
children: [/* @__PURE__ */ H(R, { variant: "default" }), r]
|
|
3792
3792
|
});
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3794
|
+
function bc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
3795
3795
|
return /* @__PURE__ */ U("button", {
|
|
3796
3796
|
type: "button",
|
|
3797
3797
|
"aria-label": `Page ${t}`,
|
|
@@ -3805,12 +3805,12 @@ function vc({ page: t, isActive: n, disabled: r, onClick: i }) {
|
|
|
3805
3805
|
})]
|
|
3806
3806
|
});
|
|
3807
3807
|
}
|
|
3808
|
-
function
|
|
3809
|
-
let d =
|
|
3808
|
+
function xc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pageSizeOptions: o, onChange: s, onPageSizeChange: c, ref: l, ...u }) {
|
|
3809
|
+
let d = J(void 0);
|
|
3810
3810
|
n != null && (d.current = n);
|
|
3811
3811
|
let f = n ?? d.current;
|
|
3812
3812
|
if (f == null) return null;
|
|
3813
|
-
let p = Math.max(1, f), m = Math.min(Math.max(1, r), p), h = Math.floor((m - 1) / 10), g = h * 10 + 1, _ = Math.min(g + 9, p), v = Array.from({ length: _ - g + 1 }, (e, t) => g + t), y = h === 0, b = _ === p,
|
|
3813
|
+
let p = Math.max(1, f), m = Math.min(Math.max(1, r), p), h = Math.floor((m - 1) / 10), g = h * 10 + 1, _ = Math.min(g + 9, p), v = Array.from({ length: _ - g + 1 }, (e, t) => g + t), y = h === 0, b = _ === p, x = (e) => {
|
|
3814
3814
|
c?.(Number(e));
|
|
3815
3815
|
};
|
|
3816
3816
|
return /* @__PURE__ */ U("nav", {
|
|
@@ -3825,21 +3825,21 @@ function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3825
3825
|
children: [
|
|
3826
3826
|
/* @__PURE__ */ U("div", {
|
|
3827
3827
|
className: "aivex:flex aivex:gap-2",
|
|
3828
|
-
children: [/* @__PURE__ */ H(
|
|
3828
|
+
children: [/* @__PURE__ */ H(yc, {
|
|
3829
3829
|
"aria-label": "First page",
|
|
3830
3830
|
disabled: a || y,
|
|
3831
3831
|
onClick: () => s(1),
|
|
3832
|
-
children: /* @__PURE__ */ H(
|
|
3833
|
-
}), /* @__PURE__ */ H(
|
|
3832
|
+
children: /* @__PURE__ */ H(At, { size: 16 })
|
|
3833
|
+
}), /* @__PURE__ */ H(yc, {
|
|
3834
3834
|
"aria-label": "Previous page group",
|
|
3835
3835
|
disabled: a || y,
|
|
3836
3836
|
onClick: () => s(g - 10),
|
|
3837
|
-
children: /* @__PURE__ */ H(
|
|
3837
|
+
children: /* @__PURE__ */ H(ue, { size: 16 })
|
|
3838
3838
|
})]
|
|
3839
3839
|
}),
|
|
3840
3840
|
/* @__PURE__ */ H("div", {
|
|
3841
3841
|
className: "aivex:flex aivex:gap-2",
|
|
3842
|
-
children: v.map((e) => /* @__PURE__ */ H(
|
|
3842
|
+
children: v.map((e) => /* @__PURE__ */ H(bc, {
|
|
3843
3843
|
page: e,
|
|
3844
3844
|
isActive: e === m,
|
|
3845
3845
|
disabled: a,
|
|
@@ -3848,23 +3848,23 @@ function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3848
3848
|
}),
|
|
3849
3849
|
/* @__PURE__ */ U("div", {
|
|
3850
3850
|
className: "aivex:flex aivex:gap-2",
|
|
3851
|
-
children: [/* @__PURE__ */ H(
|
|
3851
|
+
children: [/* @__PURE__ */ H(yc, {
|
|
3852
3852
|
"aria-label": "Next page group",
|
|
3853
3853
|
disabled: a || b,
|
|
3854
3854
|
onClick: () => s(_ + 1),
|
|
3855
|
-
children: /* @__PURE__ */ H(
|
|
3856
|
-
}), /* @__PURE__ */ H(
|
|
3855
|
+
children: /* @__PURE__ */ H(ke, { size: 16 })
|
|
3856
|
+
}), /* @__PURE__ */ H(yc, {
|
|
3857
3857
|
"aria-label": "Last page",
|
|
3858
3858
|
disabled: a || b,
|
|
3859
3859
|
onClick: () => s(p),
|
|
3860
|
-
children: /* @__PURE__ */ H(
|
|
3860
|
+
children: /* @__PURE__ */ H(he, { size: 16 })
|
|
3861
3861
|
})]
|
|
3862
3862
|
})
|
|
3863
3863
|
]
|
|
3864
3864
|
}),
|
|
3865
3865
|
/* @__PURE__ */ H("div", {
|
|
3866
3866
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
3867
|
-
children: o && /* @__PURE__ */ H(
|
|
3867
|
+
children: o && /* @__PURE__ */ H(vc, {
|
|
3868
3868
|
size: "sm",
|
|
3869
3869
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
3870
3870
|
value: String(i),
|
|
@@ -3873,7 +3873,7 @@ function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3873
3873
|
value: String(e),
|
|
3874
3874
|
label: t
|
|
3875
3875
|
})) }],
|
|
3876
|
-
onChange:
|
|
3876
|
+
onChange: x
|
|
3877
3877
|
})
|
|
3878
3878
|
})
|
|
3879
3879
|
]
|
|
@@ -3881,14 +3881,14 @@ function yc({ className: t, totalPages: n, page: r, pageSize: i, disabled: a, pa
|
|
|
3881
3881
|
}
|
|
3882
3882
|
//#endregion
|
|
3883
3883
|
//#region src/components/Panel/Panel.tsx
|
|
3884
|
-
var
|
|
3884
|
+
var Sc = {
|
|
3885
3885
|
left: "aivex:left-0 aivex:border-r",
|
|
3886
3886
|
right: "aivex:right-0 aivex:border-l"
|
|
3887
|
-
},
|
|
3887
|
+
}, Cc = {
|
|
3888
3888
|
md: "aivex:w-[384px]",
|
|
3889
3889
|
lg: "aivex:w-[450px]"
|
|
3890
3890
|
};
|
|
3891
|
-
function
|
|
3891
|
+
function wc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a, side: o = "right", size: s = "md", ref: c }) {
|
|
3892
3892
|
return /* @__PURE__ */ H(Z.Root, {
|
|
3893
3893
|
open: t,
|
|
3894
3894
|
onOpenChange: n,
|
|
@@ -3896,7 +3896,7 @@ function Sc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3896
3896
|
ref: c,
|
|
3897
3897
|
"data-side": o,
|
|
3898
3898
|
"aria-describedby": void 0,
|
|
3899
|
-
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none",
|
|
3899
|
+
className: e("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none", Sc[o], Cc[s]),
|
|
3900
3900
|
onKeyDown: (e) => {
|
|
3901
3901
|
e.stopPropagation();
|
|
3902
3902
|
},
|
|
@@ -3913,7 +3913,7 @@ function Sc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3913
3913
|
type: "button",
|
|
3914
3914
|
className: e("aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm", "aivex:text-icon-secondary aivex:transition-colors", "aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand"),
|
|
3915
3915
|
"aria-label": "Close panel",
|
|
3916
|
-
children: /* @__PURE__ */ H(
|
|
3916
|
+
children: /* @__PURE__ */ H(z, { size: 20 })
|
|
3917
3917
|
})
|
|
3918
3918
|
})]
|
|
3919
3919
|
})]
|
|
@@ -3926,14 +3926,14 @@ function Sc({ open: t, onOpenChange: n, title: r, children: i, headerAction: a,
|
|
|
3926
3926
|
}
|
|
3927
3927
|
//#endregion
|
|
3928
3928
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
3929
|
-
var
|
|
3929
|
+
var Tc = {
|
|
3930
3930
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
3931
3931
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
3932
3932
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
3933
3933
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
3934
|
-
},
|
|
3935
|
-
function
|
|
3936
|
-
let d =
|
|
3934
|
+
}, Ec = (e) => typeof e == "number" ? `${e}px` : e, Dc = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
3935
|
+
function Oc({ className: t, current: n, total: r, color: i = "success", width: a = "100%", height: o = 6, isProgressing: s = !1, ref: c, style: l, ...u }) {
|
|
3936
|
+
let d = Dc(n, r), f = Ec(a), p = Ec(o), m = Tc[i], h = s ? {
|
|
3937
3937
|
width: "100%",
|
|
3938
3938
|
backgroundImage: `linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`
|
|
3939
3939
|
} : {
|
|
@@ -3961,28 +3961,28 @@ function Ec({ className: t, current: n, total: r, color: i = "success", width: a
|
|
|
3961
3961
|
}
|
|
3962
3962
|
//#endregion
|
|
3963
3963
|
//#region src/components/Radio/Radio.tsx
|
|
3964
|
-
var
|
|
3964
|
+
var kc = V("aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand", {
|
|
3965
3965
|
variants: { size: {
|
|
3966
3966
|
sm: "aivex:w-4 aivex:h-4",
|
|
3967
3967
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
3968
3968
|
} },
|
|
3969
3969
|
defaultVariants: { size: "md" }
|
|
3970
|
-
}),
|
|
3970
|
+
}), Ac = {
|
|
3971
3971
|
sm: "aivex:w-5 aivex:h-5",
|
|
3972
3972
|
md: "aivex:w-6 aivex:h-6"
|
|
3973
|
-
},
|
|
3973
|
+
}, jc = {
|
|
3974
3974
|
sm: "aivex:h-5",
|
|
3975
3975
|
md: "aivex:h-6"
|
|
3976
3976
|
};
|
|
3977
|
-
function
|
|
3977
|
+
function Mc({ className: t, label: n, size: r = "md", disabled: i, checked: a, id: o, ref: s, ...c }) {
|
|
3978
3978
|
let l = r ?? "md", u = {
|
|
3979
3979
|
sm: "aivex:w-2 aivex:h-2",
|
|
3980
3980
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
3981
|
-
}[l], d =
|
|
3981
|
+
}[l], d = q(), f = o ?? d;
|
|
3982
3982
|
return /* @__PURE__ */ U("span", {
|
|
3983
3983
|
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", i && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
3984
3984
|
children: [/* @__PURE__ */ U("span", {
|
|
3985
|
-
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
3985
|
+
className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", Ac[l]),
|
|
3986
3986
|
children: [
|
|
3987
3987
|
/* @__PURE__ */ H("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
3988
3988
|
/* @__PURE__ */ H("input", {
|
|
@@ -3991,21 +3991,21 @@ function Ac({ className: t, label: n, size: r = "md", disabled: i, checked: a, i
|
|
|
3991
3991
|
type: "radio",
|
|
3992
3992
|
disabled: i,
|
|
3993
3993
|
checked: a,
|
|
3994
|
-
className: e(
|
|
3994
|
+
className: e(kc({ size: l }), t),
|
|
3995
3995
|
...c
|
|
3996
3996
|
}),
|
|
3997
3997
|
/* @__PURE__ */ H("span", { className: e("aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100", u) })
|
|
3998
3998
|
]
|
|
3999
3999
|
}), n && /* @__PURE__ */ H("label", {
|
|
4000
4000
|
htmlFor: f,
|
|
4001
|
-
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", i && "aivex:cursor-not-allowed",
|
|
4001
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", i && "aivex:cursor-not-allowed", jc[l]),
|
|
4002
4002
|
children: n
|
|
4003
4003
|
})]
|
|
4004
4004
|
});
|
|
4005
4005
|
}
|
|
4006
4006
|
//#endregion
|
|
4007
4007
|
//#region src/components/Segmented/Segmented.tsx
|
|
4008
|
-
var
|
|
4008
|
+
var Nc = Yi({ size: "md" }), Pc = {
|
|
4009
4009
|
sm: "aivex:h-7",
|
|
4010
4010
|
md: "aivex:h-8",
|
|
4011
4011
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -4013,27 +4013,27 @@ var jc = qi({ size: "md" }), Mc = {
|
|
|
4013
4013
|
"icon-md": "aivex:h-8",
|
|
4014
4014
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
4015
4015
|
};
|
|
4016
|
-
function
|
|
4017
|
-
let u = r !== void 0, [d, f] =
|
|
4018
|
-
return /* @__PURE__ */ H(
|
|
4016
|
+
function Fc({ className: t, size: n = "md", value: r, defaultValue: i, onValueChange: a, fullWidth: o, children: s, ref: c, ...l }) {
|
|
4017
|
+
let u = r !== void 0, [d, f] = Y(i ?? r ?? ""), p = u ? r : d;
|
|
4018
|
+
return /* @__PURE__ */ H(Nc.Provider, {
|
|
4019
4019
|
value: {
|
|
4020
4020
|
size: n,
|
|
4021
4021
|
fullWidth: o
|
|
4022
4022
|
},
|
|
4023
|
-
children: /* @__PURE__ */ H(
|
|
4023
|
+
children: /* @__PURE__ */ H(ja.Root, {
|
|
4024
4024
|
ref: c,
|
|
4025
4025
|
type: "single",
|
|
4026
4026
|
value: p,
|
|
4027
4027
|
onValueChange: (e) => {
|
|
4028
4028
|
e && (u || f(e), a?.(e));
|
|
4029
4029
|
},
|
|
4030
|
-
className: e("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", o ? "aivex:w-full" : "aivex:w-fit",
|
|
4030
|
+
className: e("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", o ? "aivex:w-full" : "aivex:w-fit", Pc[n], t),
|
|
4031
4031
|
...l,
|
|
4032
4032
|
children: s
|
|
4033
4033
|
})
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
|
-
var
|
|
4036
|
+
var Ic = {
|
|
4037
4037
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
4038
4038
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
4039
4039
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -4041,36 +4041,36 @@ var Pc = {
|
|
|
4041
4041
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
4042
4042
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
4043
4043
|
};
|
|
4044
|
-
function
|
|
4045
|
-
let { size: a, fullWidth: o } =
|
|
4046
|
-
return /* @__PURE__ */ H(
|
|
4044
|
+
function Lc({ className: t, children: n, ref: r, ...i }) {
|
|
4045
|
+
let { size: a, fullWidth: o } = Qi(Nc);
|
|
4046
|
+
return /* @__PURE__ */ H(ja.Item, {
|
|
4047
4047
|
ref: r,
|
|
4048
|
-
className: e("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled",
|
|
4048
|
+
className: e("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled", Ic[a], o && "aivex:flex-1", t),
|
|
4049
4049
|
...i,
|
|
4050
4050
|
children: n
|
|
4051
4051
|
});
|
|
4052
4052
|
}
|
|
4053
4053
|
//#endregion
|
|
4054
4054
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
4055
|
-
function
|
|
4055
|
+
function Rc(e) {
|
|
4056
4056
|
return typeof e != "string";
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4058
|
+
function zc({ className: t, keys: n, ref: r, ...i }) {
|
|
4059
4059
|
return /* @__PURE__ */ H("span", {
|
|
4060
4060
|
ref: r,
|
|
4061
4061
|
className: e("aivex:inline-flex aivex:items-start aivex:gap-xs", t),
|
|
4062
4062
|
...i,
|
|
4063
4063
|
children: n.map((t, n) => /* @__PURE__ */ H("kbd", {
|
|
4064
|
-
className: e("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none",
|
|
4064
|
+
className: e("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none", Rc(t) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
4065
4065
|
children: t
|
|
4066
4066
|
}, n))
|
|
4067
4067
|
});
|
|
4068
4068
|
}
|
|
4069
4069
|
//#endregion
|
|
4070
4070
|
//#region src/components/Spinner/Spinner.tsx
|
|
4071
|
-
var
|
|
4072
|
-
function
|
|
4073
|
-
let c = Math.max(1, n *
|
|
4071
|
+
var Bc = 1.2 / 15.8;
|
|
4072
|
+
function Vc({ className: t, size: n = 20, color: r, label: i = "로딩 중", style: a, ref: o, ...s }) {
|
|
4073
|
+
let c = Math.max(1, n * Bc);
|
|
4074
4074
|
return /* @__PURE__ */ H("div", {
|
|
4075
4075
|
ref: o,
|
|
4076
4076
|
...i === null ? { "aria-hidden": !0 } : {
|
|
@@ -4089,31 +4089,31 @@ function zc({ className: t, size: n = 20, color: r, label: i = "로딩 중", sty
|
|
|
4089
4089
|
}
|
|
4090
4090
|
//#endregion
|
|
4091
4091
|
//#region src/components/Tab/Tab.tsx
|
|
4092
|
-
function
|
|
4093
|
-
return /* @__PURE__ */ H(
|
|
4092
|
+
function Hc({ className: t, ref: n, ...r }) {
|
|
4093
|
+
return /* @__PURE__ */ H(Ma.Root, {
|
|
4094
4094
|
ref: n,
|
|
4095
4095
|
className: e("aivex:flex aivex:flex-col", t),
|
|
4096
4096
|
...r
|
|
4097
4097
|
});
|
|
4098
4098
|
}
|
|
4099
|
-
var
|
|
4100
|
-
function
|
|
4101
|
-
return /* @__PURE__ */ H(
|
|
4099
|
+
var Uc = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
4100
|
+
function Wc({ className: t, ref: n, ...r }) {
|
|
4101
|
+
return /* @__PURE__ */ H(Ma.List, {
|
|
4102
4102
|
ref: n,
|
|
4103
|
-
className: e(
|
|
4103
|
+
className: e(Uc, t),
|
|
4104
4104
|
...r
|
|
4105
4105
|
});
|
|
4106
4106
|
}
|
|
4107
|
-
var
|
|
4108
|
-
function
|
|
4109
|
-
return /* @__PURE__ */ H(
|
|
4107
|
+
var Gc = "aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:disabled:cursor-not-allowed aivex:disabled:opacity-40 aivex:data-[state=active]:after:absolute aivex:data-[state=active]:after:bottom-0 aivex:data-[state=active]:after:left-0 aivex:data-[state=active]:after:right-0 aivex:data-[state=active]:after:h-0.5 aivex:data-[state=active]:after:bg-bg-inverse aivex:data-[state=active]:after:content-['']";
|
|
4108
|
+
function Kc({ className: t, ref: n, ...r }) {
|
|
4109
|
+
return /* @__PURE__ */ H(Ma.Trigger, {
|
|
4110
4110
|
ref: n,
|
|
4111
|
-
className: e(
|
|
4111
|
+
className: e(Gc, t),
|
|
4112
4112
|
...r
|
|
4113
4113
|
});
|
|
4114
4114
|
}
|
|
4115
|
-
function
|
|
4116
|
-
return /* @__PURE__ */ H(
|
|
4115
|
+
function qc({ className: t, ref: n, ...r }) {
|
|
4116
|
+
return /* @__PURE__ */ H(Ma.Content, {
|
|
4117
4117
|
ref: n,
|
|
4118
4118
|
className: e("aivex:flex-1 aivex:outline-none", t),
|
|
4119
4119
|
...r
|
|
@@ -4121,14 +4121,14 @@ function Gc({ className: t, ref: n, ...r }) {
|
|
|
4121
4121
|
}
|
|
4122
4122
|
//#endregion
|
|
4123
4123
|
//#region src/components/Table/Table.tsx
|
|
4124
|
-
var
|
|
4124
|
+
var Jc = {
|
|
4125
4125
|
sm: "aivex:h-10",
|
|
4126
4126
|
md: "aivex:h-12"
|
|
4127
|
-
},
|
|
4127
|
+
}, Yc = {
|
|
4128
4128
|
sm: "aivex:h-10 aivex:px-sm aivex:py-sm aivex:first:pl-lg aivex:last:pr-lg",
|
|
4129
4129
|
md: "aivex:h-12 aivex:px-md aivex:py-md aivex:first:pl-xl aivex:last:pr-xl"
|
|
4130
|
-
},
|
|
4131
|
-
function
|
|
4130
|
+
}, Xc = ({ direction: e }) => H(e === "asc" ? Si : e === "desc" ? _t : Fr, { size: 16 });
|
|
4131
|
+
function Zc({ className: t, tableClassName: n, size: r = "md", children: i, ref: a, ...o }) {
|
|
4132
4132
|
return /* @__PURE__ */ H("div", {
|
|
4133
4133
|
ref: a,
|
|
4134
4134
|
className: e("aivex:w-full aivex:overflow-auto", t),
|
|
@@ -4140,7 +4140,7 @@ function Yc({ className: t, tableClassName: n, size: r = "md", children: i, ref:
|
|
|
4140
4140
|
})
|
|
4141
4141
|
});
|
|
4142
4142
|
}
|
|
4143
|
-
function
|
|
4143
|
+
function Qc({ className: e, children: t, ref: n, ...r }) {
|
|
4144
4144
|
return /* @__PURE__ */ H("thead", {
|
|
4145
4145
|
ref: n,
|
|
4146
4146
|
className: e,
|
|
@@ -4148,7 +4148,7 @@ function Xc({ className: e, children: t, ref: n, ...r }) {
|
|
|
4148
4148
|
children: t
|
|
4149
4149
|
});
|
|
4150
4150
|
}
|
|
4151
|
-
function
|
|
4151
|
+
function $c({ className: t, children: n, ref: r, ...i }) {
|
|
4152
4152
|
return /* @__PURE__ */ H("tfoot", {
|
|
4153
4153
|
ref: r,
|
|
4154
4154
|
className: e("aivex:border-t aivex:border-border-subtle aivex:bg-bg-secondary", t),
|
|
@@ -4156,7 +4156,7 @@ function Zc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4156
4156
|
children: n
|
|
4157
4157
|
});
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function el({ className: t, children: n, ref: r, ...i }) {
|
|
4160
4160
|
return /* @__PURE__ */ H("caption", {
|
|
4161
4161
|
ref: r,
|
|
4162
4162
|
className: e("aivex:mt-md aivex:text-body-sm-regular aivex:text-text-secondary", t),
|
|
@@ -4164,7 +4164,7 @@ function Qc({ className: t, children: n, ref: r, ...i }) {
|
|
|
4164
4164
|
children: n
|
|
4165
4165
|
});
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4167
|
+
function tl({ className: e, children: t, ref: n, ...r }) {
|
|
4168
4168
|
return /* @__PURE__ */ H("tbody", {
|
|
4169
4169
|
ref: n,
|
|
4170
4170
|
className: e,
|
|
@@ -4172,10 +4172,10 @@ function $c({ className: e, children: t, ref: n, ...r }) {
|
|
|
4172
4172
|
children: t
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
|
-
function
|
|
4175
|
+
function nl({ className: t, children: n, size: r = "md", selected: i, disabled: a, interactive: o, asChild: s = !1, ref: c, onClick: l, onDoubleClick: u, onKeyDown: d, tabIndex: f, "aria-disabled": p, ...m }) {
|
|
4176
4176
|
return /* @__PURE__ */ H(s ? W : "tr", {
|
|
4177
4177
|
ref: c,
|
|
4178
|
-
className: e("aivex:transition-colors",
|
|
4178
|
+
className: e("aivex:transition-colors", Jc[r], !a && "aivex:hover:bg-bg-secondary", o && !a && "aivex:cursor-pointer aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", i && "aivex:bg-bg-brand-subtle aivex:hover:bg-bg-brand-subtle aivex:hover:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_4%,transparent))] aivex:active:[background-image:linear-gradient(color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent),color-mix(in_srgb,var(--aivex-bg-inverse-strong)_8%,transparent))]", a && "aivex:cursor-not-allowed aivex:opacity-disable", t),
|
|
4179
4179
|
"aria-disabled": a || p || void 0,
|
|
4180
4180
|
"data-disabled": a ? "" : void 0,
|
|
4181
4181
|
"data-state": i ? "selected" : void 0,
|
|
@@ -4187,10 +4187,10 @@ function el({ className: t, children: n, size: r = "md", selected: i, disabled:
|
|
|
4187
4187
|
children: n
|
|
4188
4188
|
});
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function rl({ className: t, children: n, size: r = "md", sortable: i, sortDirection: a, onSort: o, asChild: s = !1, ref: c, ...l }) {
|
|
4191
4191
|
return /* @__PURE__ */ H(s ? W : "th", {
|
|
4192
4192
|
ref: c,
|
|
4193
|
-
className: e("aivex:text-left aivex:align-middle aivex:text-body-sm-medium aivex:text-text-secondary aivex:whitespace-nowrap", "aivex:bg-bg-secondary aivex:border-y aivex:border-border-subtle", "aivex:first:border-l aivex:first:rounded-l-md aivex:last:border-r aivex:last:rounded-r-md",
|
|
4193
|
+
className: e("aivex:text-left aivex:align-middle aivex:text-body-sm-medium aivex:text-text-secondary aivex:whitespace-nowrap", "aivex:bg-bg-secondary aivex:border-y aivex:border-border-subtle", "aivex:first:border-l aivex:first:rounded-l-md aivex:last:border-r aivex:last:rounded-r-md", Yc[r], t),
|
|
4194
4194
|
...l,
|
|
4195
4195
|
children: i ? /* @__PURE__ */ U("button", {
|
|
4196
4196
|
type: "button",
|
|
@@ -4198,21 +4198,21 @@ function tl({ className: t, children: n, size: r = "md", sortable: i, sortDirect
|
|
|
4198
4198
|
className: "aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:group aivex:text-text-secondary aivex:hover:text-text-primary aivex:transition-colors",
|
|
4199
4199
|
children: [n, /* @__PURE__ */ H("span", {
|
|
4200
4200
|
className: "aivex:text-text-tertiary aivex:group-hover:text-text-secondary aivex:transition-colors",
|
|
4201
|
-
children: /* @__PURE__ */ H(
|
|
4201
|
+
children: /* @__PURE__ */ H(Xc, { direction: a })
|
|
4202
4202
|
})]
|
|
4203
4203
|
}) : n
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
4206
|
-
function
|
|
4206
|
+
function il({ className: t, children: n, size: r = "md", asChild: i = !1, ref: a, ...o }) {
|
|
4207
4207
|
return /* @__PURE__ */ H(i ? W : "td", {
|
|
4208
4208
|
ref: a,
|
|
4209
|
-
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle",
|
|
4209
|
+
className: e("aivex:align-middle aivex:text-body-md-regular aivex:text-text-primary", "aivex:border-b aivex:border-border-subtle", Yc[r], t),
|
|
4210
4210
|
...o,
|
|
4211
4211
|
children: n
|
|
4212
4212
|
});
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4215
|
-
return /* @__PURE__ */ H(
|
|
4214
|
+
function al({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
4215
|
+
return /* @__PURE__ */ H(nl, { children: /* @__PURE__ */ H(il, {
|
|
4216
4216
|
ref: i,
|
|
4217
4217
|
colSpan: r,
|
|
4218
4218
|
className: e("aivex:h-32 aivex:text-center aivex:text-body-md-regular aivex:text-text-tertiary", t),
|
|
@@ -4220,34 +4220,34 @@ function rl({ className: t, children: n, colSpan: r, ref: i, ...a }) {
|
|
|
4220
4220
|
children: n
|
|
4221
4221
|
}) });
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function ol({ className: e, colSpan: t, rowCount: n = 5, ref: r, ...i }) {
|
|
4224
4224
|
return /* @__PURE__ */ H("tbody", {
|
|
4225
4225
|
ref: r,
|
|
4226
4226
|
className: e,
|
|
4227
4227
|
...i,
|
|
4228
|
-
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(
|
|
4228
|
+
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ H(nl, { children: /* @__PURE__ */ H(il, {
|
|
4229
4229
|
colSpan: t,
|
|
4230
|
-
children: /* @__PURE__ */ H(
|
|
4230
|
+
children: /* @__PURE__ */ H(yo, { className: "aivex:h-5 aivex:w-full" })
|
|
4231
4231
|
}) }, n))
|
|
4232
4232
|
});
|
|
4233
4233
|
}
|
|
4234
4234
|
//#endregion
|
|
4235
4235
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
4236
|
-
function
|
|
4237
|
-
let S = o !== void 0, [C, w] =
|
|
4236
|
+
function sl({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a, value: o, defaultValue: s = [], onChange: c, parsePaste: l, validate: u, renderTag: d, placeholder: f, id: p, ref: m, onBlur: h, onCompositionEnd: g, onCompositionStart: _, onFocus: v, onKeyDown: y, onPaste: b, ...x }) {
|
|
4237
|
+
let S = o !== void 0, [C, w] = Y(s), T = S ? o : C, [E, D] = Y(""), O = J(!1), [k, A] = Y(!1), j = k && !a, M = x["aria-invalid"], ee = u ? T.some((e) => !u(e)) : !1, N = r || M === !0 || M === "true" || ee, te = (e) => {
|
|
4238
4238
|
let t = e.trim();
|
|
4239
4239
|
if (!t) return;
|
|
4240
4240
|
let n = [...T, t];
|
|
4241
4241
|
S || w(n), c?.(n), D("");
|
|
4242
|
-
},
|
|
4242
|
+
}, ne = (e) => {
|
|
4243
4243
|
let t = T.filter((t, n) => n !== e);
|
|
4244
4244
|
S || w(t), c?.(t);
|
|
4245
|
-
},
|
|
4245
|
+
}, P = (e) => {
|
|
4246
4246
|
if (y?.(e), !e.defaultPrevented && !a) if (e.key === "Enter") {
|
|
4247
4247
|
if (O.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
4248
4248
|
e.preventDefault(), E && te(E);
|
|
4249
|
-
} else e.key === "Backspace" && !E && T.length > 0 &&
|
|
4250
|
-
},
|
|
4249
|
+
} else e.key === "Backspace" && !E && T.length > 0 && ne(T.length - 1);
|
|
4250
|
+
}, F = (e) => {
|
|
4251
4251
|
if (b?.(e), e.defaultPrevented || a || !l) return;
|
|
4252
4252
|
e.preventDefault();
|
|
4253
4253
|
let t = l(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !T.includes(e));
|
|
@@ -4256,21 +4256,21 @@ function al({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4256
4256
|
S || w(e), c?.(e);
|
|
4257
4257
|
}
|
|
4258
4258
|
D("");
|
|
4259
|
-
},
|
|
4260
|
-
let r = () =>
|
|
4261
|
-
return d ? /* @__PURE__ */ H(
|
|
4259
|
+
}, re = T.map((e, t) => {
|
|
4260
|
+
let r = () => ne(t), a = u ? u(e) ? "default" : "error" : N ? "error" : "default";
|
|
4261
|
+
return d ? /* @__PURE__ */ H(qi, { children: d(e, t, {
|
|
4262
4262
|
remove: r,
|
|
4263
4263
|
size: n,
|
|
4264
4264
|
disabled: i,
|
|
4265
4265
|
type: a
|
|
4266
|
-
}) }, `${e}-${t}`) : /* @__PURE__ */ H(
|
|
4266
|
+
}) }, `${e}-${t}`) : /* @__PURE__ */ H(Is, {
|
|
4267
4267
|
size: n === "md" ? "md" : "sm",
|
|
4268
4268
|
type: a,
|
|
4269
4269
|
disabled: i,
|
|
4270
4270
|
onRemove: r,
|
|
4271
4271
|
children: e
|
|
4272
4272
|
}, `${e}-${t}`);
|
|
4273
|
-
}),
|
|
4273
|
+
}), ie = /* @__PURE__ */ H("input", {
|
|
4274
4274
|
ref: m,
|
|
4275
4275
|
id: p,
|
|
4276
4276
|
value: E,
|
|
@@ -4280,8 +4280,8 @@ function al({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4280
4280
|
onChange: (e) => {
|
|
4281
4281
|
a || D(e.target.value);
|
|
4282
4282
|
},
|
|
4283
|
-
onKeyDown:
|
|
4284
|
-
onPaste:
|
|
4283
|
+
onKeyDown: P,
|
|
4284
|
+
onPaste: F,
|
|
4285
4285
|
onCompositionStart: (e) => {
|
|
4286
4286
|
O.current = !0, _?.(e);
|
|
4287
4287
|
},
|
|
@@ -4297,20 +4297,20 @@ function al({ className: t, size: n = "sm", error: r, disabled: i, readOnly: a,
|
|
|
4297
4297
|
className: e("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1", a && "aivex:cursor-default", n === "sm" ? "aivex:text-body-md-regular aivex:h-6" : "aivex:text-body-lg-regular aivex:h-8"),
|
|
4298
4298
|
...x
|
|
4299
4299
|
});
|
|
4300
|
-
return /* @__PURE__ */ U(
|
|
4300
|
+
return /* @__PURE__ */ U(Bs, {
|
|
4301
4301
|
error: N,
|
|
4302
4302
|
disabled: i,
|
|
4303
4303
|
focused: j,
|
|
4304
4304
|
size: n,
|
|
4305
4305
|
layout: "wrap",
|
|
4306
4306
|
className: e(t, a && "aivex:cursor-default"),
|
|
4307
|
-
children: [
|
|
4307
|
+
children: [re, ie]
|
|
4308
4308
|
});
|
|
4309
4309
|
}
|
|
4310
4310
|
//#endregion
|
|
4311
4311
|
//#region src/components/Textarea/Textarea.tsx
|
|
4312
|
-
function
|
|
4313
|
-
let [v, y] =
|
|
4312
|
+
function cl({ className: t, error: n, disabled: r, size: i = "md", minHeight: a, fixedHeight: o, startContent: s, endContent: c, id: l, ref: u, onFocus: d, onBlur: f, maxCount: p, value: m, defaultValue: h, onChange: g, ..._ }) {
|
|
4313
|
+
let [v, y] = Y(!1), b = p != null, x = (e) => e == null ? 0 : String(e).length, [S, C] = Y(() => x(m ?? h)), w = m == null ? S : x(m), T = _["aria-invalid"], E = !!(n || T === !0 || T === "true") || b && w > p, D = (e) => {
|
|
4314
4314
|
C(e.target.value.length), g?.(e);
|
|
4315
4315
|
}, O = {};
|
|
4316
4316
|
a !== void 0 && (O.minHeight = typeof a == "number" ? `${a}px` : a), o && a !== void 0 && (O.height = O.minHeight, O.maxHeight = O.minHeight);
|
|
@@ -4331,7 +4331,7 @@ function ol({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4331
4331
|
},
|
|
4332
4332
|
..._
|
|
4333
4333
|
});
|
|
4334
|
-
return /* @__PURE__ */ H(
|
|
4334
|
+
return /* @__PURE__ */ H(Bs, {
|
|
4335
4335
|
error: E,
|
|
4336
4336
|
disabled: r,
|
|
4337
4337
|
focused: v,
|
|
@@ -4356,10 +4356,10 @@ function ol({ className: t, error: n, disabled: r, size: i = "md", minHeight: a,
|
|
|
4356
4356
|
}
|
|
4357
4357
|
//#endregion
|
|
4358
4358
|
//#region src/components/Textbox/Textbox.tsx
|
|
4359
|
-
function
|
|
4360
|
-
let [_, v] =
|
|
4359
|
+
function ll({ className: t, error: n, disabled: r, clearable: i, startContent: a, endContent: s, size: c = "md", id: l, ref: u, value: d, defaultValue: f, onChange: p, onFocus: m, onBlur: h, ...g }) {
|
|
4360
|
+
let [_, v] = Y(!1), y = J(null), [b, x] = Y(typeof f == "string" ? f : f?.toString() ?? ""), S = d !== void 0, C = S ? String(d ?? "") : b, w = i && C.length > 0, T = (e) => {
|
|
4361
4361
|
S || x(e.target.value), p?.(e);
|
|
4362
|
-
}, E =
|
|
4362
|
+
}, E = Na(u, y), D = /* @__PURE__ */ U(Ki, { children: [s, w && /* @__PURE__ */ H(o, {
|
|
4363
4363
|
size: c === "sm" ? "xs" : "sm",
|
|
4364
4364
|
onClick: () => {
|
|
4365
4365
|
S || x(""), p?.({ target: { value: "" } }), y.current?.focus();
|
|
@@ -4368,9 +4368,9 @@ function sl({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4368
4368
|
tabIndex: -1,
|
|
4369
4369
|
className: "aivex:shrink-0",
|
|
4370
4370
|
"aria-label": "입력값 삭제",
|
|
4371
|
-
children: /* @__PURE__ */ H(
|
|
4371
|
+
children: /* @__PURE__ */ H(z, { size: c === "sm" ? 14 : 16 })
|
|
4372
4372
|
})] }), O = s || w, k = g["aria-invalid"];
|
|
4373
|
-
return /* @__PURE__ */ H(
|
|
4373
|
+
return /* @__PURE__ */ H(Bs, {
|
|
4374
4374
|
error: n || k === !0 || k === "true",
|
|
4375
4375
|
disabled: r,
|
|
4376
4376
|
focused: _,
|
|
@@ -4399,7 +4399,7 @@ function sl({ className: t, error: n, disabled: r, clearable: i, startContent: a
|
|
|
4399
4399
|
}
|
|
4400
4400
|
//#endregion
|
|
4401
4401
|
//#region src/components/Toast/Toast.tsx
|
|
4402
|
-
var
|
|
4402
|
+
var ul = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aivex:justify-center aivex:gap-md aivex:rounded-xs aivex:bg-static-gray aivex:px-xl aivex:py-xs", {
|
|
4403
4403
|
variants: { type: {
|
|
4404
4404
|
default: "",
|
|
4405
4405
|
success: "",
|
|
@@ -4407,21 +4407,21 @@ var cl = V("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
4407
4407
|
} },
|
|
4408
4408
|
defaultVariants: { type: "default" }
|
|
4409
4409
|
});
|
|
4410
|
-
function
|
|
4410
|
+
function dl({ className: t, type: n = "default", open: r = !0, message: i, action: a, onClose: s, closeAriaLabel: c = "닫기", ref: l, ...u }) {
|
|
4411
4411
|
if (!r) return null;
|
|
4412
4412
|
let { children: d, ...f } = a ?? {};
|
|
4413
4413
|
return /* @__PURE__ */ U("div", {
|
|
4414
4414
|
ref: l,
|
|
4415
4415
|
role: "status",
|
|
4416
4416
|
"aria-live": "polite",
|
|
4417
|
-
className: e(
|
|
4417
|
+
className: e(ul({ type: n }), t),
|
|
4418
4418
|
...u,
|
|
4419
4419
|
children: [
|
|
4420
4420
|
/* @__PURE__ */ H("p", {
|
|
4421
4421
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4422
4422
|
children: i
|
|
4423
4423
|
}),
|
|
4424
|
-
a && /* @__PURE__ */ H(
|
|
4424
|
+
a && /* @__PURE__ */ H(L, {
|
|
4425
4425
|
variant: "ghost",
|
|
4426
4426
|
color: "primary",
|
|
4427
4427
|
size: "md",
|
|
@@ -4435,14 +4435,14 @@ function ll({ className: t, type: n = "default", open: r = !0, message: i, actio
|
|
|
4435
4435
|
size: "sm",
|
|
4436
4436
|
className: "aivex:shrink-0",
|
|
4437
4437
|
onClick: s,
|
|
4438
|
-
children: /* @__PURE__ */ H(
|
|
4438
|
+
children: /* @__PURE__ */ H(z, { size: 20 })
|
|
4439
4439
|
})
|
|
4440
4440
|
]
|
|
4441
4441
|
});
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function fl({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r = 3, gap: i = 8, style: a, toastOptions: o, ...s }) {
|
|
4444
4444
|
let c = t.endsWith("center");
|
|
4445
|
-
return /* @__PURE__ */ H(
|
|
4445
|
+
return /* @__PURE__ */ H(Pa, {
|
|
4446
4446
|
position: t,
|
|
4447
4447
|
duration: n,
|
|
4448
4448
|
visibleToasts: r,
|
|
@@ -4454,7 +4454,7 @@ function ul({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4454
4454
|
toastOptions: {
|
|
4455
4455
|
...o,
|
|
4456
4456
|
unstyled: !0,
|
|
4457
|
-
className: e(
|
|
4457
|
+
className: e(ul({ type: "default" }), c && "aivex:inset-x-0 aivex:mx-auto", o?.className),
|
|
4458
4458
|
classNames: {
|
|
4459
4459
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
4460
4460
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -4469,7 +4469,7 @@ function ul({ position: t = "bottom-center", duration: n = 4e3, visibleToasts: r
|
|
|
4469
4469
|
}
|
|
4470
4470
|
//#endregion
|
|
4471
4471
|
//#region src/components/Typography/Typography.tsx
|
|
4472
|
-
var
|
|
4472
|
+
var pl = V("", {
|
|
4473
4473
|
variants: { variant: {
|
|
4474
4474
|
"display-lg": "aivex:text-display-lg",
|
|
4475
4475
|
"display-md": "aivex:text-display-md",
|
|
@@ -4491,7 +4491,7 @@ var dl = V("", {
|
|
|
4491
4491
|
"caption-md": "aivex:text-caption-md"
|
|
4492
4492
|
} },
|
|
4493
4493
|
defaultVariants: { variant: "body-md-regular" }
|
|
4494
|
-
}),
|
|
4494
|
+
}), ml = {
|
|
4495
4495
|
"display-lg": "h1",
|
|
4496
4496
|
"display-md": "h1",
|
|
4497
4497
|
"heading-xl": "h1",
|
|
@@ -4511,23 +4511,23 @@ var dl = V("", {
|
|
|
4511
4511
|
"label-sm": "span",
|
|
4512
4512
|
"caption-md": "span"
|
|
4513
4513
|
};
|
|
4514
|
-
function
|
|
4515
|
-
return /* @__PURE__ */ H(t ??
|
|
4514
|
+
function hl({ as: t, variant: n = "body-md-regular", className: r, children: i, ref: a, ...o }) {
|
|
4515
|
+
return /* @__PURE__ */ H(t ?? ml[n], {
|
|
4516
4516
|
ref: a,
|
|
4517
|
-
className: e(
|
|
4517
|
+
className: e(pl({ variant: n }), r),
|
|
4518
4518
|
...o,
|
|
4519
4519
|
children: i
|
|
4520
4520
|
});
|
|
4521
4521
|
}
|
|
4522
4522
|
//#endregion
|
|
4523
4523
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
4524
|
-
function
|
|
4524
|
+
function gl({ className: t, formats: n = [
|
|
4525
4525
|
"jpg",
|
|
4526
4526
|
"bmp",
|
|
4527
4527
|
"png",
|
|
4528
4528
|
"json"
|
|
4529
4529
|
], maxSize: r = "800MB", accept: i, title: a = "Drag and drop here", formatsLabel: o = "Formats", maxSizeLabel: s = "Max size", fileButtonLabel: c = "File", folderButtonLabel: l = "Folder", showFolder: u = !0, onFileSelect: d, onFolderSelect: f, ref: p, ...m }) {
|
|
4530
|
-
let [h, g] =
|
|
4530
|
+
let [h, g] = Y(!1), _ = J(null), v = J(null), y = J(0);
|
|
4531
4531
|
return /* @__PURE__ */ U("div", {
|
|
4532
4532
|
ref: p,
|
|
4533
4533
|
className: e("aivex:flex aivex:flex-col aivex:items-center aivex:justify-center aivex:p-[48px] aivex:rounded-[8px] aivex:border-2 aivex:border-dashed aivex:transition-colors", h ? "aivex:bg-[rgba(0,86,216,0.08)] aivex:border-[#99bef6]" : "aivex:border-[#c1c3d2]", t),
|
|
@@ -4549,7 +4549,7 @@ function ml({ className: t, formats: n = [
|
|
|
4549
4549
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-6",
|
|
4550
4550
|
children: [/* @__PURE__ */ U("div", {
|
|
4551
4551
|
className: "aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3",
|
|
4552
|
-
children: [/* @__PURE__ */ H(
|
|
4552
|
+
children: [/* @__PURE__ */ H(gt, {
|
|
4553
4553
|
size: 28,
|
|
4554
4554
|
color: "var(--aivex-icon-tertiary)"
|
|
4555
4555
|
}), /* @__PURE__ */ U("div", {
|
|
@@ -4572,20 +4572,20 @@ function ml({ className: t, formats: n = [
|
|
|
4572
4572
|
})]
|
|
4573
4573
|
}), /* @__PURE__ */ U("div", {
|
|
4574
4574
|
className: "aivex:flex aivex:gap-2",
|
|
4575
|
-
children: [/* @__PURE__ */ H(
|
|
4575
|
+
children: [/* @__PURE__ */ H(L, {
|
|
4576
4576
|
type: "button",
|
|
4577
4577
|
variant: "outline",
|
|
4578
4578
|
color: "secondary",
|
|
4579
4579
|
size: "md",
|
|
4580
|
-
startContent: /* @__PURE__ */ H(
|
|
4580
|
+
startContent: /* @__PURE__ */ H(ni, { size: 16 }),
|
|
4581
4581
|
onClick: () => _.current?.click(),
|
|
4582
4582
|
children: c
|
|
4583
|
-
}), u && /* @__PURE__ */ H(
|
|
4583
|
+
}), u && /* @__PURE__ */ H(L, {
|
|
4584
4584
|
type: "button",
|
|
4585
4585
|
variant: "outline",
|
|
4586
4586
|
color: "secondary",
|
|
4587
4587
|
size: "md",
|
|
4588
|
-
startContent: /* @__PURE__ */ H(
|
|
4588
|
+
startContent: /* @__PURE__ */ H(Fn, { size: 16 }),
|
|
4589
4589
|
onClick: () => v.current?.click(),
|
|
4590
4590
|
children: l
|
|
4591
4591
|
})]
|
|
@@ -4611,6 +4611,6 @@ function ml({ className: t, formats: n = [
|
|
|
4611
4611
|
});
|
|
4612
4612
|
}
|
|
4613
4613
|
//#endregion
|
|
4614
|
-
export {
|
|
4614
|
+
export { qr as AddFolderIcon, Xn as AddPointIcon, rn as AdjustIcon, Ar as AiSparkleGradientIcon, $r as AiSparkleIcon, hn as AiVDataIcon, ic as AiVDataLogo, ac as AiVDataSymbol, fr as AiVOpsIcon, oc as AiVOpsLogo, ui as AiViewIcon, cc as AiViewLogo, xn as AiVisionIcon, ec as AiVisionLogo, rc as AiVisionMLogo, nc as AiVisionSLogo, tc as AiVisionTLogo, Mn as AiVotIcon, sc as AiVotLogo, $s as AivexLogo, Ir as AlignCenterIcon, vr as AlignLeftIcon, Wn as AlignRightIcon, Rn as AngleIcon, Zt as ApertureIcon, gi as ArchiveIcon, Ai as ArrowCircleDownFilledIcon, un as ArrowCircleDownIcon, Ei as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, S as ArrowCircleRightFilledIcon, xi as ArrowCircleRightIcon, gt as ArrowCircleUpFilledIcon, M as ArrowCircleUpIcon, D as ArrowControlIcon, Ge as ArrowCornerLeftTopIcon, sr as ArrowDownIcon, f as ArrowElbowDownLeftIcon, nr as ArrowElbowDownRightIcon, Fe as ArrowFlowIcon, Be as ArrowGoingDownIcon, Xe as ArrowGoingUpIcon, P as ArrowLeftDownIcon, I as ArrowLeftIcon, Ae as ArrowLeftRightIcon, ot as ArrowLeftUpIcon, Fi as ArrowRightDownIcon, _ as ArrowRightIcon, Et as ArrowRightUpIcon, de as ArrowUpDownIcon, xt as ArrowUpIcon, jt as AssistantPolyIcon, oe as AssistantRectIcon, Te as AtIcon, a as Avatar, Ra as Badge, Hr as BarcodeIcon, be as BellIcon, Vt as BookmarkFilledIcon, It as BookmarkIcon, Kt as BoundingBoxIcon, Wa as BreadCrumb, tt as BrightIcon, L as Button, s as CSVFileIcon, $a as Calendar, jn as CalendarIcon, li as CameraIcon, to as Card, kr as CaretLineDownIcon, Qr as CaretLineLeftIcon, tr as CaretLineRightIcon, ln as CaretLineUpIcon, Fr as CaretUpDownIcon, ii as ChatIcon, bn as CheckCircleFilledIcon, _r as CheckCircleIcon, hi as CheckDoubleIcon, En as CheckIcon, ao as Checkbox, Ln as CheckboxCheckIcon, Vr as CheckboxIndeterminateIcon, lo as Chips, oo as ChipsCheckbox, Cr as CircleDashedIcon, Yn as CircleFilledIcon, Un as CircleOutlineIcon, nn as ClipIcon, bi as ClipboardIcon, Pi as CloseCircleFilledIcon, mn as CloseCircleIcon, z as CloseIcon, ht as ClosedEyesIcon, E as ClusterIcon, vo as Coachmark, Ti as CodeIcon, bt as CompareIcon, ne as ConfirmIcon, j as ConnectedIcon, Ye as ContrastIcon, dr as Copy1Icon, g as Copy2Icon, or as CopyIcon, ze as CpuIcon, We as CreditCardIcon, et as CropIcon, ae as CuttingIcon, ts as DataGrid, Bo as DataGridBody, Wo as DataGridCell, Mo as DataGridColumnSettings, Ko as DataGridEmpty, zo as DataGridHeader, Go as DataGridHeaderCell, Jo as DataGridInfiniteTrigger, qo as DataGridLoading, Lo as DataGridRoot, Vo as DataGridRow, Ro as DataGridViewport, ye as DatabaseIcon, Pe as DefectGeneratorIcon, ut as DeleteIcon, zi as DeletePointIcon, os as Dialog, x as DirectionDoubleDownIcon, At as DirectionDoubleLeftIcon, he as DirectionDoubleRightIcon, Tt as DirectionDoubleUpIcon, Ft as DirectionDownIcon, ue as DirectionLeftIcon, ke as DirectionRightIcon, Kr as DirectionUpIcon, we as DisconnectedIcon, Bi as Divider, Ba as Dot, Gt as DotIcon, Bt as DownloadIcon, Xt as DragHandleIcon, ls as DraggableScroll, ds as Drawer, at as EditIcon, d as EmptyIcon, kn as EnglishIcon, si as EqualIcon, Dr as EraserIcon, Xr as ExpandIcon, $n as ExperimentIcon, sn as ExportIcon, Nr as FailedIcon, hs as Field, _s as FieldContent, vs as FieldControl, ys as FieldDescription, bs as FieldError, gs as FieldLabel, ni as FileIcon, vn as FilterFilledIcon, hr as FilterIcon, Rs as FilterModal, pi as FitIcon, wn as FloppyDiskIcon, Fn as FolderCloseIcon, zr as FolderOpenIcon, xr as GalleryViewLargeIcon, qn as GalleryViewMediumIcon, Vn as GalleryViewSmallIcon, en as GitBranchIcon, vi as GitCommitIcon, Mi as GlobalIcon, fn as GpuIcon, Oi as GraphIcon, pt as GraphPieIcon, w as GraphScatterIcon, Ci as GridIcon, vt as GuideHandleIcon, N as GuideLineIcon, k as HamburgerIcon, qe as HandIcon, lr as HeadphonesIcon, m as HelpIcon, ir as HistoryIcon, Le as HomeIcon, He as HourglassIcon, o as IconButton, Qe as ImageBrokenIcon, re as ImageIcon, _e as ImagesIcon, Me as ImportIcon, ct as InfoFilledIcon, Li as InfoIcon, Bs as InputBase, R as InteractionLayer, y as KebabIcon, Ot as KeyDeleteIcon, pe as KeyIcon, Ct as KeyReturnIcon, Nt as KeyboardIcon, ce as KoreanIcon, De as LabelPointIcon, Wr as LanguageIcon, Se as LightbulbIcon, Ut as LightingFilledIcon, Rt as LightingIcon, Jt as LineIcon, rt as LineLinkIcon, l as LinkIcon, An as LinkedInIcon, ci as ListIcon, Or as ListPlayIcon, Zr as LockIcon, er as LoginIcon, cn as LogoutIcon, Pr as MagicWandIcon, ri as MailIcon, yn as MapIcon, gr as MapPinIcon, mi as MeatballIcon, Vi as Menu, dc as Messagebox, Tn as MicroscopeIcon, In as MinimizeIcon, Br as MinimizeWindowIcon, Sr as MinusCircleFilledIcon, Jn as MinusCircleIcon, Hn as MinusIcon, Ms as Modal, Ps as ModalBase, js as ModalSurface, tn as ModelIcon, yi as MonitorIcon, Ni as MouseClickLeftIcon, pn as MouseClickRightIcon, ki as MoveFolderIcon, mt as MoveIcon, T as MultiSelectionIcon, wi as MuteIcon, gc as Nav, hc as NavItem, pc as NavTile, yt as NewTabIcon, te as NodeflowIcon, A as NotEqualIcon, Je as OpenEyesIcon, ur as OpenedMailIcon, rs as Overlay, h as PackageIcon, ar as PageIcon, xc as Pagination, wc as Panel, Re as PasteIcon, Ue as PauseCircleFilledIcon, $e as PauseCircleIcon, ie as PauseIcon, ve as PenIcon, Ne as PencilIcon, lt as PhoneIcon, Ri as PinIcon, b as PipelineIcon, kt as PixelIcon, me as PlayCircleFilledIcon, wt as PlayCircleIcon, Pt as PlayIcon, le as PlayProgressIcon, Oe as PlusCircleFilledIcon, Gr as PlusCircleIcon, Ce as PlusIcon, Wt as PointEditIcon, zt as PointIcon, B as Popover, Oc as ProgressBar, Yt as PushPinFilledIcon, it as PushPinIcon, u as QuestionIcon, Mc as Radio, On as RectDashedIcon, oi as RectIcon, Er as RedoIcon, Yr as RefreshIcon, Qn as RepeatIcon, on as RepeatOnceIcon, Mr as RequestStatusIcon, ti as RocketIcon, _n as RotateRectIcon, mr as RotateRectOCRIcon, fi as RulerIcon, Cn as ScaleLeftBottomIcon, Pn as ScaleLeftTopIcon, Rr as ScaleRightBottomIcon, br as ScaleRightTopIcon, bo as ScrollArea, xo as ScrollBar, Kn as SearchIcon, Lc as SegmentedItem, Fc as SegmentedRoot, vc as SelectBox, _c as SelectButton, Bn as SendIcon, $t as SettingIcon, _i as ShapesIcon, zc as Shortcut, ji as ShrinkIcon, dn as ShuffleIcon, Di as SidebarIcon, ft as SimplificationIcon, yo as Skeleton, Hi as Slider, C as SmoothIcon, Si as SortAscendingIcon, _t as SortDescendingIcon, ee as SoundIcon, O as SpecificAreaIcon, Vc as Spinner, Ke as StarFilledIcon, cr as StarIcon, p as StopCircleFilledIcon, rr as StopCircleIcon, Ie as StopIcon, Ve as StorageIcon, Ze as StrokeIcon, Gi as Switch, qc as TabContent, Wc as TabList, Hc as TabRoot, Kc as TabTrigger, Zc as Table, tl as TableBody, el as TableCaption, il as TableCell, al as TableEmpty, $c as TableFooter, rl as TableHead, Qc as TableHeader, ol as TableLoading, nl as TableRow, Is as Tag, F as TagFilledIcon, ge as TagFilledOpacityIcon, je as TagIcon, sl as Tagbox, st as TargetIcon, Ii as TaskQueueIcon, v as TeamIcon, Dt as TempIcon, fe as TestIcon, St as TextBoldIcon, Mt as TextH1Icon, se as TextH2Icon, Ee as TextH3Icon, Ur as TextIcon, xe as TextItalicIcon, Ht as TextStrikethroughIcon, Lt as TextUnderlineIcon, cl as Textarea, ll as Textbox, qt as ThumbsDownFilledIcon, nt as ThumbsDownIcon, c as ThumbsUpIcon, Dn as TimeIcon, dl as Toast, fl as ToastToaster, co as ToggleButton, ai as ToolIcon, t as Tooltip, Tr as TriangleDashedIcon, hl as Typography, Jr as UndoIcon, Zn as UneditableIcon, an as UnlockIcon, jr as UnreadIcon, gl as UploadArea, ei as UploadIcon, gn as UserIcon, pr as WarningCircleFilledIcon, di as WarningCircleIcon, Sn as WarningTriangleFilledIcon, Nn as WarningTriangleIcon, Lr as WheelIcon, yr as WorkspaceIcon, Gn as Zoom100Icon, zn as ZoomInIcon, Qt as ZoomOutIcon, n as avatarVariants, Ia as badgeVariants, wr as buttonVariants, no as checkboxVariants, uo as chipsVariants, e as cn, Wi as dividerVariants, za as dotVariants, ms as fieldVariants, na as getCoreRowModel, ia as getExpandedRowModel, aa as getFacetedMinMaxValues, oa as getFacetedRowModel, sa as getFacetedUniqueValues, ca as getFilteredRowModel, la as getGroupedRowModel, ua as getPaginationRowModel, da as getSortedRowModel, r as iconButtonVariants, zs as inputContainerVariants, zs as inputWrapperVariants, Ui as isShortcutTarget, lc as messageboxVariants, mc as navItemVariants, fc as navTileVariants, ns as overlayVariants, kc as radioVariants, Fs as tagVariants, Fa as toast, ul as toastVariants, so as toggleButtonVariants, i as tooltipContentVariants, pl as typographyVariants };
|
|
4615
4615
|
|
|
4616
4616
|
//# sourceMappingURL=index.js.map
|