impact-nova 2.2.3 → 2.2.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.
Files changed (59) hide show
  1. package/dist/components/data/ag-grid-react/headers/custom-header.js +133 -110
  2. package/dist/components/data/ag-grid-react/headers/header-search-input.js +23 -23
  3. package/dist/components/data/ag-grid-react/index.js +202 -206
  4. package/dist/components/data/data-table/build-column-tree-from-grid.js +65 -67
  5. package/dist/components/data/data-table/data-table-column-list-sync.js +5 -10
  6. package/dist/components/data/data-table/data-table-column-list.js +64 -61
  7. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +29 -0
  8. package/dist/components/data/data-table/data-table-column-tree-cache.js +117 -0
  9. package/dist/components/data/data-table/data-table-constants.d.ts +2 -0
  10. package/dist/components/data/data-table/data-table-constants.js +3 -2
  11. package/dist/components/data/data-table/data-table-sheet.js +46 -49
  12. package/dist/components/data/data-table/data-table.js +137 -119
  13. package/dist/components/data/data-table/index.js +24 -23
  14. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +3 -0
  15. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +24 -0
  16. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +2 -1
  17. package/dist/components/data/data-table/use-data-table-column-list-sync.js +249 -150
  18. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +2 -1
  19. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +30 -27
  20. package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +1 -1
  21. package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +179 -118
  22. package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +30 -29
  23. package/dist/components/data/expandable-list-item/expandable-list-item.types.d.ts +8 -1
  24. package/dist/components/data/expandable-list-item/index.d.ts +1 -1
  25. package/dist/components/data/nested-list/components/NestedListContent.js +158 -96
  26. package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -0
  27. package/dist/components/data/nested-list/nested-list-constants.js +6 -0
  28. package/dist/components/data/nested-list/nested-list-tree-utils.d.ts +3 -0
  29. package/dist/components/data/nested-list/nested-list-tree-utils.js +24 -0
  30. package/dist/components/data/nested-list/nested-list.js +214 -215
  31. package/dist/components/data-display/card/card.js +6 -5
  32. package/dist/components/feedback/dialog/dialog.js +7 -5
  33. package/dist/components/feedback/sheet/sheet.js +28 -27
  34. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  35. package/dist/components/flows/filter-panel/filter-panel.js +36 -35
  36. package/dist/components/flows/filter-strip/filter-tag-list.js +44 -44
  37. package/dist/components/forms/combobox/combobox.js +110 -100
  38. package/dist/components/forms/date-picker/date-input-behavior.d.ts +9 -0
  39. package/dist/components/forms/date-picker/date-input-behavior.js +32 -19
  40. package/dist/components/forms/date-picker/date-picker.js +96 -90
  41. package/dist/components/forms/date-picker/date-range-picker.js +160 -152
  42. package/dist/components/forms/date-picker/month-picker.js +71 -65
  43. package/dist/components/forms/date-picker/month-range-picker.js +153 -145
  44. package/dist/components/forms/date-picker/multi-date-picker.js +127 -99
  45. package/dist/components/forms/date-picker/multi-month-picker.js +109 -97
  46. package/dist/components/forms/date-picker/multi-week-picker.js +98 -86
  47. package/dist/components/forms/date-picker/week-picker.js +82 -76
  48. package/dist/components/forms/date-picker/week-range-picker.js +127 -119
  49. package/dist/impact-nova-base.scss +10 -5
  50. package/dist/impact-nova-components.css +9 -5
  51. package/dist/impact-nova.css +1 -1
  52. package/dist/index.js +189 -188
  53. package/dist/lib/overlay/overlay-portal-context.d.ts +11 -2
  54. package/dist/lib/overlay/overlay-portal-context.js +39 -28
  55. package/dist/lib/primitives/create-compound.d.ts +5 -0
  56. package/dist/lib/primitives/create-compound.js +17 -16
  57. package/dist/llms/rules/installation.js +1 -1
  58. package/dist/llms/rules/requirements.js +1 -1
  59. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { jsx as g, jsxs as oe } from "react/jsx-runtime";
