impact-nova 2.1.0-alpha.6 → 2.1.0-alpha.8

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 (113) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
  2. package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
  4. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
  5. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
  6. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
  7. package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
  8. package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
  9. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  10. package/dist/components/data/ag-grid-react/index.js +109 -100
  11. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
  12. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
  13. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
  14. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
  15. package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
  16. package/dist/components/data/ag-grid-react/theme.js +93 -21
  17. package/dist/components/data/data-table/column-indicator.d.ts +1 -1
  18. package/dist/components/data/data-table/column-indicator.js +15 -11
  19. package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
  20. package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
  21. package/dist/components/data/data-table/data-table-saved-views.js +37 -37
  22. package/dist/components/data/data-table/data-table-sheet.js +15 -17
  23. package/dist/components/data/data-table/data-table.js +62 -57
  24. package/dist/components/data/data-table/data-table.types.d.ts +7 -1
  25. package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
  26. package/dist/components/data/data-table/indicator-legend.js +20 -17
  27. package/dist/components/data/data-table/pin-switch.js +9 -9
  28. package/dist/components/data/data-table/use-data-table-column-list-sync.js +133 -130
  29. package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
  30. package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
  31. package/dist/components/data/nested-list/nested-list.js +107 -97
  32. package/dist/components/data-display/calendar/calendar.d.ts +1 -1
  33. package/dist/components/data-display/calendar/calendar.js +194 -189
  34. package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
  35. package/dist/components/data-display/chart/chart-palette.js +28 -0
  36. package/dist/components/data-display/chart/chart.js +121 -115
  37. package/dist/components/data-display/chart/chart.utils.js +9 -6
  38. package/dist/components/data-display/chart/index.d.ts +1 -0
  39. package/dist/components/data-display/chart/index.js +15 -9
  40. package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
  41. package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
  42. package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
  43. package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
  44. package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
  45. package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
  46. package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
  47. package/dist/components/feedback/dialog/dialog.js +3 -3
  48. package/dist/components/feedback/drawer/drawer.js +32 -32
  49. package/dist/components/feedback/sheet/sheet.js +8 -8
  50. package/dist/components/feedback/sheet/sheet.variants.js +1 -1
  51. package/dist/components/feedback/toast/toast.js +83 -92
  52. package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
  53. package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
  54. package/dist/components/flows/command-palette/command-palette.js +245 -258
  55. package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
  56. package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
  57. package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
  58. package/dist/components/flows/filter-panel/filter-panel.js +99 -104
  59. package/dist/components/flows/filter-strip/filter-summary.js +41 -41
  60. package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
  61. package/dist/components/flows/wizard/wizard.js +32 -32
  62. package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
  63. package/dist/components/forms/choice-card/choice-card.js +156 -166
  64. package/dist/components/forms/combobox/combobox.js +70 -70
  65. package/dist/components/forms/date-picker/date-picker.js +31 -30
  66. package/dist/components/forms/file-upload/file-upload.js +146 -168
  67. package/dist/components/forms/prompt/prompt.js +47 -48
  68. package/dist/components/forms/select/components/SelectAllRow.js +14 -14
  69. package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
  70. package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
  71. package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
  72. package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
  73. package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
  74. package/dist/components/forms/select/select.d.ts +5 -4
  75. package/dist/components/forms/select/select.js +123 -120
  76. package/dist/components/forms/select/select.types.d.ts +95 -204
  77. package/dist/components/forms/slider/slider.js +17 -17
  78. package/dist/components/forms/smart-input/smart-input.js +49 -49
  79. package/dist/components/forms/textarea/textarea.js +25 -25
  80. package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
  81. package/dist/components/layout/header/header.d.ts +5 -17
  82. package/dist/components/layout/header/header.js +113 -116
  83. package/dist/components/layout/header/header.types.d.ts +3 -0
  84. package/dist/components/layout/sidebar/sidebar.js +5 -5
  85. package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
  86. package/dist/components/primitives/accordion/accordion.js +38 -41
  87. package/dist/components/primitives/kbd/kbd.variants.js +1 -1
  88. package/dist/i18n/defaultMessages.d.ts +2 -0
  89. package/dist/i18n/defaultMessages.js +6 -4
  90. package/dist/i18n/locales/de.js +2 -0
  91. package/dist/i18n/locales/es.js +2 -0
  92. package/dist/i18n/locales/hi.js +2 -0
  93. package/dist/i18n/locales/kn.js +2 -0
  94. package/dist/impact-nova-base.scss +8 -5
  95. package/dist/impact-nova-components.css +2 -2
  96. package/dist/impact-nova-tokens.scss +346 -189
  97. package/dist/impact-nova.css +1 -1
  98. package/dist/index.js +505 -499
  99. package/dist/lib/primitives/create-component.d.ts +1 -1
  100. package/dist/lib/primitives/create-component.js +4 -4
  101. package/dist/lib/primitives/field.js +17 -18
  102. package/dist/lib/resolve-design-token-color.d.ts +5 -0
  103. package/dist/lib/resolve-design-token-color.js +12 -0
  104. package/dist/lib/virtualized/virtualized-list-parts.d.ts +1 -2
  105. package/dist/lib/virtualized/virtualized-list-parts.js +23 -23
  106. package/dist/lib/virtualized/virtualized.types.d.ts +10 -0
  107. package/dist/llms/rules/ag-grid.js +1 -1
  108. package/dist/llms/rules/installation.js +1 -1
  109. package/dist/llms/rules/requirements.js +1 -1
  110. package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
  111. package/dist/theme/tokens/chart-series-palette.json.js +7 -0
  112. package/package.json +22 -254
  113. package/tailwind.config.js +10 -229
