impact-nova 1.3.0 → 1.5.2

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 (117) hide show
  1. package/README.md +49 -0
  2. package/dist/components/layout/dashboard-layout.d.ts +15 -1
  3. package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +65 -64
  4. package/dist/components/ui/accordion.js +38 -34
  5. package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +1 -1
  6. package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.d.ts +58 -0
  7. package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.js +104 -0
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +62 -54
  9. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +4 -6
  10. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +54 -68
  11. package/dist/components/ui/ag-grid-react/cell-renderers/index.d.ts +3 -1
  12. package/dist/components/ui/ag-grid-react/cell-renderers/index.js +33 -27
  13. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +3 -0
  14. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +28 -12
  15. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.d.ts +2 -0
  16. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +45 -44
  17. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.d.ts +4 -6
  18. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +23 -37
  19. package/dist/components/ui/ag-grid-react/cell-renderers/types.d.ts +33 -17
  20. package/dist/components/ui/ag-grid-react/editable-utils.d.ts +27 -0
  21. package/dist/components/ui/ag-grid-react/editable-utils.js +62 -0
  22. package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +99 -98
  23. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +110 -143
  24. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +72 -69
  25. package/dist/components/ui/ag-grid-react/headers/components/header-info.js +36 -35
  26. package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +14 -12
  27. package/dist/components/ui/ag-grid-react/headers/custom-header.js +111 -110
  28. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +204 -203
  29. package/dist/components/ui/alert.js +62 -58
  30. package/dist/components/ui/breadcrumb.js +81 -74
  31. package/dist/components/ui/calendar.js +354 -354
  32. package/dist/components/ui/chart/chart.js +63 -62
  33. package/dist/components/ui/chips.js +42 -38
  34. package/dist/components/ui/command-palette/command-palette-context.d.ts +52 -0
  35. package/dist/components/ui/command-palette/command-palette-context.js +110 -0
  36. package/dist/components/ui/command-palette/command-palette.d.ts +67 -0
  37. package/dist/components/ui/command-palette/command-palette.js +402 -0
  38. package/dist/components/ui/command-palette/index.d.ts +23 -0
  39. package/dist/components/ui/command-palette/index.js +44 -0
  40. package/dist/components/ui/command-palette/kbd.d.ts +28 -0
  41. package/dist/components/ui/command-palette/kbd.js +52 -0
  42. package/dist/components/ui/command-palette/shortcut-registry.d.ts +68 -0
  43. package/dist/components/ui/command-palette/shortcut-registry.js +183 -0
  44. package/dist/components/ui/command-palette/shortcut-scope-provider.d.ts +55 -0
  45. package/dist/components/ui/command-palette/shortcut-scope-provider.js +55 -0
  46. package/dist/components/ui/command-palette/shortcut-settings.d.ts +27 -0
  47. package/dist/components/ui/command-palette/shortcut-settings.js +266 -0
  48. package/dist/components/ui/command-palette/use-browser-shortcuts.d.ts +32 -0
  49. package/dist/components/ui/command-palette/use-browser-shortcuts.js +48 -0
  50. package/dist/components/ui/command-palette/use-global-shortcut.d.ts +3 -0
  51. package/dist/components/ui/command-palette/use-global-shortcut.js +7 -0
  52. package/dist/components/ui/command-palette/use-shortcut.d.ts +47 -0
  53. package/dist/components/ui/command-palette/use-shortcut.js +49 -0
  54. package/dist/components/ui/command-palette/utils.d.ts +119 -0
  55. package/dist/components/ui/command-palette/utils.js +248 -0
  56. package/dist/components/ui/data-table/data-table-column-list.js +87 -86
  57. package/dist/components/ui/data-table/data-table-format-options.js +45 -44
  58. package/dist/components/ui/data-table/data-table-view-options.js +39 -38
  59. package/dist/components/ui/date-picker/date-picker.js +89 -87
  60. package/dist/components/ui/date-picker/date-range-picker.js +140 -138
  61. package/dist/components/ui/date-picker/month-picker.js +82 -81
  62. package/dist/components/ui/date-picker/month-range-picker.js +108 -105
  63. package/dist/components/ui/date-picker/multi-date-picker.js +68 -66
  64. package/dist/components/ui/date-picker/multi-month-picker.js +59 -58
  65. package/dist/components/ui/date-picker/multi-week-picker.js +80 -78
  66. package/dist/components/ui/date-picker/week-picker.js +117 -115
  67. package/dist/components/ui/date-picker/week-range-picker.js +166 -164
  68. package/dist/components/ui/dialog.js +78 -73
  69. package/dist/components/ui/drawer.js +71 -66
  70. package/dist/components/ui/file-upload.js +131 -127
  71. package/dist/components/ui/filter-panel/filter-panel.js +98 -94
  72. package/dist/components/ui/filter-strip/filter-strip.js +95 -91
  73. package/dist/components/ui/filter-strip/filter-summary.js +91 -90
  74. package/dist/components/ui/header.js +57 -53
  75. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +78 -76
  76. package/dist/components/ui/loader.js +17 -16
  77. package/dist/components/ui/nested-list/components/NestedListHeader.d.ts +1 -0
  78. package/dist/components/ui/nested-list/components/NestedListHeader.js +51 -48
  79. package/dist/components/ui/nested-list/components/SortableItem.js +60 -59
  80. package/dist/components/ui/nested-list/nested-list.js +184 -182
  81. package/dist/components/ui/notification-panel/notification-panel.js +60 -53
  82. package/dist/components/ui/popover.js +45 -40
  83. package/dist/components/ui/prompt.js +90 -86
  84. package/dist/components/ui/select/select.js +206 -209
  85. package/dist/components/ui/sheet.d.ts +1 -0
  86. package/dist/components/ui/sheet.js +50 -48
  87. package/dist/components/ui/sidebar.js +273 -267
  88. package/dist/components/ui/stepper.js +75 -63
  89. package/dist/components/ui/tag.js +48 -44
  90. package/dist/components/ui/toast.js +46 -41
  91. package/dist/i18n/ImpactNovaI18nContext.d.ts +21 -0
  92. package/dist/i18n/ImpactNovaI18nContext.js +76 -0
  93. package/dist/i18n/defaultMessages.d.ts +231 -0
  94. package/dist/i18n/defaultMessages.js +206 -0
  95. package/dist/i18n/getDateFnsLocale.d.ts +11 -0
  96. package/dist/i18n/getDateFnsLocale.js +21 -0
  97. package/dist/i18n/index.d.ts +5 -0
  98. package/dist/i18n/locales/de.d.ts +2 -0
  99. package/dist/i18n/locales/de.js +206 -0
  100. package/dist/i18n/locales/es.d.ts +2 -0
  101. package/dist/i18n/locales/es.js +206 -0
  102. package/dist/i18n/locales/hi.d.ts +2 -0
  103. package/dist/i18n/locales/hi.js +206 -0
  104. package/dist/i18n/locales/index.d.ts +4 -0
  105. package/dist/i18n/locales/kn.d.ts +2 -0
  106. package/dist/i18n/locales/kn.js +206 -0
  107. package/dist/icons/assets/boxAdd.svg.js +5 -0
  108. package/dist/icons/assets/boxed.svg.js +5 -0
  109. package/dist/icons/assets/trolley.svg.js +5 -0
  110. package/dist/icons/assets/unlocked.svg.js +5 -0
  111. package/dist/icons/index.d.ts +4 -0
  112. package/dist/icons/index.js +179 -171
  113. package/dist/impact-nova.css +1 -1
  114. package/dist/index.d.ts +4 -0
  115. package/dist/index.js +232 -172
  116. package/package.json +36 -4
  117. package/dist/components/ui/ag-grid-react/cell-renderers/types.js +0 -74
