impact-nova 1.7.7 → 1.7.9

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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as e, Fragment as j } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { Settings as F, Checkmark as h, Search as _ } from "../../../../../icons/index.js";
4
- import { DropdownMenu as E, DropdownMenuTrigger as G, DropdownMenuContent as L, DropdownMenuLabel as k, DropdownMenuSeparator as z, DropdownMenuSub as p, DropdownMenuSubTrigger as f, DropdownMenuSubContent as g, DropdownMenuItem as i } from "../../../dropdown-menu.js";
4
+ import { DropdownMenu as E, DropdownMenuTrigger as G, DropdownMenuContent as L, DropdownMenuLabel as k, DropdownMenuSeparator as z, DropdownMenuSub as p, DropdownMenuSubTrigger as f, DropdownMenuSubContent as g, DropdownMenuItem as a } from "../../../dropdown-menu.js";
5
5
  import { useGridHeader as R } from "../context/grid-header-context.js";
6
6
  import { useImpactNovaI18n as B } from "../../../../../i18n/ImpactNovaI18nContext.js";
7
7
  const U = ({
@@ -13,15 +13,14 @@ const U = ({
13
13
  }) => {
14
14
  const { t } = B(), C = R(), o = s.getColumn(l);
15
15
  if (!o) return null;
16
- const a = o.getColDef(), x = o.getSort(), S = o.getPinned(), M = a?.sortable !== !1, y = a?.filter || "agTextColumnFilter", H = y === "agNumberColumnFilter" || (Array.isArray(a?.type) ? a.type.includes("numericColumn") : a?.type === "numericColumn"), b = y === "agDateColumnFilter" || (Array.isArray(a?.type) ? a.type.includes("dateColumn") : a?.type === "dateColumn"), u = (n) => {
16
+ const i = o.getColDef(), x = o.getSort(), S = o.getPinned(), M = i?.sortable !== !1, y = i?.filter || "agTextColumnFilter", H = y === "agNumberColumnFilter" || (Array.isArray(i?.type) ? i.type.includes("numericColumn") : i?.type === "numericColumn"), b = y === "agDateColumnFilter" || (Array.isArray(i?.type) ? i.type.includes("dateColumn") : i?.type === "dateColumn"), m = (n) => {
17
17
  s.applyColumnState({
18
18
  state: [{ colId: l, sort: n }],
19
19
  defaultState: { sort: null }
20
20
  }), c();
21
- }, m = (n) => {
21
+ }, u = (n) => {
22
22
  s.applyColumnState({
23
- state: [{ colId: l, pinned: n }],
24
- defaultState: { pinned: null }
23
+ state: [{ colId: l, pinned: n }]
25
24
  }), c();
26
25
  }, w = (n) => {
27
26
  n ? s.autoSizeAllColumns() : s.autoSizeColumns([l]), c();
@@ -29,9 +28,9 @@ const U = ({
29
28
  const n = s.getGridOption("context") || {};
30
29
  s.setGridOption("context", { ...n, activeSearchColumnId: l }), s.refreshHeader(), c();
31
30
  }, T = () => {
32
- const n = a?.headerComponentParams;
31
+ const n = i?.headerComponentParams;
33
32
  n?.onAdvanceSearchClick ? n.onAdvanceSearchClick(o) : n?.toggleAdvanceSearch ? n.toggleAdvanceSearch(l) : C && C.openAdvancedFilter(l), c();
34
- }, d = A?.getBoundingClientRect(), D = a?.headerComponentParams, N = D?.isSearchable, v = D?.advanceSearchEnabled;
33
+ }, d = A?.getBoundingClientRect(), D = i?.headerComponentParams, N = D?.isSearchable, v = D?.advanceSearchEnabled;
35
34
  return /* @__PURE__ */ r(E, { open: O, onOpenChange: (n) => !n && c(), children: [
36
35
  d && /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
37
36
  "div",
@@ -65,36 +64,36 @@ const U = ({
65
64
  M && /* @__PURE__ */ r(p, { children: [
66
65
  /* @__PURE__ */ e(f, { inset: !0, children: t("gridHeader.sort") }),
67
66
  /* @__PURE__ */ r(g, { sideOffset: 10, alignOffset: -5, children: [
68
- /* @__PURE__ */ e(i, { onClick: () => u("asc"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
67
+ /* @__PURE__ */ e(a, { onClick: () => m("asc"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
69
68
  /* @__PURE__ */ e("span", { children: t(H ? "gridHeader.sortAscNumber" : b ? "gridHeader.sortAscDate" : "gridHeader.sortAscText") }),
70
69
  x === "asc" && /* @__PURE__ */ e(h, { size: "sm", className: "ml-2 text-content-tertiary" })
71
70
  ] }) }),
72
- /* @__PURE__ */ e(i, { onClick: () => u("desc"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
71
+ /* @__PURE__ */ e(a, { onClick: () => m("desc"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
73
72
  /* @__PURE__ */ e("span", { children: t(H ? "gridHeader.sortDescNumber" : b ? "gridHeader.sortDescDate" : "gridHeader.sortDescText") }),
74
73
  x === "desc" && /* @__PURE__ */ e(h, { size: "sm", className: "ml-2 text-content-tertiary" })
75
74
  ] }) }),
76
- /* @__PURE__ */ e(i, { onClick: () => u(null), children: /* @__PURE__ */ e("span", { children: t("gridHeader.reset") }) })
75
+ /* @__PURE__ */ e(a, { onClick: () => m(null), children: /* @__PURE__ */ e("span", { children: t("gridHeader.reset") }) })
77
76
  ] })
78
77
  ] }),
79
78
  /* @__PURE__ */ r(p, { children: [
80
79
  /* @__PURE__ */ e(f, { inset: !0, children: t("gridHeader.freezeColumn") }),
81
80
  /* @__PURE__ */ r(g, { className: "z-[120]", sideOffset: 10, alignOffset: -5, children: [
82
- /* @__PURE__ */ e(i, { onClick: () => m("left"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
81
+ /* @__PURE__ */ e(a, { onClick: () => u("left"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
83
82
  /* @__PURE__ */ e("span", { children: t("gridHeader.pinLeft") }),
84
83
  S === "left" && /* @__PURE__ */ e(h, { size: "sm", className: "ml-2 text-content-tertiary" })
85
84
  ] }) }),
86
- /* @__PURE__ */ e(i, { onClick: () => m("right"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
85
+ /* @__PURE__ */ e(a, { onClick: () => u("right"), children: /* @__PURE__ */ r("span", { className: "flex items-center w-full justify-between", children: [
87
86
  /* @__PURE__ */ e("span", { children: t("gridHeader.pinRight") }),
88
87
  S === "right" && /* @__PURE__ */ e(h, { size: "sm", className: "ml-2 text-content-tertiary" })
89
88
  ] }) }),
90
- /* @__PURE__ */ e(i, { onClick: () => m(null), children: /* @__PURE__ */ e("span", { children: t("gridHeader.noPin") }) })
89
+ /* @__PURE__ */ e(a, { onClick: () => u(null), children: /* @__PURE__ */ e("span", { children: t("gridHeader.noPin") }) })
91
90
  ] })
92
91
  ] }),
93
92
  /* @__PURE__ */ r(p, { children: [
94
93
  /* @__PURE__ */ e(f, { inset: !0, children: t("gridHeader.columnWidth") }),
95
94
  /* @__PURE__ */ r(g, { className: "z-[120]", sideOffset: 10, alignOffset: -5, children: [
96
- /* @__PURE__ */ e(i, { onClick: () => w(!1), children: t("gridHeader.autosizeThisColumn") }),
97
- /* @__PURE__ */ e(i, { onClick: () => w(!0), children: t("gridHeader.autosizeAllColumns") })
95
+ /* @__PURE__ */ e(a, { onClick: () => w(!1), children: t("gridHeader.autosizeThisColumn") }),
96
+ /* @__PURE__ */ e(a, { onClick: () => w(!0), children: t("gridHeader.autosizeAllColumns") })
98
97
  ] })
99
98
  ] }),
100
99
  (N || v) && /* @__PURE__ */ r(j, { children: [
@@ -104,8 +103,8 @@ const U = ({
104
103
  " ",
105
104
  t("gridHeader.searchOptions")
106
105
  ] }),
107
- N && /* @__PURE__ */ e(i, { inset: !0, onClick: P, children: t("gridHeader.search") }),
108
- v && /* @__PURE__ */ e(i, { inset: !0, onClick: T, children: t("gridHeader.advanceSearch") })
106
+ N && /* @__PURE__ */ e(a, { inset: !0, onClick: P, children: t("gridHeader.search") }),
107
+ v && /* @__PURE__ */ e(a, { inset: !0, onClick: T, children: t("gridHeader.advanceSearch") })
109
108
  ] })
110
109
  ] })
111
110
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs as U, jsx as a } from "react/jsx-runtime";
2
- import { lazy as V, useRef as D, useState as f, useCallback as F, useMemo as y, useEffect as W, Suspense as _ } from "react";
2
+ import { lazy as V, useRef as D, useState as f, useCallback as v, useMemo as y, useEffect as W, Suspense as _ } from "react";
3
3
  import { ModuleRegistry as $, AllCommunityModule as q, ValidationModule as K } from "ag-grid-community";
4
4
  import { AllEnterpriseModule as z } from "ag-grid-enterprise";
5
5
  import { AgGridReact as J } from "ag-grid-react";
@@ -22,11 +22,11 @@ function ye({
22
22
  onGridReady: m,
23
23
  ...u
24
24
  }) {
25
- const r = D(null), s = D(null), [h, M] = f(null), [G, C] = f(!1), [b, x] = f(null), [R, S] = f(!1), [A, k] = f(null), [N, E] = f(null), O = F((e) => {
25
+ const r = D(null), s = D(null), [h, M] = f(null), [x, C] = f(!1), [b, G] = f(null), [R, S] = f(!1), [A, k] = f(null), [N, E] = f(null), O = v((e) => {
26
26
  if (!r.current) return;
27
27
  const t = Z(e);
28
28
  r.current.setFilterModel(t), r.current.onFilterChanged();
29
- }, []), v = y(() => ({
29
+ }, []), F = y(() => ({
30
30
  openSearch: (e) => {
31
31
  if (!r.current) return;
32
32
  const t = r.current.getGridOption("context") || {};
@@ -38,10 +38,10 @@ function ye({
38
38
  r.current.setGridOption("context", { ...e, activeSearchColumnId: null }), r.current.refreshHeader();
39
39
  },
40
40
  openAdvancedFilter: (e) => {
41
- x(e || null), C(!0);
41
+ G(e || null), C(!0);
42
42
  },
43
43
  closeAdvancedFilter: () => {
44
- C(!1), x(null);
44
+ C(!1), G(null);
45
45
  },
46
46
  applyAdvancedFilter: (e) => {
47
47
  O(e);
@@ -53,8 +53,10 @@ function ye({
53
53
  S(!1), k(null), E(null);
54
54
  },
55
55
  activeMenuColumnId: A
56
- }), [O, A]), T = F((e) => {
57
- r.current = e.api, M(e.api), e.api.setGridOption("context", { activeSearchColumnId: null }), m && m(e);
56
+ }), [O, A]), T = v((e) => {
57
+ r.current = e.api, M(e.api);
58
+ const t = e.api.getGridOption("context") || {};
59
+ e.api.setGridOption("context", { ...t, activeSearchColumnId: null }), m && m(e);
58
60
  }, [m]);
59
61
  W(() => {
60
62
  const e = s.current;
@@ -103,13 +105,13 @@ function ye({
103
105
  // User components override
104
106
  ...d
105
107
  // Optional custom formatters override defaults
106
- }), [d, u.components]), P = F((e) => {
108
+ }), [d, u.components]), P = v((e) => {
107
109
  if (e.value !== null && e.value !== void 0 && typeof e.value == "object") {
108
110
  const t = Object.entries(e.value).map(([n, l]) => l && typeof l == "object" && "value" in l ? l.value : typeof l != "object" && typeof l < "u" ? l : null).filter((n) => n != null);
109
111
  return t.length > 0 ? t.join(" ") : "";
110
112
  }
111
113
  return e.value;
112
- }, []), w = F((e) => {
114
+ }, []), w = v((e) => {
113
115
  if (typeof e.value == "string") {
114
116
  const t = e.value.trim();
115
117
  if (t.startsWith("{") || t.startsWith("["))
@@ -121,7 +123,7 @@ function ye({
121
123
  }
122
124
  return e.value;
123
125
  }, []);
124
- return /* @__PURE__ */ U(Y.Provider, { value: v, children: [
126
+ return /* @__PURE__ */ U(Y.Provider, { value: F, children: [
125
127
  /* @__PURE__ */ a("div", { ref: s, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ a(
126
128
  J,
127
129
  {
@@ -167,11 +169,11 @@ function ye({
167
169
  /* @__PURE__ */ a(
168
170
  le,
169
171
  {
170
- isOpen: G,
172
+ isOpen: x,
171
173
  columnId: b,
172
174
  gridApi: h,
173
- onClose: v.closeAdvancedFilter,
174
- onApply: v.applyAdvancedFilter
175
+ onClose: F.closeAdvancedFilter,
176
+ onApply: F.applyAdvancedFilter
175
177
  }
176
178
  ),
177
179
  /* @__PURE__ */ a(
@@ -181,7 +183,7 @@ function ye({
181
183
  columnId: A,
182
184
  gridApi: h,
183
185
  anchor: N,
184
- onClose: v.closeMenu
186
+ onClose: F.closeMenu
185
187
  }
186
188
  )
187
189
  ] });
@@ -5,10 +5,6 @@ export type DataTableRowHeight = 'default' | 'compact' | 'comfort';
5
5
  export interface DataTableContextValue {
6
6
  gridApi: GridApi | null;
7
7
  registerApi: (api: GridApi) => void;
8
- sheetTarget: HTMLDivElement | null;
9
- setSheetTarget: (node: HTMLDivElement | null) => void;
10
- /** True while at least one `DataTableSheet` in this table has `open` — expands grid host so the portaled overlay is not clipped. */
11
- scopedSheetOpen: boolean;
12
8
  /** Call `+1` when a sheet opens, `-1` when it closes or unmounts (supports multiple sheets). */
13
9
  registerScopedSheetDepth: (delta: 1 | -1) => void;
14
10
  fontSize: DataTableFontSize;
@@ -20,3 +16,15 @@ export interface DataTableContextValue {
20
16
  }
21
17
  export declare const DataTableContext: import('react').Context<DataTableContextValue>;
22
18
  export declare const useDataTable: () => DataTableContextValue;
19
+ /**
20
+ * Separate context for sheet-portal state that changes on every sheet open/close.
21
+ * Isolated from `DataTableContext` so that `scopedSheetOpen` toggling does NOT
22
+ * force grid consumers (`DataTableContent`, `AgGridWrapper`) to re-render.
23
+ */
24
+ export interface DataTableSheetPortalContextValue {
25
+ sheetTarget: HTMLDivElement | null;
26
+ setSheetTarget: (node: HTMLDivElement | null) => void;
27
+ scopedSheetOpen: boolean;
28
+ }
29
+ export declare const DataTableSheetPortalContext: import('react').Context<DataTableSheetPortalContextValue>;
30
+ export declare const useDataTableSheetPortal: () => DataTableSheetPortalContextValue;
@@ -1,11 +1,18 @@
1
1
  import { createContext as e, useContext as a } from "react";
2
- const o = e(null), r = () => {
2
+ const o = e(null), l = () => {
3
3
  const t = a(o);
4
4
  if (!t)
5
5
  throw new Error("useDataTable must be used within a DataTable");
6
6
  return t;
7
+ }, n = e(null), s = () => {
8
+ const t = a(n);
9
+ if (!t)
10
+ throw new Error("useDataTableSheetPortal must be used within a DataTable");
11
+ return t;
7
12
  };
8
13
  export {
9
14
  o as DataTableContext,
10
- r as useDataTable
15
+ n as DataTableSheetPortalContext,
16
+ l as useDataTable,
17
+ s as useDataTableSheetPortal
11
18
  };
@@ -1,4 +1,20 @@
1
1
  import { default as React } from 'react';
2
+ /**
3
+ * Returns both `open` and `setOpen`.
4
+ * Subscribes to BOTH contexts — use only in components that genuinely
5
+ * need to read the `open` flag (DataTableSheetContent, Trigger, etc.).
6
+ */
7
+ export declare const useDataTableSheet: () => {
8
+ open: boolean;
9
+ setOpen: (open: boolean) => void;
10
+ };
11
+ /**
12
+ * Returns ONLY `setOpen`. Does NOT subscribe to `open` changes, so the
13
+ * consuming component will NOT re-render when the sheet opens/closes.
14
+ */
15
+ export declare const useDataTableSheetApi: () => {
16
+ setOpen: (open: boolean) => void;
17
+ };
2
18
  export declare const DataTableSheet: ({ children, defaultOpen, open: controlledOpen, onOpenChange, }: {
3
19
  children: React.ReactNode;
4
20
  defaultOpen?: boolean;
@@ -1,117 +1,140 @@
1
- import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
- import m, { useState as w, useEffect as T, createContext as g, useContext as S } from "react";
3
- import { createPortal as y } from "react-dom";
4
- import { X as N } from "lucide-react";
5
- import { cn as p } from "../../../lib/utils.js";
6
- import { Button as C } from "../button.js";
7
- import { useDataTable as v } from "./data-table-context.js";
8
- import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as u } from "./data-table-constants.js";
9
- const b = g(
10
- null
11
- ), d = () => {
12
- const e = S(b);
13
- if (!e)
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import i, { useState as w, useCallback as y, useEffect as D, useContext as f, createContext as b } from "react";
3
+ import { createPortal as g } from "react-dom";
4
+ import { X as C } from "lucide-react";
5
+ import { cn as u } from "../../../lib/utils.js";
6
+ import { Button as N } from "../button.js";
7
+ import { useDataTable as k, useDataTableSheetPortal as _ } from "./data-table-context.js";
8
+ import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as v } from "./data-table-constants.js";
9
+ const x = b(!1), h = b(null), S = () => {
10
+ const e = f(x), o = f(h);
11
+ if (!o)
14
12
  throw new Error("useDataTableSheet must be used within DataTableSheet");
15
- return e;
16
- }, A = ({
13
+ return { open: e, setOpen: o };
14
+ }, E = () => {
15
+ const e = f(h);
16
+ if (!e)
17
+ throw new Error("useDataTableSheetApi must be used within DataTableSheet");
18
+ return { setOpen: e };
19
+ }, M = ({
17
20
  children: e,
18
- defaultOpen: a = !1,
19
- open: o,
21
+ defaultOpen: o = !1,
22
+ open: t,
20
23
  onOpenChange: r
21
24
  }) => {
22
- const { registerScopedSheetDepth: n } = v(), [s, l] = w(a), f = o !== void 0, i = f ? o : s, x = (h) => {
23
- f || l(h), r?.(h);
24
- };
25
- return T(() => {
26
- if (i)
27
- return n(1), () => n(-1);
28
- }, [i, n]), /* @__PURE__ */ t(b.Provider, { value: { open: i, setOpen: x }, children: e });
29
- }, z = ({
25
+ const { registerScopedSheetDepth: a } = k(), [s, l] = w(o), c = t !== void 0 ? t : s, m = i.useRef(r);
26
+ m.current = r;
27
+ const T = y((p) => {
28
+ t === void 0 && l(p), m.current?.(p);
29
+ }, [t]);
30
+ return D(() => {
31
+ if (c)
32
+ return a(1), () => a(-1);
33
+ }, [c, a]), /* @__PURE__ */ n(h.Provider, { value: T, children: /* @__PURE__ */ n(x.Provider, { value: c, children: e }) });
34
+ }, X = ({
30
35
  children: e,
31
- asChild: a
36
+ asChild: o
32
37
  }) => {
33
- const { setOpen: o, open: r } = d(), n = () => {
34
- o(!r);
38
+ const { setOpen: t, open: r } = S(), a = () => {
39
+ t(!r);
35
40
  };
36
- if (a) {
37
- const s = m.Children.only(e);
38
- return m.cloneElement(s, {
41
+ if (o) {
42
+ const s = i.Children.only(e);
43
+ return i.cloneElement(s, {
39
44
  onClick: (l) => {
40
- s.props.onClick?.(l), n();
45
+ s.props.onClick?.(l), a();
41
46
  }
42
47
  });
43
48
  }
44
- return /* @__PURE__ */ t(C, { variant: "outline", onClick: n, children: e });
45
- }, B = ({
49
+ return /* @__PURE__ */ n(N, { variant: "outline", onClick: a, children: e });
50
+ }, G = ({
46
51
  title: e,
47
- children: a,
48
- className: o
52
+ children: o,
53
+ className: t
49
54
  }) => {
50
- const { setOpen: r } = d();
51
- return /* @__PURE__ */ c(
55
+ const { setOpen: r } = E();
56
+ return /* @__PURE__ */ d(
52
57
  "div",
53
58
  {
54
- className: p(
59
+ className: u(
55
60
  "flex shrink-0 flex-row justify-between items-center px-4 py-3 mb-2 bg-brand-tint",
56
- o
61
+ t
57
62
  ),
58
63
  children: [
59
- /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: e && /* @__PURE__ */ t("h2", { className: "font-[Manrope] font-bold text-base text-content", children: e }) }),
60
- /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
61
- a,
62
- /* @__PURE__ */ t(
64
+ /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: e && /* @__PURE__ */ n("h2", { className: "font-[Manrope] font-bold text-base text-content", children: e }) }),
65
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
66
+ o,
67
+ /* @__PURE__ */ n(
63
68
  "span",
64
69
  {
65
70
  role: "button",
66
71
  className: "close_icon cursor-pointer flex items-center justify-center w-6 h-6 rounded-full hover:bg-muted/50 transition-colors",
67
72
  onClick: () => r(!1),
68
- children: /* @__PURE__ */ t(N, { className: "h-4 w-4 text-content-muted" })
73
+ children: /* @__PURE__ */ n(C, { className: "h-4 w-4 text-content-muted" })
69
74
  }
70
75
  )
71
76
  ] })
72
77
  ]
73
78
  }
74
79
  );
75
- }, I = ({
80
+ }, L = ({
76
81
  children: e,
77
- className: a
82
+ className: o
78
83
  }) => {
79
- const { open: o } = d(), { sheetTarget: r } = v();
80
- if (!o) return null;
81
- const n = /* @__PURE__ */ c(
84
+ const { open: t } = S(), { sheetTarget: r } = _(), a = i.useRef(!1);
85
+ if (t && (a.current = !0), !a.current) return null;
86
+ const s = /* @__PURE__ */ d(
82
87
  "div",
83
88
  {
84
- className: "-my-px flex h-[calc(100%_+_2px)] animate-in slide-in-from-right-[100%] duration-200 ease-in-out fade-in fill-mode-forwards",
85
- style: { minHeight: u },
89
+ className: u(
90
+ "-my-px flex h-[calc(100%_+_2px)]",
91
+ t && "animate-in slide-in-from-right-[100%] duration-200 ease-in-out fade-in fill-mode-forwards"
92
+ ),
93
+ style: {
94
+ minHeight: v,
95
+ display: t ? void 0 : "none"
96
+ },
86
97
  children: [
87
- /* @__PURE__ */ t("div", { className: "w-[10px] bg-canvas-elevated border-l border-stroke-hairline shrink-0" }),
88
- /* @__PURE__ */ t(
98
+ /* @__PURE__ */ n("div", { className: "w-[10px] bg-canvas-elevated border-l border-stroke-hairline shrink-0" }),
99
+ /* @__PURE__ */ n(
89
100
  "div",
90
101
  {
91
102
  "data-component": "data-table-sheet-panel",
92
- className: p(
103
+ className: u(
93
104
  "relative flex h-full w-[355px] flex-col overflow-y-auto bg-canvas-elevated border-t border-l border-stroke-hairline pointer-events-auto shadow-elevation-floating",
94
- a
105
+ o
95
106
  ),
96
107
  children: e
97
108
  }
98
109
  ),
99
- /* @__PURE__ */ t("div", { className: "w-[16px] bg-canvas-elevated border-l border-stroke-hairline shrink-0" })
110
+ /* @__PURE__ */ n("div", { className: "w-[16px] bg-canvas-elevated border-l border-stroke-hairline shrink-0" })
100
111
  ]
101
112
  }
102
- ), s = /* @__PURE__ */ t("div", { className: "pointer-events-none absolute inset-0 z-[35] flex justify-end overflow-x-hidden overflow-y-visible", children: n });
103
- return r ? y(s, r) : /* @__PURE__ */ t(
113
+ ), l = /* @__PURE__ */ n(
114
+ "div",
115
+ {
116
+ className: "pointer-events-none absolute inset-0 z-[35] flex justify-end overflow-x-hidden overflow-y-visible",
117
+ style: { display: t ? void 0 : "none" },
118
+ children: s
119
+ }
120
+ );
121
+ return r ? g(l, r) : /* @__PURE__ */ n(
104
122
  "div",
105
123
  {
106
124
  className: "pointer-events-none fixed inset-0 z-[35] flex justify-end overflow-x-hidden overflow-y-visible",
107
- style: { minHeight: u },
108
- children: n
125
+ style: {
126
+ minHeight: v,
127
+ display: t ? void 0 : "none"
128
+ },
129
+ children: s
109
130
  }
110
131
  );
111
132
  };
112
133
  export {
113
- A as DataTableSheet,
114
- I as DataTableSheetContent,
115
- B as DataTableSheetHeader,
116
- z as DataTableSheetTrigger
134
+ M as DataTableSheet,
135
+ L as DataTableSheetContent,
136
+ G as DataTableSheetHeader,
137
+ X as DataTableSheetTrigger,
138
+ S as useDataTableSheet,
139
+ E as useDataTableSheetApi
117
140
  };