@@ -14,12 +14,17 @@ export interface RuntimeColumnDefsResult {
14
14
  runtimeColumnDefs: (ColDef | ColGroupDef)[];
15
15
  extractedRuntimeDefaults: ExtractedColumnRuntimeDefaults;
16
16
  }
17
+ export interface SuppressInitialRuntimeState {
18
+ columnPinning?: boolean;
19
+ columnVisibility?: boolean;
20
+ }
17
21
  /**
18
- * AG Grid reapplies `colDef.pinned` / `colDef.hide` on column-definition refresh.
19
- * User changes belong in runtime column state / `initialState`, not on defs.
22
+ * AG Grid reapplies stateful `colDef.pinned` / `colDef.hide` on column-definition
23
+ * refresh. Apps may pass `pinned` / `hide` (or `initialPinned` / `initialHide`);
24
+ * DataTable maps them to initial attrs on grid-facing defs and `initialState`.
20
25
  */
21
26
  export declare function extractRuntimeColumnDefs(columnDefs: (ColDef | ColGroupDef)[] | undefined): RuntimeColumnDefsResult;
22
27
  /** @deprecated Use `extractedRuntimeDefaults.columnPinning` from `extractRuntimeColumnDefs`. */
23
28
  export declare function getExtractedColumnPinning(result: RuntimeColumnDefsResult): ExtractedColumnPinning;
