impact-nova 1.5.14 → 1.6.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 (149) hide show
  1. package/dist/components/ui/accordion.d.ts +4 -1
  2. package/dist/components/ui/accordion.js +28 -22
  3. package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
  4. package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
  5. package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
  6. package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
  7. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
  9. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
  10. package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
  11. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
  12. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
  13. package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
  14. package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
  15. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
  16. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
  17. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
  18. package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
  19. package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
  20. package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
  21. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
  22. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
  23. package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
  24. package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
  25. package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
  26. package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
  27. package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
  28. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
  29. package/dist/components/ui/ag-grid-react/index.js +121 -102
  30. package/dist/components/ui/alert-dialog.js +6 -6
  31. package/dist/components/ui/alert.d.ts +4 -3
  32. package/dist/components/ui/alert.js +182 -64
  33. package/dist/components/ui/avatar.js +5 -5
  34. package/dist/components/ui/badge.d.ts +7 -2
  35. package/dist/components/ui/badge.js +105 -32
  36. package/dist/components/ui/breadcrumb.js +26 -21
  37. package/dist/components/ui/button-group.d.ts +7 -0
  38. package/dist/components/ui/button-group.js +116 -91
  39. package/dist/components/ui/button-variants.d.ts +7 -2
  40. package/dist/components/ui/button-variants.js +31 -16
  41. package/dist/components/ui/button.d.ts +2 -2
  42. package/dist/components/ui/button.js +10 -10
  43. package/dist/components/ui/calendar.js +185 -184
  44. package/dist/components/ui/card.js +24 -24
  45. package/dist/components/ui/chart/chart.js +27 -27
  46. package/dist/components/ui/chart/chart.utils.js +50 -50
  47. package/dist/components/ui/checkbox.js +22 -22
  48. package/dist/components/ui/chips.d.ts +19 -3
  49. package/dist/components/ui/chips.js +140 -41
  50. package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
  51. package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
  52. package/dist/components/ui/command-palette/command-palette.js +254 -264
  53. package/dist/components/ui/command-palette/index.d.ts +1 -1
  54. package/dist/components/ui/command-palette/index.js +42 -41
  55. package/dist/components/ui/command-palette/kbd.js +18 -18
  56. package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
  57. package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
  58. package/dist/components/ui/command-palette/utils.d.ts +6 -1
  59. package/dist/components/ui/command-palette/utils.js +81 -74
  60. package/dist/components/ui/data-table/data-table-column-list.js +31 -31
  61. package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
  62. package/dist/components/ui/data-table/data-table-constants.js +4 -0
  63. package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
  64. package/dist/components/ui/data-table/data-table-format-options.js +35 -35
  65. package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
  66. package/dist/components/ui/data-table/data-table-sheet.js +91 -58
  67. package/dist/components/ui/data-table/data-table-view-options.js +29 -29
  68. package/dist/components/ui/data-table/data-table.js +84 -52
  69. package/dist/components/ui/data-table/index.d.ts +1 -0
  70. package/dist/components/ui/data-table/index.js +15 -13
  71. package/dist/components/ui/date-picker/date-picker.js +35 -35
  72. package/dist/components/ui/date-picker/date-range-picker.js +166 -164
  73. package/dist/components/ui/date-picker/month-picker.js +14 -14
  74. package/dist/components/ui/date-picker/month-range-picker.js +198 -189
  75. package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
  76. package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
  77. package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
  78. package/dist/components/ui/date-picker/week-picker.js +2 -2
  79. package/dist/components/ui/date-picker/week-range-picker.js +164 -162
  80. package/dist/components/ui/dialog.js +25 -28
  81. package/dist/components/ui/drawer.js +40 -40
  82. package/dist/components/ui/dropdown-menu.js +72 -72
  83. package/dist/components/ui/empty-container.js +73 -69
  84. package/dist/components/ui/file-upload.js +137 -135
  85. package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
  86. package/dist/components/ui/filter-panel/filter-panel.js +175 -97
  87. package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
  88. package/dist/components/ui/filter-strip/filter-strip.js +63 -50
  89. package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
  90. package/dist/components/ui/filter-strip/filter-summary.js +230 -146
  91. package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
  92. package/dist/components/ui/header.d.ts +7 -3
  93. package/dist/components/ui/header.js +87 -79
  94. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
  95. package/dist/components/ui/hover-card.js +10 -10
  96. package/dist/components/ui/input.js +79 -70
  97. package/dist/components/ui/loader.js +16 -16
  98. package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
  99. package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
  100. package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
  101. package/dist/components/ui/notification-panel/notification-item.js +32 -32
  102. package/dist/components/ui/notification-panel/notification-list.js +24 -24
  103. package/dist/components/ui/notification-panel/notification-panel.js +26 -26
  104. package/dist/components/ui/popover.js +22 -22
  105. package/dist/components/ui/progress.js +34 -34
  106. package/dist/components/ui/prompt.js +48 -48
  107. package/dist/components/ui/radio-group.js +63 -54
  108. package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
  109. package/dist/components/ui/select/components/Submenu.js +33 -33
  110. package/dist/components/ui/select/select.js +425 -376
  111. package/dist/components/ui/sheet.js +88 -66
  112. package/dist/components/ui/sidebar.js +342 -296
  113. package/dist/components/ui/skeleton.js +6 -6
  114. package/dist/components/ui/slider.js +17 -17
  115. package/dist/components/ui/statistics-card.d.ts +86 -0
  116. package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
  117. package/dist/components/ui/statistics-card.hooks.js +100 -0
  118. package/dist/components/ui/statistics-card.js +259 -0
  119. package/dist/components/ui/stepper.js +51 -51
  120. package/dist/components/ui/switch.js +7 -7
  121. package/dist/components/ui/tabs.js +70 -70
  122. package/dist/components/ui/tag-group.d.ts +1 -0
  123. package/dist/components/ui/tag-group.js +14 -13
  124. package/dist/components/ui/tag.js +43 -43
  125. package/dist/components/ui/textarea.js +86 -58
  126. package/dist/components/ui/toast.js +39 -39
  127. package/dist/components/ui/tooltip.js +23 -23
  128. package/dist/components/ui/types/date-picker.types.d.ts +1 -0
  129. package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
  130. package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
  131. package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
  132. package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
  133. package/dist/i18n/defaultMessages.d.ts +8 -0
  134. package/dist/i18n/defaultMessages.js +15 -9
  135. package/dist/i18n/locales/de.js +7 -1
  136. package/dist/i18n/locales/es.js +7 -1
  137. package/dist/i18n/locales/hi.js +7 -1
  138. package/dist/i18n/locales/kn.js +7 -1
  139. package/dist/icons/assets/bulk-edit.svg.js +5 -0
  140. package/dist/icons/assets/clock.svg.js +5 -0
  141. package/dist/icons/assets/statistics.svg.js +5 -0
  142. package/dist/icons/index.d.ts +3 -0
  143. package/dist/icons/index.js +254 -206
  144. package/dist/impact-nova.css +1 -1
  145. package/dist/index.d.ts +1 -0
  146. package/dist/index.js +361 -347
  147. package/package.json +3 -2
  148. package/tailwind.config.js +259 -152
  149. /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
