impact-nova 1.9.0-alpha.2 → 1.9.0-alpha.3
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.
- package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +4 -4
- package/dist/components/ui/ag-grid-react/index.d.ts +2 -1
- package/dist/components/ui/ag-grid-react/index.js +136 -129
- package/dist/components/ui/ag-grid-react/refreshGridAutoSizeStrategy.d.ts +7 -0
- package/dist/components/ui/ag-grid-react/refreshGridAutoSizeStrategy.js +30 -0
- package/dist/components/ui/ag-grid-react/useGridAutoSizeStrategyOnResize.d.ts +7 -0
- package/dist/components/ui/ag-grid-react/useGridAutoSizeStrategyOnResize.js +33 -0
- package/dist/components/ui/empty-container/emptyStateIllustrations.d.ts +15 -31
- package/dist/components/ui/empty-container/emptyStateIllustrations.js +32 -21
- package/dist/components/ui/empty-container/illustrations/empty-state-1.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-1.js +7 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-2.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-2.js +7 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-3.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-3.js +7 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-4.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-4.js +7 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-5.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-5.js +7 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-6.d.ts +3 -0
- package/dist/components/ui/empty-container/illustrations/empty-state-6.js +7 -0
- package/dist/components/ui/empty-container.js +60 -53
- package/dist/components/ui/progress-bar.js +4 -0
- package/dist/index.d.ts +0 -56
- package/dist/index.js +153 -153
- package/dist/lib/virtualized/index.js +18 -0
- package/package.json +8 -1
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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
|
};
|
|
@@ -1,72 +1,79 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
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
|
|
5
|
-
import { EMPTY_STATE_IMAGES as
|
|
6
|
-
const
|
|
7
|
-
({ className: a, children: t, asChild: e = !1, ...n }, o) => /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
17
|
+
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center max-w-[650px]", children: t })
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
43
|
-
|
|
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:
|
|
48
|
-
className:
|
|
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:
|
|
55
|
-
height:
|
|
56
|
-
...
|
|
61
|
+
width: h,
|
|
62
|
+
height: E,
|
|
63
|
+
...l.style
|
|
57
64
|
},
|
|
58
65
|
"data-component": "empty-container-image",
|
|
59
|
-
...
|
|
60
|
-
children:
|
|
66
|
+
...l,
|
|
67
|
+
children: g()
|
|
61
68
|
}
|
|
62
69
|
);
|
|
63
70
|
});
|
|
64
|
-
|
|
65
|
-
const
|
|
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:
|
|
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
|
-
|
|
79
|
-
const
|
|
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:
|
|
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
|
-
|
|
93
|
-
const
|
|
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:
|
|
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
|
-
|
|
113
|
+
R.displayName = "EmptyContainerAction";
|
|
107
114
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
b as EmptyContainer,
|
|
116
|
+
R as EmptyContainerAction,
|
|
117
|
+
v as EmptyContainerDescription,
|
|
118
|
+
N as EmptyContainerImage,
|
|
119
|
+
I as EmptyContainerTitle
|
|
113
120
|
};
|
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';
|