impact-nova 0.1.13 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/components/layout/dashboard-layout.d.ts +21 -6
  2. package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +32 -33
  3. package/dist/components/ui/accordion.js +25 -23
  4. package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +32 -21
  5. package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.d.ts +3 -5
  6. package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +57 -55
  7. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +5 -0
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +50 -52
  9. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
  10. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +34 -34
  11. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +8 -11
  12. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +17 -17
  13. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +3 -3
  14. package/dist/components/ui/alert-dialog.js +45 -40
  15. package/dist/components/ui/alert.d.ts +21 -4
  16. package/dist/components/ui/alert.js +45 -25
  17. package/dist/components/ui/avatar.js +19 -16
  18. package/dist/components/ui/badge.js +8 -1
  19. package/dist/components/ui/breadcrumb.js +1 -0
  20. package/dist/components/ui/button-group.d.ts +1 -1
  21. package/dist/components/ui/button-group.js +27 -32
  22. package/dist/components/ui/button-variants.d.ts +1 -1
  23. package/dist/components/ui/button.d.ts +11 -0
  24. package/dist/components/ui/button.js +11 -9
  25. package/dist/components/ui/calendar.d.ts +14 -2
  26. package/dist/components/ui/calendar.js +443 -376
  27. package/dist/components/ui/card.js +7 -6
  28. package/dist/components/ui/checkbox.js +64 -48
  29. package/dist/components/ui/chips.d.ts +1 -0
  30. package/dist/components/ui/chips.js +27 -19
  31. package/dist/components/ui/data-table/data-table-column-list.d.ts +4 -1
  32. package/dist/components/ui/data-table/data-table-column-list.js +58 -54
  33. package/dist/components/ui/data-table/data-table-sheet.d.ts +1 -1
  34. package/dist/components/ui/data-table/data-table-sheet.js +43 -40
  35. package/dist/components/ui/data-table/data-table-view-options.js +17 -17
  36. package/dist/components/ui/data-table/data-table.js +21 -20
  37. package/dist/components/ui/date-picker/date-picker.js +93 -93
  38. package/dist/components/ui/date-picker/date-range-picker.js +142 -133
  39. package/dist/components/ui/date-picker/month-picker.js +96 -93
  40. package/dist/components/ui/date-picker/month-range-picker.js +144 -134
  41. package/dist/components/ui/date-picker/multi-date-picker.js +43 -45
  42. package/dist/components/ui/date-picker/multi-month-picker.js +37 -39
  43. package/dist/components/ui/date-picker/multi-week-picker.js +56 -46
  44. package/dist/components/ui/date-picker/week-picker.js +119 -109
  45. package/dist/components/ui/date-picker/week-range-picker.js +170 -147
  46. package/dist/components/ui/dialog.js +15 -6
  47. package/dist/components/ui/drawer.js +16 -13
  48. package/dist/components/ui/dropdown-menu.js +4 -2
  49. package/dist/components/ui/dynamic-layout.d.ts +2 -2
  50. package/dist/components/ui/dynamic-layout.js +18 -15
  51. package/dist/components/ui/empty-container.js +69 -64
  52. package/dist/components/ui/file-upload.js +113 -106
  53. package/dist/components/ui/filter-panel/filter-panel.js +49 -46
  54. package/dist/components/ui/filter-strip/filter-strip.js +41 -37
  55. package/dist/components/ui/header.js +26 -25
  56. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +43 -40
  57. package/dist/components/ui/hover-card.js +6 -5
  58. package/dist/components/ui/input.d.ts +1 -1
  59. package/dist/components/ui/input.js +79 -68
  60. package/dist/components/ui/loader.d.ts +1 -0
  61. package/dist/components/ui/loader.js +23 -13
  62. package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -3
  63. package/dist/components/ui/nested-list/components/NestedListContent.js +16 -15
  64. package/dist/components/ui/nested-list/components/SortableItem.js +116 -80
  65. package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.d.ts +13 -1
  66. package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +162 -112
  67. package/dist/components/ui/nested-list/nested-list.js +182 -189
  68. package/dist/components/ui/notification-panel/notification-item.js +19 -17
  69. package/dist/components/ui/notification-panel/notification-list.js +21 -21
  70. package/dist/components/ui/notification-panel/notification-panel.js +25 -25
  71. package/dist/components/ui/popover.js +37 -34
  72. package/dist/components/ui/progress.js +12 -10
  73. package/dist/components/ui/prompt.js +29 -27
  74. package/dist/components/ui/radio-group.js +55 -46
  75. package/dist/components/ui/select/components/Submenu.d.ts +1 -2
  76. package/dist/components/ui/select/components/Submenu.js +52 -48
  77. package/dist/components/ui/select/select.js +321 -324
  78. package/dist/components/ui/sheet.js +18 -15
  79. package/dist/components/ui/sidebar.d.ts +2 -2
  80. package/dist/components/ui/sidebar.js +3 -3
  81. package/dist/components/ui/skeleton.d.ts +2 -1
  82. package/dist/components/ui/skeleton.js +12 -11
  83. package/dist/components/ui/slider.js +39 -12
  84. package/dist/components/ui/smart-input.js +44 -39
  85. package/dist/components/ui/stepper.js +33 -29
  86. package/dist/components/ui/switch.js +6 -4
  87. package/dist/components/ui/tabs.js +50 -45
  88. package/dist/components/ui/tag-group.d.ts +2 -1
  89. package/dist/components/ui/tag-group.js +29 -25
  90. package/dist/components/ui/tag.d.ts +1 -0
  91. package/dist/components/ui/tag.js +26 -20
  92. package/dist/components/ui/textarea.js +18 -17
  93. package/dist/components/ui/toast.d.ts +1 -1
  94. package/dist/components/ui/toast.js +47 -41
  95. package/dist/components/ui/toaster.js +42 -42
  96. package/dist/components/ui/tooltip.js +18 -16
  97. package/dist/components/ui/types/date-picker.types.d.ts +33 -0
  98. package/dist/components/ui/types/empty-container.types.d.ts +5 -0
  99. package/dist/components/ui/types/nested-list.types.d.ts +1 -0
  100. package/dist/components/ui/types/select.types.d.ts +0 -1
  101. package/dist/icons/assets/bookmark.svg.js +4 -0
  102. package/dist/icons/assets/bookmark.svg2.js +5 -0
  103. package/dist/icons/assets/bookmarkFilled.svg.js +4 -0
  104. package/dist/icons/assets/bookmarkFilled.svg2.js +5 -0
  105. package/dist/icons/assets/download.svg.js +4 -0
  106. package/dist/icons/assets/download.svg2.js +5 -0
  107. package/dist/icons/index.d.ts +20 -6
  108. package/dist/icons/index.js +398 -370
  109. package/dist/impact-nova.css +1 -1
  110. package/dist/index.d.ts +1 -0
  111. package/dist/index.js +318 -314
  112. package/dist/lib/fiscal-calendar.d.ts +62 -0
  113. package/dist/lib/fiscal-calendar.js +99 -0
  114. package/dist/lib/utils.d.ts +2 -1
  115. package/dist/lib/utils.js +29 -13
  116. package/package.json +5 -5
  117. package/dist/components/ui/select/hooks/useClickOutside.d.ts +0 -15
  118. package/dist/components/ui/select/hooks/useClickOutside.js +0 -43
  119. package/dist/components/ui/select/hooks/useMenuPosition.d.ts +0 -2
  120. package/dist/components/ui/select/hooks/useMenuPosition.js +0 -89