2
- import K, { useMemo as T, useCallback as w } from "react";
1
+ import { jsx as S, jsxs as de } from "react/jsx-runtime";
2
+ import Q, { useMemo as T, useCallback as w } from "react";
3
3
  import { SortableItem as Je } from "./components/SortableItem.js";
4
4
  import { SelectionMode as _ } from "./nested-list.types.js";
5
5
  import { useNestedListDragDrop as Ke } from "./hooks/useNestedListDragDrop.js";
@@ -13,273 +13,272 @@ import { NestedListApplyDiscardButtons as Ge } from "./components/NestedListAppl
13
13
  import { shouldUseNestedListRevisionTracking as et, computeNestedListHasChanges as tt } from "./nested-list-change-detection.js";
14
14
  import { cn as st } from "../../../lib/utils.js";
15
15
  import { useImpactNovaI18n as rt } from "../../../i18n/use-impact-nova-i18n.js";
16
- const de = (h, t) => {
17
- if (!t || typeof t != "string") return h;
18
- const c = t.toLowerCase(), o = [];
19
- return h.forEach((r) => {
20
- const i = r.label.toLowerCase().includes(c), l = r.children ? de(r.children, t) : void 0;
21
- (i || l && l.length > 0) && o.push({
22
- ...r,
23
- children: l || r.children
16
+ const ie = (a, t) => {
17
+ if (!t || typeof t != "string") return a;
18
+ const o = t.toLowerCase(), c = [];
19
+ return a.forEach((n) => {
20
+ const i = n.label.toLowerCase().includes(o), l = n.children ? ie(n.children, t) : void 0;
21
+ (i || l && l.length > 0) && c.push({
22
+ ...n,
23
+ children: l || n.children
24
24
  });
25
- }), o;
26
- }, ie = (h) => h.map((t) => {
25
+ }), c;
26
+ }, ae = (a) => a.map((t) => {
27
27
  if (t.children && t.children.length > 0) {
28
- const c = ie(t.children), o = c.every((r) => r.checked);
28
+ const o = ae(t.children), c = o.every((n) => n.checked);
29
29
  return {
30
30
  ...t,
31
- checked: o,
32
- children: c
31
+ checked: c,
32
+ children: o
33
33
  };
34
34
  }
35
35
  return t;
36
- }), nt = (h, t) => {
37
- const c = /* @__PURE__ */ new Set(), o = (r) => {
38
- r.forEach((i) => {
36
+ }), nt = (a, t) => {
37
+ const o = /* @__PURE__ */ new Set(), c = (n) => {
38
+ n.forEach((i) => {
39
39
  const l = t ? t(i) : i.category;
40
- l && c.add(l), i.children && o(i.children);
40
+ l && o.add(l), i.children && c(i.children);
41
41
  });
42
42
  };
43
- return o(h), Array.from(c).sort();
44
- }, ae = (h, t, c) => {
45
- if (t.size === 0) return h;
46
- const o = [];
47
- return h.forEach((r) => {
48
- const i = c ? c(r) : r.category, l = i && t.has(i), m = r.children ? ae(r.children, t, c) : void 0;
49
- (l || m && m.length > 0) && o.push({
50
- ...r,
43
+ return c(a), Array.from(o).sort();
44
+ }, he = (a, t, o) => {
45
+ if (t.size === 0) return a;
46
+ const c = [];
47
+ return a.forEach((n) => {
48
+ const i = o ? o(n) : n.category, l = i && t.has(i), m = n.children ? he(n.children, t, o) : void 0;
49
+ (l || m && m.length > 0) && c.push({
50
+ ...n,
51
51
  children: m
52
52
  });
53
- }), o;
54
- }, he = (h, t, c, o = 0, r = 0) => {
53
+ }), c;
54
+ }, ue = (a, t, o, c = 0, n = 0) => {
55
55
  const i = [];
56
- return h.forEach((l) => {
56
+ return a.forEach((l) => {
57
57
  if (i.push({
58
58
  item: l,
59
- level: o,
60
- indentLevel: l.category === "structure" ? 0 : r
61
- }), !t[l.id] && l.children && l.children.length > 0 && l.id !== c) {
62
- const H = l.category === "structure" ? 0 : r + 1;
59
+ level: c,
60
+ indentLevel: l.category === "structure" ? 0 : n
61
+ }), !t[l.id] && l.children && l.children.length > 0 && l.id !== o) {
62
+ const y = l.category === "structure" ? 0 : n + 1;
63
63
  i.push(
64
- ...he(
64
+ ...ue(
65
65
  l.children,
66
66
  t,
67
- c,
68
- o + 1,
69
- H
67
+ o,
68
+ c + 1,
69
+ y
70
70
  )
71
71
  );
72
72
  }
73
73
  }), i;
74
- }, St = ({
75
- items: h,
74
+ }, Lt = ({
75
+ items: a,
76
76
  onChange: t,
77
- onSubmit: c,
78
- onCancel: o,
79
- onItemToggle: r,
77
+ onSubmit: o,
78
+ onCancel: c,
79
+ onItemToggle: n,
80
80
  onDragEnd: i,
81
81
  renderLabelExtras: l,
82
82
  renderActions: m,
83
- enableSearch: H = !0,
84
- enableDragDrop: O = !0,
85
- enableSelectAll: ue = !0,
86
- enableGroupBy: k = !1,
87
- getCategory: v,
88
- searchPlaceholder: fe,
89
- className: pe = "",
90
- groupLabel: me,
83
+ enableSearch: y = !0,
84
+ enableDragDrop: H = !0,
85
+ enableSelectAll: fe = !0,
86
+ enableGroupBy: g = !1,
87
+ getCategory: N,
88
+ searchPlaceholder: pe,
89
+ className: me = "",
90
+ groupLabel: Ce,
91
91
  enableApplyDiscard: p = !1,
92
- enableCollapse: Q = !0,
93
- enableGlobalCollapse: Ne = !0,
94
- submitButtonLabel: Ce,
95
- cancelButtonLabel: Ie,
96
- selectionMode: S = _.CASCADE_DOWN,
97
- initialCollapsedItems: ve,
98
- onCollapseChange: X,
92
+ enableCollapse: X = !0,
93
+ enableGlobalCollapse: Ie = !0,
94
+ submitButtonLabel: Ne,
95
+ cancelButtonLabel: ve,
96
+ selectionMode: v = _.CASCADE_DOWN,
97
+ initialCollapsedItems: Le,
98
+ onCollapseChange: Y,
99
99
  canDrag: A
100
100
  }) => {
101
- const { t: P } = rt(), Se = fe ?? P("nestedList.searchPlaceholder"), Le = Ce ?? P("nestedList.apply"), ge = Ie ?? P("nestedList.reset"), {
102
- items: u,
101
+ const { t: P } = rt(), Se = pe ?? P("nestedList.searchPlaceholder"), ge = Ne ?? P("nestedList.apply"), ke = ve ?? P("nestedList.reset"), {
102
+ items: h,
103
103
  setItems: L,
104
- savedItems: R,
105
- setSavedItems: Y,
106
- isUserChangeRef: b,
104
+ savedItems: b,
105
+ setSavedItems: Z,
106
+ isUserChangeRef: R,
107
107
  searchText: x,
108
- setSearchText: ke,
109
- collapsedItems: N,
110
- setCollapsedItems: Ee,
108
+ setSearchText: Ee,
109
+ collapsedItems: C,
110
+ setCollapsedItems: De,
111
111
  isListCollapsed: z,
112
- setIsListCollapsed: De,
113
- activeId: C,
114
- setActiveId: y,
112
+ setIsListCollapsed: Te,
113
+ activeId: I,
114
+ setActiveId: O,
115
115
  setOverId: W,
116
116
  selectedCategories: B,
117
- setSelectedCategories: Te,
118
- itemsToBlink: Z,
117
+ setSelectedCategories: we,
118
+ itemsToBlink: $,
119
119
  setItemsToBlink: j,
120
120
  // Normalized state helpers (for optimized operations)
121
- isNormalized: we,
122
- normalizedState: Ae,
123
- batchUpdateItems: Pe
121
+ isNormalized: Ae,
122
+ normalizedState: Pe,
123
+ batchUpdateItems: be
124
124
  } = Xe({
125
- initialItems: h,
125
+ initialItems: a,
126
126
  enableApplyDiscard: p,
127
127
  // Enable normalized state for large datasets (can be made configurable via props)
128
- enableNormalizedState: et(h.length),
129
- initialCollapsedItems: ve
128
+ enableNormalizedState: et(a.length),
129
+ initialCollapsedItems: Le
130
130
  });
131
- K.useEffect(() => {
132
- X?.(N);
133
- }, [N, X]);
134
- const [U, $] = K.useState(0), [V, Re] = K.useState(0), {
135
- sensors: be,
136
- handleDragEnd: xe,
137
- isValidDrop: M
131
+ Q.useEffect(() => {
132
+ Y?.(C);
133
+ }, [C, Y]);
134
+ const [U, M] = Q.useState(0), [V, Re] = Q.useState(0), {
135
+ sensors: xe,
136
+ handleDragEnd: ze,
137
+ isValidDrop: G
138
138
  } = Ke({
139
- items: u,
139
+ items: h,
140
140
  onDragEnd: i,
141
- collapsedItems: N,
141
+ collapsedItems: C,
142
142
  canDrag: A
143
- }), ze = T(
144
- () => k ? nt(u, v) : [],
145
- [u, k, v]
146
- ), I = T(() => {
147
- let e = u;
148
- return k && B.size > 0 && (e = ae(e, B, v)), x && (e = de(e, x)), e;
149
- }, [u, x, k, B, v]), Be = T(
150
- () => he(I, N, C),
151
- [I, N, C]
143
+ }), Be = T(
144
+ () => g ? nt(h, N) : [],
145
+ [h, g, N]
146
+ ), k = T(() => {
147
+ let e = h;
148
+ return g && B.size > 0 && (e = he(e, B, N)), x && (e = ie(e, x)), e;
149
+ }, [h, x, g, B, N]), F = T(
150
+ () => ue(k, C, I),
151
+ [k, C, I]
152
152
  ), { allChecked: E, someChecked: Ue } = T(() => {
153
153
  let e = !0, s = !1;
154
- const n = (f) => {
155
- for (const a of f)
156
- if (a.children && a.children.length > 0 ? n(a.children) : a.checked ? s = !0 : e = !1, s && !e) return;
157
- };
158
- return n(I), { allChecked: e && s, someChecked: s };
159
- }, [I]), Ve = Ue && !E, F = (e, s) => {
160
- for (const n of e) {
161
- if (n.id === s) return n;
162
- if (n.children) {
163
- const f = F(n.children, s);
164
- if (f) return f;
154
+ for (const { item: r } of F)
155
+ if (!(!(!r.children || r.children.length === 0) || r.category === "structure") && (r.checked ? s = !0 : e = !1, s && !e))
156
+ break;
157
+ return { allChecked: e && s, someChecked: s };
158
+ }, [F]), Ve = Ue && !E, q = (e, s) => {
159
+ for (const r of e) {
160
+ if (r.id === s) return r;
161
+ if (r.children) {
162
+ const u = q(r.children, s);
163
+ if (u) return u;
165
164
  }
166
165
  }
167
166
  return null;
168
167
  }, _e = w(
169
168
  (e, s) => {
170
- if (S === _.INDEPENDENT)
169
+ if (v === _.INDEPENDENT)
171
170
  return e;
172
- const n = (a, d) => a.id === d ? !0 : a.children ? a.children.some(
173
- (D) => n(D, d)
174
- ) : !1, f = (a) => a.map((d) => {
171
+ const r = (f, d) => f.id === d ? !0 : f.children ? f.children.some(
172
+ (D) => r(D, d)
173
+ ) : !1, u = (f) => f.map((d) => {
175
174
  if (d.id === s)
176
175
  return d;
177
- if (d.children && n(d, s)) {
178
- const D = f(d.children);
179
- let q;
180
- return S === _.CASCADE_UP_DOWN ? q = D.some((J) => J.checked) : q = D.every((J) => J.checked), {
176
+ if (d.children && r(d, s)) {
177
+ const D = u(d.children);
178
+ let J;
179
+ return v === _.CASCADE_UP_DOWN ? J = D.some((K) => K.checked) : J = D.every((K) => K.checked), {
181
180
  ...d,
182
- checked: q,
181
+ checked: J,
183
182
  children: D
184
183
  };
185
184
  }
186
185
  return d;
187
186
  });
188
- return f(e);
187
+ return u(e);
189
188
  },
190
- [S]
191
- ), G = (e) => {
189
+ [v]
190
+ ), ee = (e) => {
192
191
  const s = [];
193
- return e.forEach((n) => {
194
- n.children && n.children.length > 0 && (s.push(n.id), s.push(...G(n.children)));
192
+ return e.forEach((r) => {
193
+ r.children && r.children.length > 0 && (s.push(r.id), s.push(...ee(r.children)));
195
194
  }), s;
196
195
  }, {
197
- handleToggle: ee,
198
- handleToggleCollapse: te,
199
- handleCollapseAll: He,
200
- handleToggleCategory: Oe
196
+ handleToggle: te,
197
+ handleToggleCollapse: se,
198
+ handleCollapseAll: ye,
199
+ handleToggleCategory: He
201
200
  } = Ye({
202
201
  setItems: L,
203
- findItemById: F,
202
+ findItemById: q,
204
203
  updateParentsUpward: _e,
205
204
  onChange: (e) => {
206
- $((s) => s + 1), t(e);
205
+ M((s) => s + 1), t(e);
207
206
  },
208
- onItemToggle: r,
209
- getCategory: v,
210
- setCollapsedItems: Ee,
211
- setIsListCollapsed: De,
212
- setSelectedCategories: Te,
213
- isUserChangeRef: b,
214
- selectionMode: S,
207
+ onItemToggle: n,
208
+ getCategory: N,
209
+ setCollapsedItems: De,
210
+ setIsListCollapsed: Te,
211
+ setSelectedCategories: we,
212
+ isUserChangeRef: R,
213
+ selectionMode: v,
215
214
  // Pass normalized state helpers for optimized operations
216
- isNormalized: we,
217
- normalizedState: Ae,
218
- batchUpdateItems: Pe
215
+ isNormalized: Ae,
216
+ normalizedState: Pe,
217
+ batchUpdateItems: be
219
218
  }), {
220
- collectVisibleItemIds: se,
221
- findItemsNotSelected: re,
222
- collectVisibleItemsForCallback: ne,
223
- updateVisibleItems: le
219
+ collectVisibleItemIds: re,
220
+ findItemsNotSelected: ne,
221
+ collectVisibleItemsForCallback: le,
222
+ updateVisibleItems: oe
224
223
  } = Qe({
225
- findItemById: F,
226
- getCategory: v
227
- }), ye = w(() => {
228
- b.current = !0, L((e) => {
229
- const s = se(I), n = re(
230
- I,
224
+ findItemById: q,
225
+ getCategory: N
226
+ }), Oe = w(() => {
227
+ R.current = !0, L((e) => {
228
+ const s = re(k), r = ne(
229
+ k,
231
230
  e,
232
231
  s
233
232
  );
234
- if (n.size > 0) {
235
- const d = new Set(n);
233
+ if (r.size > 0) {
234
+ const d = new Set(r);
236
235
  j(d), setTimeout(() => j(/* @__PURE__ */ new Set()), 600);
237
236
  }
238
- const f = le(
237
+ const u = oe(
239
238
  e,
240
239
  s,
241
240
  !E
242
- ), a = S === _.INDEPENDENT ? f : ie(f);
243
- if (t(a), r) {
244
- const d = ne(
241
+ ), f = v === _.INDEPENDENT ? u : ae(u);
242
+ if (t(f), n) {
243
+ const d = le(
245
244
  e,
246
245
  s,
247
246
  !E
248
247
  );
249
- r(d);
248
+ n(d);
250
249
  }
251
- return a;
250
+ return f;
252
251
  });
253
252
  }, [
254
253
  E,
255
254
  t,
256
- r,
257
- I,
258
- se,
255
+ n,
256
+ k,
259
257
  re,
260
258
  ne,
261
259
  le,
262
- b,
260
+ oe,
261
+ R,
263
262
  L,
264
263
  j,
265
- S
264
+ v
266
265
  ]), We = w(
267
- (e, s, n) => {
268
- const f = C ? M(C, e.id) : !1, a = Z.has(e.id), d = A ? !A(e, s) : e.isDragDisabled ?? !1;
269
- return /* @__PURE__ */ g(
266
+ (e, s, r) => {
267
+ const u = I ? G(I, e.id) : !1, f = $.has(e.id), d = A ? !A(e, s) : e.isDragDisabled ?? !1;
268
+ return /* @__PURE__ */ S(
270
269
  Je,
271
270
  {
272
271
  item: e,
273
272
  level: s,
274
- indentLevel: n,
275
- isCollapsed: N[e.id] || !1,
276
- onToggle: ee,
277
- onToggleCollapse: te,
278
- isAnyDragging: C !== null,
279
- isValidDrop: f,
280
- enableDragDrop: O,
281
- enableCollapse: Q,
282
- shouldBlink: a,
273
+ indentLevel: r,
274
+ isCollapsed: C[e.id] || !1,
275
+ onToggle: te,
276
+ onToggleCollapse: se,
277
+ isAnyDragging: I !== null,
278
+ isValidDrop: u,
279
+ enableDragDrop: H,
280
+ enableCollapse: X,
281
+ shouldBlink: f,
283
282
  isDragDisabled: d,
284
283
  renderLabelExtras: l,
285
284
  renderActions: m
@@ -288,108 +287,108 @@ const de = (h, t) => {
288
287
  );
289
288
  },
290
289
  [
291
- N,
292
- ee,
293
- te,
294
290
  C,
295
- M,
296
- O,
297
- Z,
298
- Q,
291
+ te,
292
+ se,
293
+ I,
294
+ G,
295
+ H,
296
+ $,
297
+ X,
299
298
  A,
300
299
  l,
301
300
  m
302
301
  ]
303
- ), je = G(u).length > 0, ce = T(
302
+ ), je = ee(h).length > 0, ce = T(
304
303
  () => tt({
305
304
  enableApplyDiscard: p,
306
- items: u,
307
- savedItems: R,
305
+ items: h,
306
+ savedItems: b,
308
307
  revision: U,
309
308
  savedRevision: V
310
309
  }),
311
- [p, u, R, U, V]
310
+ [p, h, b, U, V]
312
311
  ), Fe = w(() => {
313
- p && (Y(u), Re(U), c?.(u));
314
- }, [p, u, c, Y, U]), qe = w(() => {
315
- p && (L(R), $(V), o?.());
316
- }, [p, R, o, L, V]);
317
- return /* @__PURE__ */ oe(
312
+ p && (Z(h), Re(U), o?.(h));
313
+ }, [p, h, o, Z, U]), qe = w(() => {
314
+ p && (L(b), M(V), c?.());
315
+ }, [p, b, c, L, V]);
316
+ return /* @__PURE__ */ de(
318
317
  "div",
319
318
  {
320
- className: st("flex flex-col", pe),
319
+ className: st("flex flex-col", me),
321
320
  "data-component": "nested-list",
322
321
  "data-has-changes": ce ? "" : void 0,
323
322
  "data-list-collapsed": z ? "" : void 0,
324
323
  children: [
325
- /* @__PURE__ */ oe("div", { className: "flex-shrink-0", children: [
326
- /* @__PURE__ */ g(
324
+ /* @__PURE__ */ de("div", { className: "flex-shrink-0", children: [
325
+ /* @__PURE__ */ S(
327
326
  Ze,
328
327
  {
329
328
  hasItemsWithChildren: je,
330
329
  isListCollapsed: z,
331
- onCollapseAll: He,
332
- enableSearch: H,
333
- enableSelectAll: ue,
334
- groupLabel: me,
330
+ onCollapseAll: ye,
331
+ enableSearch: y,
332
+ enableSelectAll: fe,
333
+ groupLabel: Ce,
335
334
  allChecked: E,
336
335
  isIndeterminate: Ve,
337
- onSelectAll: ye,
336
+ onSelectAll: Oe,
338
337
  searchText: x,
339
338
  onSearchChange: (e) => {
340
- ke(e.target.value);
339
+ Ee(e.target.value);
341
340
  },
342
341
  searchPlaceholder: Se,
343
342
  selectAllLabel: P("nestedList.selectAll"),
344
- enableCollapse: Ne
343
+ enableCollapse: Ie
345
344
  }
346
345
  ),
347
- /* @__PURE__ */ g(
346
+ /* @__PURE__ */ S(
348
347
  $e,
349
348
  {
350
349
  isListCollapsed: z,
351
- enableGroupBy: k,
352
- categories: ze,
350
+ enableGroupBy: g,
351
+ categories: Be,
353
352
  selectedCategories: B,
354
- onToggleCategory: Oe
353
+ onToggleCategory: He
355
354
  }
356
355
  )
357
356
  ] }),
358
- /* @__PURE__ */ g("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ g(
357
+ /* @__PURE__ */ S("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ S(
359
358
  Me,
360
359
  {
361
360
  isListCollapsed: z,
362
- enableDragDrop: O,
363
- sensors: be,
364
- items: Be,
361
+ enableDragDrop: H,
362
+ sensors: xe,
363
+ items: F,
365
364
  renderItem: We,
366
- activeId: C,
365
+ activeId: I,
367
366
  onDragStart: (e) => {
368
- y(e.active.id);
367
+ O(e.active.id);
369
368
  },
370
369
  onDragOver: (e) => {
371
370
  W(e.over?.id);
372
371
  },
373
372
  onDragEnd: (e) => {
374
- y(null), W(null), b.current = !0, xe(e, (s) => {
375
- const n = s(u);
376
- L(n), t(n);
373
+ O(null), W(null), R.current = !0, ze(e, (s) => {
374
+ const r = s(h);
375
+ L(r), t(r);
377
376
  });
378
377
  },
379
378
  onDragCancel: () => {
380
- y(null), W(null);
379
+ O(null), W(null);
381
380
  }
382
381
  }
383
382
  ) }),
384
- /* @__PURE__ */ g(
383
+ /* @__PURE__ */ S(
385
384
  Ge,
386
385
  {
387
386
  enableApplyDiscard: p,
388
387
  hasChanges: ce,
389
388
  onDiscard: qe,
390
389
  onApply: Fe,
391
- cancelButtonLabel: ge,
392
- submitButtonLabel: Le
390
+ cancelButtonLabel: ke,
391
+ submitButtonLabel: ge
393
392
  }
394
393
  )
395
394
  ]
@@ -397,5 +396,5 @@ const de = (h, t) => {
397
396
  );
398
397
  };
399
398
  export {
400
- St as NestedList
399
+ Lt as NestedList
401
400
  };
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { createComponent as d } from "../../../lib/primitives/create-component.js";
3
3
  import { createCompoundPart as a } from "../../../lib/primitives/create-compound.js";
4
4
  import { cn as s } from "../../../lib/utils.js";
5
- const i = d(
5
+ const m = d(
6
6
  "Card",
7
7
  ({ className: e, ...r }, t) => /* @__PURE__ */ o(
8
8
  "div",
@@ -16,7 +16,7 @@ const i = d(
16
16
  ...r
17
17
  }
18
18
  )
19
- ), l = a("card", {
19
+ ), i = a("card", {
20
20
  part: "header",
21
21
  displayName: "CardHeader",
22
22
  className: "flex flex-col space-y-1.5 p-6"
@@ -31,17 +31,18 @@ const i = d(
31
31
  }), N = a("card", {
32
32
  part: "content",
33
33
  displayName: "CardContent",
34
- className: "p-6 pt-0"
34
+ className: "p-6 pt-0",
35
+ scrollSurface: !0
35
36
  }), x = a("card", {
36
37
  part: "footer",
37
38
  displayName: "CardFooter",
38
39
  className: "flex items-center p-6 pt-0"
39
40
  });
40
41
  export {
41
- i as Card,
42
+ m as Card,
42
43
  N as CardContent,
43
44
  f as CardDescription,
44
45
  x as CardFooter,
45
- l as CardHeader,
46
+ i as CardHeader,
46
47
  C as CardTitle
47
48
  };