@object-ui/plugin-aggrid 4.0.3 → 4.0.5
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/CHANGELOG.md +54 -0
- package/dist/index.js +709 -17
- package/dist/index.umd.cjs +1 -238
- package/package.json +7 -7
- package/dist/AddressField-CP-8JJvR.js +0 -98
- package/dist/AgGridImpl-DiTsK8F6.js +0 -226
- package/dist/AutoNumberField-DCL2eUJj.js +0 -14
- package/dist/AvatarField-DuaF__ns.js +0 -83
- package/dist/BooleanField-0QUz5DOy.js +0 -41
- package/dist/CodeField-iTabv7wS.js +0 -23
- package/dist/ColorField-R7ZmLj1V.js +0 -38
- package/dist/CurrencyField-CEu2SjEj.js +0 -49
- package/dist/DateField-DoaPu9GV.js +0 -22
- package/dist/DateTimeField-DcKX54zr.js +0 -30
- package/dist/EmailField-eYfpFAtE.js +0 -26
- package/dist/FileField-DtvoWRK-.js +0 -214
- package/dist/FormulaField-DF6-4u2b.js +0 -17
- package/dist/GeolocationField-CyzG2dqR.js +0 -161
- package/dist/GridField-BFlgbp8W.js +0 -49
- package/dist/ImageCropperDialog-BFlbM7vO.js +0 -153
- package/dist/ImageField-DoXNtXV_.js +0 -145
- package/dist/LocationField-BeYK6K9V.js +0 -36
- package/dist/LookupField-DXGCnQ3q.js +0 -1063
- package/dist/MasterDetailField-JpmMudRV.js +0 -110
- package/dist/NumberField-BYuCxbmU.js +0 -27
- package/dist/ObjectAgGridImpl-Bz5whFec.js +0 -20000
- package/dist/ObjectField-Dlf_yrMC.js +0 -50
- package/dist/PasswordField-40E439oE.js +0 -61
- package/dist/PercentField-BvdQEcfn.js +0 -61
- package/dist/PhoneField-CBuoC-vs.js +0 -26
- package/dist/QRCodeField-CrRsA1vB.js +0 -145
- package/dist/RatingField-BVkroiQ4.js +0 -43
- package/dist/RichTextField-DEYNcokk.js +0 -33
- package/dist/SelectField-K-xoVDss.js +0 -36
- package/dist/SignatureField-D0nUx3Cb.js +0 -99
- package/dist/SliderField-C2EpGbj8.js +0 -35
- package/dist/SummaryField-S6Gt7IDC.js +0 -22
- package/dist/TextAreaField-j4eJQ66C.js +0 -125
- package/dist/TextField-DccUZtd7.js +0 -30
- package/dist/TimeField-CWbpycPt.js +0 -22
- package/dist/UrlField-BkPyImh9.js +0 -31
- package/dist/UserField-LrhYdvnz.js +0 -77
- package/dist/VectorField-Baa_mHsO.js +0 -34
- package/dist/check-CBAnx5TO.js +0 -7
- package/dist/createLucideIcon-BtZxPlua.js +0 -42
- package/dist/crop-2wjrXKXD.js +0 -10
- package/dist/dist-BcXWTU-8.js +0 -54
- package/dist/index.css +0 -2
- package/dist/jsx-runtime-CXSCp6pT.js +0 -180
- package/dist/loader-circle-Cxg-xF4u.js +0 -7
- package/dist/plus-COkdZ2Fh.js +0 -10
- package/dist/rolldown-runtime-CkxV0rQ3.js +0 -14
- package/dist/upload-DWhfIa3Y.js +0 -17
- package/dist/useFieldTranslation-DtLNhrx3.js +0 -305
- package/dist/x-BDi_yYx9.js +0 -10
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./createLucideIcon-BtZxPlua.js";
|
|
4
|
-
import { t as r } from "./check-CBAnx5TO.js";
|
|
5
|
-
import { t as i } from "./x-BDi_yYx9.js";
|
|
6
|
-
import { useState as a } from "react";
|
|
7
|
-
import { Button as o, Dialog as s, DialogContent as c, DialogFooter as l, DialogHeader as u, DialogTitle as d, EmptyValue as f, Textarea as p } from "@object-ui/components";
|
|
8
|
-
var m = n("maximize-2", [
|
|
9
|
-
["path", {
|
|
10
|
-
d: "M15 3h6v6",
|
|
11
|
-
key: "1q9fwt"
|
|
12
|
-
}],
|
|
13
|
-
["path", {
|
|
14
|
-
d: "m21 3-7 7",
|
|
15
|
-
key: "1l2asr"
|
|
16
|
-
}],
|
|
17
|
-
["path", {
|
|
18
|
-
d: "m3 21 7-7",
|
|
19
|
-
key: "tjx5ai"
|
|
20
|
-
}],
|
|
21
|
-
["path", {
|
|
22
|
-
d: "M9 21H3v-6",
|
|
23
|
-
key: "wtvkvv"
|
|
24
|
-
}]
|
|
25
|
-
]), h = /* @__PURE__ */ e({ TextAreaField: () => _ }), g = t();
|
|
26
|
-
function _({ value: e, onChange: t, field: n, readonly: h, errorMessage: _, ...v }) {
|
|
27
|
-
if (h) return /* @__PURE__ */ (0, g.jsx)("div", {
|
|
28
|
-
className: "text-sm whitespace-pre-wrap",
|
|
29
|
-
children: e || /* @__PURE__ */ (0, g.jsx)(f, {})
|
|
30
|
-
});
|
|
31
|
-
let y = n || v.schema, b = y?.rows || 4, x = y?.max_length, S = !!(v.mobileFullscreen ?? y?.mobile_fullscreen ?? v.mobile_fullscreen ?? v.schema?.mobile_fullscreen), [C, w] = a(!1), [T, E] = a(e ?? ""), D = () => {
|
|
32
|
-
E(e ?? ""), w(!0);
|
|
33
|
-
}, O = () => w(!1), k = () => {
|
|
34
|
-
t(T), w(!1);
|
|
35
|
-
}, { inputType: A, mobileFullscreen: j, ...M } = v;
|
|
36
|
-
return /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
37
|
-
className: "relative",
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ (0, g.jsx)(p, {
|
|
40
|
-
...M,
|
|
41
|
-
value: e || "",
|
|
42
|
-
onChange: (e) => t(e.target.value),
|
|
43
|
-
placeholder: y?.placeholder,
|
|
44
|
-
disabled: h || M.disabled,
|
|
45
|
-
rows: b,
|
|
46
|
-
maxLength: x,
|
|
47
|
-
"aria-invalid": !!_,
|
|
48
|
-
className: M.className
|
|
49
|
-
}),
|
|
50
|
-
S && /* @__PURE__ */ (0, g.jsx)("button", {
|
|
51
|
-
type: "button",
|
|
52
|
-
onClick: D,
|
|
53
|
-
className: "absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-md bg-background/80 text-muted-foreground hover:text-foreground hover:bg-background border shadow-sm transition-colors",
|
|
54
|
-
"aria-label": `Edit ${y?.label ?? "text"} fullscreen`,
|
|
55
|
-
"data-testid": "textarea-fullscreen-toggle",
|
|
56
|
-
children: /* @__PURE__ */ (0, g.jsx)(m, { className: "size-3.5" })
|
|
57
|
-
}),
|
|
58
|
-
x && /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
59
|
-
className: "absolute bottom-2 right-2 text-xs text-gray-400",
|
|
60
|
-
"aria-live": "polite",
|
|
61
|
-
"aria-label": `Character count: ${(e || "").length} of ${x}`,
|
|
62
|
-
children: [
|
|
63
|
-
(e || "").length,
|
|
64
|
-
"/",
|
|
65
|
-
x
|
|
66
|
-
]
|
|
67
|
-
}),
|
|
68
|
-
S && /* @__PURE__ */ (0, g.jsx)(s, {
|
|
69
|
-
open: C,
|
|
70
|
-
onOpenChange: w,
|
|
71
|
-
children: /* @__PURE__ */ (0, g.jsxs)(c, {
|
|
72
|
-
className: "sm:max-w-3xl h-[100dvh] sm:h-[80vh] max-h-[100dvh] sm:max-h-[80vh] flex flex-col p-0 gap-0",
|
|
73
|
-
"data-testid": "textarea-fullscreen-dialog",
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ (0, g.jsx)(u, {
|
|
76
|
-
className: "p-4 border-b",
|
|
77
|
-
children: /* @__PURE__ */ (0, g.jsx)(d, {
|
|
78
|
-
className: "text-base",
|
|
79
|
-
children: y?.label ?? "Edit text"
|
|
80
|
-
})
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
83
|
-
className: "flex-1 min-h-0 p-4",
|
|
84
|
-
children: /* @__PURE__ */ (0, g.jsx)(p, {
|
|
85
|
-
autoFocus: !0,
|
|
86
|
-
value: T,
|
|
87
|
-
onChange: (e) => E(e.target.value),
|
|
88
|
-
maxLength: x,
|
|
89
|
-
placeholder: y?.placeholder,
|
|
90
|
-
className: "h-full min-h-full resize-none text-base",
|
|
91
|
-
"data-testid": "textarea-fullscreen-input"
|
|
92
|
-
})
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ (0, g.jsxs)(l, {
|
|
95
|
-
className: "p-3 border-t flex-row justify-between sm:justify-end gap-2",
|
|
96
|
-
children: [x && /* @__PURE__ */ (0, g.jsxs)("span", {
|
|
97
|
-
className: "text-xs text-muted-foreground self-center",
|
|
98
|
-
children: [
|
|
99
|
-
T.length,
|
|
100
|
-
"/",
|
|
101
|
-
x
|
|
102
|
-
]
|
|
103
|
-
}), /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
104
|
-
className: "flex gap-2 ml-auto",
|
|
105
|
-
children: [/* @__PURE__ */ (0, g.jsxs)(o, {
|
|
106
|
-
type: "button",
|
|
107
|
-
variant: "ghost",
|
|
108
|
-
onClick: O,
|
|
109
|
-
children: [/* @__PURE__ */ (0, g.jsx)(i, { className: "size-4 mr-1" }), " Cancel"]
|
|
110
|
-
}), /* @__PURE__ */ (0, g.jsxs)(o, {
|
|
111
|
-
type: "button",
|
|
112
|
-
onClick: k,
|
|
113
|
-
"data-testid": "textarea-fullscreen-save",
|
|
114
|
-
children: [/* @__PURE__ */ (0, g.jsx)(r, { className: "size-4 mr-1" }), " Done"]
|
|
115
|
-
})]
|
|
116
|
-
})]
|
|
117
|
-
})
|
|
118
|
-
]
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
]
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
export { h as n, _ as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { EmptyValue as n, Input as r, Textarea as i } from "@object-ui/components";
|
|
5
|
-
//#region ../fields/src/widgets/TextField.tsx
|
|
6
|
-
var a = /* @__PURE__ */ e({ TextField: () => s }), o = t();
|
|
7
|
-
function s({ value: e, onChange: t, field: a, readonly: s, ...c }) {
|
|
8
|
-
let l = a || c.schema;
|
|
9
|
-
if (s) return /* @__PURE__ */ (0, o.jsx)("span", {
|
|
10
|
-
className: "text-sm",
|
|
11
|
-
children: e || /* @__PURE__ */ (0, o.jsx)(n, {})
|
|
12
|
-
});
|
|
13
|
-
let u = l?.rows, { inputType: d, ...f } = c;
|
|
14
|
-
return u && u > 1 ? /* @__PURE__ */ (0, o.jsx)(i, {
|
|
15
|
-
...f,
|
|
16
|
-
value: e || "",
|
|
17
|
-
onChange: (e) => t(e.target.value),
|
|
18
|
-
placeholder: l?.placeholder,
|
|
19
|
-
disabled: s || f.disabled
|
|
20
|
-
}) : /* @__PURE__ */ (0, o.jsx)(r, {
|
|
21
|
-
...f,
|
|
22
|
-
type: l?.type === "password" ? "password" : "text",
|
|
23
|
-
value: e || "",
|
|
24
|
-
onChange: (e) => t(e.target.value),
|
|
25
|
-
placeholder: l?.placeholder,
|
|
26
|
-
disabled: s || f.disabled
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { a as n, s as t };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { EmptyValue as n, Input as r } from "@object-ui/components";
|
|
5
|
-
//#region ../fields/src/widgets/TimeField.tsx
|
|
6
|
-
var i = /* @__PURE__ */ e({ TimeField: () => o }), a = t();
|
|
7
|
-
function o({ value: e, onChange: t, field: i, readonly: o, ...s }) {
|
|
8
|
-
if (o) return /* @__PURE__ */ (0, a.jsx)("span", {
|
|
9
|
-
className: "text-sm",
|
|
10
|
-
children: e || /* @__PURE__ */ (0, a.jsx)(n, {})
|
|
11
|
-
});
|
|
12
|
-
let { inputType: c, ...l } = s;
|
|
13
|
-
return /* @__PURE__ */ (0, a.jsx)(r, {
|
|
14
|
-
...l,
|
|
15
|
-
type: "time",
|
|
16
|
-
value: e || "",
|
|
17
|
-
onChange: (e) => t(e.target.value),
|
|
18
|
-
disabled: o || l.disabled
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { i as n, o as t };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { EmptyValue as n, Input as r } from "@object-ui/components";
|
|
5
|
-
//#region ../fields/src/widgets/UrlField.tsx
|
|
6
|
-
var i = /* @__PURE__ */ e({ UrlField: () => o }), a = t();
|
|
7
|
-
function o({ value: e, onChange: t, field: i, readonly: o, errorMessage: s, ...c }) {
|
|
8
|
-
let l = i || c.schema;
|
|
9
|
-
if (o) return e ? e.startsWith("http://") || e.startsWith("https://") ? /* @__PURE__ */ (0, a.jsx)("a", {
|
|
10
|
-
href: e,
|
|
11
|
-
target: "_blank",
|
|
12
|
-
rel: "noopener noreferrer",
|
|
13
|
-
className: "text-sm text-blue-600 hover:text-blue-800 hover:underline",
|
|
14
|
-
children: e
|
|
15
|
-
}) : /* @__PURE__ */ (0, a.jsx)("span", {
|
|
16
|
-
className: "text-sm",
|
|
17
|
-
children: e
|
|
18
|
-
}) : /* @__PURE__ */ (0, a.jsx)(n, {});
|
|
19
|
-
let { inputType: u, ...d } = c;
|
|
20
|
-
return /* @__PURE__ */ (0, a.jsx)(r, {
|
|
21
|
-
...d,
|
|
22
|
-
type: "url",
|
|
23
|
-
value: e || "",
|
|
24
|
-
onChange: (e) => t(e.target.value),
|
|
25
|
-
placeholder: l?.placeholder || "https://example.com",
|
|
26
|
-
disabled: o || d.disabled,
|
|
27
|
-
"aria-invalid": !!s
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { i as n, o as t };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import { t as n } from "./x-BDi_yYx9.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { Avatar as r, AvatarFallback as i, Badge as a, EmptyValue as o } from "@object-ui/components";
|
|
6
|
-
//#region ../fields/src/widgets/UserField.tsx
|
|
7
|
-
var s = /* @__PURE__ */ e({ UserField: () => l }), c = t();
|
|
8
|
-
function l({ value: e, onChange: t, field: s, readonly: l, ...u }) {
|
|
9
|
-
let d = (s || u.schema)?.multiple || !1;
|
|
10
|
-
if (l) {
|
|
11
|
-
if (!e) return /* @__PURE__ */ (0, c.jsx)(o, {});
|
|
12
|
-
let t = Array.isArray(e) ? e : [e];
|
|
13
|
-
return /* @__PURE__ */ (0, c.jsxs)("div", {
|
|
14
|
-
className: "flex -space-x-2",
|
|
15
|
-
children: [t.slice(0, 3).map((e, t) => {
|
|
16
|
-
let n = e.name || e.username || "User";
|
|
17
|
-
return /* @__PURE__ */ (0, c.jsx)(r, {
|
|
18
|
-
className: "size-8 border-2 border-white",
|
|
19
|
-
title: n,
|
|
20
|
-
children: /* @__PURE__ */ (0, c.jsx)(i, {
|
|
21
|
-
className: "bg-blue-500 text-white text-xs",
|
|
22
|
-
children: n.split(" ").map((e) => e[0]).join("").toUpperCase().slice(0, 2)
|
|
23
|
-
})
|
|
24
|
-
}, t);
|
|
25
|
-
}), t.length > 3 && /* @__PURE__ */ (0, c.jsx)(r, {
|
|
26
|
-
className: "size-8 border-2 border-white",
|
|
27
|
-
children: /* @__PURE__ */ (0, c.jsxs)(i, {
|
|
28
|
-
className: "bg-gray-200 text-gray-600 text-xs",
|
|
29
|
-
children: ["+", t.length - 3]
|
|
30
|
-
})
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
let f = e ? Array.isArray(e) ? e : [e] : [], p = (e) => {
|
|
35
|
-
if (d) {
|
|
36
|
-
let n = f.filter((t, n) => n !== e);
|
|
37
|
-
t(n.length > 0 ? n : null);
|
|
38
|
-
} else t(null);
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ (0, c.jsxs)("div", {
|
|
41
|
-
className: u.className,
|
|
42
|
-
children: [f.length > 0 && /* @__PURE__ */ (0, c.jsx)("div", {
|
|
43
|
-
className: "flex flex-wrap gap-2 mb-2",
|
|
44
|
-
children: f.map((e, t) => {
|
|
45
|
-
let o = e.name || e.username || "User";
|
|
46
|
-
return /* @__PURE__ */ (0, c.jsxs)(a, {
|
|
47
|
-
variant: "outline",
|
|
48
|
-
className: "gap-2 pr-1",
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ (0, c.jsx)(r, {
|
|
51
|
-
className: "size-5",
|
|
52
|
-
children: /* @__PURE__ */ (0, c.jsx)(i, {
|
|
53
|
-
className: "bg-blue-500 text-white text-xs",
|
|
54
|
-
children: o.split(" ").map((e) => e[0]).join("").toUpperCase().slice(0, 2)
|
|
55
|
-
})
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ (0, c.jsx)("span", {
|
|
58
|
-
className: "text-sm",
|
|
59
|
-
children: o
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ (0, c.jsx)("button", {
|
|
62
|
-
type: "button",
|
|
63
|
-
onClick: () => p(t),
|
|
64
|
-
className: "ml-1 rounded-full hover:bg-gray-200 p-0.5",
|
|
65
|
-
children: /* @__PURE__ */ (0, c.jsx)(n, { className: "size-3" })
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
}, t);
|
|
69
|
-
})
|
|
70
|
-
}), /* @__PURE__ */ (0, c.jsx)("div", {
|
|
71
|
-
className: "text-sm text-gray-500 italic",
|
|
72
|
-
children: "User selection component requires integration with user management system"
|
|
73
|
-
})]
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
export { s as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CXSCp6pT.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { EmptyValue as n } from "@object-ui/components";
|
|
5
|
-
//#region ../fields/src/widgets/VectorField.tsx
|
|
6
|
-
var r = /* @__PURE__ */ e({ VectorField: () => a }), i = t();
|
|
7
|
-
function a({ value: e, field: t, ...r }) {
|
|
8
|
-
let a = (t || r.schema)?.dimensions || (Array.isArray(e) ? e.length : 0);
|
|
9
|
-
if (!e || !Array.isArray(e)) return /* @__PURE__ */ (0, i.jsx)(n, {});
|
|
10
|
-
let o = e.slice(0, 3).map((e) => {
|
|
11
|
-
let t = Number(e);
|
|
12
|
-
return isNaN(t) ? "0" : t.toFixed(4);
|
|
13
|
-
}).join(", ");
|
|
14
|
-
return /* @__PURE__ */ (0, i.jsxs)("div", {
|
|
15
|
-
className: `text-sm ${r.className || ""}`,
|
|
16
|
-
children: [/* @__PURE__ */ (0, i.jsxs)("span", {
|
|
17
|
-
className: "font-mono text-gray-700",
|
|
18
|
-
children: [
|
|
19
|
-
"[",
|
|
20
|
-
o,
|
|
21
|
-
"...]"
|
|
22
|
-
]
|
|
23
|
-
}), /* @__PURE__ */ (0, i.jsxs)("span", {
|
|
24
|
-
className: "text-gray-500 ml-2",
|
|
25
|
-
children: [
|
|
26
|
-
"(",
|
|
27
|
-
a,
|
|
28
|
-
"D)"
|
|
29
|
-
]
|
|
30
|
-
})]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as t };
|
package/dist/check-CBAnx5TO.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { createContext as e, createElement as t, forwardRef as n, useContext as r } from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.14.0_react@19.2.5/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
3
|
-
var i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
|
|
4
|
-
let t = o(e);
|
|
5
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6
|
-
}, c = {
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
width: 24,
|
|
9
|
-
height: 24,
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
strokeWidth: 2,
|
|
14
|
-
strokeLinecap: "round",
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
}, l = (e) => {
|
|
17
|
-
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
18
|
-
return !1;
|
|
19
|
-
}, u = e({}), d = () => r(u), f = n(({ color: e, size: n, strokeWidth: r, absoluteStrokeWidth: a, className: o = "", children: s, iconNode: u, ...f }, p) => {
|
|
20
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, color: _ = "currentColor", className: v = "" } = d() ?? {}, y = a ?? g ? Number(r ?? h) * 24 / Number(n ?? m) : r ?? h;
|
|
21
|
-
return t("svg", {
|
|
22
|
-
ref: p,
|
|
23
|
-
...c,
|
|
24
|
-
width: n ?? m ?? c.width,
|
|
25
|
-
height: n ?? m ?? c.height,
|
|
26
|
-
stroke: e ?? _,
|
|
27
|
-
strokeWidth: y,
|
|
28
|
-
className: i("lucide", v, o),
|
|
29
|
-
...!s && !l(f) && { "aria-hidden": "true" },
|
|
30
|
-
...f
|
|
31
|
-
}, [...u.map(([e, n]) => t(e, n)), ...Array.isArray(s) ? s : [s]]);
|
|
32
|
-
}), p = (e, r) => {
|
|
33
|
-
let o = n(({ className: n, ...o }, c) => t(f, {
|
|
34
|
-
ref: c,
|
|
35
|
-
iconNode: r,
|
|
36
|
-
className: i(`lucide-${a(s(e))}`, `lucide-${e}`, n),
|
|
37
|
-
...o
|
|
38
|
-
}));
|
|
39
|
-
return o.displayName = s(e), o;
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
export { p as t };
|
package/dist/crop-2wjrXKXD.js
DELETED
package/dist/dist-BcXWTU-8.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./jsx-runtime-CXSCp6pT.js";
|
|
2
|
-
import { t } from "./createLucideIcon-BtZxPlua.js";
|
|
3
|
-
import { createContext as n, useContext as r, useMemo as i } from "react";
|
|
4
|
-
var a = t("image", [
|
|
5
|
-
["rect", {
|
|
6
|
-
width: "18",
|
|
7
|
-
height: "18",
|
|
8
|
-
x: "3",
|
|
9
|
-
y: "3",
|
|
10
|
-
rx: "2",
|
|
11
|
-
ry: "2",
|
|
12
|
-
key: "1m3agn"
|
|
13
|
-
}],
|
|
14
|
-
["circle", {
|
|
15
|
-
cx: "9",
|
|
16
|
-
cy: "9",
|
|
17
|
-
r: "2",
|
|
18
|
-
key: "af1f0g"
|
|
19
|
-
}],
|
|
20
|
-
["path", {
|
|
21
|
-
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
22
|
-
key: "1xmnt7"
|
|
23
|
-
}]
|
|
24
|
-
]);
|
|
25
|
-
e(), n(null), n(null), n(null);
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region ../providers/dist/UploadProvider.js
|
|
28
|
-
var o = n(null);
|
|
29
|
-
function s() {
|
|
30
|
-
return {
|
|
31
|
-
name: "object-url",
|
|
32
|
-
async upload(e) {
|
|
33
|
-
let t = e, n = "name" in t && t.name || "upload";
|
|
34
|
-
return {
|
|
35
|
-
url: URL.createObjectURL(e),
|
|
36
|
-
name: n,
|
|
37
|
-
size: e.size,
|
|
38
|
-
mimeType: e.type || "application/octet-stream"
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function c() {
|
|
44
|
-
let e = r(o), t = i(() => {
|
|
45
|
-
let e = s();
|
|
46
|
-
return {
|
|
47
|
-
upload: (t, n) => e.upload(t, n),
|
|
48
|
-
adapter: e
|
|
49
|
-
};
|
|
50
|
-
}, []);
|
|
51
|
-
return e ?? t;
|
|
52
|
-
}
|
|
53
|
-
//#endregion
|
|
54
|
-
export { a as n, c as t };
|