@@ -6,5 +6,8 @@ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPr
6
6
  badge?: React.ReactNode;
7
7
  rightActions?: React.ReactNode;
8
8
  } & React.RefAttributes<HTMLButtonElement>>;
9
- declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ /** Classes on the Radix content node (e.g. `overflow-visible` for portaled overlays). */
11
+ surfaceClassName?: string;
12
+ } & React.RefAttributes<HTMLDivElement>>;
10
13
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,32 +1,35 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import * as d from "react";
2
+ import * as c from "react";
3
3
  import * as r from "@radix-ui/react-accordion";
4
4
  import { ChevronRight as f } from "lucide-react";
5
- import { cn as s } from "../../lib/utils.js";
5
+ import { cn as n } from "../../lib/utils.js";
6
6
  import { Tooltip as p, TooltipTrigger as g, TooltipContent as h } from "./tooltip.js";
7
- import { useImpactNovaI18n as x } from "../../i18n/ImpactNovaI18nContext.js";
8
- const C = r.Root, N = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e(
7
+ import { useImpactNovaI18n as v } from "../../i18n/ImpactNovaI18nContext.js";
8
+ const C = r.Root, x = c.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e(
9
9
  r.Item,
10
10
  {
11
- ref: a,
11
+ ref: o,
12
12
  "data-item": t.value,
13
13
  "data-disabled": t.disabled ? "" : void 0,
14
- className: s("border-b rounded-lg bg-white overflow-hidden border-b-[#D9DDE7]", o),
14
+ className: n(
15
+ "border-b rounded-lg bg-canvas-elevated overflow-hidden border-b-stroke-hairline",
16
+ a
17
+ ),
15
18
  ...t
16
19
  }
17
20
  ));
