impact-nova 1.7.24 → 1.7.26

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 (25) hide show
  1. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +45 -36
  2. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +0 -1
  3. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +92 -75
  4. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +52 -41
  5. package/dist/components/ui/ag-grid-react/hooks/useStopEditingOnClickOutside.d.ts +5 -0
  6. package/dist/components/ui/alert.d.ts +1 -1
  7. package/dist/components/ui/data-table/data-table-column-list.js +119 -108
  8. package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -0
  9. package/dist/components/ui/nested-list/components/NestedListContent.js +134 -63
  10. package/dist/components/ui/nested-list/components/SortableItem.js +65 -82
  11. package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +176 -153
  12. package/dist/components/ui/nested-list/nested-list.js +190 -203
  13. package/dist/components/ui/select/components/Submenu.js +7 -5
  14. package/dist/components/ui/select/select.js +390 -369
  15. package/dist/i18n/defaultMessages.d.ts +3 -0
  16. package/dist/i18n/defaultMessages.js +14 -11
  17. package/dist/i18n/locales/de.js +4 -1
  18. package/dist/i18n/locales/es.js +4 -1
  19. package/dist/i18n/locales/hi.js +4 -1
  20. package/dist/i18n/locales/kn.js +4 -1
  21. package/dist/icons/assets/DraftNote.svg.js +5 -0
  22. package/dist/icons/index.d.ts +1 -0
  23. package/dist/icons/index.js +253 -251
  24. package/dist/impact-nova.css +1 -1
  25. package/package.json +1 -1
@@ -1,68 +1,68 @@
1
- import { jsx as v, jsxs as se } from "react/jsx-runtime";
2
- import re, { useMemo as w, useCallback as A } from "react";
1
+ import { jsx as g, jsxs as se } from "react/jsx-runtime";
2
+ import re, { useMemo as A, useCallback as D } from "react";
3
3
  import { SortableItem as He } from "./components/SortableItem.js";
4
- import { SelectionMode as V } from "../types/nested-list.types.js";
5
- import { useNestedListDragDrop as Je } from "./hooks/useNestedListDragDrop.js";
6
- import { useNestedListSelectAll as We } from "./hooks/useNestedListSelectAll.js";
7
- import { useNestedListState as je } from "./hooks/useNestedListState.js";
8
- import { useNestedListHandlers as Fe } from "./hooks/useNestedListHandlers.js";
4
+ import { SelectionMode as b } from "../types/nested-list.types.js";
5
+ import { useNestedListDragDrop as We } from "./hooks/useNestedListDragDrop.js";
6
+ import { useNestedListSelectAll as je } from "./hooks/useNestedListSelectAll.js";
7
+ import { useNestedListState as Fe } from "./hooks/useNestedListState.js";
8
+ import { useNestedListHandlers as Je } from "./hooks/useNestedListHandlers.js";
9
9
  import { NestedListHeader as qe } from "./components/NestedListHeader.js";
10
10
  import { NestedListCategoryFilters as Ke } from "./components/NestedListCategoryFilters.js";
11
11
  import { NestedListContent as Qe } from "./components/NestedListContent.js";
12
12
  import { NestedListApplyDiscardButtons as Xe } from "./components/NestedListApplyDiscardButtons.js";
13
13
  import { cn as Ye } from "../../../lib/utils.js";
14
14
  import { useImpactNovaI18n as Ze } from "../../../i18n/ImpactNovaI18nContext.js";
