@object-ui/plugin-aggrid 3.1.5 → 3.3.0

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.
Files changed (52) hide show
  1. package/.turbo/turbo-build.log +57 -54
  2. package/CHANGELOG.md +22 -0
  3. package/dist/{AgGridImpl-BD5cjyc0.js → AgGridImpl-DBqxIsko.js} +1 -1
  4. package/dist/{AvatarField-IZTLB0Ye.js → AvatarField-C5b9biGa.js} +2 -2
  5. package/dist/{FileField-DxxdESfc.js → FileField-BcGMvBnI.js} +4 -4
  6. package/dist/{GeolocationField-BzKgcWLN.js → GeolocationField-D3BrmwqV.js} +1 -1
  7. package/dist/{ImageField-DK7sUV6b.js → ImageField-BBqwJEkk.js} +2 -2
  8. package/dist/{LookupField-Dmzju5Q0.js → LookupField-DoOmbbZF.js} +243 -242
  9. package/dist/LookupField-KfYQlgUd.js +2 -0
  10. package/dist/{MasterDetailField-CPLHbe_Y.js → MasterDetailField-BnSPGAtS.js} +3 -3
  11. package/dist/{ObjectAgGridImpl-4uephlvO.js → ObjectAgGridImpl-DrI0aa8t.js} +174 -174
  12. package/dist/{PasswordField-d6E-vKBI.js → PasswordField-k5JeKk9f.js} +1 -1
  13. package/dist/{QRCodeField-BIQhc73N.js → QRCodeField-BIrSW1Zr.js} +1 -1
  14. package/dist/{RatingField-BKAGmlzh.js → RatingField-5iMhn2GL.js} +1 -1
  15. package/dist/SelectField-Bjk_S2zT.js +31 -0
  16. package/dist/SelectField-CcWvzp9g.js +2 -0
  17. package/dist/{SignatureField-fFEb0h_C.js → SignatureField-BAMvNrE6.js} +1 -1
  18. package/dist/{UserField-Dqk38Arc.js → UserField-BHl6mmIH.js} +1 -1
  19. package/dist/createLucideIcon-BjfZYZey.js +42 -0
  20. package/dist/{image-Cm7ExMY2.js → image-DlUdeTgT.js} +1 -1
  21. package/dist/index.css +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/index.umd.cjs +69 -69
  25. package/dist/{plus-CsEgF66K.js → plus-BwEV_Q5_.js} +1 -1
  26. package/dist/{upload-B1x-ueFd.js → upload-DPiohvXv.js} +1 -1
  27. package/dist/useFieldTranslation-C69OtouR.js +305 -0
  28. package/dist/{x-Bwhzfvtg.js → x-BFq2GeQ5.js} +1 -1
  29. package/package.json +11 -11
  30. package/src/ag-grid.d.ts +10 -0
  31. package/vite.config.ts +1 -0
  32. package/dist/SelectField-C2gtlnLZ.js +0 -30
  33. package/dist/createLucideIcon-CWx7zIL1.js +0 -39
  34. /package/dist/{NumberField-JaSlPVXs.js → NumberField-Kz4_o5DE.js} +0 -0
  35. /package/dist/{ObjectField-FzUYlu-m.js → ObjectField-C1qkl6s4.js} +0 -0
  36. /package/dist/{PercentField-D2_kMuC_.js → PercentField-Dmipqv0I.js} +0 -0
  37. /package/dist/{PhoneField-DOaMivd6.js → PhoneField-Dn4h6V9H.js} +0 -0
  38. /package/dist/{RichTextField-D4FIV9V8.js → RichTextField-CN5BRd_7.js} +0 -0
  39. /package/dist/{SliderField-BlAlK3g2.js → SliderField-C9IhmjbF.js} +0 -0
  40. /package/dist/{SummaryField-Dy2Kkj6M.js → SummaryField-R9RENAZv.js} +0 -0
  41. /package/dist/{TextAreaField-BCUkjKTc.js → TextAreaField-BY63Nr6-.js} +0 -0
  42. /package/dist/{TextField-XWOnbUrk.js → TextField-SIw8aMzf.js} +0 -0
  43. /package/dist/{TimeField-CZdzdqOO.js → TimeField-xxziHPjE.js} +0 -0
  44. /package/dist/{UrlField-sq1mpRoG.js → UrlField-Ihk3_ff5.js} +0 -0
  45. /package/dist/{VectorField-CY70VLiW.js → VectorField-Ci167cxr.js} +0 -0
  46. /package/dist/{src → packages/plugin-aggrid/src}/AgGridImpl.d.ts +0 -0
  47. /package/dist/{src → packages/plugin-aggrid/src}/ObjectAgGridImpl.d.ts +0 -0
  48. /package/dist/{src → packages/plugin-aggrid/src}/VirtualScrolling.d.ts +0 -0
  49. /package/dist/{src → packages/plugin-aggrid/src}/field-renderers.d.ts +0 -0
  50. /package/dist/{src → packages/plugin-aggrid/src}/index.d.ts +0 -0
  51. /package/dist/{src → packages/plugin-aggrid/src}/object-aggrid.types.d.ts +0 -0
  52. /package/dist/{src → packages/plugin-aggrid/src}/types.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-BjfZYZey.js";