@@ -11,6 +11,7 @@ declare const sheetVariants: (props?: {
11
11
  } & import('class-variance-authority/types').ClassProp) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  expandable?: boolean;
14
+ defaultExpanded?: boolean;
14
15
  }
15
16
  declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
16
17
  declare const SheetHeader: {
@@ -1,15 +1,16 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
3
  import * as o from "@radix-ui/react-dialog";
4
- import { cva as N } from "class-variance-authority";
5
- import { ChevronDown as v, ChevronUp as C, X as S } from "lucide-react";
4
+ import { cva as v } from "class-variance-authority";
5
+ import { ChevronDown as S, ChevronUp as w, X as C } from "lucide-react";
6
6
  import { cn as r } from "../../lib/utils.js";
7
- import { Tooltip as p, TooltipTrigger as h, TooltipContent as f } from "./tooltip.js";
8
- const u = n.createContext({
7
+ import { Tooltip as g, TooltipTrigger as x, TooltipContent as b } from "./tooltip.js";
8
+ import { useImpactNovaI18n as T } from "../../i18n/ImpactNovaI18nContext.js";
9
+ const y = n.createContext({
9
10
  isExpanded: !1,
10
11
  expandable: !1,
11
12
  side: "right"
12
- }), I = o.Root, U = o.Trigger, w = o.Close, T = o.Portal, g = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
13
+ }), X = o.Root, q = o.Trigger, k = o.Close, E = o.Portal, N = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
13
14
  o.Overlay,
14
15
  {
15
16
  className: r(
@@ -20,8 +21,8 @@ const u = n.createContext({
20
21
  ref: s
21
22
  }
22
23
  ));
23
- g.displayName = o.Overlay.displayName;
24
- const k = N(
24
+ N.displayName = o.Overlay.displayName;
25
+ const R = v(
25
26
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
26
27
  {
27
28
  variants: {
@@ -36,78 +37,79 @@ const k = N(
36
37
  side: "right"
37
38
  }
38
39
  }
39
- ), E = n.forwardRef(({ side: t = "right", className: a, children: s, expandable: d = !1, ...c }, m) => {
40
- const [l, x] = n.useState(!1), y = n.useCallback(() => {
41
- x((b) => !b);
40
+ ), D = n.forwardRef(({ side: t = "right", className: a, children: s, expandable: d = !1, defaultExpanded: l = !1, ...f }, u) => {
41
+ const [h, c] = n.useState(l), m = n.useCallback(() => {
42
+ c((p) => !p);
42
43
  }, []);
43
- return /* @__PURE__ */ e(u.Provider, { value: { isExpanded: l, onExpandToggle: y, expandable: d, side: t || void 0 }, children: /* @__PURE__ */ i(T, { children: [
44
- /* @__PURE__ */ e(g, {}),
44
+ return /* @__PURE__ */ e(y.Provider, { value: { isExpanded: h, onExpandToggle: m, expandable: d, side: t || void 0 }, children: /* @__PURE__ */ i(E, { children: [
45
+ /* @__PURE__ */ e(N, {}),
45
46
  /* @__PURE__ */ e(
46
47
  o.Content,
47
48
  {
48
- ref: m,
49
+ ref: u,
49
50
  "data-component": "sheet-content",
50
51
  className: r(
51
- k({ side: t }),
52
+ R({ side: t }),
52
53
  "flex flex-col p-0 transition-all duration-300",
53
- t === "bottom" && (l ? "h-[96vh]" : "h-[40vh]"),
54
+ t === "bottom" && (h ? "h-[96vh]" : "h-[40vh]"),
54
55
  a
55
56
  ),
56
- ...c,
57
+ ...f,
57
58
  children: s
58
59
  }
59
60
  )
60
61
  ] }) });
61
62
  });
62
- E.displayName = o.Content.displayName;
63
- const R = ({
63
+ D.displayName = o.Content.displayName;
64
+ const L = ({
64
65
  className: t,
65
66
  children: a,
66
67
  ...s
67
68
  }) => {
68
- const { isExpanded: d, onExpandToggle: c, expandable: m, side: l } = n.useContext(u);
69
+ const { t: d } = T(), { isExpanded: l, onExpandToggle: f, expandable: u, side: h } = n.useContext(y), c = d("aria.close"), m = d("nestedList.expand"), p = d("nestedList.collapse");
69
70
  return /* @__PURE__ */ i(
70
71
  "div",
71
72
  {
72
73
  className: r(
73
74
  "flex px-4 py-4 shrink-0 items-center justify-between bg-light-blue border-b",
74
- l === "bottom" && "rounded-t-lg",
75
+ h === "bottom" && "rounded-t-lg",
75
76
  t
76
77
  ),
77
78
  ...s,
78
79
  children: [
79
80
  /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-left", children: a }),
80
81
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
81
- m && /* @__PURE__ */ i(p, { children: [
82
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(
82
+ u && /* @__PURE__ */ i(g, { children: [
83
+ /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(
83
84
  "button",
84
85
  {
85
86
  type: "button",
86
87
  "data-component": "sheet-expand-toggle",
87
- onClick: c,
88
+ onClick: f,
88
89
  className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
90
+ "aria-label": l ? p : m,
89
91
  children: [
90
- d ? /* @__PURE__ */ e(v, { className: "h-4 w-4" }) : /* @__PURE__ */ e(C, { className: "h-4 w-4" }),
91
- /* @__PURE__ */ e("span", { className: "sr-only", children: d ? "Collapse" : "Expand" })
92
+ l ? /* @__PURE__ */ e(S, { className: "h-4 w-4" }) : /* @__PURE__ */ e(w, { className: "h-4 w-4" }),
93
+ /* @__PURE__ */ e("span", { className: "sr-only", children: l ? p : m })
92
94
  ]
93
95
  }
94
96
  ) }),
95
- /* @__PURE__ */ e(f, { variant: "tertiary", side: "top", children: d ? "Collapse" : "Expand" })
97
+ /* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: l ? p : m })
96
98
  ] }),
97
- /* @__PURE__ */ i(p, { children: [
98
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(w, { "data-component": "sheet-close", className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
99
- /* @__PURE__ */ e(S, { className: "h-4 w-4" }),
100
- /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
99
+ /* @__PURE__ */ i(g, { children: [
100
+ /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(k, { "data-component": "sheet-close", className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", "aria-label": c, children: [
101
+ /* @__PURE__ */ e(C, { className: "h-4 w-4" }),
102
+ /* @__PURE__ */ e("span", { className: "sr-only", children: c })
101
103
  ] }) }),
102
- /* @__PURE__ */ e(f, { variant: "tertiary", side: "top", children: "Close" })
104
+ /* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: c })
103
105
  ] })
104
106
  ] })
105
107
  ]
106
108
  }
107
109
  );
108
110
  };
109
- R.displayName = "SheetHeader";
110
- const D = ({
111
+ L.displayName = "SheetHeader";
112
+ const j = ({
111
113
  className: t,
112
114
  ...a
113
115
  }) => /* @__PURE__ */ e(
@@ -117,8 +119,8 @@ const D = ({
117
119
  ...a
118
120
  }
119
121
  );
120
- D.displayName = "SheetBody";
121
- const j = ({
122
+ j.displayName = "SheetBody";
123
+ const P = ({
122
124
  className: t,
123
125
  ...a
124
126
  }) => /* @__PURE__ */ e(
@@ -132,8 +134,8 @@ const j = ({
132
134
  children: a.children
133
135
  }
134
136
  );
135
- j.displayName = "SheetFooter";
136
- const P = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
137
+ P.displayName = "SheetFooter";
138
+ const I = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
137
139
  o.Title,
138
140
  {
139
141
  ref: s,
@@ -142,7 +144,7 @@ const P = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
142
144
  ...a
143
145
  }
144
146
  ));
145
- P.displayName = o.Title.displayName;
147
+ I.displayName = o.Title.displayName;
146
148
  const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
147
149
  o.Description,
148
150
  {
@@ -153,15 +155,15 @@ const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
153
155
  ));
154
156
  O.displayName = o.Description.displayName;
155
157
  export {
156
- I as Sheet,
157
- D as SheetBody,
158
- w as SheetClose,
159
- E as SheetContent,
158
+ X as Sheet,
159
+ j as SheetBody,
160
+ k as SheetClose,
161
+ D as SheetContent,
160
162
  O as SheetDescription,
161
- j as SheetFooter,
162
- R as SheetHeader,
163
- g as SheetOverlay,
164
- T as SheetPortal,
165
- P as SheetTitle,
166
- U as SheetTrigger
163
+ P as SheetFooter,
164
+ L as SheetHeader,
165
+ N as SheetOverlay,
166
+ E as SheetPortal,
167
+ I as SheetTitle,
168
+ q as SheetTrigger
167
169
  };