@@ -1,50 +1,50 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "react";
3
- const y = (d) => {
4
- const { splits: t, commonParams: i, data: m, node: p, api: s, column: f, context: c, value: u, colDef: w } = d;
5
- if (!t || !Array.isArray(t)) return null;
6
- const g = (e, r) => {
7
- if (!r) return "--";
8
- let n = r;
9
- switch (e?.decimals != null && !isNaN(Number(r)) && (n = Number(r).toFixed(e.decimals)), e.type) {
3
+ const w = (m) => {
4
+ const { splits: n, commonParams: i, data: s, node: p, api: c, column: u, context: a, value: f } = m;
5
+ if (!n || !Array.isArray(n)) return null;
6
+ const g = (r, e) => {
7
+ if (!e) return "--";
8
+ let t = e;
9
+ switch (r?.decimals != null && !isNaN(Number(e)) && (t = Number(e).toFixed(r.decimals)), r.type) {
10
10
  case "currencySymbol": {
11
- const l = e.symbol ?? "$";
12
- return e.position === "suffix" ? `${n} ${l}` : `${l} ${n}`;
11
+ const l = r.symbol ?? "$";
12
+ return r.position === "suffix" ? `${t} ${l}` : `${l} ${t}`;
13
13
  }
14
14
  case "percentage":
15
- return `${n} %`;
15
+ return `${t} %`;
16
16
  case "number":
17
- return n;
17
+ return t;
18
18
  default:
19
- return n;
19
+ return t;
20
20
  }
21
- }, h = (e) => {
22
- const r = e;
23
- if (typeof r == "string") {
24
- const n = s?.getGridOption("components");
25
- return c?.frameworkComponents?.[r] || n?.[r];
21
+ }, h = (r) => {
22
+ const e = r;
23
+ if (typeof e == "string") {
24
+ const t = c?.getGridOption("components");
25
+ return a?.frameworkComponents?.[e] || t?.[e];
26
26
  }
27
- return r;
27
+ return e;
28
28
  };
29
- return /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateRows: `repeat(${t?.length}, 1fr)`, height: "100%", width: "100%" }, children: t?.map((e, r) => {
30
- const n = u?.[e?.field?.split(".")?.pop()]?.value?.toString(), l = e?.valueFormatter ? g(e.valueFormatter, n?.toString()) : n, a = i?.cellRenderer && typeof i?.cellRenderer == "string" ? h(i?.cellRenderer) : void 0;
29
+ return /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateRows: `repeat(${n?.length}, 1fr)`, height: "100%", width: "100%" }, children: n?.map((r, e) => {
30
+ const t = f?.[r?.field?.split(".")?.pop()]?.value?.toString(), l = s?.valueFormatter ?? r?.valueFormatter ?? null, y = l ? g(l, t?.toString()) : t, d = i?.cellRenderer && typeof i?.cellRenderer == "string" ? h(i?.cellRenderer) : void 0;
31
31
  return /* @__PURE__ */ o(
32
32
  "div",
33
33
  {
34
34
  className: "flex items-center overflow-hidden",
35
- "data-split-index": r,
36
- children: a ? /* @__PURE__ */ o(
37
- a,
35
+ "data-split-index": e,
36
+ children: d ? /* @__PURE__ */ o(
37
+ d,
38
38
  {
39
39
  node: p,
40
- api: s,
41
- column: f,
42
- context: c,
43
- data: m,
44
- value: n,
45
- colDef: e,
46
- valueFormatted: l,
47
- className: r !== t.length - 1 ? "border-b border-gray-200" : ""
40
+ api: c,
41
+ column: u,
42
+ context: a,
43
+ data: s,
44
+ value: t,
45
+ colDef: r,
46
+ valueFormatted: y,
47
+ className: e !== n.length - 1 ? "border-b border-gray-200" : ""
48
48
  }
49
49
  ) : /* @__PURE__ */ o(
50
50
  "div",
@@ -54,11 +54,11 @@ const y = (d) => {
54
54
  }
55
55
  )
56
56
  },
57
- `${e.field}-${r}`
57
+ `${r.field}-${e}`
58
58
  );
59
59
  }) });
60
60
  };
61
- y.displayName = "SplitCellRenderer";
61
+ w.displayName = "SplitCellRenderer";
62
62
  export {
63
- y as SplitCellRenderer
63
+ w as SplitCellRenderer
64
64
  };
@@ -53,7 +53,7 @@ const E = {
53
53
  }, w = [
54
54
  { label: "all", value: "AND" },
55
55
  { label: "any", value: "OR" }
56
- ], _ = ({
56
+ ], G = ({
57
57
  columnId: h,
58
58
  columnLabel: y,
59
59
  columnType: n,
@@ -75,7 +75,7 @@ const E = {
75
75
  }
76
76
  }, o = (e, t) => {
77
77
  v(i.map((a) => a.id === e ? { ...a, ...t } : a));
78
- }, I = (e) => {
78
+ }, R = (e) => {
79
79
  if (e.operator === "empty" || e.operator === "notEmpty")
80
80
  return /* @__PURE__ */ l("span", { className: "text-slate-400 italic text-sm", children: "No value needed" });
81
81
  if (n === "date")
@@ -116,7 +116,6 @@ const E = {
116
116
  Array.isArray(a) ? o(e.id, { value: a.map((r) => r.value) }) : o(e.id, { value: a?.value || "" });
117
117
  },
118
118
  isMulti: u !== void 0 ? u : !0,
119
- dropdownZIndex: 320,
120
119
  placeholder: u === !1 ? "Select value" : "Select values...",
121
120
  className: "w-full",
122
121
  menuPortalTarget: document.body
@@ -153,7 +152,7 @@ const E = {
153
152
  className: "w-full"
154
153
  }
155
154
  );
156
- }, R = (e) => {
155
+ }, I = (e) => {
157
156
  const t = g.find((a) => a.value === e.operator);
158
157
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
159
158
  /* @__PURE__ */ l("div", { className: "w-[120px] shrink-0", children: /* @__PURE__ */ l(
@@ -165,13 +164,12 @@ const E = {
165
164
  const r = a;
166
165
  r && o(e.id, { operator: r.value });
167
166
  },
168
- dropdownZIndex: 320,
169
167
  placeholder: "Operator",
170
168
  className: "w-full",
171
169
  menuPortalTarget: document.body
172
170
  }
173
171
  ) }),
174
- /* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: I(e) }),
172
+ /* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: R(e) }),
175
173
  /* @__PURE__ */ l(
176
174
  m,
177
175
  {
@@ -180,7 +178,7 @@ const E = {
180
178
  size: "icon",
181
179
  "aria-label": "Remove rule",
182
180
  disabled: i.length === 1 && !d,
183
- children: /* @__PURE__ */ l(x, { size: 12 })
181
+ children: /* @__PURE__ */ l(x, { size: "xs" })
184
182
  }
185
183
  )
186
184
  ] }, e.id);
@@ -197,7 +195,6 @@ const E = {
197
195
  const t = e;
198
196
  t && S(t.value);
199
197
  },
200
- dropdownZIndex: 320,
201
198
  className: "h-8",
202
199
  menuPortalTarget: document.body,
203
200
  isClearable: !1
@@ -206,7 +203,7 @@ const E = {
206
203
  /* @__PURE__ */ l("span", { children: "of the following rules for column" }),
207
204
  /* @__PURE__ */ l("span", { className: "font-semibold text-slate-700", children: y })
208
205
  ] }),