2
2
  var t = e("plus", [["path", {
3
3
  d: "M5 12h14",
4
4
  key: "1ays0h"
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-BjfZYZey.js";
2
2
  var t = e("upload", [
3
3
  ["path", {
4
4
  d: "M12 3v12",
@@ -0,0 +1,305 @@
1
+ import { i as e, n as t } from "./jsx-runtime-CGDkM_Jn.js";
2
+ import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
3
+ //#region ../../node_modules/.pnpm/react-i18next@17.0.2_i18next@26.0.4_typescript@6.0.2__react-dom@19.2.5_react@19.2.5__react@19.2.5_typescript@6.0.2/node_modules/react-i18next/dist/es/utils.js
4
+ var l = (e, t, n, r) => {
5
+ let i = [n, {
6
+ code: t,
7
+ ...r || {}
8
+ }];
9
+ if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
10
+ g(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
11
+ }, u = {}, d = (e, t, n, r) => {
12
+ g(n) && u[n] || (g(n) && (u[n] = /* @__PURE__ */ new Date()), l(e, t, n, r));
13
+ }, f = (e, t) => () => {
14
+ if (e.isInitialized) t();
15
+ else {
16
+ let n = () => {
17
+ setTimeout(() => {
18
+ e.off("initialized", n);
19
+ }, 0), t();
20
+ };
21
+ e.on("initialized", n);
22
+ }
23
+ }, p = (e, t, n) => {
24
+ e.loadNamespaces(t, f(e, n));
25
+ }, m = (e, t, n, r) => {
26
+ if (g(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return p(e, n, r);
27
+ n.forEach((t) => {
28
+ e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
29
+ }), e.loadLanguages(t, f(e, r));
30
+ }, h = (e, t, n = {}) => !t.languages || !t.languages.length ? (d(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
31
+ lng: n.lng,
32
+ precheck: (t, r) => {
33
+ if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
34
+ }
35
+ }), g = (e) => typeof e == "string", _ = (e) => typeof e == "object" && !!e, v = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, y = {
36
+ "&amp;": "&",
37
+ "&#38;": "&",
38
+ "&lt;": "<",
39
+ "&#60;": "<",
40
+ "&gt;": ">",
41
+ "&#62;": ">",
42
+ "&apos;": "'",
43
+ "&#39;": "'",
44
+ "&quot;": "\"",
45
+ "&#34;": "\"",
46
+ "&nbsp;": " ",
47
+ "&#160;": " ",
48
+ "&copy;": "©",
49
+ "&#169;": "©",
50
+ "&reg;": "®",
51
+ "&#174;": "®",
52
+ "&hellip;": "…",
53
+ "&#8230;": "…",
54
+ "&#x2F;": "/",
55
+ "&#47;": "/"
56
+ }, b = (e) => y[e], x = {
57
+ bindI18n: "languageChanged",
58
+ bindI18nStore: "",
59
+ transEmptyNodeValue: "",
60
+ transSupportBasicHtmlNodes: !0,
61
+ transWrapTextNodes: "",
62
+ transKeepBasicHtmlNodesFor: [
63
+ "br",
64
+ "strong",
65
+ "i",
66
+ "p"
67
+ ],
68
+ useSuspense: !0,
69
+ unescape: (e) => e.replace(v, b),
70
+ transDefaultProps: void 0
71
+ }, S = () => x, C, w = () => C, T = n(), E = class {
72
+ constructor() {
73
+ this.usedNamespaces = {};
74
+ }
75
+ addUsedNamespaces(e) {
76
+ e.forEach((e) => {
77
+ this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
78
+ });
79
+ }
80
+ getUsedNamespaces() {
81
+ return Object.keys(this.usedNamespaces);
82
+ }
83
+ }, D = /* @__PURE__ */ t(((t) => {
84
+ var n = e("react");
85
+ function r(e, t) {
86
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
87
+ }
88
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
89
+ function l(e, t) {
90
+ var n = t(), r = a({ inst: {
91
+ value: n,
92
+ getSnapshot: t
93
+ } }), i = r[0].inst, l = r[1];
94
+ return s(function() {
95
+ i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
96
+ }, [
97
+ e,
98
+ n,
99
+ t
100
+ ]), o(function() {
101
+ return u(i) && l({ inst: i }), e(function() {
102
+ u(i) && l({ inst: i });
103
+ });
104
+ }, [e]), c(n), n;
105
+ }
106
+ function u(e) {
107
+ var t = e.getSnapshot;
108
+ e = e.value;
109
+ try {
110
+ var n = t();
111
+ return !i(e, n);
112
+ } catch {
113
+ return !0;
114
+ }
115
+ }
116
+ function d(e, t) {
117
+ return t();
118
+ }
119
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
120
+ t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
121
+ })), O = /* @__PURE__ */ t(((t) => {
122
+ process.env.NODE_ENV !== "production" && (function() {
123
+ function n(e, t) {
124
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
125
+ }
126
+ function r(e, t) {
127
+ f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
128
+ var n = t();
129
+ if (!p) {
130
+ var r = t();
131
+ s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
132
+ }
133
+ r = c({ inst: {
134
+ value: n,
135
+ getSnapshot: t
136
+ } });
137
+ var a = r[0].inst, m = r[1];
138
+ return u(function() {
139
+ a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
140
+ }, [
141
+ e,
142
+ n,
143
+ t
144
+ ]), l(function() {
145
+ return i(a) && m({ inst: a }), e(function() {
146
+ i(a) && m({ inst: a });
147
+ });
148
+ }, [e]), d(n), n;
149
+ }
150
+ function i(e) {
151
+ var t = e.getSnapshot;
152
+ e = e.value;
153
+ try {
154
+ var n = t();
155
+ return !s(e, n);
156
+ } catch {
157
+ return !0;
158
+ }
159
+ }
160
+ function a(e, t) {
161
+ return t();
162
+ }
163
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
164
+ var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
165
+ t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
166
+ })();
167
+ })), k = (/* @__PURE__ */ t(((e, t) => {
168
+ process.env.NODE_ENV === "production" ? t.exports = D() : t.exports = O();
169
+ })))(), A = {
170
+ t: (e, t) => {
171
+ if (g(t)) return t;
172
+ if (_(t) && g(t.defaultValue)) return t.defaultValue;
173
+ if (typeof e == "function") return "";
174
+ if (Array.isArray(e)) {
175
+ let t = e[e.length - 1];
176
+ return typeof t == "function" ? "" : t;
177
+ }
178
+ return e;
179
+ },
180
+ ready: !1
181
+ }, j = () => () => {}, M = (e, t = {}) => {
182
+ let { i18n: n } = t, { i18n: l, defaultNS: u } = i(T) || {}, f = n || l || w();
183
+ f && !f.reportNamespaces && (f.reportNamespaces = new E()), f || d(f, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
184
+ let _ = o(() => ({
185
+ ...S(),
186
+ ...f?.options?.react,
187
+ ...t
188
+ }), [f, t]), { useSuspense: v, keyPrefix: y } = _, b = e || u || f?.options?.defaultNS, x = g(b) ? [b] : b || ["translation"], C = o(() => x, x);
189
+ f?.reportNamespaces?.addUsedNamespaces?.(C);
190
+ let D = s(0), O = r((e) => {
191
+ if (!f) return j;
192
+ let { bindI18n: t, bindI18nStore: n } = _, r = () => {
193
+ D.current += 1, e();
194
+ };
195
+ return t && f.on(t, r), n && f.store.on(n, r), () => {
196
+ t && t.split(" ").forEach((e) => f.off(e, r)), n && n.split(" ").forEach((e) => f.store.off(e, r));
197
+ };
198
+ }, [f, _]), M = s(), N = r(() => {
199
+ if (!f) return A;
200
+ let e = !!(f.isInitialized || f.initializedStoreOnce) && C.every((e) => h(e, f, _)), n = t.lng || f.language, r = D.current, i = M.current;
201
+ if (i && i.ready === e && i.lng === n && i.keyPrefix === y && i.revision === r) return i;
202
+ let a = {
203
+ t: f.getFixedT(n, _.nsMode === "fallback" ? C : C[0], y),
204
+ ready: e,
205
+ lng: n,
206
+ keyPrefix: y,
207
+ revision: r
208
+ };
209
+ return M.current = a, a;
210
+ }, [
211
+ f,
212
+ C,
213
+ y,
214
+ _,
215
+ t.lng
216
+ ]), [P, F] = c(0), { t: I, ready: L } = (0, k.useSyncExternalStore)(O, N, N);
217
+ a(() => {
218
+ if (f && !L && !v) {
219
+ let e = () => F((e) => e + 1);
220
+ t.lng ? m(f, t.lng, C, e) : p(f, C, e);
221
+ }
222
+ }, [
223
+ f,
224
+ t.lng,
225
+ C,
226
+ L,
227
+ v,
228
+ P
229
+ ]);
230
+ let R = f || {}, z = s(null), B = s(), V = (e) => {
231
+ let t = Object.getOwnPropertyDescriptors(e);
232
+ t.__original && delete t.__original;
233
+ let n = Object.create(Object.getPrototypeOf(e), t);
234
+ if (!Object.prototype.hasOwnProperty.call(n, "__original")) try {
235
+ Object.defineProperty(n, "__original", {
236
+ value: e,
237
+ writable: !1,
238
+ enumerable: !1,
239
+ configurable: !1
240
+ });
241
+ } catch {}
242
+ return n;
243
+ }, H = o(() => {
244
+ let e = R, t = e?.language, n = e;
245
+ e && (z.current && z.current.__original === e && B.current === t ? n = z.current : (n = V(e), z.current = n, B.current = t));
246
+ let r = !L && !v ? (...e) => (d(f, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), I(...e)) : I, i = [
247
+ r,
248
+ n,
249
+ L
250
+ ];
251
+ return i.t = r, i.i18n = n, i.ready = L, i;
252
+ }, [
253
+ I,
254
+ R,
255
+ L,
256
+ R.resolvedLanguage,
257
+ R.language,
258
+ R.languages
259
+ ]);
260
+ if (f && v && !L) throw new Promise((e) => {
261
+ let n = () => e();
262
+ t.lng ? m(f, t.lng, C, n) : p(f, C, n);
263
+ });
264
+ return H;
265
+ }, N = n(null);
266
+ function P(e) {
267
+ let t = i(N), { t: n, i18n: r } = M(e);
268
+ return {
269
+ t: n,
270
+ language: t?.language || r.language || "en",
271
+ changeLanguage: t?.changeLanguage || (async (e) => {
272
+ await r.changeLanguage(e);
273
+ }),
274
+ direction: t?.direction || "ltr",
275
+ i18n: r
276
+ };
277
+ }
278
+ //#endregion
279
+ //#region ../i18n/dist/useSafeTranslation.js
280
+ function F(e, t) {
281
+ return function() {
282
+ try {
283
+ let n = P();
284
+ return n.t(t) === t ? { t: (t, n) => {
285
+ let r = e[t] || t;
286
+ if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
287
+ return r;
288
+ } } : { t: n.t };
289
+ } catch {
290
+ return { t: (t, n) => {
291
+ let r = e[t] || t;
292
+ if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
293
+ return r;
294
+ } };
295
+ }
296
+ };
297
+ }
298
+ var I = F({
299
+ "common.selectOption": "Select an option",
300
+ "common.select": "Select...",
301
+ "common.search": "Search",
302
+ "table.selected": "{{count}} selected"
303
+ }, "common.selectOption");
304
+ //#endregion
305
+ export { I as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-BjfZYZey.js";
2
2
  var t = e("x", [["path", {
3
3
  d: "M18 6 6 18",
4
4
  key: "1bl5f8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-aggrid",
3
- "version": "3.1.5",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "AG Grid data grid plugin for Object UI, powered by AG Grid Community",
@@ -25,12 +25,12 @@
25
25
  "./style.css": "./dist/index.css"
26
26
  },
27
27
  "dependencies": {
28
- "@object-ui/components": "3.1.5",
29
- "@object-ui/core": "3.1.5",
30
- "@object-ui/data-objectstack": "3.1.5",
31
- "@object-ui/fields": "3.1.5",
32
- "@object-ui/react": "3.1.5",
33
- "@object-ui/types": "3.1.5"
28
+ "@object-ui/components": "3.3.0",
29
+ "@object-ui/core": "3.3.0",
30
+ "@object-ui/data-objectstack": "3.3.0",
31
+ "@object-ui/fields": "3.3.0",
32
+ "@object-ui/react": "3.3.0",
33
+ "@object-ui/types": "3.3.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "ag-grid-community": "^32.0.0",
@@ -42,10 +42,10 @@
42
42
  "@types/react": "19.2.14",
43
43
  "@types/react-dom": "19.2.3",
44
44
  "@vitejs/plugin-react": "^6.0.1",
45
- "ag-grid-react": "^35.1.0",
46
- "ag-grid-community": "^35.1.0",
47
- "typescript": "^5.9.3",
48
- "vite": "^8.0.1",
45
+ "ag-grid-react": "^35.2.1",
46
+ "ag-grid-community": "^35.2.1",
47
+ "typescript": "^6.0.2",
48
+ "vite": "^8.0.8",
49
49
  "vite-plugin-dts": "^4.5.4"
50
50
  },
51
51
  "scripts": {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Type declarations for AG Grid CSS imports
3
+ * Allows importing CSS files as modules without TypeScript errors
4
+ */
5
+
6
+ declare module 'ag-grid-community/styles/ag-grid.css';
7
+ declare module 'ag-grid-community/styles/ag-theme-quartz.css';
8
+ declare module 'ag-grid-community/styles/ag-theme-alpine.css';
9
+ declare module 'ag-grid-community/styles/ag-theme-balham.css';
10
+ declare module 'ag-grid-community/styles/ag-theme-material.css';
package/vite.config.ts CHANGED
@@ -16,6 +16,7 @@ export default defineConfig({
16
16
  react(),
17
17
  dts({
18
18
  insertTypesEntry: true,
19
+ compilerOptions: { rootDir: resolve(__dirname, '../..') },
19
20
  include: ['src'],
20
21
  exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
21
22
  skipDiagnostics: true,
@@ -1,30 +0,0 @@
1
- import { r as e, t } from "./jsx-runtime-CGDkM_Jn.js";
2
- import "react";
3
- import { Select as n, SelectContent as r, SelectItem as i, SelectTrigger as a, SelectValue as o } from "@object-ui/components";
4
- //#region ../fields/src/widgets/SelectField.tsx
5
- var s = /* @__PURE__ */ e({ SelectField: () => l }), c = t();
6
- function l({ value: e, onChange: t, field: s, readonly: l, ...u }) {
7
- let d = s || u.schema, f = d?.options || [];
8
- return l ? /* @__PURE__ */ (0, c.jsx)("span", {
9
- className: "text-sm",
10
- children: f.find((t) => t.value === e)?.label || e || "-"
11
- }) : /* @__PURE__ */ (0, c.jsxs)(n, {
12
- ...u,
13
- value: e,
14
- onValueChange: t,
15
- disabled: l || u.disabled,
16
- children: [/* @__PURE__ */ (0, c.jsx)(a, {
17
- className: u.className,
18
- id: u.id,
19
- children: /* @__PURE__ */ (0, c.jsx)(o, { placeholder: d?.placeholder || "Select an option" })
20
- }), /* @__PURE__ */ (0, c.jsx)(r, {
21
- position: "popper",
22
- children: f.map((e) => /* @__PURE__ */ (0, c.jsx)(i, {
23
- value: e.value,
24
- children: e.label
25
- }, e.value))
26
- })]
27
- });
28
- }
29
- //#endregion
30
- export { s as n, l as t };
@@ -1,39 +0,0 @@
1
- import { createElement as e, forwardRef as t } from "react";
2
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
3
- var n = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), r = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), a = (e) => {
4
- let t = i(e);
5
- return t.charAt(0).toUpperCase() + t.slice(1);
6
- }, o = {
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
- }, s = (e) => {
17
- for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
18
- return !1;
19
- }, c = t(({ color: t = "currentColor", size: r = 24, strokeWidth: i = 2, absoluteStrokeWidth: a, className: c = "", children: l, iconNode: u, ...d }, f) => e("svg", {
20
- ref: f,
21
- ...o,
22
- width: r,
23
- height: r,
24
- stroke: t,
25
- strokeWidth: a ? Number(i) * 24 / Number(r) : i,
26
- className: n("lucide", c),
27
- ...!l && !s(d) && { "aria-hidden": "true" },
28
- ...d
29
- }, [...u.map(([t, n]) => e(t, n)), ...Array.isArray(l) ? l : [l]])), l = (i, o) => {
30
- let s = t(({ className: t, ...s }, l) => e(c, {
31
- ref: l,
32
- iconNode: o,
33
- className: n(`lucide-${r(a(i))}`, `lucide-${i}`, t),
34
- ...s
35
- }));
36
- return s.displayName = a(i), s;
37
- };
38
- //#endregion
39
- export { l as t };