impact-nova 1.9.0-alpha.2 → 2.0.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 (35) hide show
  1. package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +4 -4
  2. package/dist/components/ui/ag-grid-react/index.d.ts +2 -1
  3. package/dist/components/ui/ag-grid-react/index.js +136 -129
  4. package/dist/components/ui/ag-grid-react/refreshGridAutoSizeStrategy.d.ts +7 -0
  5. package/dist/components/ui/ag-grid-react/refreshGridAutoSizeStrategy.js +30 -0
  6. package/dist/components/ui/ag-grid-react/useGridAutoSizeStrategyOnResize.d.ts +7 -0
  7. package/dist/components/ui/ag-grid-react/useGridAutoSizeStrategyOnResize.js +33 -0
  8. package/dist/components/ui/empty-container/emptyStateIllustrations.d.ts +15 -31
  9. package/dist/components/ui/empty-container/emptyStateIllustrations.js +32 -21
  10. package/dist/components/ui/empty-container/illustrations/empty-state-1.d.ts +3 -0
  11. package/dist/components/ui/empty-container/illustrations/empty-state-1.js +7 -0
  12. package/dist/components/ui/empty-container/illustrations/empty-state-2.d.ts +3 -0
  13. package/dist/components/ui/empty-container/illustrations/empty-state-2.js +7 -0
  14. package/dist/components/ui/empty-container/illustrations/empty-state-3.d.ts +3 -0
  15. package/dist/components/ui/empty-container/illustrations/empty-state-3.js +7 -0
  16. package/dist/components/ui/empty-container/illustrations/empty-state-4.d.ts +3 -0
  17. package/dist/components/ui/empty-container/illustrations/empty-state-4.js +7 -0
  18. package/dist/components/ui/empty-container/illustrations/empty-state-5.d.ts +3 -0
  19. package/dist/components/ui/empty-container/illustrations/empty-state-5.js +7 -0
  20. package/dist/components/ui/empty-container/illustrations/empty-state-6.d.ts +3 -0
  21. package/dist/components/ui/empty-container/illustrations/empty-state-6.js +7 -0
  22. package/dist/components/ui/empty-container.js +60 -53
  23. package/dist/components/ui/progress-bar.js +4 -0
  24. package/dist/i18n/locales/index.js +10 -0
  25. package/dist/index.d.ts +0 -56
  26. package/dist/index.js +153 -153
  27. package/dist/lib/virtualized/index.js +18 -0
  28. package/dist/llms/rules/ag-grid.js +1 -1
  29. package/dist/llms/rules/best-practices.js +1 -1
  30. package/dist/llms/rules/installation.js +1 -1
  31. package/dist/llms/rules/migration.js +1 -1
  32. package/dist/llms/rules/real-world-patterns.js +1 -1
  33. package/dist/llms/rules/requirements.js +1 -1
  34. package/dist/llms/rules/troubleshooting.js +1 -1
  35. package/package.json +8 -1