15
- const ne = (d, r) => {
16
- if (!r || typeof r != "string") return d;
17
- const o = r.toLowerCase(), c = [];
18
- return d.forEach((n) => {
19
- const l = n.label.toLowerCase().includes(o), f = n.children ? ne(n.children, r) : void 0;
20
- (l || f && f.length > 0) && c.push({
21
- ...n,
22
- children: f || n.children
15
+ const ne = (d, t) => {
16
+ if (!t || typeof t != "string") return d;
17
+ const c = t.toLowerCase(), o = [];
18
+ return d.forEach((s) => {
19
+ const l = s.label.toLowerCase().includes(c), f = s.children ? ne(s.children, t) : void 0;
20
+ (l || f && f.length > 0) && o.push({
21
+ ...s,
22
+ children: f || s.children
23
23
  });
24
- }), c;
25
- }, le = (d) => d.map((r) => {
26
- if (r.children && r.children.length > 0) {
27
- const o = le(r.children), c = o.every((n) => n.checked);
24
+ }), o;
25
+ }, le = (d) => d.map((t) => {
26
+ if (t.children && t.children.length > 0) {
27
+ const c = le(t.children), o = c.every((s) => s.checked);
28
28
  return {
29
- ...r,
30
- checked: c,
31
- children: o
29
+ ...t,
30
+ checked: o,
31
+ children: c
32
32
  };
33
33
  }
34
- return r;
35
- }), $e = (d, r) => {
36
- const o = /* @__PURE__ */ new Set(), c = (n) => {
37
- n.forEach((l) => {
38
- const f = r ? r(l) : l.category;
39
- f && o.add(f), l.children && c(l.children);
34
+ return t;
35
+ }), $e = (d, t) => {
36
+ const c = /* @__PURE__ */ new Set(), o = (s) => {
37
+ s.forEach((l) => {
38
+ const f = t ? t(l) : l.category;
39
+ f && c.add(f), l.children && o(l.children);
40
40
  });
41
41
  };
42
- return c(d), Array.from(o).sort();
43
- }, oe = (d, r, o) => {
44
- if (r.size === 0) return d;
45
- const c = [];
46
- return d.forEach((n) => {
47
- const l = o ? o(n) : n.category, f = l && r.has(l), m = n.children ? oe(n.children, r, o) : void 0;
48
- (f || m && m.length > 0) && c.push({
49
- ...n,
42
+ return o(d), Array.from(c).sort();
43
+ }, ce = (d, t, c) => {
44
+ if (t.size === 0) return d;
45
+ const o = [];
46
+ return d.forEach((s) => {
47
+ const l = c ? c(s) : s.category, f = l && t.has(l), m = s.children ? ce(s.children, t, c) : void 0;
48
+ (f || m && m.length > 0) && o.push({
49
+ ...s,
50
50
  children: m
51
51
  });
52
- }), c;
53
- }, ce = (d, r, o, c = 0) => {
54
- const n = [];
52
+ }), o;
53
+ }, oe = (d, t, c, o = 0) => {
54
+ const s = [];
55
55
  return d.forEach((l) => {
56
- n.push({ item: l, level: c }), !r[l.id] && l.children && l.children.length > 0 && l.id !== o && n.push(
57
- ...ce(l.children, r, o, c + 1)
56
+ s.push({ item: l, level: o }), !t[l.id] && l.children && l.children.length > 0 && l.id !== c && s.push(
57
+ ...oe(l.children, t, c, o + 1)
58
58
  );
59
- }), n;
59
+ }), s;
60
60
  }, ut = ({
61
61
  items: d,
62
- onChange: r,
63
- onSubmit: o,
64
- onCancel: c,
65
- onItemToggle: n,
62
+ onChange: t,
63
+ onSubmit: c,
64
+ onCancel: o,
65
+ onItemToggle: s,
66
66
  onDragEnd: l,
67
67
  enableSearch: f = !0,
68
68
  enableDragDrop: m = !0,
@@ -73,133 +73,119 @@ const ne = (d, r) => {
73
73
  className: ae = "",
74
74
  groupLabel: he,
75
75
  enableApplyDiscard: p = !1,
76
- enableCollapse: j = !0,
76
+ enableCollapse: F = !0,
77
77
  enableGlobalCollapse: ue = !0,
78
78
  submitButtonLabel: fe,
79
79
  cancelButtonLabel: pe,
80
- selectionMode: C = V.CASCADE_DOWN
80
+ selectionMode: I = b.CASCADE_DOWN
81
81
  }) => {
82
- const { t: D } = Ze(), me = ie ?? D("nestedList.searchPlaceholder"), Ne = fe ?? D("nestedList.apply"), Se = pe ?? D("nestedList.reset"), {
83
- items: i,
84
- setItems: I,
85
- savedItems: T,
86
- setSavedItems: F,
82
+ const { t: T } = Ze(), me = ie ?? T("nestedList.searchPlaceholder"), Ce = fe ?? T("nestedList.apply"), Ne = pe ?? T("nestedList.reset"), {
83
+ items: a,
84
+ setItems: v,
85
+ savedItems: w,
86
+ setSavedItems: J,
87
87
  isUserChangeRef: P,
88
88
  searchText: x,
89
- setSearchText: Ce,
90
- collapsedItems: O,
89
+ setSearchText: Se,
90
+ collapsedItems: z,
91
91
  setCollapsedItems: Ie,
92
- isListCollapsed: b,
93
- setIsListCollapsed: ge,
94
- activeId: g,
95
- setActiveId: y,
96
- setOverId: U,
97
- selectedCategories: z,
98
- setSelectedCategories: ve,
92
+ isListCollapsed: B,
93
+ setIsListCollapsed: ve,
94
+ activeId: C,
95
+ setActiveId: U,
96
+ setOverId: _,
97
+ selectedCategories: O,
98
+ setSelectedCategories: ge,
99
99
  itemsToBlink: q,
100
- setItemsToBlink: _,
100
+ setItemsToBlink: y,
101
101
  // Normalized state helpers (for optimized operations)
102
102
  isNormalized: Le,
103
103
  normalizedState: ke,
104
104
  batchUpdateItems: Ee
105
- } = je({
105
+ } = Fe({
106
106
  initialItems: d,
107
107
  enableApplyDiscard: p,
108
108
  // Enable normalized state for large datasets (can be made configurable via props)
109
109
  enableNormalizedState: d.length > 1e3
110
- });
111
- if (typeof window < "u") {
112
- const e = i.map((t) => ({
113
- id: t.id,
114
- childIds: t.children?.map((s) => ({
115
- id: s.id,
116
- childIds: s.children?.map((a) => a.id)
117
- }))
118
- }));
119
- console.log(
120
- "[NL-internal] items state (post-render-time-block)",
121
- JSON.stringify(e)
122
- );
123
- }
124
- const [B, K] = re.useState(0), [R, we] = re.useState(0), {
125
- sensors: Ae,
126
- handleDragEnd: De,
110
+ }), [R, K] = re.useState(0), [V, Ae] = re.useState(0), {
111
+ sensors: De,
112
+ handleDragEnd: Te,
127
113
  isValidDrop: Q
128
- } = Je({
129
- items: i,
114
+ } = We({
115
+ items: a,
130
116
  onDragEnd: l
131
- }), Te = w(
132
- () => L ? $e(i, S) : [],
133
- [i, L, S]
134
- ), N = w(() => {
135
- let e = i;
136
- return L && z.size > 0 && (e = oe(e, z, S)), x && (e = ne(e, x)), e;
137
- }, [i, x, L, z, S]), Pe = w(
138
- () => ce(N, O, g),
139
- [N, O, g]
140
- ), { allChecked: k, someChecked: xe } = w(() => {
141
- let e = !0, t = !1;
142
- const s = (a) => {
143
- for (const u of a)
144
- if (u.children && u.children.length > 0 ? s(u.children) : u.checked ? t = !0 : e = !1, t && !e) return;
117
+ }), we = A(
118
+ () => L ? $e(a, S) : [],
119
+ [a, L, S]
120
+ ), N = A(() => {
121
+ let e = a;
122
+ return L && O.size > 0 && (e = ce(e, O, S)), x && (e = ne(e, x)), e;
123
+ }, [a, x, L, O, S]), Pe = A(
124
+ () => oe(N, z, C),
125
+ [N, z, C]
126
+ ), { allChecked: k, someChecked: xe } = A(() => {
127
+ let e = !0, r = !1;
128
+ const n = (u) => {
129
+ for (const h of u)
130
+ if (h.children && h.children.length > 0 ? n(h.children) : h.checked ? r = !0 : e = !1, r && !e) return;
145
131
  };
146
- return s(N), { allChecked: e && t, someChecked: t };
147
- }, [N]), Oe = xe && !k, H = (e, t) => {
148
- for (const s of e) {
149
- if (s.id === t) return s;
150
- if (s.children) {
151
- const a = H(s.children, t);
152
- if (a) return a;
132
+ return n(N), { allChecked: e && r, someChecked: r };
133
+ }, [N]), ze = xe && !k, H = (e, r) => {
134
+ for (const n of e) {
135
+ if (n.id === r) return n;
136
+ if (n.children) {
137
+ const u = H(n.children, r);
138
+ if (u) return u;
153
139
  }
154
140
  }
155
141
  return null;
156
- }, be = A(
157
- (e, t) => {
158
- if (C === V.INDEPENDENT)
142
+ }, Be = D(
143
+ (e, r) => {
144
+ if (I === b.INDEPENDENT)
159
145
  return e;
160
- const s = (u, h) => u.id === h ? !0 : u.children ? u.children.some(
161
- (E) => s(E, h)
162
- ) : !1, a = (u) => u.map((h) => {
163
- if (h.id === t)
164
- return h;
165
- if (h.children && s(h, t)) {
166
- const E = a(h.children);
167
- let J;
168
- return C === V.CASCADE_UP_DOWN ? J = E.some((W) => W.checked) : J = E.every((W) => W.checked), {
169
- ...h,
170
- checked: J,
146
+ const n = (h, i) => h.id === i ? !0 : h.children ? h.children.some(
147
+ (E) => n(E, i)
148
+ ) : !1, u = (h) => h.map((i) => {
149
+ if (i.id === r)
150
+ return i;
151
+ if (i.children && n(i, r)) {
152
+ const E = u(i.children);
153
+ let W;
154
+ return I === b.CASCADE_UP_DOWN ? W = E.some((j) => j.checked) : W = E.every((j) => j.checked), {
155
+ ...i,
156
+ checked: W,
171
157
  children: E
172
158
  };
173
159
  }
174
- return h;
160
+ return i;
175
161
  });
176
- return a(e);
162
+ return u(e);
177
163
  },
178
- [C]
164
+ [I]
179
165
  ), X = (e) => {
180
- const t = [];
181
- return e.forEach((s) => {
182
- s.children && s.children.length > 0 && (t.push(s.id), t.push(...X(s.children)));
183
- }), t;
166
+ const r = [];
167
+ return e.forEach((n) => {
168
+ n.children && n.children.length > 0 && (r.push(n.id), r.push(...X(n.children)));
169
+ }), r;
184
170
  }, {
185
171
  handleToggle: Y,
186
172
  handleToggleCollapse: Z,
187
- handleCollapseAll: ze,
188
- handleToggleCategory: Be
189
- } = Fe({
190
- setItems: I,
173
+ handleCollapseAll: Oe,
174
+ handleToggleCategory: Re
175
+ } = Je({
176
+ setItems: v,
191
177
  findItemById: H,
192
- updateParentsUpward: be,
178
+ updateParentsUpward: Be,
193
179
  onChange: (e) => {
194
- K((t) => t + 1), r(e);
180
+ K((r) => r + 1), t(e);
195
181
  },
196
- onItemToggle: n,
182
+ onItemToggle: s,
197
183
  getCategory: S,
198
184
  setCollapsedItems: Ie,
199
- setIsListCollapsed: ge,
200
- setSelectedCategories: ve,
185
+ setIsListCollapsed: ve,
186
+ setSelectedCategories: ge,
201
187
  isUserChangeRef: P,
202
- selectionMode: C,
188
+ selectionMode: I,
203
189
  // Pass normalized state helpers for optimized operations
204
190
  isNormalized: Le,
205
191
  normalizedState: ke,
@@ -209,158 +195,159 @@ const ne = (d, r) => {
209
195
  findItemsNotSelected: M,
210
196
  collectVisibleItemsForCallback: G,
211
197
  updateVisibleItems: ee
212
- } = We({
198
+ } = je({
213
199
  findItemById: H,
214
200
  getCategory: S
215
- }), Re = A(() => {
216
- P.current = !0, I((e) => {
217
- const t = $(N), s = M(
201
+ }), Ve = D(() => {
202
+ P.current = !0, v((e) => {
203
+ const r = $(N), n = M(
218
204
  N,
219
205
  e,
220
- t
206
+ r
221
207
  );
222
- if (s.size > 0) {
223
- const h = new Set(s);
224
- _(h), setTimeout(() => _(/* @__PURE__ */ new Set()), 600);
208
+ if (n.size > 0) {
209
+ const i = new Set(n);
210
+ y(i), setTimeout(() => y(/* @__PURE__ */ new Set()), 600);
225
211
  }
226
- const a = ee(
212
+ const u = ee(
227
213
  e,
228
- t,
214
+ r,
229
215
  !k
230
- ), u = C === V.INDEPENDENT ? a : le(a);
231
- if (r(u), n) {
232
- const h = G(
216
+ ), h = I === b.INDEPENDENT ? u : le(u);
217
+ if (t(h), s) {
218
+ const i = G(
233
219
  e,
234
- t,
220
+ r,
235
221
  !k
236
222
  );
237
- n(h);
223
+ s(i);
238
224
  }
239
- return u;
225
+ return h;
240
226
  });
241
227
  }, [
242
228
  k,
243
- r,
244
- n,
229
+ t,
230
+ s,
245
231
  N,
246
232
  $,
247
233
  M,
248
234
  G,
249
235
  ee,
250
236
  P,
251
- I,
252
- _,
253
- C
254
- ]), Ve = A(
255
- (e, t) => {
256
- const s = g ? Q(g, e.id) : !1, a = q.has(e.id);
257
- return /* @__PURE__ */ v(
237
+ v,
238
+ y,
239
+ I
240
+ ]), be = D(
241
+ (e, r) => {
242
+ const n = C ? Q(C, e.id) : !1, u = q.has(e.id);
243
+ return /* @__PURE__ */ g(
258
244
  He,
259
245
  {
260
246
  item: e,
261
- level: t,
262
- isCollapsed: O[e.id] || !1,
247
+ level: r,
248
+ isCollapsed: z[e.id] || !1,
263
249
  onToggle: Y,
264
250
  onToggleCollapse: Z,
265
- isAnyDragging: g !== null,
266
- isValidDrop: s,
251
+ isAnyDragging: C !== null,
252
+ isValidDrop: n,
267
253
  enableDragDrop: m,
268
- enableCollapse: j,
269
- shouldBlink: a
254
+ enableCollapse: F,
255
+ shouldBlink: u
270
256
  },
271
257
  e.id
272
258
  );
273
259
  },
274
260
  [
275
- O,
261
+ z,
276
262
  Y,
277
263
  Z,
278
- g,
264
+ C,
279
265
  Q,
280
266
  m,
281
267
  q,
282
- j
268
+ F
283
269
  ]
284
- ), ye = X(i).length > 0, te = w(() => p ? i.length > 1e3 ? B !== R : JSON.stringify(i) !== JSON.stringify(T) : !1, [p, i, T, B, R]), Ue = A(() => {
285
- p && (F(i), we(B), o?.(i));
286
- }, [p, i, o, F, B]), _e = A(() => {
287
- p && (I(T), K(R), c?.());
288
- }, [p, T, c, I, R]);
270
+ ), Ue = X(a).length > 0, te = A(() => p ? a.length > 1e3 ? R !== V : JSON.stringify(a) !== JSON.stringify(w) : !1, [p, a, w, R, V]), _e = D(() => {
271
+ p && (J(a), Ae(R), c?.(a));
272
+ }, [p, a, c, J, R]), ye = D(() => {
273
+ p && (v(w), K(V), o?.());
274
+ }, [p, w, o, v, V]);
289
275
  return /* @__PURE__ */ se(
290
276
  "div",
291
277
  {
292
278
  className: Ye("flex flex-col", ae),
293
279
  "data-component": "nested-list",
294
280
  "data-has-changes": te ? "" : void 0,
295
- "data-list-collapsed": b ? "" : void 0,
281
+ "data-list-collapsed": B ? "" : void 0,
296
282
  children: [
297
283
  /* @__PURE__ */ se("div", { className: "flex-shrink-0", children: [
298
- /* @__PURE__ */ v(
284
+ /* @__PURE__ */ g(
299
285
  qe,
300
286
  {
301
- hasItemsWithChildren: ye,
302
- isListCollapsed: b,
303
- onCollapseAll: ze,
287
+ hasItemsWithChildren: Ue,
288
+ isListCollapsed: B,
289
+ onCollapseAll: Oe,
304
290
  enableSearch: f,
305
291
  enableSelectAll: de,
306
292
  groupLabel: he,
307
293
  allChecked: k,
308
- isIndeterminate: Oe,
309
- onSelectAll: Re,
294
+ isIndeterminate: ze,
295
+ onSelectAll: Ve,
310
296
  searchText: x,
311
297
  onSearchChange: (e) => {
312
- Ce(e.target.value);
298
+ Se(e.target.value);
313
299
  },
314
300
  searchPlaceholder: me,
315
- selectAllLabel: D("nestedList.selectAll"),
301
+ selectAllLabel: T("nestedList.selectAll"),
316
302
  enableCollapse: ue
317
303
  }
318
304
  ),
319
- /* @__PURE__ */ v(
305
+ /* @__PURE__ */ g(
320
306
  Ke,
321
307
  {
322
- isListCollapsed: b,
308
+ isListCollapsed: B,
323
309
  enableGroupBy: L,
324
- categories: Te,
325
- selectedCategories: z,
326
- onToggleCategory: Be
310
+ categories: we,
311
+ selectedCategories: O,
312
+ onToggleCategory: Re
327
313
  }
328
314
  )
329
315
  ] }),
330
- /* @__PURE__ */ v("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ v(
316
+ /* @__PURE__ */ g("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ g(
331
317
  Qe,
332
318
  {
333
- isListCollapsed: b,
319
+ isListCollapsed: B,
334
320
  enableDragDrop: m,
335
- sensors: Ae,
321
+ sensors: De,
336
322
  items: Pe,
337
- renderItem: Ve,
323
+ renderItem: be,
324
+ activeId: C,
338
325
  onDragStart: (e) => {
339
- y(e.active.id);
326
+ U(e.active.id);
340
327
  },
341
328
  onDragOver: (e) => {
342
- U(e.over?.id);
329
+ _(e.over?.id);
343
330
  },
344
331
  onDragEnd: (e) => {
345
- y(null), U(null), P.current = !0, De(e, (t) => {
346
- const s = t(i);
347
- I(s), r(s);
332
+ U(null), _(null), P.current = !0, Te(e, (r) => {
333
+ const n = r(a);
334
+ v(n), t(n);
348
335
  });
349
336
  },
350
337
  onDragCancel: () => {
351
- y(null), U(null);
338
+ U(null), _(null);
352
339
  }
353
340
  }
354
341
  ) }),
355
- /* @__PURE__ */ v(
342
+ /* @__PURE__ */ g(
356
343
  Xe,
357
344
  {
358
345
  enableApplyDiscard: p,
359
346
  hasChanges: te,
360
- onDiscard: _e,
361
- onApply: Ue,
362
- cancelButtonLabel: Se,
363
- submitButtonLabel: Ne
347
+ onDiscard: ye,
348
+ onApply: _e,
349
+ cancelButtonLabel: Ne,
350
+ submitButtonLabel: Ce
364
351
  }
365
352
  )
366
353
  ]
@@ -3,12 +3,12 @@ import * as l from "@radix-ui/react-popover";
3
3
  import { Checkbox as C } from "../../checkbox.js";
4
4
  import { ChevronRight as N, Checkmark as w } from "../../../../icons/index.js";
5
5
  import { cn as S } from "../../../../lib/utils.js";
6
- const D = ({
6
+ const j = ({
7
7
  parentOption: o,
8
8
  isMulti: i,
9
9
  isReadOnly: c,
10
- isSelected: x,
11
- getIndeterminateState: f,
10
+ isSelected: f,
11
+ getIndeterminateState: x,
12
12
  getSelectedCount: h,
13
13
  handleSelect: v,
14
14
  id: y
@@ -27,10 +27,12 @@ const D = ({
27
27
  avoidCollisions: !0,
28
28
  collisionPadding: 8,
29
29
  onOpenAutoFocus: (e) => e.preventDefault(),
30
+ onInteractOutside: (e) => e.preventDefault(),
31
+ onFocusOutside: (e) => e.preventDefault(),
30
32
  className: "select-submenu-container z-50 min-w-[180px] max-h-[300px] overflow-auto rounded-xl bg-canvas-elevated py-1 shadow-elevation-floating",
31
33
  "data-component": "select-menu",
32
34
  children: d.map((e) => {
33
- const n = x(e), g = f(e), a = e.isDisabled, m = h(e), s = "children" in e && Array.isArray(e.children) && e.children.length > 0, p = e.isParentSelectable !== !1, b = String(e.value || "");
35
+ const n = f(e), g = x(e), a = e.isDisabled, m = h(e), s = "children" in e && Array.isArray(e.children) && e.children.length > 0, p = e.isParentSelectable !== !1, b = String(e.value || "");
34
36
  return /* @__PURE__ */ r(
35
37
  "div",
36
38
  {
@@ -85,5 +87,5 @@ const D = ({
85
87
  ] });
86
88
  };
87
89
  export {
88
- D as default
90
+ j as default
89
91
  };