@aivex/ui 1.2.0-dev.12 → 1.2.0-dev.14
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/components/SelectButton/SelectButton.d.ts +18 -0
- package/dist/components/SelectButton/index.d.ts +2 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +3 -1
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +2 -0
- package/dist/components/ShapeEditor/_model/clipboard.d.ts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +11 -5
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +4 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +8 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +5 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +2 -3
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +6 -4
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +156 -137
- package/dist/index.js.map +1 -1
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +928 -788
- package/dist/shape-editor.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10761,14 +10761,49 @@ function sy(e, t) {
|
|
|
10761
10761
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
10762
10762
|
}
|
|
10763
10763
|
//#endregion
|
|
10764
|
+
//#region src/components/SelectButton/SelectButton.tsx
|
|
10765
|
+
function cy({ value: e, placeholder: t = "", size: n = "md", error: r = !1, open: i = !1, disabled: a, className: o, ref: s, onFocus: c, onBlur: l, type: u = "button", "aria-expanded": d, children: f, ...p }) {
|
|
10766
|
+
let [m, h] = K(!1), g = n === "sm" ? 16 : 20;
|
|
10767
|
+
return /* @__PURE__ */ q("button", {
|
|
10768
|
+
ref: s,
|
|
10769
|
+
type: u,
|
|
10770
|
+
disabled: a,
|
|
10771
|
+
"aria-expanded": d ?? i,
|
|
10772
|
+
onFocus: (e) => {
|
|
10773
|
+
h(!0), c?.(e);
|
|
10774
|
+
},
|
|
10775
|
+
onBlur: (e) => {
|
|
10776
|
+
h(!1), l?.(e);
|
|
10777
|
+
},
|
|
10778
|
+
className: z("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", a && "aivex:cursor-not-allowed", o),
|
|
10779
|
+
...p,
|
|
10780
|
+
children: /* @__PURE__ */ J(Om, {
|
|
10781
|
+
disabled: a,
|
|
10782
|
+
focused: i || m,
|
|
10783
|
+
error: r,
|
|
10784
|
+
filled: e != null && e !== "",
|
|
10785
|
+
size: n,
|
|
10786
|
+
layout: "inline",
|
|
10787
|
+
endContent: /* @__PURE__ */ q("span", {
|
|
10788
|
+
className: z("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", i && "aivex:rotate-180"),
|
|
10789
|
+
children: /* @__PURE__ */ q(de, { size: g })
|
|
10790
|
+
}),
|
|
10791
|
+
children: [/* @__PURE__ */ q("span", {
|
|
10792
|
+
className: z("aivex:flex-1 aivex:min-w-0 aivex:truncate", n === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", e != null && e !== "" ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
10793
|
+
children: e ?? t
|
|
10794
|
+
}), f]
|
|
10795
|
+
})
|
|
10796
|
+
});
|
|
10797
|
+
}
|
|
10798
|
+
//#endregion
|
|
10764
10799
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
10765
|
-
function
|
|
10766
|
-
let [f, p] = K(!1),
|
|
10800
|
+
function ly({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size: i = "md", onChange: a, renderValue: o, className: s, error: c, id: l, "aria-describedby": u, "aria-invalid": d }) {
|
|
10801
|
+
let [f, p] = K(!1), m = c || d === !0 || d === "true", h = (() => {
|
|
10767
10802
|
for (let n of e) {
|
|
10768
10803
|
let e = n.options.find((e) => e.value === t);
|
|
10769
10804
|
if (e) return o ? o(e, n) : e.label;
|
|
10770
10805
|
}
|
|
10771
|
-
})()
|
|
10806
|
+
})();
|
|
10772
10807
|
return /* @__PURE__ */ J(iv, {
|
|
10773
10808
|
value: t || void 0,
|
|
10774
10809
|
onValueChange: a,
|
|
@@ -10777,33 +10812,17 @@ function cy({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size:
|
|
|
10777
10812
|
onOpenChange: p,
|
|
10778
10813
|
children: [/* @__PURE__ */ q(ov, {
|
|
10779
10814
|
asChild: !0,
|
|
10780
|
-
"aria-invalid":
|
|
10781
|
-
children: /* @__PURE__ */ q(
|
|
10782
|
-
type: "button",
|
|
10815
|
+
"aria-invalid": m || void 0,
|
|
10816
|
+
children: /* @__PURE__ */ q(cy, {
|
|
10783
10817
|
id: l,
|
|
10784
10818
|
"aria-describedby": u,
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
filled: !!_,
|
|
10793
|
-
size: i,
|
|
10794
|
-
layout: "inline",
|
|
10795
|
-
endContent: /* @__PURE__ */ q(uv, {
|
|
10796
|
-
asChild: !0,
|
|
10797
|
-
children: /* @__PURE__ */ q("span", {
|
|
10798
|
-
className: z("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", f && "aivex:rotate-180"),
|
|
10799
|
-
children: /* @__PURE__ */ q(de, { size: v })
|
|
10800
|
-
})
|
|
10801
|
-
}),
|
|
10802
|
-
children: /* @__PURE__ */ q("span", {
|
|
10803
|
-
className: z("aivex:flex-1 aivex:min-w-0 aivex:truncate", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", _ ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
10804
|
-
children: _ ?? n
|
|
10805
|
-
})
|
|
10806
|
-
})
|
|
10819
|
+
value: h,
|
|
10820
|
+
placeholder: n,
|
|
10821
|
+
size: i,
|
|
10822
|
+
error: m,
|
|
10823
|
+
open: f,
|
|
10824
|
+
disabled: r,
|
|
10825
|
+
className: s
|
|
10807
10826
|
})
|
|
10808
10827
|
}), /* @__PURE__ */ q(mv, { children: /* @__PURE__ */ q(gv, {
|
|
10809
10828
|
position: "popper",
|
|
@@ -10834,7 +10853,7 @@ function cy({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size:
|
|
|
10834
10853
|
}
|
|
10835
10854
|
//#endregion
|
|
10836
10855
|
//#region src/components/Pagination/Pagination.tsx
|
|
10837
|
-
function
|
|
10856
|
+
function uy({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
10838
10857
|
return /* @__PURE__ */ J("button", {
|
|
10839
10858
|
type: "button",
|
|
10840
10859
|
"aria-label": n,
|
|
@@ -10844,7 +10863,7 @@ function ly({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
|
10844
10863
|
children: [/* @__PURE__ */ q(_r, { variant: "default" }), r]
|
|
10845
10864
|
});
|
|
10846
10865
|
}
|
|
10847
|
-
function
|
|
10866
|
+
function dy({ page: e, isActive: t, disabled: n, onClick: r }) {
|
|
10848
10867
|
return /* @__PURE__ */ J("button", {
|
|
10849
10868
|
type: "button",
|
|
10850
10869
|
"aria-label": `Page ${e}`,
|
|
@@ -10858,7 +10877,7 @@ function uy({ page: e, isActive: t, disabled: n, onClick: r }) {
|
|
|
10858
10877
|
})]
|
|
10859
10878
|
});
|
|
10860
10879
|
}
|
|
10861
|
-
function
|
|
10880
|
+
function fy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pageSizeOptions: a, onChange: o, onPageSizeChange: s, ref: c, ...l }) {
|
|
10862
10881
|
let u = G(void 0);
|
|
10863
10882
|
t != null && (u.current = t);
|
|
10864
10883
|
let d = t ?? u.current;
|
|
@@ -10878,12 +10897,12 @@ function dy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
10878
10897
|
children: [
|
|
10879
10898
|
/* @__PURE__ */ J("div", {
|
|
10880
10899
|
className: "aivex:flex aivex:gap-2",
|
|
10881
|
-
children: [/* @__PURE__ */ q(
|
|
10900
|
+
children: [/* @__PURE__ */ q(uy, {
|
|
10882
10901
|
"aria-label": "First page",
|
|
10883
10902
|
disabled: i || y,
|
|
10884
10903
|
onClick: () => o(1),
|
|
10885
10904
|
children: /* @__PURE__ */ q(Ki, { size: 16 })
|
|
10886
|
-
}), /* @__PURE__ */ q(
|
|
10905
|
+
}), /* @__PURE__ */ q(uy, {
|
|
10887
10906
|
"aria-label": "Previous page group",
|
|
10888
10907
|
disabled: i || y,
|
|
10889
10908
|
onClick: () => o(g - 10),
|
|
@@ -10892,7 +10911,7 @@ function dy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
10892
10911
|
}),
|
|
10893
10912
|
/* @__PURE__ */ q("div", {
|
|
10894
10913
|
className: "aivex:flex aivex:gap-2",
|
|
10895
|
-
children: v.map((e) => /* @__PURE__ */ q(
|
|
10914
|
+
children: v.map((e) => /* @__PURE__ */ q(dy, {
|
|
10896
10915
|
page: e,
|
|
10897
10916
|
isActive: e === p,
|
|
10898
10917
|
disabled: i,
|
|
@@ -10901,12 +10920,12 @@ function dy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
10901
10920
|
}),
|
|
10902
10921
|
/* @__PURE__ */ J("div", {
|
|
10903
10922
|
className: "aivex:flex aivex:gap-2",
|
|
10904
|
-
children: [/* @__PURE__ */ q(
|
|
10923
|
+
children: [/* @__PURE__ */ q(uy, {
|
|
10905
10924
|
"aria-label": "Next page group",
|
|
10906
10925
|
disabled: i || b,
|
|
10907
10926
|
onClick: () => o(_ + 1),
|
|
10908
10927
|
children: /* @__PURE__ */ q(Lt, { size: 16 })
|
|
10909
|
-
}), /* @__PURE__ */ q(
|
|
10928
|
+
}), /* @__PURE__ */ q(uy, {
|
|
10910
10929
|
"aria-label": "Last page",
|
|
10911
10930
|
disabled: i || b,
|
|
10912
10931
|
onClick: () => o(f),
|
|
@@ -10917,7 +10936,7 @@ function dy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
10917
10936
|
}),
|
|
10918
10937
|
/* @__PURE__ */ q("div", {
|
|
10919
10938
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
10920
|
-
children: a && /* @__PURE__ */ q(
|
|
10939
|
+
children: a && /* @__PURE__ */ q(ly, {
|
|
10921
10940
|
size: "sm",
|
|
10922
10941
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
10923
10942
|
value: String(r),
|
|
@@ -10934,21 +10953,21 @@ function dy({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
10934
10953
|
}
|
|
10935
10954
|
//#endregion
|
|
10936
10955
|
//#region src/components/Panel/Panel.tsx
|
|
10937
|
-
var
|
|
10956
|
+
var py = {
|
|
10938
10957
|
left: "aivex:left-0 aivex:border-r",
|
|
10939
10958
|
right: "aivex:right-0 aivex:border-l"
|
|
10940
|
-
},
|
|
10959
|
+
}, my = {
|
|
10941
10960
|
md: "aivex:w-[384px]",
|
|
10942
10961
|
lg: "aivex:w-[450px]"
|
|
10943
10962
|
};
|
|
10944
|
-
function
|
|
10963
|
+
function hy({ open: e, onOpenChange: t, title: n, children: r, headerAction: i, side: a = "right", size: o = "md", ref: s }) {
|
|
10945
10964
|
return /* @__PURE__ */ q(Th, {
|
|
10946
10965
|
open: e,
|
|
10947
10966
|
onOpenChange: t,
|
|
10948
10967
|
children: /* @__PURE__ */ J(Dh, { children: [/* @__PURE__ */ q(Oh, { className: "aivex:panel-overlay aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ J(kh, {
|
|
10949
10968
|
ref: s,
|
|
10950
10969
|
"data-side": a,
|
|
10951
|
-
className: z("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",
|
|
10970
|
+
className: z("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", py[a], my[o]),
|
|
10952
10971
|
onKeyDown: (e) => {
|
|
10953
10972
|
e.stopPropagation();
|
|
10954
10973
|
},
|
|
@@ -10978,14 +10997,14 @@ function my({ open: e, onOpenChange: t, title: n, children: r, headerAction: i,
|
|
|
10978
10997
|
}
|
|
10979
10998
|
//#endregion
|
|
10980
10999
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
10981
|
-
var
|
|
11000
|
+
var gy = {
|
|
10982
11001
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
10983
11002
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
10984
11003
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
10985
11004
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
10986
|
-
},
|
|
10987
|
-
function
|
|
10988
|
-
let u =
|
|
11005
|
+
}, _y = (e) => typeof e == "number" ? `${e}px` : e, vy = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
11006
|
+
function yy({ className: e, current: t, total: n, color: r = "success", width: i = "100%", height: a = 6, isProgressing: o = !1, ref: s, style: c, ...l }) {
|
|
11007
|
+
let u = vy(t, n), d = _y(i), f = _y(a), p = gy[r], m = o ? {
|
|
10989
11008
|
width: "100%",
|
|
10990
11009
|
backgroundImage: `linear-gradient(90deg, ${p.fill} 0%, color-mix(in srgb, ${p.fill}, #fff 35%) 50%, ${p.fill} 100%)`
|
|
10991
11010
|
} : {
|
|
@@ -11013,20 +11032,20 @@ function vy({ className: e, current: t, total: n, color: r = "success", width: i
|
|
|
11013
11032
|
}
|
|
11014
11033
|
//#endregion
|
|
11015
11034
|
//#region src/components/Radio/Radio.tsx
|
|
11016
|
-
var
|
|
11035
|
+
var by = ga("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", {
|
|
11017
11036
|
variants: { size: {
|
|
11018
11037
|
sm: "aivex:w-4 aivex:h-4",
|
|
11019
11038
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
11020
11039
|
} },
|
|
11021
11040
|
defaultVariants: { size: "md" }
|
|
11022
|
-
}),
|
|
11041
|
+
}), xy = {
|
|
11023
11042
|
sm: "aivex:w-5 aivex:h-5",
|
|
11024
11043
|
md: "aivex:w-6 aivex:h-6"
|
|
11025
|
-
},
|
|
11044
|
+
}, Sy = {
|
|
11026
11045
|
sm: "aivex:h-5",
|
|
11027
11046
|
md: "aivex:h-6"
|
|
11028
11047
|
};
|
|
11029
|
-
function
|
|
11048
|
+
function Cy({ className: e, label: t, size: n = "md", disabled: r, checked: i, id: a, ref: o, ...s }) {
|
|
11030
11049
|
let c = n ?? "md", l = {
|
|
11031
11050
|
sm: "aivex:w-2 aivex:h-2",
|
|
11032
11051
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
@@ -11034,7 +11053,7 @@ function Sy({ className: e, label: t, size: n = "md", disabled: r, checked: i, i
|
|
|
11034
11053
|
return /* @__PURE__ */ J("span", {
|
|
11035
11054
|
className: z("aivex:inline-flex aivex:items-center aivex:gap-md", r && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
11036
11055
|
children: [/* @__PURE__ */ J("span", {
|
|
11037
|
-
className: z("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
11056
|
+
className: z("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", xy[c]),
|
|
11038
11057
|
children: [
|
|
11039
11058
|
/* @__PURE__ */ q("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" }),
|
|
11040
11059
|
/* @__PURE__ */ q("input", {
|
|
@@ -11043,26 +11062,26 @@ function Sy({ className: e, label: t, size: n = "md", disabled: r, checked: i, i
|
|
|
11043
11062
|
type: "radio",
|
|
11044
11063
|
disabled: r,
|
|
11045
11064
|
checked: i,
|
|
11046
|
-
className: z(
|
|
11065
|
+
className: z(by({ size: c }), e),
|
|
11047
11066
|
...s
|
|
11048
11067
|
}),
|
|
11049
11068
|
/* @__PURE__ */ q("span", { className: z("aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100", l) })
|
|
11050
11069
|
]
|
|
11051
11070
|
}), t && /* @__PURE__ */ q("label", {
|
|
11052
11071
|
htmlFor: d,
|
|
11053
|
-
className: z("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", r && "aivex:cursor-not-allowed",
|
|
11072
|
+
className: z("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", r && "aivex:cursor-not-allowed", Sy[c]),
|
|
11054
11073
|
children: t
|
|
11055
11074
|
})]
|
|
11056
11075
|
});
|
|
11057
11076
|
}
|
|
11058
11077
|
//#endregion
|
|
11059
11078
|
//#region node_modules/.pnpm/@radix-ui+react-toggle@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_5aafffea7332d28773a4c35f8d29c0fc/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
11060
|
-
var
|
|
11079
|
+
var wy = "Toggle", Ty = B.forwardRef((e, t) => {
|
|
11061
11080
|
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = Tn({
|
|
11062
11081
|
prop: n,
|
|
11063
11082
|
onChange: i,
|
|
11064
11083
|
defaultProp: r ?? !1,
|
|
11065
|
-
caller:
|
|
11084
|
+
caller: wy
|
|
11066
11085
|
});
|
|
11067
11086
|
return /* @__PURE__ */ q(R.button, {
|
|
11068
11087
|
type: "button",
|
|
@@ -11076,67 +11095,67 @@ var Cy = "Toggle", wy = B.forwardRef((e, t) => {
|
|
|
11076
11095
|
})
|
|
11077
11096
|
});
|
|
11078
11097
|
});
|
|
11079
|
-
|
|
11098
|
+
Ty.displayName = wy;
|
|
11080
11099
|
//#endregion
|
|
11081
11100
|
//#region node_modules/.pnpm/@radix-ui+react-toggle-group@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@type_fed8a0bacc2c1488680f0197ab4d1eba/node_modules/@radix-ui/react-toggle-group/dist/index.mjs
|
|
11082
|
-
var
|
|
11101
|
+
var Ey = "ToggleGroup", [Dy, Oy] = Ne(Ey, [da]), ky = da(), Ay = V.forwardRef((e, t) => {
|
|
11083
11102
|
let { type: n, ...r } = e;
|
|
11084
|
-
if (n === "single") return /* @__PURE__ */ q(
|
|
11103
|
+
if (n === "single") return /* @__PURE__ */ q(Ny, {
|
|
11085
11104
|
...r,
|
|
11086
11105
|
ref: t
|
|
11087
11106
|
});
|
|
11088
|
-
if (n === "multiple") return /* @__PURE__ */ q(
|
|
11107
|
+
if (n === "multiple") return /* @__PURE__ */ q(Py, {
|
|
11089
11108
|
...r,
|
|
11090
11109
|
ref: t
|
|
11091
11110
|
});
|
|
11092
|
-
throw Error(`Missing prop \`type\` expected on \`${
|
|
11111
|
+
throw Error(`Missing prop \`type\` expected on \`${Ey}\``);
|
|
11093
11112
|
});
|
|
11094
|
-
|
|
11095
|
-
var [
|
|
11113
|
+
Ay.displayName = Ey;
|
|
11114
|
+
var [jy, My] = Dy(Ey), Ny = V.forwardRef((e, t) => {
|
|
11096
11115
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = Tn({
|
|
11097
11116
|
prop: n,
|
|
11098
11117
|
defaultProp: r ?? "",
|
|
11099
11118
|
onChange: i,
|
|
11100
|
-
caller:
|
|
11119
|
+
caller: Ey
|
|
11101
11120
|
});
|
|
11102
|
-
return /* @__PURE__ */ q(
|
|
11121
|
+
return /* @__PURE__ */ q(jy, {
|
|
11103
11122
|
scope: e.__scopeToggleGroup,
|
|
11104
11123
|
type: "single",
|
|
11105
11124
|
value: V.useMemo(() => o ? [o] : [], [o]),
|
|
11106
11125
|
onItemActivate: s,
|
|
11107
11126
|
onItemDeactivate: V.useCallback(() => s(""), [s]),
|
|
11108
|
-
children: /* @__PURE__ */ q(
|
|
11127
|
+
children: /* @__PURE__ */ q(Ly, {
|
|
11109
11128
|
...a,
|
|
11110
11129
|
ref: t
|
|
11111
11130
|
})
|
|
11112
11131
|
});
|
|
11113
|
-
}),
|
|
11132
|
+
}), Py = V.forwardRef((e, t) => {
|
|
11114
11133
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = Tn({
|
|
11115
11134
|
prop: n,
|
|
11116
11135
|
defaultProp: r ?? [],
|
|
11117
11136
|
onChange: i,
|
|
11118
|
-
caller:
|
|
11137
|
+
caller: Ey
|
|
11119
11138
|
}), c = V.useCallback((e) => s((t = []) => [...t, e]), [s]), l = V.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
11120
|
-
return /* @__PURE__ */ q(
|
|
11139
|
+
return /* @__PURE__ */ q(jy, {
|
|
11121
11140
|
scope: e.__scopeToggleGroup,
|
|
11122
11141
|
type: "multiple",
|
|
11123
11142
|
value: o,
|
|
11124
11143
|
onItemActivate: c,
|
|
11125
11144
|
onItemDeactivate: l,
|
|
11126
|
-
children: /* @__PURE__ */ q(
|
|
11145
|
+
children: /* @__PURE__ */ q(Ly, {
|
|
11127
11146
|
...a,
|
|
11128
11147
|
ref: t
|
|
11129
11148
|
})
|
|
11130
11149
|
});
|
|
11131
11150
|
});
|
|
11132
|
-
|
|
11133
|
-
var [
|
|
11134
|
-
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: i = !0, orientation: a, dir: o, loop: s = !0, ...c } = e, l =
|
|
11151
|
+
Ay.displayName = Ey;
|
|
11152
|
+
var [Fy, Iy] = Dy(Ey), Ly = V.forwardRef((e, t) => {
|
|
11153
|
+
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: i = !0, orientation: a, dir: o, loop: s = !0, ...c } = e, l = ky(n), u = $i(o), d = {
|
|
11135
11154
|
role: "group",
|
|
11136
11155
|
dir: u,
|
|
11137
11156
|
...c
|
|
11138
11157
|
};
|
|
11139
|
-
return /* @__PURE__ */ q(
|
|
11158
|
+
return /* @__PURE__ */ q(Fy, {
|
|
11140
11159
|
scope: n,
|
|
11141
11160
|
rovingFocus: i,
|
|
11142
11161
|
disabled: r,
|
|
@@ -11155,8 +11174,8 @@ var [Py, Fy] = Ey(Ty), Iy = V.forwardRef((e, t) => {
|
|
|
11155
11174
|
ref: t
|
|
11156
11175
|
})
|
|
11157
11176
|
});
|
|
11158
|
-
}),
|
|
11159
|
-
let n =
|
|
11177
|
+
}), Ry = "ToggleGroupItem", zy = V.forwardRef((e, t) => {
|
|
11178
|
+
let n = My(Ry, e.__scopeToggleGroup), r = Iy(Ry, e.__scopeToggleGroup), i = ky(e.__scopeToggleGroup), a = n.value.includes(e.value), o = r.disabled || e.disabled, s = {
|
|
11160
11179
|
...e,
|
|
11161
11180
|
pressed: a,
|
|
11162
11181
|
disabled: o
|
|
@@ -11167,23 +11186,23 @@ var [Py, Fy] = Ey(Ty), Iy = V.forwardRef((e, t) => {
|
|
|
11167
11186
|
focusable: !o,
|
|
11168
11187
|
active: a,
|
|
11169
11188
|
ref: c,
|
|
11170
|
-
children: /* @__PURE__ */ q(
|
|
11189
|
+
children: /* @__PURE__ */ q(By, {
|
|
11171
11190
|
...s,
|
|
11172
11191
|
ref: t
|
|
11173
11192
|
})
|
|
11174
|
-
}) : /* @__PURE__ */ q(
|
|
11193
|
+
}) : /* @__PURE__ */ q(By, {
|
|
11175
11194
|
...s,
|
|
11176
11195
|
ref: t
|
|
11177
11196
|
});
|
|
11178
11197
|
});
|
|
11179
|
-
|
|
11180
|
-
var
|
|
11181
|
-
let { __scopeToggleGroup: n, value: r, ...i } = e, a =
|
|
11198
|
+
zy.displayName = Ry;
|
|
11199
|
+
var By = V.forwardRef((e, t) => {
|
|
11200
|
+
let { __scopeToggleGroup: n, value: r, ...i } = e, a = My(Ry, n), o = {
|
|
11182
11201
|
role: "radio",
|
|
11183
11202
|
"aria-checked": e.pressed,
|
|
11184
11203
|
"aria-pressed": void 0
|
|
11185
11204
|
};
|
|
11186
|
-
return /* @__PURE__ */ q(
|
|
11205
|
+
return /* @__PURE__ */ q(Ty, {
|
|
11187
11206
|
...a.type === "single" ? o : void 0,
|
|
11188
11207
|
...i,
|
|
11189
11208
|
ref: t,
|
|
@@ -11191,7 +11210,7 @@ var zy = V.forwardRef((e, t) => {
|
|
|
11191
11210
|
e ? a.onItemActivate(r) : a.onItemDeactivate(r);
|
|
11192
11211
|
}
|
|
11193
11212
|
});
|
|
11194
|
-
}),
|
|
11213
|
+
}), Vy = Ay, Hy = zy, Uy = ya({ size: "md" }), Wy = {
|
|
11195
11214
|
sm: "aivex:h-7",
|
|
11196
11215
|
md: "aivex:h-8",
|
|
11197
11216
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -11199,27 +11218,27 @@ var zy = V.forwardRef((e, t) => {
|
|
|
11199
11218
|
"icon-md": "aivex:h-8",
|
|
11200
11219
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
11201
11220
|
};
|
|
11202
|
-
function
|
|
11221
|
+
function Gy({ className: e, size: t = "md", value: n, defaultValue: r, onValueChange: i, fullWidth: a, children: o, ref: s, ...c }) {
|
|
11203
11222
|
let l = n !== void 0, [u, d] = K(r ?? n ?? ""), f = l ? n : u;
|
|
11204
|
-
return /* @__PURE__ */ q(
|
|
11223
|
+
return /* @__PURE__ */ q(Uy.Provider, {
|
|
11205
11224
|
value: {
|
|
11206
11225
|
size: t,
|
|
11207
11226
|
fullWidth: a
|
|
11208
11227
|
},
|
|
11209
|
-
children: /* @__PURE__ */ q(
|
|
11228
|
+
children: /* @__PURE__ */ q(Vy, {
|
|
11210
11229
|
ref: s,
|
|
11211
11230
|
type: "single",
|
|
11212
11231
|
value: f,
|
|
11213
11232
|
onValueChange: (e) => {
|
|
11214
11233
|
e && (l || d(e), i?.(e));
|
|
11215
11234
|
},
|
|
11216
|
-
className: z("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", a ? "aivex:w-full" : "aivex:w-fit",
|
|
11235
|
+
className: z("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", a ? "aivex:w-full" : "aivex:w-fit", Wy[t], e),
|
|
11217
11236
|
...c,
|
|
11218
11237
|
children: o
|
|
11219
11238
|
})
|
|
11220
11239
|
});
|
|
11221
11240
|
}
|
|
11222
|
-
var
|
|
11241
|
+
var Ky = {
|
|
11223
11242
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
11224
11243
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
11225
11244
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -11227,41 +11246,41 @@ var Gy = {
|
|
|
11227
11246
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
11228
11247
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
11229
11248
|
};
|
|
11230
|
-
function
|
|
11231
|
-
let { size: i, fullWidth: a } = Ca(
|
|
11232
|
-
return /* @__PURE__ */ q(
|
|
11249
|
+
function qy({ className: e, children: t, ref: n, ...r }) {
|
|
11250
|
+
let { size: i, fullWidth: a } = Ca(Uy);
|
|
11251
|
+
return /* @__PURE__ */ q(Hy, {
|
|
11233
11252
|
ref: n,
|
|
11234
|
-
className: z("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",
|
|
11253
|
+
className: z("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", Ky[i], a && "aivex:flex-1", e),
|
|
11235
11254
|
...r,
|
|
11236
11255
|
children: t
|
|
11237
11256
|
});
|
|
11238
11257
|
}
|
|
11239
11258
|
//#endregion
|
|
11240
11259
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
11241
|
-
function
|
|
11260
|
+
function Jy(e) {
|
|
11242
11261
|
return typeof e != "string";
|
|
11243
11262
|
}
|
|
11244
|
-
function
|
|
11263
|
+
function Yy({ className: e, keys: t, ref: n, ...r }) {
|
|
11245
11264
|
return /* @__PURE__ */ q("span", {
|
|
11246
11265
|
ref: n,
|
|
11247
11266
|
className: z("aivex:inline-flex aivex:items-start aivex:gap-xs", e),
|
|
11248
11267
|
...r,
|
|
11249
11268
|
children: t.map((e, t) => /* @__PURE__ */ q("kbd", {
|
|
11250
|
-
className: z("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",
|
|
11269
|
+
className: z("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", Jy(e) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
11251
11270
|
children: e
|
|
11252
11271
|
}, t))
|
|
11253
11272
|
});
|
|
11254
11273
|
}
|
|
11255
11274
|
//#endregion
|
|
11256
11275
|
//#region node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_5e386818c1a7a76f48d01b1b7ff302b8/node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
11257
|
-
var
|
|
11276
|
+
var Xy = "Tabs", [Zy, Qy] = Ne(Xy, [da]), $y = da(), [eb, tb] = Zy(Xy), nb = B.forwardRef((e, t) => {
|
|
11258
11277
|
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = $i(s), [d, f] = Tn({
|
|
11259
11278
|
prop: r,
|
|
11260
11279
|
onChange: i,
|
|
11261
11280
|
defaultProp: a ?? "",
|
|
11262
|
-
caller:
|
|
11281
|
+
caller: Xy
|
|
11263
11282
|
});
|
|
11264
|
-
return /* @__PURE__ */ q(
|
|
11283
|
+
return /* @__PURE__ */ q(eb, {
|
|
11265
11284
|
scope: n,
|
|
11266
11285
|
baseId: Ei(),
|
|
11267
11286
|
value: d,
|
|
@@ -11277,12 +11296,12 @@ var Yy = "Tabs", [Xy, Zy] = Ne(Yy, [da]), Qy = da(), [$y, eb] = Xy(Yy), tb = B.f
|
|
|
11277
11296
|
})
|
|
11278
11297
|
});
|
|
11279
11298
|
});
|
|
11280
|
-
|
|
11281
|
-
var
|
|
11282
|
-
let { __scopeTabs: n, loop: r = !0, ...i } = e, a =
|
|
11299
|
+
nb.displayName = Xy;
|
|
11300
|
+
var rb = "TabsList", ib = B.forwardRef((e, t) => {
|
|
11301
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = tb(rb, n);
|
|
11283
11302
|
return /* @__PURE__ */ q(ra, {
|
|
11284
11303
|
asChild: !0,
|
|
11285
|
-
|
|
11304
|
+
...$y(n),
|
|
11286
11305
|
orientation: a.orientation,
|
|
11287
11306
|
dir: a.dir,
|
|
11288
11307
|
loop: r,
|
|
@@ -11294,9 +11313,9 @@ var nb = "TabsList", rb = B.forwardRef((e, t) => {
|
|
|
11294
11313
|
})
|
|
11295
11314
|
});
|
|
11296
11315
|
});
|
|
11297
|
-
|
|
11298
|
-
var
|
|
11299
|
-
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o =
|
|
11316
|
+
ib.displayName = rb;
|
|
11317
|
+
var ab = "TabsTrigger", ob = B.forwardRef((e, t) => {
|
|
11318
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = tb(ab, n), s = $y(n), c = lb(o.baseId, r), l = ub(o.baseId, r), u = r === o.value;
|
|
11300
11319
|
return /* @__PURE__ */ q(na, {
|
|
11301
11320
|
asChild: !0,
|
|
11302
11321
|
...s,
|
|
@@ -11326,9 +11345,9 @@ var ib = "TabsTrigger", ab = B.forwardRef((e, t) => {
|
|
|
11326
11345
|
})
|
|
11327
11346
|
});
|
|
11328
11347
|
});
|
|
11329
|
-
|
|
11330
|
-
var
|
|
11331
|
-
let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s =
|
|
11348
|
+
ob.displayName = ab;
|
|
11349
|
+
var sb = "TabsContent", cb = B.forwardRef((e, t) => {
|
|
11350
|
+
let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = tb(sb, n), c = lb(s.baseId, r), l = ub(s.baseId, r), u = r === s.value, d = B.useRef(u);
|
|
11332
11351
|
return B.useEffect(() => {
|
|
11333
11352
|
let e = requestAnimationFrame(() => d.current = !1);
|
|
11334
11353
|
return () => cancelAnimationFrame(e);
|
|
@@ -11352,41 +11371,41 @@ var ob = "TabsContent", sb = B.forwardRef((e, t) => {
|
|
|
11352
11371
|
})
|
|
11353
11372
|
});
|
|
11354
11373
|
});
|
|
11355
|
-
|
|
11356
|
-
function
|
|
11374
|
+
cb.displayName = sb;
|
|
11375
|
+
function lb(e, t) {
|
|
11357
11376
|
return `${e}-trigger-${t}`;
|
|
11358
11377
|
}
|
|
11359
|
-
function
|
|
11378
|
+
function ub(e, t) {
|
|
11360
11379
|
return `${e}-content-${t}`;
|
|
11361
11380
|
}
|
|
11362
|
-
var
|
|
11381
|
+
var db = nb, fb = ib, pb = ob, mb = cb;
|
|
11363
11382
|
//#endregion
|
|
11364
11383
|
//#region src/components/Tab/Tab.tsx
|
|
11365
|
-
function
|
|
11366
|
-
return /* @__PURE__ */ q(
|
|
11384
|
+
function hb({ className: e, ref: t, ...n }) {
|
|
11385
|
+
return /* @__PURE__ */ q(db, {
|
|
11367
11386
|
ref: t,
|
|
11368
11387
|
className: z("aivex:flex aivex:flex-col", e),
|
|
11369
11388
|
...n
|
|
11370
11389
|
});
|
|
11371
11390
|
}
|
|
11372
|
-
var
|
|
11373
|
-
function
|
|
11374
|
-
return /* @__PURE__ */ q(
|
|
11391
|
+
var gb = "aivex:flex aivex:items-center aivex:gap-3 aivex:border-b aivex:border-border-default";
|
|
11392
|
+
function _b({ className: e, ref: t, ...n }) {
|
|
11393
|
+
return /* @__PURE__ */ q(fb, {
|
|
11375
11394
|
ref: t,
|
|
11376
|
-
className: z(
|
|
11395
|
+
className: z(gb, e),
|
|
11377
11396
|
...n
|
|
11378
11397
|
});
|
|
11379
11398
|
}
|
|
11380
|
-
var
|
|
11381
|
-
function
|
|
11382
|
-
return /* @__PURE__ */ q(
|
|
11399
|
+
var vb = "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-body-lg-medium 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-['']";
|
|
11400
|
+
function yb({ className: e, ref: t, ...n }) {
|
|
11401
|
+
return /* @__PURE__ */ q(pb, {
|
|
11383
11402
|
ref: t,
|
|
11384
|
-
className: z(
|
|
11403
|
+
className: z(vb, e),
|
|
11385
11404
|
...n
|
|
11386
11405
|
});
|
|
11387
11406
|
}
|
|
11388
|
-
function
|
|
11389
|
-
return /* @__PURE__ */ q(
|
|
11407
|
+
function bb({ className: e, ref: t, ...n }) {
|
|
11408
|
+
return /* @__PURE__ */ q(mb, {
|
|
11390
11409
|
ref: t,
|
|
11391
11410
|
className: z("aivex:flex-1 aivex:outline-none", e),
|
|
11392
11411
|
...n
|
|
@@ -11394,7 +11413,7 @@ function yb({ className: e, ref: t, ...n }) {
|
|
|
11394
11413
|
}
|
|
11395
11414
|
//#endregion
|
|
11396
11415
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
11397
|
-
function
|
|
11416
|
+
function xb({ className: e, size: t = "sm", error: n, disabled: r, readOnly: i, value: a, defaultValue: o = [], onChange: s, parsePaste: c, validate: l, renderTag: u, placeholder: d, id: f, ref: p, onBlur: m, onCompositionEnd: h, onCompositionStart: g, onFocus: _, onKeyDown: v, onPaste: y, ...b }) {
|
|
11398
11417
|
let x = a !== void 0, [S, C] = K(o), w = x ? a : S, [T, E] = K(""), D = G(!1), [ee, O] = K(!1), k = ee && !i, te = b["aria-invalid"], ne = l ? w.some((e) => !l(e)) : !1, A = n || te === !0 || te === "true" || ne, re = (e) => {
|
|
11399
11418
|
let t = e.trim();
|
|
11400
11419
|
if (!t) return;
|
|
@@ -11470,7 +11489,7 @@ function bb({ className: e, size: t = "sm", error: n, disabled: r, readOnly: i,
|
|
|
11470
11489
|
}
|
|
11471
11490
|
//#endregion
|
|
11472
11491
|
//#region src/components/Textarea/Textarea.tsx
|
|
11473
|
-
function
|
|
11492
|
+
function Sb({ className: e, error: t, disabled: n, size: r = "md", minHeight: i, fixedHeight: a, startContent: o, endContent: s, id: c, ref: l, onFocus: u, onBlur: d, maxCount: f, value: p, defaultValue: m, onChange: h, ...g }) {
|
|
11474
11493
|
let [_, v] = K(!1), y = f != null, b = (e) => e == null ? 0 : String(e).length, [x, S] = K(() => b(p ?? m)), C = p == null ? x : b(p), w = g["aria-invalid"], T = !!(t || w === !0 || w === "true") || y && C > f, E = (e) => {
|
|
11475
11494
|
S(e.target.value.length), h?.(e);
|
|
11476
11495
|
}, D = {};
|
|
@@ -11517,7 +11536,7 @@ function xb({ className: e, error: t, disabled: n, size: r = "md", minHeight: i,
|
|
|
11517
11536
|
}
|
|
11518
11537
|
//#endregion
|
|
11519
11538
|
//#region src/components/Textbox/Textbox.tsx
|
|
11520
|
-
function
|
|
11539
|
+
function Cb({ className: e, error: t, disabled: n, clearable: r, startContent: i, endContent: a, size: o = "md", id: s, ref: c, value: l, defaultValue: u, onChange: d, onFocus: f, onBlur: p, ...m }) {
|
|
11521
11540
|
let [h, g] = K(!1), [_, v] = K(typeof u == "string" ? u : u?.toString() ?? ""), y = l !== void 0, b = y ? String(l ?? "") : _, x = r && b.length > 0, S = (e) => {
|
|
11522
11541
|
y || v(e.target.value), d?.(e);
|
|
11523
11542
|
}, C = /* @__PURE__ */ J(Da, { children: [a, x && /* @__PURE__ */ q(Qi, {
|
|
@@ -11560,7 +11579,7 @@ function Sb({ className: e, error: t, disabled: n, clearable: r, startContent: i
|
|
|
11560
11579
|
}
|
|
11561
11580
|
//#endregion
|
|
11562
11581
|
//#region src/components/Toast/Toast.tsx
|
|
11563
|
-
var
|
|
11582
|
+
var wb = ga("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-md", {
|
|
11564
11583
|
variants: { type: {
|
|
11565
11584
|
default: "",
|
|
11566
11585
|
success: "",
|
|
@@ -11568,12 +11587,12 @@ var Cb = ga("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aiv
|
|
|
11568
11587
|
} },
|
|
11569
11588
|
defaultVariants: { type: "default" }
|
|
11570
11589
|
});
|
|
11571
|
-
function
|
|
11590
|
+
function Tb({ className: e, type: t = "default", open: n = !0, message: r, onClose: i, ref: a, ...o }) {
|
|
11572
11591
|
return n ? /* @__PURE__ */ J("div", {
|
|
11573
11592
|
ref: a,
|
|
11574
11593
|
role: "status",
|
|
11575
11594
|
"aria-live": "polite",
|
|
11576
|
-
className: z(
|
|
11595
|
+
className: z(wb({ type: t }), e),
|
|
11577
11596
|
...o,
|
|
11578
11597
|
children: [/* @__PURE__ */ q("p", {
|
|
11579
11598
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
@@ -11587,7 +11606,7 @@ function wb({ className: e, type: t = "default", open: n = !0, message: r, onClo
|
|
|
11587
11606
|
})]
|
|
11588
11607
|
}) : null;
|
|
11589
11608
|
}
|
|
11590
|
-
function
|
|
11609
|
+
function Eb({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n = 3, gap: r = 8, toastOptions: i, ...a }) {
|
|
11591
11610
|
return /* @__PURE__ */ q(Fa, {
|
|
11592
11611
|
position: e,
|
|
11593
11612
|
duration: t,
|
|
@@ -11596,7 +11615,7 @@ function Tb({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n
|
|
|
11596
11615
|
toastOptions: {
|
|
11597
11616
|
...i,
|
|
11598
11617
|
unstyled: !0,
|
|
11599
|
-
className: z(
|
|
11618
|
+
className: z(wb({ type: "default" }), i?.className),
|
|
11600
11619
|
classNames: {
|
|
11601
11620
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
11602
11621
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -11609,7 +11628,7 @@ function Tb({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n
|
|
|
11609
11628
|
}
|
|
11610
11629
|
//#endregion
|
|
11611
11630
|
//#region src/components/Typography/Typography.tsx
|
|
11612
|
-
var
|
|
11631
|
+
var Db = ga("", {
|
|
11613
11632
|
variants: { variant: {
|
|
11614
11633
|
"display-lg": "aivex:text-display-lg",
|
|
11615
11634
|
"display-md": "aivex:text-display-md",
|
|
@@ -11631,7 +11650,7 @@ var Eb = ga("", {
|
|
|
11631
11650
|
"caption-md": "aivex:text-caption-md"
|
|
11632
11651
|
} },
|
|
11633
11652
|
defaultVariants: { variant: "body-md-regular" }
|
|
11634
|
-
}),
|
|
11653
|
+
}), Ob = {
|
|
11635
11654
|
"display-lg": "h1",
|
|
11636
11655
|
"display-md": "h1",
|
|
11637
11656
|
"heading-xl": "h1",
|
|
@@ -11651,17 +11670,17 @@ var Eb = ga("", {
|
|
|
11651
11670
|
"label-sm": "span",
|
|
11652
11671
|
"caption-md": "span"
|
|
11653
11672
|
};
|
|
11654
|
-
function
|
|
11655
|
-
return /* @__PURE__ */ q(e ??
|
|
11673
|
+
function kb({ as: e, variant: t = "body-md-regular", className: n, children: r, ref: i, ...a }) {
|
|
11674
|
+
return /* @__PURE__ */ q(e ?? Ob[t], {
|
|
11656
11675
|
ref: i,
|
|
11657
|
-
className: z(
|
|
11676
|
+
className: z(Db({ variant: t }), n),
|
|
11658
11677
|
...a,
|
|
11659
11678
|
children: r
|
|
11660
11679
|
});
|
|
11661
11680
|
}
|
|
11662
11681
|
//#endregion
|
|
11663
11682
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
11664
|
-
function
|
|
11683
|
+
function Ab({ className: e, formats: t = [
|
|
11665
11684
|
"jpg",
|
|
11666
11685
|
"bmp",
|
|
11667
11686
|
"png",
|
|
@@ -11751,6 +11770,6 @@ function kb({ className: e, formats: t = [
|
|
|
11751
11770
|
});
|
|
11752
11771
|
}
|
|
11753
11772
|
//#endregion
|
|
11754
|
-
export { Xr as AddFolderIcon, Qn as AddPointIcon, on as AdjustIcon, Nr as AiSparkleGradientIcon, ni as AiSparkleIcon, vn as AiVDataIcon, s_ as AiVDataLogo, c_ as AiVDataSymbol, gr as AiVOpsIcon, l_ as AiVOpsLogo, mi as AiViewIcon, d_ as AiViewLogo, wn as AiVisionIcon, r_ as AiVisionLogo, o_ as AiVisionMLogo, a_ as AiVisionSLogo, i_ as AiVisionTLogo, Fn as AiVotIcon, u_ as AiVotLogo, n_ as AivexLogo, zr as AlignCenterIcon, Sr as AlignLeftIcon, qn as AlignRightIcon, Vn as AngleIcon, $t as ApertureIcon, yi as ArchiveIcon, Ii as ArrowCircleDownFilledIcon, fn as ArrowCircleDownIcon, ji as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, g as ArrowCircleRightFilledIcon, Ti as ArrowCircleRightIcon, _t as ArrowCircleUpFilledIcon, ee as ArrowCircleUpIcon, S as ArrowControlIcon, Ue as ArrowCornerLeftTopIcon, ur as ArrowDownIcon, a as ArrowElbowDownLeftIcon, ir as ArrowFlowIcon, Me as ArrowGoingDownIcon, Re as ArrowGoingUpIcon, Ye as ArrowLeftDownIcon, re as ArrowLeftIcon, fe as ArrowLeftRightIcon, De as ArrowLeftUpIcon, ot as ArrowRightDownIcon, Hi as ArrowRightIcon, d as ArrowRightUpIcon, Ot as ArrowUpDownIcon, se as ArrowUpIcon, Ct as ArrowelbowDownRightIcon, Nt as AssistantPolyIcon, F as AssistantRectIcon, Se as AtIcon, Zi as Avatar, Ra as Badge, Gr as BarcodeIcon, _e as BellIcon, Ut as BookmarkFilledIcon, Rt as BookmarkIcon, Jt as BoundingBoxIcon, Wa as BreadCrumb, tt as BrightIcon, ci as Button, e as CSVFileIcon, Tm as Calendar, Pn as CalendarIcon, pi as CameraIcon, Ga as Card, Mr as CaretLineDownIcon, ti as CaretLineLeftIcon, rr as CaretLineRightIcon, dn as CaretLineUpIcon, Rr as CaretUpDownIcon, si as ChatIcon, Cn as CheckCircleFilledIcon, xr as CheckCircleIcon, vi as CheckDoubleIcon, kn as CheckIcon, Ya as Checkbox, Bn as CheckboxCheckIcon, Wr as CheckboxIndeterminateIcon, $a as Chips, Xa as ChipsCheckbox, Er as CircleDashedIcon, Zn as CircleFilledIcon, Kn as CircleOutlineIcon, an as ClipIcon, wi as ClipboardIcon, Vi as CloseCircleFilledIcon, _n as CloseCircleIcon, Fi as CloseIcon, gt as ClosedEyesIcon, Vo as Coachmark, x as CodeIcon, Ai as CompareIcon, St as ConfirmIcon, A as ConnectedIcon, D as ContrastIcon, Je as Copy1Icon, hr as Copy2Icon, u as CopyIcon, lr as CreditCardIcon, Le as CropIcon, He as CuttingIcon, pm as DataGrid, Mp as DataGridBody, Pp as DataGridCell, pp as DataGridColumnSettings, Ip as DataGridEmpty, jp as DataGridHeader, Fp as DataGridHeaderCell, Rp as DataGridInfiniteTrigger, Lp as DataGridLoading, kp as DataGridRoot, Np as DataGridRow, Ap as DataGridViewport, et as DatabaseIcon, Vm as DatePicker, ie as DefectGeneratorIcon, ge as DeleteIcon, je as DeletePointIcon, mg as Dialog, ut as DirectionDoubleDownIcon, Ki as DirectionDoubleLeftIcon, h as DirectionDoubleRightIcon, Mt as DirectionDoubleUpIcon, de as DirectionDownIcon, Dt as DirectionLeftIcon, Lt as DirectionRightIcon, L as DirectionUpIcon, Ee as DisconnectedIcon, ea as Divider, Ba as Dot, Yr as DotIcon, xe as DownloadIcon, qt as DragHandleIcon, _g as DraggableScroll, Ht as EditIcon, Qt as EmptyIcon, at as EnglishIcon, i as EqualIcon, Mn as EraserIcon, di as ExpandIcon, Ar as ExperimentIcon, $r as ExportIcon, tr as FailedIcon, xg as Field, Cg as FieldContent, wg as FieldControl, Tg as FieldDescription, Eg as FieldError, Sg as FieldLabel, ln as FileIcon, Ir as FilterFilledIcon, ai as FilterIcon, Hg as FilterModal, xn as FitIcon, yr as FloppyDiskIcon, gi as FolderCloseIcon, Dn as FolderOpenIcon, Rn as GalleryViewLargeIcon, Hr as GalleryViewMediumIcon, wr as GalleryViewSmallIcon, Yn as GlobalIcon, Wn as GraphIcon, nn as GraphPieIcon, Si as GraphScatterIcon, zi as GridIcon, hn as GuideHandleIcon, Ni as GuideLineIcon, mt as HamburgerIcon, y as HandIcon, Oi as HeadphonesIcon, bt as HelpIcon, te as HistoryIcon, T as HomeIcon, Ke as HourglassIcon, Qi as IconButton, pr as ImageBrokenIcon, c as ImageIcon, sr as ImagesIcon, Fe as ImportIcon, Be as InfoFilledIcon, Qe as InfoIcon, Om as InputBase, _r as InteractionLayer, N as KebabIcon, me as KeyDeleteIcon, ke as KeyIcon, ct as KeyReturnIcon, Wi as KeyboardIcon, p as KoreanIcon, At as LabelPointIcon, le as LanguageIcon, Tt as LightbulbIcon, Ft as LightingFilledIcon, I as LightingIcon, we as LineIcon, qr as LinkIcon, ye as LinkedInIcon, Gt as ListPlayIcon, Bt as LockIcon, Xt as LoginIcon, rt as LogoutIcon, n as MagicWandIcon, Nn as MailIcon, fi as MapIcon, jr as MapPinIcon, ei as MeatballIcon, ta as Menu, m_ as Messagebox, nr as MicroscopeIcon, un as MinimizeIcon, Lr as MinimizeWindowIcon, oi as MinusCircleIcon, Sn as MinusIcon, Rg as Modal, Lg as ModalSurface, br as ModelIcon, _i as MonitorIcon, On as MouseClickLeftIcon, zn as MouseClickRightIcon, Ur as MoveFolderIcon, Tr as MoveIcon, Xn as MultiSelectionIcon, Gn as MuteIcon, y_ as Nav, v_ as NavItem, g_ as NavTile, rn as NewTabIcon, Ci as NotEqualIcon, Bi as OpenEyesIcon, gn as OpenedMailIcon, fg as Overlay, Pi as PackageIcon, ht as PageIcon,
|
|
11773
|
+
export { Xr as AddFolderIcon, Qn as AddPointIcon, on as AdjustIcon, Nr as AiSparkleGradientIcon, ni as AiSparkleIcon, vn as AiVDataIcon, s_ as AiVDataLogo, c_ as AiVDataSymbol, gr as AiVOpsIcon, l_ as AiVOpsLogo, mi as AiViewIcon, d_ as AiViewLogo, wn as AiVisionIcon, r_ as AiVisionLogo, o_ as AiVisionMLogo, a_ as AiVisionSLogo, i_ as AiVisionTLogo, Fn as AiVotIcon, u_ as AiVotLogo, n_ as AivexLogo, zr as AlignCenterIcon, Sr as AlignLeftIcon, qn as AlignRightIcon, Vn as AngleIcon, $t as ApertureIcon, yi as ArchiveIcon, Ii as ArrowCircleDownFilledIcon, fn as ArrowCircleDownIcon, ji as ArrowCircleLeftFilledIcon, dt as ArrowCircleLeftIcon, g as ArrowCircleRightFilledIcon, Ti as ArrowCircleRightIcon, _t as ArrowCircleUpFilledIcon, ee as ArrowCircleUpIcon, S as ArrowControlIcon, Ue as ArrowCornerLeftTopIcon, ur as ArrowDownIcon, a as ArrowElbowDownLeftIcon, ir as ArrowFlowIcon, Me as ArrowGoingDownIcon, Re as ArrowGoingUpIcon, Ye as ArrowLeftDownIcon, re as ArrowLeftIcon, fe as ArrowLeftRightIcon, De as ArrowLeftUpIcon, ot as ArrowRightDownIcon, Hi as ArrowRightIcon, d as ArrowRightUpIcon, Ot as ArrowUpDownIcon, se as ArrowUpIcon, Ct as ArrowelbowDownRightIcon, Nt as AssistantPolyIcon, F as AssistantRectIcon, Se as AtIcon, Zi as Avatar, Ra as Badge, Gr as BarcodeIcon, _e as BellIcon, Ut as BookmarkFilledIcon, Rt as BookmarkIcon, Jt as BoundingBoxIcon, Wa as BreadCrumb, tt as BrightIcon, ci as Button, e as CSVFileIcon, Tm as Calendar, Pn as CalendarIcon, pi as CameraIcon, Ga as Card, Mr as CaretLineDownIcon, ti as CaretLineLeftIcon, rr as CaretLineRightIcon, dn as CaretLineUpIcon, Rr as CaretUpDownIcon, si as ChatIcon, Cn as CheckCircleFilledIcon, xr as CheckCircleIcon, vi as CheckDoubleIcon, kn as CheckIcon, Ya as Checkbox, Bn as CheckboxCheckIcon, Wr as CheckboxIndeterminateIcon, $a as Chips, Xa as ChipsCheckbox, Er as CircleDashedIcon, Zn as CircleFilledIcon, Kn as CircleOutlineIcon, an as ClipIcon, wi as ClipboardIcon, Vi as CloseCircleFilledIcon, _n as CloseCircleIcon, Fi as CloseIcon, gt as ClosedEyesIcon, Vo as Coachmark, x as CodeIcon, Ai as CompareIcon, St as ConfirmIcon, A as ConnectedIcon, D as ContrastIcon, Je as Copy1Icon, hr as Copy2Icon, u as CopyIcon, lr as CreditCardIcon, Le as CropIcon, He as CuttingIcon, pm as DataGrid, Mp as DataGridBody, Pp as DataGridCell, pp as DataGridColumnSettings, Ip as DataGridEmpty, jp as DataGridHeader, Fp as DataGridHeaderCell, Rp as DataGridInfiniteTrigger, Lp as DataGridLoading, kp as DataGridRoot, Np as DataGridRow, Ap as DataGridViewport, et as DatabaseIcon, Vm as DatePicker, ie as DefectGeneratorIcon, ge as DeleteIcon, je as DeletePointIcon, mg as Dialog, ut as DirectionDoubleDownIcon, Ki as DirectionDoubleLeftIcon, h as DirectionDoubleRightIcon, Mt as DirectionDoubleUpIcon, de as DirectionDownIcon, Dt as DirectionLeftIcon, Lt as DirectionRightIcon, L as DirectionUpIcon, Ee as DisconnectedIcon, ea as Divider, Ba as Dot, Yr as DotIcon, xe as DownloadIcon, qt as DragHandleIcon, _g as DraggableScroll, Ht as EditIcon, Qt as EmptyIcon, at as EnglishIcon, i as EqualIcon, Mn as EraserIcon, di as ExpandIcon, Ar as ExperimentIcon, $r as ExportIcon, tr as FailedIcon, xg as Field, Cg as FieldContent, wg as FieldControl, Tg as FieldDescription, Eg as FieldError, Sg as FieldLabel, ln as FileIcon, Ir as FilterFilledIcon, ai as FilterIcon, Hg as FilterModal, xn as FitIcon, yr as FloppyDiskIcon, gi as FolderCloseIcon, Dn as FolderOpenIcon, Rn as GalleryViewLargeIcon, Hr as GalleryViewMediumIcon, wr as GalleryViewSmallIcon, Yn as GlobalIcon, Wn as GraphIcon, nn as GraphPieIcon, Si as GraphScatterIcon, zi as GridIcon, hn as GuideHandleIcon, Ni as GuideLineIcon, mt as HamburgerIcon, y as HandIcon, Oi as HeadphonesIcon, bt as HelpIcon, te as HistoryIcon, T as HomeIcon, Ke as HourglassIcon, Qi as IconButton, pr as ImageBrokenIcon, c as ImageIcon, sr as ImagesIcon, Fe as ImportIcon, Be as InfoFilledIcon, Qe as InfoIcon, Om as InputBase, _r as InteractionLayer, N as KebabIcon, me as KeyDeleteIcon, ke as KeyIcon, ct as KeyReturnIcon, Wi as KeyboardIcon, p as KoreanIcon, At as LabelPointIcon, le as LanguageIcon, Tt as LightbulbIcon, Ft as LightingFilledIcon, I as LightingIcon, we as LineIcon, qr as LinkIcon, ye as LinkedInIcon, Gt as ListPlayIcon, Bt as LockIcon, Xt as LoginIcon, rt as LogoutIcon, n as MagicWandIcon, Nn as MailIcon, fi as MapIcon, jr as MapPinIcon, ei as MeatballIcon, ta as Menu, m_ as Messagebox, nr as MicroscopeIcon, un as MinimizeIcon, Lr as MinimizeWindowIcon, oi as MinusCircleIcon, Sn as MinusIcon, Rg as Modal, Lg as ModalSurface, br as ModelIcon, _i as MonitorIcon, On as MouseClickLeftIcon, zn as MouseClickRightIcon, Ur as MoveFolderIcon, Tr as MoveIcon, Xn as MultiSelectionIcon, Gn as MuteIcon, y_ as Nav, v_ as NavItem, g_ as NavTile, rn as NewTabIcon, Ci as NotEqualIcon, Bi as OpenEyesIcon, gn as OpenedMailIcon, fg as Overlay, Pi as PackageIcon, ht as PageIcon, fy as Pagination, hy as Panel, b as PasteIcon, ki as PauseCircleFilledIcon, xt as PauseCircleIcon, ne as PauseIcon, E as PenIcon, qe as PencilIcon, mr as PhoneIcon, l as PinIcon, cr as PipelineIcon, Ie as PixelIcon, Ve as PlayCircleFilledIcon, $e as PlayCircleIcon, P as PlayIcon, he as PlayProgressIcon, Ae as PlusCircleFilledIcon, lt as PlusCircleIcon, Gi as PlusIcon, m as PointEditIcon, jt as PointIcon, pf as Popover, yy as ProgressBar, ue as PushPinFilledIcon, Et as PushPinIcon, It as QuestionIcon, Cy as Radio, oe as RectDashedIcon, Te as RectIcon, Jr as RedoIcon, be as RefreshIcon, Kt as RepeatIcon, Vt as RepeatOnceIcon, Zt as RequestStatusIcon, it as RocketIcon, r as RotateRectIcon, jn as RotateRectOCRIcon, ui as RulerIcon, kr as ScaleLeftBottomIcon, Qr as ScaleLeftTopIcon, er as ScaleRightBottomIcon, cn as ScaleRightTopIcon, tp as ScrollArea, np as ScrollBar, Fr as SearchIcon, qy as SegmentedItem, Gy as SegmentedRoot, ly as SelectBox, cy as SelectButton, ii as SendIcon, bn as SettingIcon, vr as ShapesIcon, Yy as Shortcut, hi as ShrinkIcon, En as ShuffleIcon, Ln as SidebarIcon, Vr as SimplificationIcon, xc as Skeleton, la as Slider, Cr as SmoothIcon, Jn as SortAscendingIcon, Un as SortDescendingIcon, tn as SoundIcon, xi as SpecificAreaIcon, Ri as StarFilledIcon, mn as StarIcon, Mi as StopCircleFilledIcon, pt as StopCircleIcon, v as StopIcon, Di as StorageIcon, yt as StrokeIcon, ma as Switch, bb as TabContent, _b as TabList, hb as TabRoot, yb as TabTrigger, _p as Table, xp as TableBody, bp as TableCaption, wp as TableCell, Tp as TableEmpty, yp as TableFooter, Cp as TableHead, vp as TableHeader, Ep as TableLoading, Sp as TableRow, Bg as Tag, k as TagFilledIcon, w as TagFilledOpacityIcon, Ge as TagIcon, xb as Tagbox, fr as TargetIcon, s as TaskQueueIcon, or as TeamIcon, Pe as TempIcon, ze as TestIcon, Ze as TextBoldIcon, M as TextH1Icon, pe as TextH2Icon, Oe as TextH3Icon, st as TextIcon, Ui as TextItalicIcon, f as TextStrikethroughIcon, kt as TextUnderlineIcon, Sb as Textarea, Cb as Textbox, ce as ThumbsDownFilledIcon, wt as ThumbsDownIcon, Pt as ThumbsUpIcon, ae as TimeIcon, Tb as Toast, Eb as ToastToaster, Qa as ToggleButton, Ce as ToolIcon, qi as Tooltip, Kr as TriangleDashedIcon, kb as Typography, ve as UndoIcon, Wt as UneditableIcon, zt as UnlockIcon, Yt as UnreadIcon, Ab as UploadArea, nt as UploadIcon, t as UserIcon, An as WarningCircleFilledIcon, li as WarningCircleIcon, Or as WarningTriangleFilledIcon, Zr as WarningTriangleIcon, $n as WheelIcon, sn as WorkspaceIcon, Pr as Zoom100Icon, ri as ZoomInIcon, yn as ZoomOutIcon, Ji as avatarVariants, La as badgeVariants, Dr as buttonVariants, Ka as checkboxVariants, eo as chipsVariants, z as cn, ua as dividerVariants, za as dotVariants, bg as fieldVariants, nc as getCoreRowModel, rc as getExpandedRowModel, ac as getFacetedMinMaxValues, lc as getFacetedRowModel, uc as getFacetedUniqueValues, dc as getFilteredRowModel, fc as getGroupedRowModel, mc as getPaginationRowModel, hc as getSortedRowModel, Yi as iconButtonVariants, Dm as inputContainerVariants, Dm as inputWrapperVariants, f_ as messageboxVariants, __ as navItemVariants, h_ as navTileVariants, dg as overlayVariants, by as radioVariants, zg as tagVariants, Ia as toast, wb as toastVariants, Za as toggleButtonVariants, Xi as tooltipContentVariants, Db as typographyVariants };
|
|
11755
11774
|
|
|
11756
11775
|
//# sourceMappingURL=index.js.map
|