@@ -1,24 +1,35 @@
1
- import e from "./assets/empty-state-1.webp.js";
2
- import m from "./assets/empty-state-2.webp.js";
3
- import o from "./assets/empty-state-3.webp.js";
4
- import p from "./assets/empty-state-4.webp.js";
5
- import r from "./assets/empty-state-5.webp.js";
6
- import a from "./assets/empty-state-6.webp.js";
7
- import { createImage as t } from "../../../lib/createImage.js";
8
- const S = t("EmptyState1", e), i = t("EmptyState2", m), n = t("EmptyState3", o), s = t("EmptyState4", p), h = t("EmptyState5", r), y = t("EmptyState6", a), w = [
9
- { Component: S, width: 225, height: 150 },
10
- { Component: i, width: 200, height: 200 },
11
- { Component: n, width: 225, height: 150 },
12
- { Component: s, width: 250, height: 180 },
13
- { Component: h, width: 225, height: 150 },
14
- { Component: y, width: 225, height: 150 }
1
+ const t = [
2
+ {
3
+ width: 225,
4
+ height: 150,
5
+ load: () => import("./illustrations/empty-state-1.js")
6
+ },
7
+ {
8
+ width: 200,
9
+ height: 200,
10
+ load: () => import("./illustrations/empty-state-2.js")
11
+ },
12
+ {
13
+ width: 225,
14
+ height: 150,
15
+ load: () => import("./illustrations/empty-state-3.js")
16
+ },
17
+ {
18
+ width: 250,
19
+ height: 180,
20
+ load: () => import("./illustrations/empty-state-4.js")
21
+ },
22
+ {
23
+ width: 225,
24
+ height: 150,
25
+ load: () => import("./illustrations/empty-state-5.js")
26
+ },
27
+ {
28
+ width: 225,
29
+ height: 150,
30
+ load: () => import("./illustrations/empty-state-6.js")
31
+ }
15
32
  ];
16
33
  export {
17
- w as EMPTY_STATE_IMAGES,
18
- S as EmptyState1,
19
- i as EmptyState2,
20
- n as EmptyState3,
21
- s as EmptyState4,
22
- h as EmptyState5,
23
- y as EmptyState6
34
+ t as EMPTY_STATE_IMAGES
24
35
  };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-1.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState1", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-2.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState2", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-3.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState3", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-4.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState4", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-5.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState5", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -0,0 +1,3 @@
1
+ declare const Component: import('impact-nova-icons').ImageComponent;
2
+ export default Component;
3
+ export { Component };
@@ -0,0 +1,7 @@
1
+ import t from "../assets/empty-state-6.webp.js";
2
+ import { createImage as e } from "../../../../lib/createImage.js";
3
+ const r = e("EmptyState6", t);
4
+ export {
5
+ r as Component,
6
+ r as default
7
+ };
@@ -1,72 +1,79 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as m from "react";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import * as r from "react";
3
3
  import { Slot as s } from "@radix-ui/react-slot";
4
- import { cn as l } from "../../lib/utils.js";
5
- import { EMPTY_STATE_IMAGES as p } from "./empty-container/emptyStateIllustrations.js";
6
- const E = m.forwardRef(
7
- ({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ r(
4
+ import { cn as c } from "../../lib/utils.js";
5
+ import { EMPTY_STATE_IMAGES as f } from "./empty-container/emptyStateIllustrations.js";
6
+ const b = r.forwardRef(
7
+ ({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ m(
8
8
  e ? s : "div",
9
9
  {
10
10
  ref: o,
11
- className: l(
11
+ className: c(
12
12
  "flex flex-col items-center justify-center py-16 px-5 text-center animate-in fade-in zoom-in duration-300 border border-stroke-subtle rounded-xl bg-canvas-elevated w-[884px] min-w-[884px] h-auto",
13
13
  a
14
14
  ),
15
15
  "data-component": "empty-container",
16
16
  ...n,
17
- children: /* @__PURE__ */ r("div", { className: "flex flex-col items-center max-w-[650px]", children: t })
17
+ children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center max-w-[650px]", children: t })
18
18
  }
19
19
  )
20
20
  );
21
- E.displayName = "EmptyContainer";
22
- const w = m.forwardRef(({ className: a, children: t, width: e, height: n, asChild: o = !1, ...i }, d) => {
23
- const [c, v] = m.useState(() => t ? null : Math.floor(Math.random() * p.length)), u = () => {
24
- if (t) return t;
25
- if (c !== null) {
26
- const {
27
- Component: C,
28
- width: g,
29
- height: h
30
- } = p[c];
31
- return /* @__PURE__ */ r(
32
- C,
33
- {
34
- size: "100%",
35
- style: {
36
- width: e || g,
37
- height: n || h
38
- }
21
+ b.displayName = "EmptyContainer";
22
+ const N = r.forwardRef(({ className: a, children: t, width: e, height: n, asChild: o = !1, ...l }, x) => {
23
+ const [i] = r.useState(() => t ? null : Math.floor(Math.random() * f.length)), [d, C] = r.useState(null);
24
+ r.useEffect(() => {
25
+ if (t || i === null)
26
+ return;
27
+ let p = !1;
28
+ return f[i].load().then((w) => {
29
+ p || C(() => w.Component);
30
+ }), () => {
31
+ p = !0;
32
+ };
33
+ }, [t, i]);
34
+ const g = () => {
35
+ if (t)
36
+ return t;
37
+ if (i === null || !d)
38
+ return null;
39
+ const { width: p, height: y } = f[i];
40
+ return /* @__PURE__ */ m(
41
+ d,
42
+ {
43
+ size: "100%",
44
+ style: {
45
+ width: e || p,
46
+ height: n || y
39
47
  }
40
- );
41
- }
42
- return null;
43
- }, f = c !== null ? p[c] : null, y = e || (t ? "auto" : f?.width || 225), x = n || (t ? "auto" : f?.height || 150);
44
- return /* @__PURE__ */ r(
48
+ }
49
+ );
50
+ }, u = i !== null ? f[i] : null, h = e || (t ? "auto" : u?.width || 225), E = n || (t ? "auto" : u?.height || 150);
51
+ return /* @__PURE__ */ m(
45
52
  o ? s : "div",
46
53
  {
47
- ref: d,
48
- className: l(
54
+ ref: x,
55
+ className: c(
49
56
  "mb-4 flex items-center justify-center relative",
50
57
  "after:absolute after:inset-0 after:bg-brand/5 after:blur-3xl after:-z-10 after:rounded-full",
51
58
  a
52
59
  ),
53
60
  style: {
54
- width: y,
55
- height: x,
56
- ...i.style
61
+ width: h,
62
+ height: E,
63
+ ...l.style
57
64
  },
58
65
  "data-component": "empty-container-image",
59
- ...i,
60
- children: u()
66
+ ...l,
67
+ children: g()
61
68
  }
62
69
  );
63
70
  });
64
- w.displayName = "EmptyContainerImage";
65
- const b = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ r(
71
+ N.displayName = "EmptyContainerImage";
72
+ const I = r.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ m(
66
73
  e ? s : "h3",
67
74
  {
68
75
  ref: o,
69
- className: l(
76
+ className: c(
70
77
  "text-xl font-bold tracking-tight leading-[30px] text-content",
71
78
  a
72
79
  ),
@@ -75,12 +82,12 @@ const b = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o)
75
82
  children: t
76
83
  }
77
84
  ));
78
- b.displayName = "EmptyContainerTitle";
79
- const N = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ r(
85
+ I.displayName = "EmptyContainerTitle";
86
+ const v = r.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ m(
80
87
  e ? s : "p",
81
88
  {
82
89
  ref: o,
83
- className: l(
90
+ className: c(
84
91
  "text-base leading-[21px] mt-1 font-medium text-secondary-foreground",
85
92
  a
86
93
  ),
@@ -89,12 +96,12 @@ const N = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o)
89
96
  children: t
90
97
  }
91
98
  ));
92
- N.displayName = "EmptyContainerDescription";
93
- const I = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ r(
99
+ v.displayName = "EmptyContainerDescription";
100
+ const R = r.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */ m(
94
101
  e ? s : "div",
95
102
  {
96
103
  ref: o,
97
- className: l(
104
+ className: c(
98
105
  "mt-6 flex flex-wrap items-center justify-center gap-3",
99
106
  a
100
107
  ),
@@ -103,11 +110,11 @@ const I = m.forwardRef(({ className: a, children: t, asChild: e = !1, ...n }, o)
103
110
  children: t
104
111
  }
105
112
  ));
106
- I.displayName = "EmptyContainerAction";
113
+ R.displayName = "EmptyContainerAction";
107
114
  export {
108
- E as EmptyContainer,
109
- I as EmptyContainerAction,
110
- N as EmptyContainerDescription,
111
- w as EmptyContainerImage,
112
- b as EmptyContainerTitle
115
+ b as EmptyContainer,
116
+ R as EmptyContainerAction,
117
+ v as EmptyContainerDescription,
118
+ N as EmptyContainerImage,
119
+ I as EmptyContainerTitle
113
120
  };
@@ -0,0 +1,4 @@
1
+ import { Progress as o } from "./progress.js";
2
+ export {
3
+ o as ProgressBar
4
+ };
@@ -0,0 +1,10 @@
1
+ import { de as e } from "./de.js";
2
+ import { es as m } from "./es.js";
3
+ import { hi as t } from "./hi.js";
4
+ import { kn as d } from "./kn.js";
5
+ export {
6
+ e as de,
7
+ m as es,
8
+ t as hi,
9
+ d as kn
10
+ };
package/dist/index.d.ts CHANGED
@@ -58,63 +58,7 @@ export * from './components/ui/tooltip';
58
58
  export * from './components/ui/data-table';
59
59
  export * from './components/ui/command-palette';
60
60
  export type { ImpactNovaMessages } from './i18n';
61
- export * from './components/ui/accordion-nested-list';
62
- export * from './components/ui/accordion';
63
- export * from './components/ui/alert-dialog';
64
- export * from './components/ui/alert';
65
- export * from './components/ui/avatar';
66
- export * from './components/ui/badge';
67
- export * from './components/ui/breadcrumb';
68
- export * from './components/ui/button-group';
69
- export * from './components/ui/button';
70
- export * from './components/ui/calendar';
71
- export * from './components/ui/card';
72
- export * from './components/ui/chart';
73
- export * from './components/ui/checkbox';
74
- export * from './components/ui/chips';
75
- export * from './components/ui/combobox';
76
- export * from './components/ui/date-picker';
77
- export * from './components/ui/dialog';
78
- export * from './components/ui/drawer';
79
- export * from './components/ui/dropdown-menu';
80
- export * from './components/ui/dynamic-layout';
81
- export * from './components/ui/empty-container';
82
- export * from './components/ui/file-upload';
83
- export * from './components/ui/filter-panel';
84
- export * from './components/ui/filter-strip';
85
- export * from './components/ui/header';
86
- export * from './components/ui/horizontal-scroller';
87
- export * from './components/ui/hover-card';
88
- export * from './components/ui/input';
89
- export * from './components/ui/loader';
90
- export * from './components/ui/nested-list';
91
- export * from './components/ui/notification-panel';
92
- export * from './components/ui/popover';
93
- export * from './components/ui/portal';
94
- export * from './components/ui/progress-bar';
95
- export * from './components/ui/progress';
96
- export * from './components/ui/prompt';
97
- export * from './components/ui/radio-group';
98
- export * from './components/ui/select';
99
- export * from './components/ui/separator';
100
- export * from './components/ui/sheet';
101
- export * from './components/ui/sidebar';
102
- export * from './components/ui/skeleton';
103
- export * from './components/ui/slider';
104
- export * from './components/ui/smart-input';
105
- export * from './components/ui/statistics-card';
106
- export * from './components/ui/stepper';
107
- export * from './components/ui/switch';
108
- export * from './components/ui/tabs';
109
- export * from './components/ui/tag-group';
110
- export * from './components/ui/tag';
111
- export * from './components/ui/textarea';
112
- export * from './components/ui/toast';
113
- export * from './components/ui/toaster';
114
61
  export { useToast, toast } from './hooks/use-toast';
115
- export * from './components/ui/tooltip';
116
- export * from './components/ui/data-table';
117
- export * from './components/ui/command-palette';
118
62
  export * from './components/ui/wizard';
119
63
  export * from './components/ui/choice-card';
120
64
  export { AG_GRID_VALUE_FORMATTERS, type AGGridFormatterName, } from './components/ui/ag-grid-react/value-formatters';