24
- export declare function mergeInitialColumnPinningState(userInitialState: GridState | undefined, extractedColumnPinning: ExtractedColumnPinning): GridState | undefined;
25
- export declare function mergeInitialGridRuntimeState(userInitialState: GridState | undefined, extractedRuntimeDefaults: ExtractedColumnRuntimeDefaults): GridState | undefined;
29
+ export declare function mergeInitialColumnPinningState(userInitialState: GridState | undefined, extractedColumnPinning: ExtractedColumnPinning, suppress?: SuppressInitialRuntimeState): GridState | undefined;
30
+ export declare function mergeInitialGridRuntimeState(userInitialState: GridState | undefined, extractedRuntimeDefaults: ExtractedColumnRuntimeDefaults, suppress?: SuppressInitialRuntimeState): GridState | undefined;
@@ -1,66 +1,66 @@
1
- function d(n) {
2
- const i = n.colId ?? n.field;
3
- return typeof i == "string" && i.length > 0 ? i : void 0;
1
+ function h(i) {
2
+ const n = i.colId ?? i.field;
3
+ return typeof n == "string" && n.length > 0 ? n : void 0;
4
4
  }
5
- function s(n, i, r) {
6
- if (i === "left" || i === !0) {
7
- r.leftColIds.push(n);
5
+ function c(i, n, e) {
6
+ if (n === "left" || n === !0) {
7
+ e.leftColIds.push(i);
8
8
  return;
9
9
  }
10
- i === "right" && r.rightColIds.push(n);
10
+ n === "right" && e.rightColIds.push(i);
11
11
  }
12
- function h(n, i) {
13
- const r = d(n);
14
- if (r && (n.pinned != null && s(r, n.pinned, i.columnPinning), n.hide === !0 && i.columnVisibility.hiddenColIds.push(r)), n.pinned === void 0 && n.hide === void 0)
15
- return n;
16
- const { pinned: e, hide: t, ...o } = n;
17
- return o;
12
+ function m(i, n) {
13
+ const e = h(i), d = i.pinned ?? i.initialPinned, t = i.hide ?? i.initialHide;
14
+ if (e && (d != null && c(e, d, n.columnPinning), t === !0 && n.columnVisibility.hiddenColIds.push(e)), !(i.pinned !== void 0 || i.hide !== void 0 || i.initialPinned !== void 0 || i.initialHide !== void 0))
15
+ return i;
16
+ const { pinned: o, hide: C, initialPinned: f, initialHide: P, ...s } = i, l = { ...s };
17
+ return d !== void 0 && (l.initialPinned = d), t !== void 0 && (l.initialHide = t), l;
18
18
  }
19
- function u(n, i) {
20
- let r = !1;
21
- const e = n.map((t) => {
19
+ function u(i, n) {
20
+ let e = !1;
21
+ const d = i.map((t) => {
22
22
  if ("children" in t && t.children) {
23
- const l = u(
23
+ const o = u(
24
24
  t.children,
25
- i
25
+ n
26
26
  );
27
- return l === t.children ? t : (r = !0, {
27
+ return o === t.children ? t : (e = !0, {
28
28
  ...t,
29
- children: l
29
+ children: o
30
30
  });
31
31
  }
32
- const o = h(
32
+ const r = m(
33
33
  t,
34
- i
34
+ n
35
35
  );
36
- return o !== t && (r = !0), o;
36
+ return r !== t && (e = !0), r;
37
37
  });
38
- return r ? e : n;
38
+ return e ? d : i;
39
39
  }
40
- function c() {
40
+ function g() {
41
41
  return {
42
42
  columnPinning: { leftColIds: [], rightColIds: [] },
43
43
  columnVisibility: { hiddenColIds: [] }
44
44
  };
45
45
  }
46
- function m(n) {
47
- const i = c();
48
- return !n || n.length === 0 ? { runtimeColumnDefs: [], extractedRuntimeDefaults: i } : {
46
+ function v(i) {
47
+ const n = g();
48
+ return !i || i.length === 0 ? { runtimeColumnDefs: [], extractedRuntimeDefaults: n } : {
49
49
  runtimeColumnDefs: u(
50
- n,
51
- i
50
+ i,
51
+ n
52
52
  ),
53
- extractedRuntimeDefaults: i
53
+ extractedRuntimeDefaults: n
54
54
  };
55
55
  }
56
- function g(n, i) {
57
- const r = i.columnPinning.leftColIds.length > 0 || i.columnPinning.rightColIds.length > 0, e = i.columnVisibility.hiddenColIds.length > 0;
58
- if (!n && !r && !e)
56
+ function y(i, n, e) {
57
+ const d = !e?.columnPinning && (n.columnPinning.leftColIds.length > 0 || n.columnPinning.rightColIds.length > 0), t = !e?.columnVisibility && n.columnVisibility.hiddenColIds.length > 0;
58
+ if (!i && !d && !t)
59
59
  return;
60
- const t = { ...n };
61
- return !n?.columnPinning && r && (t.columnPinning = i.columnPinning), !n?.columnVisibility && e && (t.columnVisibility = i.columnVisibility), !t.columnPinning && !t.columnVisibility && Object.keys(t).length === 0 ? n : Object.keys(t).length > 0 ? t : void 0;
60
+ const r = { ...i };
61
+ return !i?.columnPinning && d && (r.columnPinning = n.columnPinning), !i?.columnVisibility && t && (r.columnVisibility = n.columnVisibility), !r.columnPinning && !r.columnVisibility && Object.keys(r).length === 0 ? i : Object.keys(r).length > 0 ? r : void 0;
62
62
  }
63
63
  export {
64
- m as extractRuntimeColumnDefs,
65
- g as mergeInitialGridRuntimeState
64
+ v as extractRuntimeColumnDefs,
65
+ y as mergeInitialGridRuntimeState
66
66
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, Fragment as W, jsx as t } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { ChevronRight as ge, Star as I, Search as ye, Bookmark as we, Pencil as Ne, Bin as Te } from "impact-nova-icons";
3
+ import { ChevronRight as xe, Star as I, Search as ye, Bookmark as we, Pencil as Ne, Bin as Te } from "impact-nova-icons";
4
4
  import { cn as k } from "../../../lib/utils.js";
5
5
  import { useImpactNovaI18n as ke } from "../../../i18n/use-impact-nova-i18n.js";
6
6
  import { Popover as Ve, PopoverTrigger as Ce, PopoverContent as Se } from "../../feedback/popover/popover.js";
@@ -14,7 +14,7 @@ import { Prompt as De } from "../../forms/prompt/prompt.js";
14
14
  function Me(b) {
15
15
  return b.isSystemView ? "system" : b.isDefaultView ? "default" : b.isActive ? "active" : "other";
16
16
  }
17
- const Ae = ["default", "active", "system"], Ye = ({
17
+ const Ae = ["default", "active", "system"], _e = ({
18
18
  isSaveViewEnabled: b = !0,
19
19
  views: o,
20
20
  activeViewSummary: te,
@@ -24,7 +24,7 @@ const Ae = ["default", "active", "system"], Ye = ({
24
24
  onMenuOpenChange: E,
25
25
  onSearch: V,
26
26
  isLoadingViews: L = !1,
27
- customListContent: _,
27
+ customListContent: U,
28
28
  disableApply: ie = !1,
29
29
  className: re,
30
30
  onSaveViewClick: le,
@@ -32,7 +32,7 @@ const Ae = ["default", "active", "system"], Ye = ({
32
32
  onCancel: oe,
33
33
  onEditView: de,
34
34
  onDeleteView: ce,
35
- onSetDefaultView: U
35
+ onSetDefaultView: Q
36
36
  }) => {
37
37
  const { t: a } = ke(), C = R !== void 0, [me, y] = n.useState(null), [ue, pe] = n.useState(
38
38
  ne
@@ -41,17 +41,17 @@ const Ae = ["default", "active", "system"], Ye = ({
41
41
  C || pe(e), E?.(e);
42
42
  },
43
43
  [C, E]
44
- ), [v, S] = n.useState("All"), [w, z] = n.useState(""), [Q, D] = n.useState("");
44
+ ), [v, S] = n.useState("All"), [w, z] = n.useState(""), [F, D] = n.useState("");
45
45
  n.useEffect(() => {
46
46
  const e = window.setTimeout(() => D(w), 300);
47
47
  return () => window.clearTimeout(e);
48
48
  }, [w]), n.useEffect(() => {
49
- V && V(Q);
50
- }, [Q, V]);
51
- const F = n.useMemo(
49
+ V && V(F);
50
+ }, [F, V]);
51
+ const Y = n.useMemo(
52
52
  () => o.find((e) => e.isActive),
53
53
  [o]
54
- ), d = F ?? null, Y = te ?? F?.viewName ?? a("dataTable.savedViewsNotApplicable"), [N, M] = n.useState(null), [x, $] = n.useState(null), K = n.useRef(!1);
54
+ ), d = Y ?? null, _ = te ?? Y?.viewName ?? a("dataTable.savedViewsNotApplicable"), [N, M] = n.useState(null), [g, $] = n.useState(null), K = n.useRef(!1);
55
55
  n.useEffect(() => {
56
56
  const e = u && !K.current;
57
57
  if (K.current = u, e) {
@@ -59,20 +59,20 @@ const Ae = ["default", "active", "system"], Ye = ({
59
59
  M(r?.id ?? null), S("All"), z(""), D("");
60
60
  }
61
61
  }, [u, o]);
62
- const g = n.useMemo(() => v === "All" ? o : o.filter((e) => e.viewType === v), [o, v]), f = w.trim().toLowerCase(), T = n.useCallback(
62
+ const x = n.useMemo(() => v === "All" ? o : o.filter((e) => e.viewType === v), [o, v]), f = w.trim().toLowerCase(), T = n.useCallback(
63
63
  (e, r) => r ? (e.viewName ?? "").trim().toLowerCase().includes(r) : !0,
64
64
  []
65
65
  ), A = n.useMemo(() => {
66
- let e = g;
66
+ let e = x;
67
67
  return f && (e = e.filter((r) => T(r, f))), e;
68
- }, [g, f, T]), h = n.useMemo(() => {
69
- if (g.length === 0) return [];
70
- const e = Object.groupBy(g, Me);
68
+ }, [x, f, T]), h = n.useMemo(() => {
69
+ if (x.length === 0) return [];
70
+ const e = Object.groupBy(x, Me);
71
71
  return Ae.flatMap((r) => {
72
72
  const c = e[r]?.[0];
73
73
  return c ? f && !T(c, f) ? [] : [c] : [];
74
74
  });
75
- }, [g, f, T]), P = n.useMemo(() => {
75
+ }, [x, f, T]), P = n.useMemo(() => {
76
76
  const e = new Set(h.map((r) => r.id));
77
77
  return A.filter((r) => !e.has(r.id));
78
78
  }, [A, h]), G = N === null ? null : o.find((e) => e.id === N) ?? null, fe = () => {
@@ -85,7 +85,7 @@ const Ae = ["default", "active", "system"], Ye = ({
85
85
  if (!b)
86
86
  return null;
87
87
  const ve = o.length > 0, H = (e, r, c) => {
88
- const O = N === e.id, s = me === e.id, J = r === "priority" && !!e.isActive, xe = r === "list" && !!e.isActive;
88
+ const O = N === e.id, s = me === e.id, J = r === "priority" && !!e.isActive, ge = r === "list" && !!e.isActive;
89
89
  return /* @__PURE__ */ i(
90
90
  "div",
91
91
  {
@@ -119,7 +119,7 @@ const Ae = ["default", "active", "system"], Ye = ({
119
119
  {
120
120
  className: k(
121
121
  "min-w-0 flex-1 truncate relative z-10",
122
- xe && "underline decoration-primary decoration-2 underline-offset-2"
122
+ ge && "underline decoration-primary decoration-2 underline-offset-2"
123
123
  ),
124
124
  children: e.viewName
125
125
  }
@@ -161,13 +161,13 @@ const Ae = ["default", "active", "system"], Ye = ({
161
161
  type: "button",
162
162
  variant: "ghost",
163
163
  size: "iconSm",
164
- className: "text-yellow-500 hover:text-yellow-600 disabled:opacity-50",
164
+ className: "text-warning hover:text-badge-warning-ink disabled:opacity-50",
165
165
  "aria-label": a("dataTable.savedViewsDefaultAction"),
166
166
  disabled: s,
167
167
  onClick: (l) => {
168
- l.stopPropagation(), l.preventDefault(), s || (y(e.id), setTimeout(() => y(null), 1200), U?.(e, { activeView: d }));
168
+ l.stopPropagation(), l.preventDefault(), s || (y(e.id), setTimeout(() => y(null), 1200), Q?.(e, { activeView: d }));
169
169
  },
170
- children: s ? /* @__PURE__ */ t("div", { className: "size-3.5 animate-spin motion-reduce:animate-none rounded-full border-2 border-yellow-500 border-t-transparent" }) : /* @__PURE__ */ t(I, { className: "size-3.5 fill-current text-yellow-500" })
170
+ children: s ? /* @__PURE__ */ t("div", { className: "size-3.5 animate-spin motion-reduce:animate-none rounded-full border-2 border-warning border-t-transparent" }) : /* @__PURE__ */ t(I, { className: "size-3.5 fill-current text-warning" })
171
171
  }
172
172
  ) : /* @__PURE__ */ t(
173
173
  m,
@@ -175,13 +175,13 @@ const Ae = ["default", "active", "system"], Ye = ({
175
175
  type: "button",
176
176
  variant: "ghost",
177
177
  size: "iconSm",
178
- className: "text-yellow-500 hover:text-yellow-600 disabled:opacity-50",
178
+ className: "text-warning hover:text-badge-warning-ink disabled:opacity-50",
179
179
  "aria-label": a("dataTable.savedViewsSetDefault"),
180
180
  disabled: s,
181
181
  onClick: (l) => {
182
- l.stopPropagation(), l.preventDefault(), s || (y(e.id), setTimeout(() => y(null), 1200), U?.(e, { activeView: d }));
182
+ l.stopPropagation(), l.preventDefault(), s || (y(e.id), setTimeout(() => y(null), 1200), Q?.(e, { activeView: d }));
183
183
  },
184
- children: s ? /* @__PURE__ */ t("div", { className: "size-3.5 animate-spin motion-reduce:animate-none rounded-full border-2 border-yellow-500 border-t-transparent" }) : /* @__PURE__ */ t(I, { className: "size-3.5 text-yellow-500" })
184
+ children: s ? /* @__PURE__ */ t("div", { className: "size-3.5 animate-spin motion-reduce:animate-none rounded-full border-2 border-warning border-t-transparent" }) : /* @__PURE__ */ t(I, { className: "size-3.5 text-warning" })
185
185
  }
186
186
  )
187
187
  ] })
@@ -201,8 +201,8 @@ const Ae = ["default", "active", "system"], Ye = ({
201
201
  ),
202
202
  children: [
203
203
  L ? /* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: [
204
- /* @__PURE__ */ t(B, { className: "h-6 w-24 rounded-full bg-black/10" }),
205
- /* @__PURE__ */ t(B, { className: "h-6 w-6 shrink-0 rounded-md bg-black/10" })
204
+ /* @__PURE__ */ t(B, { className: "h-6 w-24 rounded-full bg-scrim-skeleton" }),
205
+ /* @__PURE__ */ t(B, { className: "h-6 w-6 shrink-0 rounded-md bg-scrim-skeleton" })
206
206
  ] }) : ve ? /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center justify-start gap-1 overflow-hidden", children: /* @__PURE__ */ i(Ve, { open: u, onOpenChange: be, children: [
207
207
  /* @__PURE__ */ t(Ce, { asChild: !0, children: /* @__PURE__ */ i(
208
208
  "button",
@@ -220,20 +220,20 @@ const Ae = ["default", "active", "system"], Ye = ({
220
220
  color: "success",
221
221
  variant: "outline",
222
222
  className: "w-fit max-w-full min-w-0 shrink font-['Manrope']",
223
- children: Y
223
+ children: _
224
224
  }
225
225
  ) }),
226
- /* @__PURE__ */ t(q, { variant: "tertiary", side: "top", children: Y })
226
+ /* @__PURE__ */ t(q, { variant: "tertiary", side: "top", children: _ })
227
227
  ] }),
228
228
  /* @__PURE__ */ t(
229
229
  "span",
230
230
  {
231
231
  className: k(
232
- "flex size-6 shrink-0 items-center justify-center rounded-md bg-white transition-transform duration-200",
232
+ "flex size-6 shrink-0 items-center justify-center rounded-md bg-canvas-elevated transition-transform duration-200",
233
233
  u && "rotate-180"
234
234
  ),
235
235
  "aria-hidden": !0,
236
- children: /* @__PURE__ */ t(ge, { className: "size-3.5 rotate-90 text-content-charcoal" })
236
+ children: /* @__PURE__ */ t(xe, { className: "size-3.5 rotate-90 text-content-charcoal" })
237
237
  }
238
238
  )
239
239
  ]
@@ -243,13 +243,13 @@ const Ae = ["default", "active", "system"], Ye = ({
243
243
  Se,
244
244
  {
245
245
  align: "start",
246
- className: "z-[50] w-[min(100vw-24px,280px)] p-0 shadow-[0_0_4px_0_rgba(0,0,0,0.12)] overflow-visible",
246
+ className: "z-[50] w-[min(100vw-24px,280px)] p-0 shadow-elevation-floating overflow-visible",
247
247
  sideOffset: 8,
248
248
  children: /* @__PURE__ */ i("div", { className: "flex flex-col py-2", children: [
249
249
  /* @__PURE__ */ i("div", { className: "flex items-start justify-between gap-2 px-3 pb-2", children: [
250
250
  /* @__PURE__ */ t("span", { className: "text-sm font-medium text-content-charcoal font-['Manrope']", children: a("dataTable.savedViewsTitle") }),
251
251
  /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-1 text-xs font-medium text-content-tertiary font-['Manrope']", children: [
252
- /* @__PURE__ */ t(I, { className: "size-3.5 fill-current text-yellow-500" }),
252
+ /* @__PURE__ */ t(I, { className: "size-3.5 fill-current text-warning" }),
253
253
  a("dataTable.savedViewsDefault")
254
254
  ] })
255
255
  ] }),
@@ -310,7 +310,7 @@ const Ae = ["default", "active", "system"], Ye = ({
310
310
  "aria-label": a("dataTable.savedViewsSearchPlaceholder")
311
311
  }
312
312
  ) }),
313
- /* @__PURE__ */ t("div", { className: "min-h-[72px] px-1", children: _ || (L ? /* @__PURE__ */ t("div", { className: "flex max-h-[160px] flex-col gap-2 overflow-y-auto px-2 py-1", children: [1, 2, 3, 4, 5].map((e) => /* @__PURE__ */ t(B, { className: "h-9 w-full rounded-lg" }, e)) }) : A.length === 0 && h.length === 0 ? /* @__PURE__ */ t("div", { className: "flex min-h-[100px] flex-col items-center justify-center px-4 py-6 text-center", children: /* @__PURE__ */ t("span", { className: "text-sm leading-relaxed text-content-tertiary font-['Manrope']", children: a("dataTable.savedViewsEmptyList") }) }) : /* @__PURE__ */ i("div", { className: "flex max-h-[220px] flex-col gap-0 overflow-y-auto", children: [
313
+ /* @__PURE__ */ t("div", { className: "min-h-[72px] px-1", children: U || (L ? /* @__PURE__ */ t("div", { className: "flex max-h-[160px] flex-col gap-2 overflow-y-auto px-2 py-1", children: [1, 2, 3, 4, 5].map((e) => /* @__PURE__ */ t(B, { className: "h-9 w-full rounded-lg" }, e)) }) : A.length === 0 && h.length === 0 ? /* @__PURE__ */ t("div", { className: "flex min-h-[100px] flex-col items-center justify-center px-4 py-6 text-center", children: /* @__PURE__ */ t("span", { className: "text-sm leading-relaxed text-content-tertiary font-['Manrope']", children: a("dataTable.savedViewsEmptyList") }) }) : /* @__PURE__ */ i("div", { className: "flex max-h-[220px] flex-col gap-0 overflow-y-auto", children: [
314
314
  h.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-col px-1 pb-1 ", children: h.map(
315
315
  (e) => H(
316
316
  e,
@@ -381,22 +381,22 @@ const Ae = ["default", "active", "system"], Ye = ({
381
381
  De,
382
382
  {
383
383
  variant: "destructive",
384
- open: x !== null,
384
+ open: g !== null,
385
385
  onOpenChange: (e) => {
386
386
  e || $(null);
387
387
  },
388
388
  title: a("dataTable.savedViewsDeleteConfirmTitle"),
389
- description: x ? a("dataTable.savedViewsDeleteConfirmDescription", {
390
- viewName: x.viewName
389
+ description: g ? a("dataTable.savedViewsDeleteConfirmDescription", {
390
+ viewName: g.viewName
391
391
  }) : void 0,
392
392
  confirmLabel: a("dataTable.savedViewsDeleteConfirmButton"),
393
393
  onConfirm: () => {
394
- x && ce?.(x, { activeView: d });
394
+ g && ce?.(g, { activeView: d });
395
395
  }
396
396
  }
397
397
  )
398
398
  ] });
399
399
  };
400
400
  export {
401
- Ye as DataTableSavedViews
401
+ _e as DataTableSavedViews
402
402
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
- import d, { useState as b, useEffect as f, useCallback as T } from "react";
2
+ import d, { useState as b, useEffect as u, useCallback as T } from "react";
3
3
  import { createPortal as g } from "react-dom";
4
4
  import { Cross as C } from "impact-nova-icons";
5
- import { cn as m } from "../../../lib/utils.js";
5
+ import { cn as f } from "../../../lib/utils.js";
6
6
  import { Button as x } from "../../primitives/button/button.js";
7
7
  import { useDataTable as w, useDataTableSheetPortal as D } from "./data-table-context.js";
8
8
  import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as v } from "./data-table-constants.js";
@@ -13,14 +13,14 @@ const I = ({
13
13
  open: e,
14
14
  onOpenChange: o
15
15
  }) => {
16
- const { registerScopedSheetDepth: a } = w(), [s, i] = b(r), l = e !== void 0 ? e : s, p = d.useRef(o);
17
- f(() => {
18
- p.current = o;
16
+ const { registerScopedSheetDepth: a } = w(), [s, i] = b(r), l = e !== void 0 ? e : s, h = d.useRef(o);
17
+ u(() => {
18
+ h.current = o;
19
19
  });
20
- const y = T((u) => {
21
- e === void 0 && i(u), p.current?.(u);
20
+ const y = T((p) => {
21
+ e === void 0 && i(p), h.current?.(p);
22
22
  }, [e]);
23
- return f(() => {
23
+ return u(() => {
24
24
  if (l)
25
25
  return a(1), () => {
26
26
  a(-1);
@@ -51,7 +51,7 @@ const I = ({
51
51
  return /* @__PURE__ */ c(
52
52
  "div",
53
53
  {
54
- className: m(
54
+ className: f(
55
55
  "flex shrink-0 flex-row justify-between items-center px-4 py-3 mb-2 bg-brand-tint",
56
56
  e
57
57
  ),
@@ -80,14 +80,12 @@ const I = ({
80
80
  children: n,
81
81
  className: r
82
82
  }) => {
83
- const { open: e } = S(), { sheetTarget: o } = D(), [a, s] = b(e);
84
- if (f(() => {
85
- e && s(!0);
86
- }, [e]), !a) return null;
83
+ const { open: e } = S(), { sheetTarget: o } = D(), [a, s] = b(!1);
84
+ if (e && !a && s(!0), !a) return null;
87
85
  const i = /* @__PURE__ */ c(
88
86
  "div",
89
87
  {
90
- className: m(
88
+ className: f(
91
89
  "-my-px flex h-[calc(100%_+_2px)]",
92
90
  e && "animate-in slide-in-from-right-[100%] duration-200 ease-in-out fade-in fill-mode-forwards motion-reduce:animate-none motion-reduce:transition-none"
93
91
  ),
@@ -101,7 +99,7 @@ const I = ({
101
99
  "div",
102
100
  {
103
101
  "data-component": "data-table-sheet-panel",
104
- className: m(
102
+ className: f(
105
103
  "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",
106
104
  r
107
105
  ),
@@ -111,7 +109,7 @@ const I = ({
111
109
  /* @__PURE__ */ t("div", { className: "w-[16px] bg-canvas-elevated border-l border-stroke-hairline shrink-0" })
112
110
  ]
113
111
  }
114
- ), h = /* @__PURE__ */ t(
112
+ ), m = /* @__PURE__ */ t(
115
113
  "div",
116
114
  {
117
115
  className: "pointer-events-none absolute inset-0 z-[35] flex justify-end overflow-x-hidden overflow-y-visible",
@@ -119,7 +117,7 @@ const I = ({
119
117
  children: i
120
118
  }
121
119
  );
122
- return o ? g(h, o) : /* @__PURE__ */ t(
120
+ return o ? g(m, o) : /* @__PURE__ */ t(
123
121
  "div",
124
122
  {
125
123
  className: "pointer-events-none fixed inset-0 z-[35] flex justify-end overflow-x-hidden overflow-y-visible",