18
- N.displayName = "AccordionItem";
19
- const v = d.forwardRef(({ className: o, children: t, badge: a, rightActions: n, ...c }, l) => {
20
- const { t: m } = x();
21
+ x.displayName = "AccordionItem";
22
+ const N = c.forwardRef(({ className: a, children: t, badge: o, rightActions: d, ...s }, l) => {
23
+ const { t: m } = v();
21
24
  return /* @__PURE__ */ e(r.Header, { className: "flex", children: /* @__PURE__ */ i(
22
25
  r.Trigger,
23
26
  {
24
27
  ref: l,
25
- className: s(
28
+ className: n(
26
29
  "flex flex-1 items-center gap-3 px-4 py-2 text-sm font-semibold transition-all text-left [&[data-state=open]>div>svg]:-rotate-90",
27
- o
30
+ a
28
31
  ),
29
- ...c,
32
+ ...s,
30
33
  children: [
31
34
  /* @__PURE__ */ i(p, { children: [
32
35
  /* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center h-8 w-8 shrink-0 rounded-lg bg-secondary text-secondary-foreground transition-transform duration-200", children: /* @__PURE__ */ e(f, { className: "h-4 w-4 transition-transform duration-200" }) }) }),
@@ -35,28 +38,31 @@ const v = d.forwardRef(({ className: o, children: t, badge: a, rightActions: n,
35
38
  /* @__PURE__ */ i("div", { className: "flex flex-1 items-center justify-between", children: [
36
39
  /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
37
40
  t,
38
- a
41
+ o
39
42
  ] }),
40
- n
43
+ d
41
44
  ] })
42
45
  ]
43
46
  }
44
47
  ) });
45
48
  });
46
- v.displayName = r.Trigger.displayName;
47
- const u = d.forwardRef(({ className: o, children: t, ...a }, n) => /* @__PURE__ */ e(
49
+ N.displayName = r.Trigger.displayName;
50
+ const u = c.forwardRef(({ className: a, surfaceClassName: t, children: o, ...d }, s) => /* @__PURE__ */ e(
48
51
  r.Content,
49
52
  {
50
- ref: n,
51
- className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
52
- ...a,
53
- children: /* @__PURE__ */ e("div", { className: s("px-4 pb-4 pt-2", o), children: t })
53
+ ref: s,
54
+ className: n(
55
+ "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
56
+ t
57
+ ),
58
+ ...d,
59
+ children: /* @__PURE__ */ e("div", { className: n("px-4 pb-4 pt-1", a), children: o })
54
60
  }
55
61
  ));
56
62
  u.displayName = r.Content.displayName;
57
63
  export {
58
64
  C as Accordion,
59
65
  u as AccordionContent,
60
- N as AccordionItem,
61
- v as AccordionTrigger
66
+ x as AccordionItem,
67
+ N as AccordionTrigger
62
68
  };
@@ -1,22 +1,22 @@
1
- import { jsx as d, jsxs as s } from "react/jsx-runtime";
2
- import { Badge as f } from "../../badge.js";
3
- import { getFieldValue as a, mapBadgeColor as g, mapBadgeVariant as u } from "./cell-renderer-utils.js";
4
- const x = (e) => {
5
- const { data: l, value: n } = e, i = a(e.badgeLabelField, e.badgeLabel, l) ?? (n != null ? String(n) : void 0), c = a(e.variantField, e.variant, l) ?? "filled", o = a(e.colorField, e.color, l) ?? "default", r = a(e.isIconField, e.isIcon, l), t = a(e.iconField, e.icon, l), m = a(e.sizeField, e.size, l);
1
+ import { jsx as d, jsxs as m } from "react/jsx-runtime";
2
+ import { Badge as g } from "../../badge.js";
3
+ import { getFieldValue as a, mapBadgeColor as f, mapBadgeVariant as u } from "./cell-renderer-utils.js";
4
+ const v = (e) => {
5
+ const { data: l, value: n } = e, i = a(e.badgeLabelField, e.badgeLabel, l) ?? (n != null ? String(n) : void 0), c = a(e.variantField, e.variant, l) ?? "filled", r = a(e.colorField, e.color, l) ?? "default", o = a(e.isIconField, e.isIcon, l), t = a(e.iconField, e.icon, l), s = a(e.sizeField, e.size, l);
6
6
  return i ? /* @__PURE__ */ d("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ d(
7
- f,
7
+ g,
8
8
  {
9
9
  variant: u(c),
10
- color: g(o),
11
- className: m === "small" ? "h-5 text-xs px-1.5 font-medium" : "font-medium",
12
- children: r && t ? /* @__PURE__ */ s("span", { className: "flex items-center gap-1", children: [
10
+ color: f(r),
11
+ size: s === "small" ? "sm" : "md",
12
+ children: o && t ? /* @__PURE__ */ m("span", { className: "flex items-center gap-1", children: [
13
13
  t,
14
14
  i
15
15
  ] }) : i
16
16
  }
17
17
  ) }) : null;
18
18
  };
19
- x.displayName = "BadgeCellRenderer";
19
+ v.displayName = "BadgeCellRenderer";
20
20
  export {
21
- x as BadgeCellRenderer
21
+ v as BadgeCellRenderer
22
22
  };
@@ -1,30 +1,30 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { useCallback as n } from "react";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useCallback as i } from "react";
3
3
  import { Check as h } from "lucide-react";
4
4
  const b = (c) => {
5
- const { value: s, node: l, column: t, disabled: e } = c, r = !!s, o = n(() => {
6
- e || !t || l.setDataValue(t.getColId(), !r);
7
- }, [e, t, l, r]), d = n(
8
- (i) => {
9
- e || (i.key === " " || i.key === "Enter") && (i.preventDefault(), o());
5
+ const { value: d, node: n, column: t, disabled: e } = c, r = !!d, o = i(() => {
6
+ e || !t || n.setDataValue(t.getColId(), !r);
7
+ }, [e, t, n, r]), s = i(
8
+ (a) => {
9
+ e || (a.key === " " || a.key === "Enter") && (a.preventDefault(), o());
10
10
  },
11
11
  [e, o]
12
12
  );
13
- return /* @__PURE__ */ a(
13
+ return /* @__PURE__ */ l(
14
14
  "div",
15
15
  {
16
16
  className: `flex items-center justify-center h-full w-full ag-cell-inner-padding ${e ? "opacity-60 cursor-not-allowed" : !e ? "in-ag-editable-cell-highlight" : ""}`,
17
17
  onClick: o,
18
- onKeyDown: d,
18
+ onKeyDown: s,
19
19
  role: "checkbox",
20
20
  "aria-checked": r,
21
21
  "aria-disabled": e,
22
22
  tabIndex: e ? -1 : 0,
23
- children: /* @__PURE__ */ a(
23
+ children: /* @__PURE__ */ l(
24
24
  "div",
25
25
  {
26
- className: `h-4 w-4 shrink-0 rounded-[4px] border flex items-center justify-center transition-colors ${r ? "border-primary bg-accent text-primary" : "border-tertiary-border bg-white"} ${e ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
27
- children: r && /* @__PURE__ */ a(h, { className: "h-3 w-3", strokeWidth: 3 })
26
+ className: `h-4 w-4 shrink-0 rounded-[4px] border flex items-center justify-center transition-colors ${r ? "border-brand bg-accent text-brand" : "border-stroke-field bg-canvas-elevated"} ${e ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
27
+ children: r && /* @__PURE__ */ l(h, { className: "h-3 w-3", strokeWidth: 3 })
28
28
  }
29
29
  )
30
30
  }
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
2
  import "lucide-react";
3
- const w = (i, r) => {
3
+ const y = (i, l) => {
4
4
  if (i == null || i === "") return "";
5
5
  try {
6
6
  const e = i instanceof Date ? i : new Date(String(i));
7
- return isNaN(e.getTime()) ? String(i) : r === "time" ? e.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" }) : r === "datetime-local" ? e.toLocaleString(void 0, {
7
+ return isNaN(e.getTime()) ? String(i) : l === "time" ? e.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" }) : l === "datetime-local" ? e.toLocaleString(void 0, {
8
8
  year: "numeric",
9
9
  month: "short",
10
10
  day: "numeric",
@@ -18,22 +18,22 @@ const w = (i, r) => {
18
18
  } catch {
19
19
  return String(i);
20
20
  }
21
- }, y = (i) => {
21
+ }, w = (i) => {
22
22
  const {
23
- valueFormatted: r,
23
+ valueFormatted: l,
24
24
  value: e,
25
25
  dateType: p = "date",
26
26
  placeholder: m = "Select date...",
27
27
  disabled: o,
28
28
  colDef: n,
29
- data: l
30
- } = i, d = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, s = l && typeof l == "object" && "rowMetadata" in l ? l.rowMetadata?._isDisabled : void 0;
29
+ data: r
30
+ } = i, s = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, d = r && typeof r == "object" && "rowMetadata" in r ? r.rowMetadata?._isDisabled : void 0;
31
31
  let a = !1;
32
32
  if (!o) {
33
33
  const b = n?._originalEditable;
34
- n?.editable === !1 ? a = !1 : d === !1 ? a = !0 : d === !0 ? a = !1 : s === !1 ? a = !0 : s === !0 ? a = !1 : a = b === !0 || n?.editable === !0;
34
+ n?.editable === !1 ? a = !1 : s === !1 ? a = !0 : s === !0 ? a = !1 : d === !1 ? a = !0 : d === !0 ? a = !1 : a = b === !0 || n?.editable === !0;
35
35
  }
36
- const c = e && typeof e == "object" && "value" in e, g = c ? e.value : e, h = (c ? null : r) ?? w(g, p), u = !h;
36
+ const c = e && typeof e == "object" && "value" in e, g = c ? e.value : e, h = (c ? null : l) ?? y(g, p), u = !h;
37
37
  return /* @__PURE__ */ t(
38
38
  "div",
39
39
  {
@@ -41,10 +41,10 @@ const w = (i, r) => {
41
41
  children: /* @__PURE__ */ f(
42
42
  "div",
43
43
  {
44
- className: `flex w-full items-center justify-between rounded-[8px] px-1.5 h-7 ${a ? "bg-white cursor-pointer" : "bg-inherit"}`,
44
+ className: `flex w-full items-center justify-between rounded-[8px] px-1.5 h-7 ${a ? "bg-canvas-elevated cursor-pointer" : "bg-inherit"}`,
45
45
  children: [
46
- /* @__PURE__ */ t("span", { className: `truncate text-sm font-medium text-[#1f2b4d] ${u ? "text-[#dfe2e7]" : ""}`, children: u ? m : h }),
47
- a && /* @__PURE__ */ t("span", { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground", children: /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
46
+ /* @__PURE__ */ t("span", { className: `truncate text-sm font-medium text-content ${u ? "text-content-empty" : ""}`, children: u ? m : h }),
47
+ a && /* @__PURE__ */ t("span", { className: "h-3.5 w-3.5 shrink-0 text-content-muted", children: /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
48
48
  /* @__PURE__ */ t("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" }),
49
49
  /* @__PURE__ */ t("path", { d: "M16 2v4" }),
50
50
  /* @__PURE__ */ t("path", { d: "M8 2v4" }),
@@ -62,7 +62,7 @@ const w = (i, r) => {
62
62
  }
63
63
  );
64
64
  };
65
- y.displayName = "DateDisplayRenderer";
65
+ w.displayName = "DateDisplayRenderer";
66
66
  export {
67
- y as DateDisplayRenderer
67
+ w as DateDisplayRenderer
68
68
  };
@@ -14,10 +14,10 @@ const p = (o) => {
14
14
  value: a,
15
15
  min: m,
16
16
  max: f,
17
- node: l,
17
+ node: i,
18
18
  column: g,
19
- stopEditing: h
20
- } = o, s = a && typeof a == "object" && "value" in a, d = s ? a.cellMetadata : void 0, D = s ? a.value : a, v = p(D), [w, b] = S(v), [M, E] = S(v || /* @__PURE__ */ new Date());
19
+ stopEditing: v
20
+ } = o, s = a && typeof a == "object" && "value" in a, d = s ? a.cellMetadata : void 0, D = s ? a.value : a, h = p(D), [M, b] = S(h), [w, E] = S(h || /* @__PURE__ */ new Date());
21
21
  P(r, () => ({
22
22
  getValue() {
23
23
  return a;
@@ -32,35 +32,35 @@ const p = (o) => {
32
32
  return !0;
33
33
  }
34
34
  })), j(() => {
35
- const e = "ag-custom-component-popup", i = (t) => {
35
+ const e = "ag-custom-component-popup", l = (t) => {
36
36
  t instanceof HTMLElement && t.hasAttribute("data-radix-popper-content-wrapper") && t.classList.add(e);
37
37
  }, n = new MutationObserver((t) => {
38
38
  for (const V of t)
39
- V.addedNodes.forEach(i);
39
+ V.addedNodes.forEach(l);
40
40
  });
41
41
  return n.observe(document.body, { childList: !0, subtree: !0 }), document.querySelectorAll("[data-radix-popper-content-wrapper]").forEach((t) => {
42
42
  t.classList.add(e);
43
43
  }), () => n.disconnect();
44
44
  }, []);
45
45
  const c = u((e) => {
46
- const i = g?.getColId();
47
- if (i && l) {
46
+ const l = g?.getColId();
47
+ if (l && i) {
48
48
  const n = e ? `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}` : null, t = s ? { value: n, ...d !== void 0 && { cellMetadata: d } } : n;
49
- l.setDataValue(i, t);
49
+ i.setDataValue(l, t);
50
50
  }
51
- h();
52
- }, [g, l, h, s, d]), A = u((e) => {
51
+ v();
52
+ }, [g, i, v, s, d]), A = u((e) => {
53
53
  b(e), c(e);
54
54
  }, [c]), x = u(() => {
55
55
  b(void 0), c(void 0);
56
56
  }, [c]), y = m ? p(m) : void 0, L = f ? p(f) : void 0;
57
- return /* @__PURE__ */ C("div", { className: "ag-custom-component-popup bg-white border border-input rounded-md shadow-lg", children: /* @__PURE__ */ C(
57
+ return /* @__PURE__ */ C("div", { className: "ag-custom-component-popup bg-canvas-elevated border border-field rounded-md shadow-lg", children: /* @__PURE__ */ C(
58
58
  I,
59
59
  {
60
60
  mode: "single",
61
- selected: w,
61
+ selected: M,
62
62
  onSelect: A,
63
- month: M,
63
+ month: w,
64
64
  onMonthChange: E,
65
65
  disabled: { before: y, after: L },
66
66
  showFooter: !1,
@@ -1,27 +1,27 @@
1
- import { jsx as c } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import E, { forwardRef as D, useRef as j, useImperativeHandle as I, useEffect as k, useCallback as s } from "react";
3
- const h = D((i, g) => {
3
+ const h = D((o, g) => {
4
4
  const {
5
5
  value: r,
6
- placeholder: b,
7
- min: v,
8
- max: w,
9
- step: y,
10
- maxLength: o,
6
+ placeholder: v,
7
+ min: b,
8
+ max: y,
9
+ step: w,
10
+ maxLength: c,
11
11
  onValueChange: f,
12
12
  colDef: x,
13
13
  className: N
14
- } = i, d = x?.cellDataType === "number" ? "number" : "text", u = d === "number", t = j(null), p = r && typeof r == "object" && "value" in r, m = p ? r.cellMetadata : void 0;
14
+ } = o, d = x?.cellDataType === "number" ? "number" : "text", a = d === "number", t = j(null), p = r && typeof r == "object" && "value" in r, m = p ? r.cellMetadata : void 0;
15
15
  I(g, () => ({
16
16
  getValue() {
17
17
  const e = t.current?.value;
18
18
  let n;
19
- if (u)
19
+ if (a)
20
20
  if (!e || e === "" || e === "-")
21
21
  n = null;
22
22
  else {
23
- const a = Number(e);
24
- n = isNaN(a) ? null : a;
23
+ const u = Number(e);
24
+ n = isNaN(u) ? null : u;
25
25
  }
26
26
  else
27
27
  n = e === "" ? null : e;
@@ -39,43 +39,43 @@ const h = D((i, g) => {
39
39
  }), []), k(() => {
40
40
  if (t.current) {
41
41
  const l = r && typeof r == "object" && "value" in r ? r.value : r;
42
- if (t.current.value = l != null ? String(l) : "", u) {
42
+ if (t.current.value = l != null ? String(l) : "", a) {
43
43
  const e = t.current, n = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value");
44
44
  Object.defineProperty(e, "value", {
45
45
  get() {
46
- const a = this.valueAsNumber;
47
- return isNaN(a) ? n.get.call(this) : a;
46
+ const u = this.valueAsNumber;
47
+ return isNaN(u) ? n.get.call(this) : u;
48
48
  },
49
- set(a) {
50
- n.set.call(this, a);
49
+ set(u) {
50
+ n.set.call(this, u);
51
51
  },
52
52
  configurable: !0
53
53
  });
54
54
  }
55
- i.suppressAutoFocus || (t.current.focus(), t.current.select());
55
+ o.suppressAutoFocus || (t.current.focus(), t.current.select());
56
56
  }
57
57
  return () => {
58
58
  };
59
59
  }, []);
60
60
  const C = s((l) => {
61
61
  const e = t.current?.value;
62
- if (!(o && e && e.length > o)) {
63
- if (u && t.current) {
62
+ if (!(c && e && e.length > c)) {
63
+ if (a && t.current) {
64
64
  const n = t.current.valueAsNumber;
65
65
  isNaN(n) || t.current.setAttribute("data-value", String(n));
66
66
  }
67
67
  f?.(e);
68
68
  }
69
- }, [o, f, u]), V = s((l) => {
69
+ }, [c, f, a]), V = s((l) => {
70
70
  l.key === "Enter" || l.key === "Escape" || l.key === "Tab" || ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(l.key) && l.stopPropagation();
71
71
  }, []), A = s(() => {
72
- i.stopEditing?.();
73
- }, [i, u]);
74
- return /* @__PURE__ */ c("div", { className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${N}`, children: /* @__PURE__ */ c(
72
+ o.stopEditing?.();
73
+ }, [o, a]);
74
+ return /* @__PURE__ */ i("div", { className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${N}`, children: /* @__PURE__ */ i(
75
75
  "div",
76
76
  {
77
- className: `flex w-full items-center rounded-[8px] bg-white px-1.5 h-7 ${u ? "justify-end text-right" : ""}`,
78
- children: /* @__PURE__ */ c(
77
+ className: `flex w-full items-center rounded-[8px] bg-canvas-elevated px-1.5 h-7 ${a ? "justify-end text-right" : ""}`,
78
+ children: /* @__PURE__ */ i(
79
79
  "input",
80
80
  {
81
81
  ref: t,
@@ -83,11 +83,11 @@ const h = D((i, g) => {
83
83
  onChange: C,
84
84
  onKeyDown: V,
85
85
  onBlur: A,
86
- placeholder: b,
87
- className: `flex h-full w-full bg-transparent p-0 text-sm font-medium text-[#1f2b4d] outline-none placeholder:font-medium placeholder:text-[#dfe2e7] ${u ? "text-right" : ""}`,
88
- min: v,
89
- max: w,
90
- step: y
86
+ placeholder: v,
87
+ className: `flex h-full w-full bg-transparent p-0 text-sm font-medium text-content outline-none placeholder:font-medium placeholder:text-content-empty ${a ? "text-right" : ""}`,
88
+ min: b,
89
+ max: y,
90
+ step: w
91
91
  }
92
92
  )
93
93
  }
@@ -1,10 +1,10 @@
1
1
  import { jsx as c, jsxs as F } from "react/jsx-runtime";
2
2
  import L, { forwardRef as I, useRef as w, useLayoutEffect as K, useState as T, useCallback as d, useImperativeHandle as U, useEffect as P } from "react";
3
3
  import { Slider as H } from "../../../slider.js";
4
- function A(t) {
4
+ function k(t) {
5
5
  return t && typeof t == "object" && "value" in t ? t.value : t;
6
6
  }
7
- function C(t) {
7
+ function A(t) {
8
8
  if (t == null || t === "") return null;
9
9
  if (typeof t == "number") return isNaN(t) ? null : t;
10
10
  const i = Number(String(t).replace(/%/g, "").trim());
@@ -13,14 +13,14 @@ function C(t) {
13
13
  function N(t, i, a) {
14
14
  return Math.min(a, Math.max(i, t));
15
15
  }
16
- const D = I((t, i) => {
17
- const { value: a, colDef: f, className: k, onValueChange: m } = t, o = t.min ?? 0, l = t.max ?? 100, b = t.step ?? 1, p = a != null && typeof a == "object" && "value" in a, g = p ? a.cellMetadata : void 0, x = w(null), y = w(t.stopEditing), s = w(null);
16
+ const C = I((t, i) => {
17
+ const { value: a, colDef: f, className: D, onValueChange: m } = t, o = t.min ?? 0, l = t.max ?? 100, b = t.step ?? 1, p = a != null && typeof a == "object" && "value" in a, g = p ? a.cellMetadata : void 0, x = w(null), y = w(t.stopEditing), s = w(null);
18
18
  K(() => {
19
19
  y.current = t.stopEditing;
20
20
  }, [t.stopEditing]);
21
21
  const [v, h] = T(() => {
22
- const e = A(a);
23
- return C(e);
22
+ const e = k(a);
23
+ return A(e);
24
24
  }), u = d(() => {
25
25
  const e = s.current?.value;
26
26
  let n;
@@ -52,7 +52,7 @@ const D = I((t, i) => {
52
52
  ), P(() => {
53
53
  const e = s.current;
54
54
  if (!e) return;
55
- const n = A(a), r = C(n);
55
+ const n = k(a), r = A(n);
56
56
  e.value = r != null ? String(r) : "", t.suppressAutoFocus || (e.focus(), e.select());
57
57
  }, []), P(() => {
58
58
  const e = x.current;
@@ -93,7 +93,7 @@ const D = I((t, i) => {
93
93
  "div",
94
94
  {
95
95
  ref: x,
96
- className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${k ?? ""}`,
96
+ className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${D ?? ""}`,
97
97
  onPointerDown: (e) => e.stopPropagation(),
98
98
  onMouseDown: (e) => e.stopPropagation(),
99
99
  children: /* @__PURE__ */ F("div", { className: "flex w-full min-w-0 items-center gap-2", children: [
@@ -108,7 +108,7 @@ const D = I((t, i) => {
108
108
  "aria-label": typeof f?.headerName == "string" ? `${f.headerName} — slide to adjust` : "Percent — slide to adjust"
109
109
  }
110
110
  ) }),
111
- /* @__PURE__ */ c("div", { className: "shrink-0 rounded-full bg-[#e8eaef] px-1.5 py-0.5", children: /* @__PURE__ */ c(
111
+ /* @__PURE__ */ c("div", { className: "shrink-0 rounded-full bg-stroke-track px-1.5 py-0.5", children: /* @__PURE__ */ c(
112
112
  "input",
113
113
  {
114
114
  ref: s,
@@ -119,17 +119,17 @@ const D = I((t, i) => {
119
119
  step: b,
120
120
  onInput: S,
121
121
  onKeyDown: M,
122
- className: "w-11 bg-transparent p-0 text-center text-xs font-medium tabular-nums text-[#4a5568] outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
122
+ className: "w-11 bg-transparent p-0 text-center text-xs font-medium tabular-nums text-content-charcoal outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
123
123
  "aria-label": typeof f?.headerName == "string" ? f.headerName : "Percent"
124
124
  }
125
125
  ) }),
126
- /* @__PURE__ */ c("span", { className: "shrink-0 text-xs font-medium text-[#4a5568] tabular-nums", children: "%" })
126
+ /* @__PURE__ */ c("span", { className: "shrink-0 text-xs font-medium text-content-charcoal tabular-nums", children: "%" })
127
127
  ] })
128
128
  }
129
129
  );
130
130
  });
131
- D.displayName = "PercentProgressCellEditor";
132
- const q = L.memo(D, () => !0);
131
+ C.displayName = "PercentProgressCellEditor";
132
+ const q = L.memo(C, () => !0);
133
133
  export {
134
134
  q as PercentProgressCellEditor
135
135
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as P, useMemo as R, useState as $, useCallback as j } from "react";
3
- import { resolveValueFormatter as k, applyValueFormatter as A, resolveCellEditable as O } from "../cell-renderer-utils.js";
2
+ import { forwardRef as P, useMemo as R, useState as k, useCallback as $ } from "react";
3
+ import { resolveValueFormatter as j, applyValueFormatter as A, resolveCellEditable as O } from "../cell-renderer-utils.js";
4
4
  const G = P((x) => {
5
- const { splits: i, commonParams: m, data: u, node: a, api: p, column: v, context: d, value: t, colDef: o, valueFormatter: F } = x, K = R(() => i?.map((l) => {
5
+ const { splits: i, commonParams: m, data: s, node: a, api: p, column: v, context: d, value: t, colDef: o, valueFormatter: F } = x, K = R(() => i?.map((l) => {
6
6
  const e = l?.field?.split(".")?.pop() ?? "", n = t?.[e]?.value;
7
7
  return { valueKey: e, field: l.field, newValue: n };
8
- }) ?? [], [i, t]), [s, E] = $(K), U = j((l) => {
9
- const e = s.find((c) => c.field === l);
8
+ }) ?? [], [i, t]), [u, E] = k(K), U = $((l) => {
9
+ const e = u.find((c) => c.field === l);
10
10
  if (!e)
11
11
  return;
12
12
  const n = {
@@ -14,7 +14,7 @@ const G = P((x) => {
14
14
  colDef: o,
15
15
  column: v,
16
16
  context: d,
17
- data: u,
17
+ data: s,
18
18
  field: o.field,
19
19
  node: a,
20
20
  rowIndex: a?.rowIndex ?? null,
@@ -27,7 +27,7 @@ const G = P((x) => {
27
27
  value: { [e.valueKey]: { value: e.newValue } }
28
28
  }, r = t?.[e.valueKey] ?? {};
29
29
  a.setDataValue(o.field, { ...t, [e.valueKey]: { ...r, value: e.newValue } }), d?.onCellUpdate?.(n);
30
- }, [s, p, o, v, d, u, a, t]), S = (l) => {
30
+ }, [u, p, o, v, d, s, a, t]), S = (l) => {
31
31
  if (typeof l == "string") {
32
32
  const e = p?.getGridOption("components");
33
33
  return d?.frameworkComponents?.[l] || e?.[l];
@@ -39,23 +39,23 @@ const G = P((x) => {
39
39
  {
40
40
  style: { display: "grid", gridTemplateRows: `repeat(${i?.length}, 1fr)`, height: "100%", width: "100%" },
41
41
  children: i?.map((l, e) => {
42
- const n = l?.field?.split(".")?.pop(), r = t?.[n], c = r?.value, w = u, C = k(r, w, l?.valueFormatter, F ?? null), I = C ? A(C, c) : c?.toString(), N = typeof o?.editable == "boolean" ? o.editable : void 0, V = O(N, l.editable, w, r), g = V ? m.cellEditor : m.cellRenderer ? m.cellRenderer : void 0, y = g ? S(g) : void 0;
42
+ const n = l?.field?.split(".")?.pop(), r = t?.[n], c = r?.value, w = s, C = j(r, w, l?.valueFormatter, F ?? null), I = C ? A(C, c) : c?.toString(), N = typeof o?.editable == "boolean" ? o.editable : void 0, V = O(N, l.editable, w, r), g = V ? m.cellEditor : m.cellRenderer ? m.cellRenderer : void 0, h = g ? S(g) : void 0;
43
43
  return /* @__PURE__ */ f(
44
44
  "div",
45
45
  {
46
46
  className: "flex items-center max-h-full overflow-hidden",
47
- children: y ? /* @__PURE__ */ f(
48
- y,
47
+ children: h ? /* @__PURE__ */ f(
48
+ h,
49
49
  {
50
50
  context: d,
51
- data: u,
51
+ data: s,
52
52
  value: r,
53
- onValueChange: (h) => {
54
- const b = s.find((D) => D.field === l.field);
55
- b ? b.newValue = h : E([...s, {
53
+ onValueChange: (y) => {
54
+ const b = u.find((D) => D.field === l.field);
55
+ b ? b.newValue = y : E([...u, {
56
56
  valueKey: n,
57
57
  field: l.field,
58
- newValue: h
58
+ newValue: y
59
59
  }]);
60
60
  },
61
61
  valueFormatted: I,
@@ -65,7 +65,7 @@ const G = P((x) => {
65
65
  },
66
66
  node: a,
67
67
  suppressAutoFocus: e !== 0,
68
- className: e !== i.length - 1 ? "border-b border-gray-200" : ""
68
+ className: e !== i.length - 1 ? "border-b border-stroke-hairline" : ""
69
69
  }
70
70
  ) : /* @__PURE__ */ f(
71
71
  "div",
@@ -1,13 +1,13 @@
1
- import { jsxs as l, jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as g, useRef as x, useState as y, useImperativeHandle as w, useCallback as u } from "react";
3
- const b = g((s, i) => {
1
+ import { jsxs as o, jsx as x } from "react/jsx-runtime";
2
+ import { forwardRef as g, useRef as h, useState as b, useImperativeHandle as v, useCallback as s } from "react";
3
+ const y = g((u, d) => {
4
4
  const {
5
5
  value: a,
6
- rows: d = 4,
6
+ rows: i = 4,
7
7
  maxLength: t,
8
8
  placeholder: c
9
- } = s, r = x(null), [n, f] = y(a != null ? String(a) : "");
10
- w(i, () => ({
9
+ } = u, r = h(null), [n, f] = b(a != null ? String(a) : "");
10
+ v(d, () => ({
11
11
  getValue() {
12
12
  return n;
13
13
  },
@@ -28,14 +28,14 @@ const b = g((s, i) => {
28
28
  }
29
29
  }
30
30
  }));
31
- const m = u((e) => {
32
- const o = e.target.value;
33
- t && o.length > t || f(o);
34
- }, [t]), p = u((e) => {
31
+ const m = s((e) => {
32
+ const l = e.target.value;
33
+ t && l.length > t || f(l);
34
+ }, [t]), p = s((e) => {
35
35
  e.key !== "Escape" && e.key !== "Tab" && (e.key === "Enter" && !e.shiftKey || e.stopPropagation());
36
36
  }, []);
37
- return /* @__PURE__ */ l("div", { className: "p-1 bg-white border border-primary rounded-md shadow-lg min-w-[250px]", children: [
38
- /* @__PURE__ */ h(
37
+ return /* @__PURE__ */ o("div", { className: "p-1 bg-canvas-elevated border border-brand rounded-md shadow-lg min-w-[250px]", children: [
38
+ /* @__PURE__ */ x(
39
39
  "textarea",
40
40
  {
41
41
  ref: r,
@@ -43,19 +43,19 @@ const b = g((s, i) => {
43
43
  onChange: m,
44
44
  onKeyDown: p,
45
45
  placeholder: c,
46
- rows: d,
46
+ rows: i,
47
47
  maxLength: t,
48
- className: "w-full px-2 py-1.5 text-sm font-medium bg-white border border-input rounded focus:outline-none focus:border-primary resize-y"
48
+ className: "w-full px-2 py-1.5 text-sm font-medium bg-canvas-elevated border border-field rounded focus:outline-none focus:border-brand resize-y"
49
49
  }
50
50
  ),
51
- t && /* @__PURE__ */ l("div", { className: "text-right text-xs text-muted-foreground px-1 mt-0.5", children: [
51
+ t && /* @__PURE__ */ o("div", { className: "text-right text-xs text-content-muted px-1 mt-0.5", children: [
52
52
  n.length,
53
53
  "/",
54
54
  t
55
55
  ] })
56
56
  ] });
57
57
  });
58
- b.displayName = "TextAreaCellEditor";
58
+ y.displayName = "TextAreaCellEditor";
59
59
  export {
60
- b as TextAreaCellEditor
60
+ y as TextAreaCellEditor
61
61
  };