209
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-3", children: i.map((e) => R(e)) }),
206
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-3", children: i.map((e) => I(e)) }),
210
207
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-1", children: [
211
208
  /* @__PURE__ */ l(m, { onClick: C, variant: "outline", size: "sm", children: "+ Add Rule" }),
212
209
  b && /* @__PURE__ */ s(
@@ -217,7 +214,7 @@ const E = {
217
214
  onClick: b,
218
215
  className: "text-red-500 hover:text-red-600 hover:bg-red-50 border-red-300",
219
216
  children: [
220
- /* @__PURE__ */ l(x, { size: 12 }),
217
+ /* @__PURE__ */ l(x, { size: "xs" }),
221
218
  "Delete"
222
219
  ]
223
220
  }
@@ -226,5 +223,5 @@ const E = {
226
223
  ] });
227
224
  };
228
225
  export {
229
- _ as ColumnFilterSection
226
+ G as ColumnFilterSection
230
227
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as e, Fragment as j } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { Settings as F, Checkmark as d, Search as T } from "../../../../../icons/index.js";
4
- import { DropdownMenu as L, DropdownMenuTrigger as _, DropdownMenuContent as E, DropdownMenuLabel as z, DropdownMenuSeparator as k, DropdownMenuSub as m, DropdownMenuSubTrigger as p, DropdownMenuSubContent as f, DropdownMenuItem as s } from "../../../dropdown-menu.js";
4
+ import { DropdownMenu as L, DropdownMenuTrigger as _, DropdownMenuContent as E, DropdownMenuLabel as k, DropdownMenuSeparator as z, DropdownMenuSub as m, DropdownMenuSubTrigger as p, DropdownMenuSubContent as f, DropdownMenuItem as s } from "../../../dropdown-menu.js";
5
5
  const H = ({
6
6
  isOpen: O,
7
7
  onClose: i,
@@ -29,7 +29,7 @@ const H = ({
29
29
  }, A = () => {
30
30
  const n = l?.headerComponentParams;
31
31
  n?.onAdvanceSearchClick ? n.onAdvanceSearchClick(o) : r.getGridOption("context"), i();
32
- }, c = v?.getBoundingClientRect(), N = l?.headerComponentParams, b = N?.isSearchable, y = N?.advanceSearchEnabled;
32
+ }, c = v?.getBoundingClientRect(), b = l?.headerComponentParams, y = b?.isSearchable, N = b?.advanceSearchEnabled;
33
33
  return /* @__PURE__ */ t(L, { open: O, onOpenChange: (n) => !n && i(), children: [
34
34
  c && /* @__PURE__ */ e(_, { asChild: !0, children: /* @__PURE__ */ e(
35
35
  "div",
@@ -51,24 +51,24 @@ const H = ({
51
51
  align: "end",
52
52
  side: "bottom",
53
53
  sideOffset: 5,
54
- className: "w-[200px] p-2 rounded-[8px] border-none !shadow-[0px_0px_2px_0px_rgba(0,0,0,0.25)] z-[110]",
54
+ className: "w-[200px] p-2 rounded-[8px] border-none !shadow-[0px_0px_2px_0px_rgba(0,0,0,0.25)]",
55
55
  onCloseAutoFocus: (n) => n.preventDefault(),
56
56
  children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5", children: [
57
- /* @__PURE__ */ t(z, { className: "flex items-center gap-2 text-[#60697D]", children: [
58
- /* @__PURE__ */ e(F, { size: 12 }),
57
+ /* @__PURE__ */ t(k, { className: "flex items-center gap-2 text-[#60697D]", children: [
58
+ /* @__PURE__ */ e(F, { size: "xs" }),
59
59
  " Column Settings"
60
60
  ] }),
61
- /* @__PURE__ */ e(k, {}),
61
+ /* @__PURE__ */ e(z, {}),
62
62
  M && /* @__PURE__ */ t(m, { children: [
63
63
  /* @__PURE__ */ e(p, { inset: !0, children: "Sort" }),
64
- /* @__PURE__ */ t(f, { className: "z-[120]", sideOffset: 10, alignOffset: -5, children: [
64
+ /* @__PURE__ */ t(f, { sideOffset: 10, alignOffset: -5, children: [
65
65
  /* @__PURE__ */ e(s, { onClick: () => h("asc"), children: /* @__PURE__ */ t("span", { className: "flex items-center w-full justify-between", children: [
66
66
  /* @__PURE__ */ e("span", { children: g ? "Sort Smallest to Largest" : w ? "Sort Oldest to Newest" : "Sort A to Z" }),
67
- C === "asc" && /* @__PURE__ */ e(d, { size: 14, className: "ml-2 text-[#60697D]" })
67
+ C === "asc" && /* @__PURE__ */ e(d, { size: "sm", className: "ml-2 text-[#60697D]" })
68
68
  ] }) }),
69
69
  /* @__PURE__ */ e(s, { onClick: () => h("desc"), children: /* @__PURE__ */ t("span", { className: "flex items-center w-full justify-between", children: [
70
70
  /* @__PURE__ */ e("span", { children: g ? "Sort Largest to Smallest" : w ? "Sort Newest to Oldest" : "Sort Z to A" }),
71
- C === "desc" && /* @__PURE__ */ e(d, { size: 14, className: "ml-2 text-[#60697D]" })
71
+ C === "desc" && /* @__PURE__ */ e(d, { size: "sm", className: "ml-2 text-[#60697D]" })
72
72
  ] }) }),
73
73
  /* @__PURE__ */ e(s, { onClick: () => h(null), children: /* @__PURE__ */ e("span", { children: "Reset" }) })
74
74
  ] })
@@ -78,11 +78,11 @@ const H = ({
78
78
  /* @__PURE__ */ t(f, { className: "z-[120]", sideOffset: 10, alignOffset: -5, children: [
79
79
  /* @__PURE__ */ e(s, { onClick: () => u("left"), children: /* @__PURE__ */ t("span", { className: "flex items-center w-full justify-between", children: [
80
80
  /* @__PURE__ */ e("span", { children: "Pin Left" }),
81
- S === "left" && /* @__PURE__ */ e(d, { size: 14, className: "ml-2 text-[#60697D]" })
81
+ S === "left" && /* @__PURE__ */ e(d, { size: "sm", className: "ml-2 text-[#60697D]" })
82
82
  ] }) }),
83
83
  /* @__PURE__ */ e(s, { onClick: () => u("right"), children: /* @__PURE__ */ t("span", { className: "flex items-center w-full justify-between", children: [
84
84
  /* @__PURE__ */ e("span", { children: "Pin Right" }),
85
- S === "right" && /* @__PURE__ */ e(d, { size: 14, className: "ml-2 text-[#60697D]" })
85
+ S === "right" && /* @__PURE__ */ e(d, { size: "sm", className: "ml-2 text-[#60697D]" })
86
86
  ] }) }),
87
87
  /* @__PURE__ */ e(s, { onClick: () => u(null), children: /* @__PURE__ */ e("span", { children: "No Pin" }) })
88
88
  ] })
@@ -94,14 +94,14 @@ const H = ({
94
94
  /* @__PURE__ */ e(s, { onClick: () => D(!0), children: "Autosize All Columns" })
95
95
  ] })
96
96
  ] }),
97
- (b || y) && /* @__PURE__ */ t(j, { children: [
98
- /* @__PURE__ */ e(k, {}),
99
- /* @__PURE__ */ t(z, { className: "flex items-center gap-2 text-[#60697D]", children: [
100
- /* @__PURE__ */ e(T, { size: 12 }),
97
+ (y || N) && /* @__PURE__ */ t(j, { children: [
98
+ /* @__PURE__ */ e(z, {}),
99
+ /* @__PURE__ */ t(k, { className: "flex items-center gap-2 text-[#60697D]", children: [
100
+ /* @__PURE__ */ e(T, { size: "xs" }),
101
101
  " Search Options"
102
102
  ] }),
103
- b && /* @__PURE__ */ e(s, { inset: !0, onClick: P, children: "Search" }),
104
- y && /* @__PURE__ */ e(s, { inset: !0, onClick: A, children: "Advance Search" })
103
+ y && /* @__PURE__ */ e(s, { inset: !0, onClick: P, children: "Search" }),
104
+ N && /* @__PURE__ */ e(s, { inset: !0, onClick: A, children: "Advance Search" })
105
105
  ] })
106
106
  ] })
107
107
  }
@@ -234,7 +234,7 @@ const je = {
234
234
  S(le()), K && K();
235
235
  }, Ne = () => ge ? /* @__PURE__ */ s("svg", { className: "cursor-pointer text-[#7a8294] hover:text-[#3649C6] shrink-0", fill: "currentColor", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", width: "18", height: "18", onClick: (e) => {
236
236
  e.stopPropagation(), R.current && R.current.blur(), V ? V(A) : J ? J(o) : U && U.openAdvancedFilter(o);
237
- }, children: /* @__PURE__ */ s("path", { d: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" }) }) : null, Ae = () => /* @__PURE__ */ s("button", { onClick: G, className: "cursor-pointer shrink-0 text-[#4259ee] hover:text-[#0f1c76]", children: /* @__PURE__ */ s(me, { size: 12 }) }), D = a.filter === "agMultiColumnFilter", x = b(a);
237
+ }, children: /* @__PURE__ */ s("path", { d: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" }) }) : null, Ae = () => /* @__PURE__ */ s("button", { onClick: G, className: "cursor-pointer shrink-0 text-[#4259ee] hover:text-[#0f1c76]", children: /* @__PURE__ */ s(me, { size: "xs" }) }), D = a.filter === "agMultiColumnFilter", x = b(a);
238
238
  let y = "text";
239
239
  D ? y = x.set !== -1 ? "set" : x.date !== -1 ? "date" : "text" : H ? y = "set" : g && (y = "date");
240
240
  const Se = D ? x.text !== -1 || x.number !== -1 : !g && !H, oe = D ? x.set !== -1 : H, se = D ? x.date !== -1 : g, Ie = c.getFilterModel()[o], ie = D && Ie?.filterModels?.some((e, t) => {
@@ -291,13 +291,13 @@ const je = {
291
291
  onBlur: () => f(!1),
292
292
  suffix: k && /* @__PURE__ */ s("button", { onClick: (e) => {
293
293
  e.stopPropagation(), Ce();
294
- }, className: "cursor-pointer text-[#7a8294] hover:text-[#3649C6]", children: /* @__PURE__ */ s(me, { size: 10 }) })
294
+ }, className: "cursor-pointer text-[#7a8294] hover:text-[#3649C6]", children: /* @__PURE__ */ s(me, { size: "xs" }) })
295
295
  }
296
296
  ),
297
297
  /* @__PURE__ */ F("div", { className: "flex items-center gap-1.5 shrink-0", children: [
298
298
  D && /* @__PURE__ */ F(qe, { children: [
299
299
  /* @__PURE__ */ s(Ee, { asChild: !0, children: /* @__PURE__ */ F("div", { className: "relative group p-1 hover:bg-[#dbe0fb] rounded-md transition-colors cursor-pointer", children: [
300
- /* @__PURE__ */ s(we, { size: 16, className: ze("text-[#60697D] group-hover:text-[#3649C6]", ie && "text-[#3649C6]") }),
300
+ /* @__PURE__ */ s(we, { size: "md", className: ze("text-[#60697D] group-hover:text-[#3649C6]", ie && "text-[#3649C6]") }),
301
301
  ie && /* @__PURE__ */ s("span", { className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-[#4259ee] border border-white shadow-sm" })
302
302
  ] }) }),
303
303
  /* @__PURE__ */ F(Be, { align: "end", className: "w-[300px]", children: [
@@ -1,39 +1,40 @@
1
1
  import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import * as t from "@radix-ui/react-alert-dialog";
3
+ import * as e from "@radix-ui/react-alert-dialog";
4
4
  import { cn as s } from "../../lib/utils.js";
5
- import { buttonVariants as r } from "./button-variants.js";
6
- const w = t.Root, b = t.Trigger, m = t.Portal, d = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
7
- t.Overlay,
5
+ import { buttonVariants as d } from "./button-variants.js";
6
+ const w = e.Root, b = e.Trigger, m = e.Portal, r = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
7
+ e.Overlay,
8
8
  {
9
9
  className: s(
10
10
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
11
11
  a
12
12
  ),
13
- ...e,
13
+ ...t,
14
14
  ref: o
15
15
  }
16
16
  ));
17
- d.displayName = t.Overlay.displayName;
18
- const c = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ n(m, { children: [
19
- /* @__PURE__ */ l(d, {}),
17
+ r.displayName = e.Overlay.displayName;
18
+ const c = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ n(m, { children: [
19
+ /* @__PURE__ */ l(r, {}),
20
20
  /* @__PURE__ */ l(
21
- t.Content,
21
+ e.Content,
22
22
  {
23
23
  ref: o,
24
24
  "aria-describedby": void 0,
25
+ "data-component": "alert-dialog-content",
25
26
  className: s(
26
27
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
27
28
  a
28
29
  ),
29
- ...e
30
+ ...t
30
31
  }
31
32
  )
32
33
  ] }));
33
- c.displayName = t.Content.displayName;
34
- const f = ({
34
+ c.displayName = e.Content.displayName;
35
+ const p = ({
35
36
  className: a,
36
- ...e
37
+ ...t
37
38
  }) => /* @__PURE__ */ l(
38
39
  "div",
39
40
  {
@@ -41,13 +42,13 @@ const f = ({
41
42
  "flex flex-col space-y-2 text-center sm:text-left",
42
43
  a
43
44
  ),
44
- ...e
45
+ ...t
45
46
  }
46
47
  );
47
- f.displayName = "AlertDialogHeader";
48
- const p = ({
48
+ p.displayName = "AlertDialogHeader";
49
+ const f = ({
49
50
  className: a,
50
- ...e
51
+ ...t
51
52
  }) => /* @__PURE__ */ l(
52
53
  "div",
53
54
  {
@@ -55,59 +56,63 @@ const p = ({
55
56
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
56
57
  a
57
58
  ),
58
- ...e
59
+ ...t
59
60
  }
60
61
  );
61
- p.displayName = "AlertDialogFooter";
62
- const g = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
63
- t.Title,
62
+ f.displayName = "AlertDialogFooter";
63
+ const g = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
64
+ e.Title,
64
65
  {
65
66
  ref: o,
67
+ "data-component": "alert-dialog-title",
66
68
  className: s("text-lg font-semibold", a),
67
- ...e
69
+ ...t
68
70
  }
69
71
  ));
70
- g.displayName = t.Title.displayName;
71
- const N = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
72
- t.Description,
72
+ g.displayName = e.Title.displayName;
73
+ const N = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
74
+ e.Description,
73
75
  {
74
76
  ref: o,
77
+ "data-component": "alert-dialog-description",
75
78
  className: s("text-sm text-muted-foreground", a),
76
- ...e
79
+ ...t
77
80
  }
78
81
  ));
79
- N.displayName = t.Description.displayName;
80
- const y = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
81
- t.Action,
82
+ N.displayName = e.Description.displayName;
83
+ const y = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
84
+ e.Action,
82
85
  {
83
86
  ref: o,
84
- className: s(r(), a),
85
- ...e
87
+ "data-component": "alert-dialog-action",
88
+ className: s(d(), a),
89
+ ...t
86
90
  }
87
91
  ));
88
- y.displayName = t.Action.displayName;
89
- const x = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
90
- t.Cancel,
92
+ y.displayName = e.Action.displayName;
93
+ const x = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
94
+ e.Cancel,
91
95
  {
92
96
  ref: o,
97
+ "data-component": "alert-dialog-cancel",
93
98
  className: s(
94
- r({ variant: "outline" }),
99
+ d({ variant: "outline" }),
95
100
  "mt-2 sm:mt-0",
96
101
  a
97
102
  ),
98
- ...e
103
+ ...t
99
104
  }
100
105
  ));
101
- x.displayName = t.Cancel.displayName;
106
+ x.displayName = e.Cancel.displayName;
102
107
  export {
103
108
  w as AlertDialog,
104
109
  y as AlertDialogAction,
105
110
  x as AlertDialogCancel,
106
111
  c as AlertDialogContent,
107
112
  N as AlertDialogDescription,
108
- p as AlertDialogFooter,
109
- f as AlertDialogHeader,
110
- d as AlertDialogOverlay,
113
+ f as AlertDialogFooter,
114
+ p as AlertDialogHeader,
115
+ r as AlertDialogOverlay,
111
116
  m as AlertDialogPortal,
112
117
  g as AlertDialogTitle,
113
118
  b as AlertDialogTrigger
@@ -3,9 +3,26 @@ import * as React from "react";
3
3
  declare const alertVariants: (props?: {
4
4
  variant?: "default" | "info" | "warning" | "error" | "success";
5
5
  } & import('class-variance-authority/types').ClassProp) => string;
6
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: {
7
- variant?: "default" | "info" | "warning" | "error" | "success";
8
- } & import('class-variance-authority/types').ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
6
+ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
7
+ asChild?: boolean;
8
+ }
9
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
9
10
  declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
10
11
  declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
11
- export { Alert, AlertTitle, AlertDescription, alertVariants };
12
+ export interface AlertIconProps {
13
+ /** The alert variant — determines which icon to render */
14
+ variant?: "default" | "info" | "success" | "warning" | "error";
15
+ className?: string;
16
+ }
17
+ /**
18
+ * Renders the appropriate icon for the given Alert variant.
19
+ *
20
+ * @example
21
+ * <AlertIcon variant="success" className="h-4 w-4" />
22
+ * <AlertIcon variant="error" />
23
+ */
24
+ declare const AlertIcon: {
25
+ ({ variant, className }: AlertIconProps): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export { Alert, AlertTitle, AlertDescription, AlertIcon, alertVariants };
@@ -1,8 +1,10 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import { cva as l } from "class-variance-authority";
2
+ import * as n from "react";
3
+ import { Slot as c } from "@radix-ui/react-slot";
4
+ import { cva as d } from "class-variance-authority";
4
5
  import { cn as s } from "../../lib/utils.js";
5
- const n = l(
6
+ import { XCircle as f, AlertTriangle as g, CheckCircle as m, Info as o } from "lucide-react";
7
+ const p = d(
6
8
  "relative w-full rounded-lg border px-4 py-3 text-sm flex gap-3 items-start",
7
9
  {
8
10
  variants: {
@@ -18,37 +20,55 @@ const n = l(
18
20
  variant: "default"
19
21
  }
20
22
  }
21
- ), d = o.forwardRef(({ className: r, variant: e, ...t }, i) => /* @__PURE__ */ a(
22
- "div",
23
- {
24
- ref: i,
25
- role: "alert",
26
- className: s(n({ variant: e }), r),
27
- ...t
28
- }
29
- ));
30
- d.displayName = "Alert";
31
- const g = o.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
23
+ ), b = n.forwardRef(
24
+ ({ className: e, variant: r, asChild: t = !1, ...l }, i) => /* @__PURE__ */ a(
25
+ t ? c : "div",
26
+ {
27
+ ref: i,
28
+ role: "alert",
29
+ "data-component": "alert",
30
+ "data-variant": r ?? "default",
31
+ className: s(p({ variant: r }), e),
32
+ ...l
33
+ }
34
+ )
35
+ );
36
+ b.displayName = "Alert";
37
+ const u = n.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
32
38
  "h5",
33
39
  {
34
40
  ref: t,
35
- className: s("font-semibold leading-[21px] tracking-tight text-foreground", r),
36
- ...e
41
+ "data-component": "alert-title",
42
+ className: s("font-semibold leading-[21px] tracking-tight text-foreground", e),
43
+ ...r
37
44
  }
38
45
  ));
39
- g.displayName = "AlertTitle";
40
- const c = o.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
46
+ u.displayName = "AlertTitle";
47
+ const x = n.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
41
48
  "div",
42
49
  {
43
50
  ref: t,
44
- className: s("text-[12px] leading-[18px] text-secondary-foreground", r),
45
- ...e
51
+ "data-component": "alert-description",
52
+ className: s("text-[12px] leading-[18px] text-secondary-foreground", e),
53
+ ...r
46
54
  }
47
55
  ));
48
- c.displayName = "AlertDescription";
56
+ x.displayName = "AlertDescription";
57
+ const v = {
58
+ default: o,
59
+ info: o,
60
+ success: m,
61
+ warning: g,
62
+ error: f
63
+ }, w = ({ variant: e = "info", className: r = "h-4 w-4 shrink-0 mt-1" }) => {
64
+ const t = v[e] || o;
65
+ return /* @__PURE__ */ a(t, { className: r });
66
+ };
67
+ w.displayName = "AlertIcon";
49
68
  export {
50
- d as Alert,
51
- c as AlertDescription,
52
- g as AlertTitle,
53
- n as alertVariants
69
+ b as Alert,
70
+ x as AlertDescription,
71
+ w as AlertIcon,
72
+ u as AlertTitle,
73
+ p as alertVariants
54
74
  };
@@ -1,9 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import * as a from "@radix-ui/react-avatar";
4
- import { cva as f } from "class-variance-authority";
5
- import { cn as m } from "../../lib/utils.js";
6
- const c = f(
4
+ import { cva as c } from "class-variance-authority";
5
+ import { cn as o } from "../../lib/utils.js";
6
+ const f = c(
7
7
  "relative flex shrink-0 overflow-hidden",
8
8
  {
9
9
  variants: {
@@ -22,33 +22,36 @@ const c = f(
22
22
  shape: "square"
23
23
  }
24
24
  }
25
- ), d = l.forwardRef(({ className: e, size: s, shape: t, ...o }, i) => /* @__PURE__ */ r(
25
+ ), d = l.forwardRef(({ className: e, size: t, shape: r, ...m }, i) => /* @__PURE__ */ s(
26
26
  a.Root,
27
27
  {
28
28
  ref: i,
29
- className: m(c({ size: s, shape: t, className: e })),
30
- ...o
29
+ className: o(f({ size: t, shape: r, className: e })),
30
+ "data-component": "avatar",
31
+ ...m
31
32
  }
32
33
  ));
33
34
  d.displayName = a.Root.displayName;
34
- const n = l.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
35
+ const n = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
35
36
  a.Image,
36
37
  {
37
- ref: t,
38
- className: m("aspect-square h-full w-full", e),
39
- ...s
38
+ ref: r,
39
+ className: o("aspect-square h-full w-full", e),
40
+ "data-component": "avatar-image",
41
+ ...t
40
42
  }
41
43
  ));
42
44
  n.displayName = a.Image.displayName;
43
- const p = l.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
45
+ const p = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
44
46
  a.Fallback,
45
47
  {
46
- ref: t,
47
- className: m(
48
+ ref: r,
49
+ className: o(
48
50
  "flex h-full w-full items-center justify-center bg-success text-white font-bold",
49
51
  e
50
52
  ),
51
- ...s
53
+ "data-component": "avatar-fallback",
54
+ ...t
52
55
  }
53
56
  ));
54
57
  p.displayName = a.Fallback.displayName;
@@ -56,5 +59,5 @@ export {
56
59
  d as Avatar,
57
60
  p as AvatarFallback,
58
61
  n as AvatarImage,
59
- c as avatarVariants
62
+ f as avatarVariants
60
63
  };